:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --primary: #1e40af;
  --secondary: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--secondary);
  line-height: 1.6;
}

/* ---------- Header ---------- */

header {
  background: linear-gradient(135deg, #0f172a, #1e40af);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  height: 200px;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
}

header p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: #c7d2fe;
}

/* ---------- Navigation ---------- */

nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.8rem 1rem;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--secondary);
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ---------- Layout ---------- */

section {
  padding: 1.5rem 1.5rem;
  display: flex;
  justify-content: center; /* center card inside section */
}

.container {
  max-width: 1100px;
  width: 100%;
  background: var(--surface);       /* card background */
  border-radius: 15px;              /* rounded corners */
  padding: 2rem 2.5rem;             /* internal padding */
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* soft shadow */
}

/* Section-specific optional background colors */
.section-light .container {
  background: var(--surface);
}
.section-white .container {
  background: #ffffff;
}
.section-dark .container {
  background: #f1f5f9;
}

/* ---------- Section Headings ---------- */

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* ---------- Cards (inside sections) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ONLY 2 per row */
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
}


.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  background-image: url('Images/Image14.jpg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;

  position: relative;
  color: #ffffff;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}



.card {
  padding-right: 6rem;
}



.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 72px;
  height: auto;

  z-index: 2;
  opacity: 0.95;
  pointer-events: none; /* optional */
}






/* ---------- Table ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f1f5f9;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* ---------- Form ---------- */

form {
  background: var(--surface);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

form label {
  display: block;
  font-weight: 600;
  margin-top: 1.2rem;
}

form input,
form select,
form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

form textarea {
  min-height: 100px;
}

button {
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

/* ---------- Footer ---------- */

footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- Animations ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* HERO IMAGE */
.hero-image .container {
  padding: 0;           /* remove extra container padding for full-width */
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.responsive-img {
  width: 100%;          /* fill container width */
  max-width: 1100px;    /* optional: limit width for large screens */
  height: auto;         /* maintain aspect ratio */
  border-radius: 15px;  /* optional: rounded corners to match cards */
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* optional: subtle depth */
  display: block;
  margin: auto;
}

.hero-img {
  width: 100%;           /* fill width of container */
  max-width: 1100px;     /* optional: limits very large screens */
  height: Auto;          /* maintain aspect ratio */
  display: block;
  margin: 0 auto 2rem;   /* centered with spacing below */
  border-radius: 15px;   /* optional rounded corners */
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* optional depth */
}



/* PAGE BACKGROUND FROM WHAT WE OFFER */
.page-bg {
  background-image: url('Images/Image5.jpg'); /* change image anytime */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* optional parallax effect */
  padding: 1.5rem 0;
}

/* WHITE CONTENT BOXES */
.content-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 3rem;
  width: 100%;
  height: 100%;
}

/* Alternating layout for About page */
.split {
  display: flex;
}

.split.left {
  justify-content: flex-start;
}

.split.right {
  justify-content: flex-end;
}

/* Limit card width so it feels like a "square" */
.split .content-box {
  max-width: 600px;
  width: 100%;
}

/* Mobile: stack everything nicely */
@media (max-width: 768px) {
  .split {
    justify-content: center;
  }

  .split .content-box {
    max-width: 100%;
  }
}



.image-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}


.side-image,
.content-box {
  flex: 1;
}

.side-image {
  display: flex;
}

.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Mobile stays stacked */
@media (max-width: 768px) {
  .image-layout {
    flex-direction: column;
  }

  .side-image img {
    height: auto;
  }
}

/* NEW CLASS: adjusts the size of tutor images */
/* Safe responsive tutor image */
/* Tutor image wrapper */
.tutor-image {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  overflow: hidden; /* prevents runaway images */
  border-radius: 14px;
}

/* Tutor image itself */
.tutor-image img {
  width: 100%;
  max-height: 420px;     /* KEY: stops infinity scroll */
  object-fit: cover;     /* crops nicely instead of stretching */
  display: block;
}


/* Mobile adjustment */
@media (max-width: 768px) {
  .tutor-image {
    max-width: 90%;     /* slightly smaller on mobile */
  }
}


/* Hero section container */
.hero-section {
  position: relative;
  width: 100%;
  height: 90vh; /* bigger hero, almost full screen */
  overflow: hidden;
}

/* Hero image */
.hero-section .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills entire section */
}

/* Text overlay on hero image */
.hero-section .hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.4); /* subtle dark overlay for readability */
  padding: 1.5rem 3rem; /* slightly bigger padding for bigger hero */
  border-radius: 14px;
}

.hero-section .hero-text h1 {
  font-size: 3rem; /* bigger heading for taller hero */
  margin-bottom: 0.5rem;
}

.hero-section .hero-text p {
  font-size: 1.4rem;
}

/* BLUE WRAPPER THAT ENCLOSES BOTH SECTIONS */
.support-blue-wrapper {
  background: linear-gradient(135deg, #0f172a, #1e40af);
  margin: 0.1rem 0;
  padding: 1.5rem 1.5rem;
  border-radius: 15px;
}

/* LOCAL CONTAINER */
.support-inner {
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
}

/* Remove spacing after last block */
.support-inner:last-child {
  margin-bottom: 0;
}

/* Prevent section padding from inflating spacing */
.support-blue-wrapper section {
  padding: 0;
}



/* HOW IT WORKS – BACKGROUND IMAGE (ISOLATED) */
.how-it-works-bg {
  position: relative;
  overflow: hidden;
}

.how-it-works-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('Images/Image16.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Ensure content stays above background */
.how-it-works-bg .container {
  position: relative;
  z-index: 1;
}

/* Optional: dark overlay for readability */
.how-it-works-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 0;
}


/* HEADER CALL-TO-ACTION BUTTON */
.header-cta {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, #0f172a, #1e40af); /* strong academic blue */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
  transition: all 0.3s ease;
  position: relative;
  z-index: 5; /* ensures clickability */
}

/* Hover effect */
.header-cta:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.45);
}

/* Active (click) effect */
.header-cta:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}



/* CONTAINER WITH BACKGROUND IMAGE (SAFE EXTENSION) */
.container-bg {
  /* inherit container layout */
  max-width: 1100px;
  margin: auto;
  padding: 2.5rem;

  /* background image support */
  background-image: url('Images/Image16.jpg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;

  /* visual safety */
  border-radius: 16px;
  position: relative;

  color: #ffffff;
}

/* optional overlay for readability */
.container-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 16px;
  z-index: 0;
}

/* ensure content stays above overlay */
.container-bg > * {
  position: relative;
  z-index: 1;
}





.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* FORCE 3 columns */
  gap: 2rem;
}

@media (max-width: 900px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}


.offer-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
}

.split {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}






.split-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}



.image-layout {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}




.split-highlight {
  background: #0b3c5d;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
}

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.level {
  padding: 1.5rem;
  border-radius: 10px;
  background: #f5f7fa;
}

.trust-strip {
  background: #0b3c5d;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-weight: 500;
}

.process {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.step span {
  font-size: 1.5rem;
  font-weight: bold;
}




.process {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.step-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-weight: 600;
}

.step-circle span {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.step-one {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.step-two {
  background: linear-gradient(135deg, #7c2d12, #ea580c);
}

.step-three {
  background: linear-gradient(135deg, #065f46, #10b981);
}

@media (max-width: 768px) {
  .process {
    justify-content: center;
  }
}



.level.high {
  background: linear-gradient(135deg, #7f1d1d, #dc2626);
  color: #fff;
}

.level.medium {
  background: linear-gradient(135deg, #92400e, #f59e0b);
  color: #fff;
}

.level.low {
  background: linear-gradient(135deg, #065f46, #10b981);
  color: #fff;
}

.level h3 {
  margin-top: 0;
}



.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.logo-small {
    height: 100px;       /* adjust as needed */
    width: auto;        /* maintain aspect ratio */
    display: block;
    margin: 0 auto;     /* center horizontally */
}


.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Logo */
.footer-brand img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

/* Links */
.footer-links h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #e0e7ff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.footer-links li {
  margin: 0.25rem 0;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Copyright */
.footer-inner p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}
