/* ===========================
   EduGeniusSpot — style.css
   Primary Colors: #025C8E & #FFFFFF
   =========================== */

:root {
  --primary: #025C8E;
  --primary-dark: #01496F;
  --white: #FFFFFF;
  --muted: #f5f8fb;
  --text: #025C8E;
  --text-muted: #4b6172;
  --card-shadow: 0 8px 24px rgba(2,92,142,0.06);
  --radius: 12px;
  --container: 1200px;
  --header-height: 80px; /* for sticky header offset */
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--muted);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Button inside #home section */
#home .btn[href="#scholarships"] {
  background-color: var(--muted);
  color: var(--primary);
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-main);
  font-weight: 600; /* keep bold always to prevent resizing */
  cursor: pointer;
  text-decoration: none; /* remove underline */
  transition: background-color 0.25s ease;
}

/* Hover: keep same size, just change color or bg */
#home .btn[href="#scholarships"]:hover {
  text-decoration: underline;
}

/* Active (clicked): show underline but do NOT change weight */
#home .btn[href="#scholarships"]:active {
  text-decoration: underline;
}


/* ------------------------------------------- */
/*   BUTTON: #home → Apply for Admission / Job  */
/* ------------------------------------------- */
#home .btn[onclick*="Open admission form"],
#packages .btn[onclick*="assignment order"],
#packages .btn[onclick*="admission package"],
#scholarships .btn[onclick*="personalized scholarship guidance"] {
  background-color: var(--muted);
  color: var(--primary);
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 600; /* keep bold always to prevent resizing */
  cursor: pointer;
  text-decoration: none; /* remove underline */
  transition: background-color 0.25s ease;
}

/* Hover: dark background, white text */
#home .btn[onclick*="Open admission form"]:hover,
#packages .btn[onclick*="assignment order"]:hover,
#packages .btn[onclick*="admission package"]:hover,
#scholarships .btn[onclick*="personalized scholarship guidance"]:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Active click: show underline only when clicked */
#home .btn[onclick*="Open admission form"]:active,
#packages .btn[onclick*="assignment order"]:active,
#packages .btn[onclick*="admission package"]:active,
#scholarships .btn[onclick*="personalized scholarship guidance"]:active {
  text-decoration: underline;
}


.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px;
}

/* ===========================
   Sticky Header Offset Fix
   =========================== */
section, #scholarships {
  scroll-margin-top: var(--header-height);
}

/* ===========================
   Topbar
   =========================== */
.topbar {
  background: var(--primary); /* brand color */
  color: var(--white);        /* text color */
  font-size: 12px;
  padding: 0px 0;             /* add vertical padding */
}

.topbar .topbar-inner {
  display: flex;
  justify-content: space-between; /* content left/right */
  align-items: center;
  flex-wrap: wrap;                /* stack on small screens */
  gap: 10px;                      /* spacing between items */
}

.topbar .top-left,
.topbar .top-right {
  display: flex;
  align-items: center;
  gap: 12px; /* spacing between icon and text */
}

.topbar .top-left i,
.topbar .top-right i {
  color: var(--white); /* icons match text color */
  font-size: 12px;     /* slightly larger icons */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .topbar .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ===========================
   Header / Navbar
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img.logo {
  width: 30px;
  height: 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), #10669f);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}

.brand-sub {
  font-size: 12px;
  color: #5b748a;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-list {
  display: flex;
  gap: 14px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-link.active {
  font-weight: 600;
  text-decoration: underline;
  color: var(--primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  font-size: 24px;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Header CTA */
/* Base button style (unchanged) */
.header-cta a#header-cta-btn,
.header-cta a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* DESKTOP – do NOT force full width */
@media (min-width: 1025px) {
  .header-cta {
    width: auto;
    margin-left: auto; /* keeps it on same row */
  }
}

/* TABLET & MOBILE – center CTA */
@media (max-width: 1024px) {
  .header-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }
}

/* MOBILE – comfortable tap size */
@media (max-width: 600px) {
  .header-cta a#header-cta-btn,
  .header-cta a.btn {
    width: 100%;
    max-width: 260px;
  }
}

/* ===========================
   Buttons
   =========================== */
.btn {
  background: #eef4fa;
  border: 1px solid rgba(2,92,142,0.06);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover { opacity: 0.9; }

.btn-primary,
#header-cta-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
}

.btn-primary:hover,
#header-cta-btn:hover {
  background-color: var(--primary-dark);
}


/* ===========================
   Buttons
   =========================== */
.btn {
  background: #eef4fa;
  border: 1px solid rgba(2,92,142,0.06);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

/* ===========================
   Hero Section
=========================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* Left Side */
.hero-left h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.lead {
  font-size: clamp(14px, 1.3vw, 18px);
  color: #445b6b;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.trust-list {
  list-style: none;
  font-size: clamp(12px, 1vw, 14px);
  color: #334455;
}

/* Right Side */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration img,
.placeholder-illu {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
=========================== */

/* Tablet */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 24px;
    gap: 20px;
  }

  .hero-left h1 {
    font-size: clamp(26px, 3.5vw, 32px);
  }

  .lead {
    font-size: clamp(14px, 1.2vw, 16px);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
    gap: 20px;
  }

  .hero-left h1 {
    font-size: clamp(24px, 5vw, 30px);
  }

  .lead {
    font-size: clamp(13px, 3vw, 16px);
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-list {
    text-align: center;
    padding: 0;
  }

  .hero-right {
    margin-top: 16px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .hero {
    padding: 16px;
    gap: 16px;
  }

  .hero-left h1 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .lead {
    font-size: clamp(12px, 4vw, 14px);
  }
}


/* ===========================
   Why Section
   =========================== */
.why-section {
  margin-top: 28px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===========================
   Services Section
   =========================== */
.services {
  margin-top: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(2,92,142,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(2,92,142,0.12);
}

.service-card .icon {
  font-size: 26px;
  background: #eef6fb;
  color: var(--primary);
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
}

.service-card h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

.service-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
  line-height: 1.4;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
  font-size: 32px;            /* icon size */
  color: var(--primary);       /* brand color */
  flex-shrink: 0;
}


/* ===========================
   Services CTA Button
   =========================== */
.main-services-cta {
  text-align: center;           /* Center the button */
  margin-top: 10px;             /* Space above the button */
  margin-bottom: 5px;          /* Space below the button */
}

.main-services-cta .btn {
  background-color: var(--primary);   /* Brand primary color */
  color: var(--white);                 /* White text */
  font-size: 16px;                     /* Button font size */
  font-weight: 700;                    /* Bold typography */
  padding: 12px 16px;                  /* Top/bottom and left/right padding */
  border-radius: var(--radius);        /* Rounded corners */
  text-decoration: none;               /* Remove underline */
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.main-services-cta .btn:hover {
  background-color: var(--primary-dark); /* Darker shade on hover */
  transform: translateY(-2px);           /* Slight lift effect */
}


/* =========================
   PACKAGES SECTION
========================= */

.packages {
  padding: clamp(50px, 6vw, 90px) 0;
  background: var(--muted);
  border-radius: 15px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

/* Section description */
.section-desc {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 1rem;
}

/* =========================
   GRID
========================= */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  justify-items: center;
}

/* =========================
   CARD
========================= */

.package-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: visible;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* Hover effect on card */
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(2, 92, 142, 0.18);
}

/* =========================
   POPULAR PACKAGE BADGE
========================= */

.package-card.popular {
  border: 2px solid var(--primary);
}

.package-card.popular .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 10px 26px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 24px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(2, 92, 142, 0.3);
  text-align: center;
  z-index: 10;
  letter-spacing: 0.8px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.package-card.popular .badge:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 30px rgba(2, 73, 112, 0.5);
}

/* =========================
   HEADER (SEPARATE BG)
========================= */

.package-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 28px 24px 30px;
  text-align: center;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 6px 14px rgba(2, 73, 112, 0.35);
  font-family: 'Poppins', sans-serif;
}

/* Package name */
.package-header h4 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e6f0fa;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: color 0.3s ease;
}

/* Package tag */
.package-tag {
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #c3d7ef;
}

/* Price */
.price {
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #f0f8ff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1.2px;
}

/* =========================
   BODY
========================= */

.package-body {
  padding: 20px 28px 18px;
  flex-grow: 1;
}

.package-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.package-body ul li {
  font-size: 0.93rem;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.package-body ul li::before {
  content: "✔";
  color: var(--primary);
  font-weight: 700;
  margin-top: 2px;
}

/* =========================
   FOOTER (BRANDED BUTTONS)
========================= */

.package-footer {
  padding: 22px;
  text-align: center;
  background: #e4f0fa;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: inset 0 1px 4px rgba(2, 92, 142, 0.1);
}

.package-footer .btn {
  width: 100%;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 15px rgba(2, 92, 142, 0.25);
  cursor: pointer;
}

.package-footer .btn:hover {
  box-shadow: 0 10px 28px rgba(2, 73, 112, 0.6);
  transform: translateY(-3px);
}

.package-footer .btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.package-footer .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.package-footer .btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.package-footer .btn-primary:hover {
  background: var(--muted);
  color: var(--primary);
}

.package-footer .btn-dark {
  background: var(--primary-dark);
  color: var(--white);
  border: none;
}

.package-footer .btn-dark:hover {
  background: var(--white);
  color: var(--primary);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .package-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .packages {
    padding: 56px 0;
  }

  .package-header {
    padding: 24px 20px;
  }

  .package-body {
    padding: 24px 22px;
  }

  .package-footer {
    padding: 18px;
  }

  .package-footer .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }
}


/* -----------------------------
   BLOG POSTS GRID
----------------------------- */
#blog .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  gap: 20px;
}

/* BLOG POST CARD */
#blog .service-card {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(2,92,142,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-posts .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-posts .service-card {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(2, 92, 142, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-posts .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(2, 92, 142, 0.12);
}

.blog-posts .service-card .icon {
  font-size: 26px;
  background: #eef6fb;
  color: var(--primary);
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
}

.blog-posts .service-card h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

.blog-posts .service-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
  line-height: 1.4;
}

.blog-posts .service-card button {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease;
}

.blog-posts .service-card button:hover {
  background: #025c8e; /* slightly darker primary for hover */
}

/* ===========================
   Scholarship Hero Section
   =========================== */
.container.scholarship-hero {
  margin-top: 22px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  padding: 24px 16px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.scholarship-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sch-actions .btn { margin-right: 8px; }

/* ===========================
   Scholarships Section
   =========================== */
/* SCHOLARSHIPS GRID FIX */

#scholarships {
  margin-top: 32px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  padding: 32px 16px;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(2,92,142,0.15);
}

#scholarships .section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

#scholarships .section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 720px;
}

/* -----------------------------
   SCHOLARSHIPS GRID
----------------------------- */
#scholarships .services-grid {
  display: grid; /* change from flex to grid */
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  gap: 20px;
  padding-bottom: 8px;
  scroll-behavior: smooth; /* optional, can remove if not scrolling */
}

/* SCHOLARSHIPS CARD */
#scholarships .service-card {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid rgba(2,92,142,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: unset; /* remove fixed min-width */
  flex: unset; /* remove previous flex sizing */
}

#scholarships .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(2,92,142,0.2);
}

#scholarships .service-card .icon {
  font-size: 28px;
  background: #eef6fb;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  flex-shrink: 0;
}

#scholarships .service-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

#scholarships .service-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 14px;
}

#scholarships .sch-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scrollbar Styling */
#scholarships .services-grid::-webkit-scrollbar {
  height: 6px;
}

#scholarships .services-grid::-webkit-scrollbar-thumb {
  background: rgba(2,92,142,0.3);
  border-radius: 6px;
}

#scholarships .services-grid::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
}

/* ===========================
   Main Services Section
   =========================== */
#services {
  margin-top: 32px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  padding: 32px 16px;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(2,92,142,0.15);
}

#services .section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
}

#services .section-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 720px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#services .services-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* preserve card order naturally */
  justify-content: center;
  padding-bottom: 8px;
}

#services .service-card {
  flex: 0 0 22%; /* roughly 4 per row on large screens */
  min-width: 220px;
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(2,92,142,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(2,92,142,0.2);
}

#services .service-card .icon {
  font-size: 28px;
  background: #eef6fb;
  color: var(--primary);
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 12px;
}

#services .service-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

#services .service-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 14px;
}

/* Scrollbar Styling if overflow needed */
#services .services-grid::-webkit-scrollbar {
  height: 6px;
}

#services .services-grid::-webkit-scrollbar-thumb {
  background: rgba(2,92,142,0.3);
  border-radius: 6px;
}

#services .services-grid::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
}

/* Responsive Adjustments */
@media(max-width:1100px) {
  #services .service-card {
    flex: 0 0 45%; /* 2 per row on medium screens */
  }
}

@media(max-width:760px) {
  #services .service-card {
    flex: 0 0 90%; /* 1 per row on small screens */
  }
}

/* ===========================
   Posts & Blog
   =========================== */
.posts-section {
  margin-top: 22px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}

.post-card, .blog-snippet {
  background: var(--white);
  padding: 12px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-card img {
  width: 100px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
}


/* ===========================
   Community CTA
   =========================== */
.community-cta {
  margin-top: 22px;
}

.cta-inner {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between; /* content left, button right */
  align-items: center;
  box-shadow: var(--card-shadow);
  flex-wrap: wrap; /* allow wrapping on small screens */
  gap: 16px;       /* spacing between elements */
}

.cta-inner h3 {
  flex: 1 1 60%;  /* take majority of space on the left */
  margin: 0;
  min-width: 200px;
  text-align: left;
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;      /* button takes only needed space */
  justify-content: flex-end;
}

.cta-actions .btn {
  min-width: 140px;    /* button width limits */
  max-width: 220px;
  flex: 0 1 auto;
}

/* ---------- Small screens: stack content + button ---------- */
@media (max-width: 768px) {
  .cta-inner #cta-community {
    flex-direction: column;
    align-items: center; /* center content horizontally */
    gap: 12px;
    text-align: center; /* center text if needed */
  }

  .cta-actions {
    width: 100%;
    justify-content: center; /* center the button container */
  }

  .cta-actions .btn {
    width: auto; /* keep button width auto for medium screens */
  }
}

@media (max-width: 480px) {
  .cta-actions .btn {
    width: 100%; /* button full width on very small screens */
  }
}


/* ===========================
   Support & Subscribe
   =========================== */
.support-subscribe {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.support-card, .subscribe-card {
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  background: linear-gradient(180deg,#f7fcff,#ffffff);
}

.subscribe-card input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(2,92,142,0.08);
  margin-top: 8px;
}

.subscribe-card button {
  margin-top: 12px;
  width: 100%;
  padding: 10px 20px;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  margin-top: 30px;
  background: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-top: 1px solid rgba(2,92,142,0.06);
  gap: 18px;
  padding: 18px 0;
}

.footer-col h4, .footer-col h5 {
  margin-bottom: 8px;
  color: var(--primary);
}

.footer-col p, .footer-col ul {
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

/* Footer Contact Column - Professional Icon Alignment */
#footer-col-i {
  text-align: left;       /* keep content left-aligned */
  display: flex;
  flex-direction: column;
  gap: 12px;              /* spacing between heading, contact info, and button */
}

#footer-col-i h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0px;
}

#footer-col-i p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

#footer-col-i p i {
  color: var(--primary);  /* brand color for icons */
  width: 20px;            /* fixed width for alignment */
  display: inline-block;  /* ensures text aligns properly with icon */
  text-align: center;
  margin-right: 8px;
}

#footer-col-i .btn {
  align-self: flex-start; /* button aligned to left */
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}


.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#contact .socials a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

#contact .socials a:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
  color: var(--primary);
  text-decoration: none;
}


.footer-col button {
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.footer-col button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

  /* Target all links inside the contact section */
  #contact a {
    color: var(--text-muted);       /* Change link color to white */
    font-size: 15px;
    text-decoration: none; /* Remove underline */
  }

  /* Optional: Add hover effect if needed */
  #contact a:hover {
    color: var(--primary-dark); /* Example: slightly grey on hover */
    text-decoration: underline;
  }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid rgba(2,92,142,0.06);
  color: #5e768b;
}


/* ===========================
   Footer Responsive
   =========================== */

/* For small screens <= 760px */
@media(max-width: 760px) {
  .footer-grid {
    display: flex;
    flex-direction: column; /* stack footer columns vertically */
    align-items: center;    /* center content */
    gap: 20px;              /* spacing between sections */
  }

  .footer-col {
    text-align: center;     /* center text in each column */
    width: 100%;            /* take full width */
  }

  .footer-col .btn{
    text-align: center;     /* center text in each column */
    width: 100%;            /* take full width */
  }

  .footer-col .socials {
    justify-content: center; /* center social icons */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-col ul {
    padding: 0;
    list-style: none;
    margin: 0 auto;         /* center the list */
  }

  .footer-col ul li {
    margin-bottom: 6px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column; /* stack bottom text vertically */
    text-align: center;
    gap: 8px;
    margin-top: 16px;
  }

  .footer-bottom .legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center legal links */
    gap: 6px;
  }
}


/* Back to Top container */
.back-to-top {
    position: fixed;       /* stays in place when scrolling */
    bottom: 30px;          /* distance from bottom */
    right: 30px;           /* distance from right */
    z-index: 1000;         /* above other content */
}

/* Back to Top link/button */
#back-to-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background-color: #ffffff; /* button background */
    color: var(--primary);                             /* arrow color */
    font-size: 16px;
    border-radius: 50%;                      /* circular button */
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
#back-to-top a:hover {
    transform: translateY(-5px) scale(1.1); /* lift and slightly enlarge */
    background-color: var(--primary);  
    color: #ffffff;           /* slightly brighter on hover */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }

    .back-to-top a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}


/* ===========================
   Responsive
   =========================== */

/* ---------- 1100px ---------- */
@media(max-width:1100px){
  .hero { grid-template-columns:1fr 320px; }
  .services-grid,.posts-grid,.packages-grid { grid-template-columns:repeat(2,1fr); }

  /* SCHOLARSHIPS GRID */
  #scholarships .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* BLOG GRID */
  #blog .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 760px NAV + HEADER FIX ---------- */
@media(max-width:760px){

  /* NAV MENU DROPDOWN */
  .nav-list{ 
    display:none;
    position:absolute;
    top:120px;
    right:20px;
    background:#fff;
    flex-direction:column;
    gap:5px;
    padding:8px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.15);
    z-index:999;
  }
  .nav-list.show{ display:flex; }
  .nav-toggle{ display:block; }

  /* HEADER LAYOUT: STACK ITEMS */
  .header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
  }

  /* BRAND */
  .brand{
    display:flex;
    align-items:center;
    gap:10px;
  }

  /* HIDE SUBTITLE ON MOBILE */
  .brand-text .brand-sub{
    display:none;
  }

  /* CENTER CTA BUTTON IF MENU WRAPS */
  .header-cta{
    margin-left:auto;
  }

  /* HERO + GRIDS */
  .hero{ grid-template-columns:1fr; }
  .hero-right{ order:-1; margin-bottom:12px; }

  .why-grid,
  .services-grid,
  .packages-grid,
  .posts-grid{ grid-template-columns:1fr; }

  .support-subscribe{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }

  /* SCHOLARSHIPS GRID */
  #scholarships .services-grid {
    grid-template-columns: 1fr;
  }

  /* BLOG GRID */
  #blog .services-grid {
    grid-template-columns: 1fr;
  }

  /* -----------------------------
   Topbar Base Styling
------------------------------ */
.topbar {
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  padding: 4px 0; /* vertical padding */
}

.topbar .topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar .top-left,
.topbar .top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.topbar .top-left i,
.topbar .top-right i {
  color: var(--white);
  font-size: 12px;
}

/* -----------------------------
   Responsive: Tablet (<= 768px)
------------------------------ */
@media(max-width: 768px) {
  .topbar .topbar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .topbar .top-left,
  .topbar .top-right {
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
  }
}

/* -----------------------------
   Responsive: Mobile (<= 480px)
------------------------------ */
@media(max-width: 480px) {
  .topbar .topbar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .topbar .top-left,
  .topbar .top-right {
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
  }

  .topbar .top-right {
    align-items: center; /* center icons + text */
  }

  .topbar i {
    font-size: 12px;
  }
}


  /* HEADER tighter spacing */
  .header-inner{
    gap:8px;
    justify-content: center; /* center header items */
  }

  .brand-title{
    font-size:16px;
    text-align: center;
    width: 100%;
  }

  /* HERO section adjustments */
  .hero-left, .hero-right {
    text-align: center;
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Footer content centering */
  .footer-grid #footer-col-i{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col #footer-col-i{
    margin-bottom: 20px;
  }

  .footer-bottom #footer-col-i{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
}

/* ---------- 420px ---------- */
@media(max-width:420px){
  .header-inner{ 
    padding:12px; 
    justify-content: center; /* center header items */
  }
  .container{ 
    padding:14px; 
  }

  /* hide brand subtitle */
  .brand-text .brand-sub{ display:none; }

  /* compact topbar */
  .topbar-inner{ 
    padding:0; 
    text-align: center;
    align-items: center;
  }
  .top-left, .top-right{ font-size:12px; }

  .brand-title{
    font-size:15px;
    width: 100%;
    text-align: center;
  }

  .nav-toggle{
    font-size:20px;
  }

  /* SCHOLARSHIPS GRID */
  #scholarships .services-grid {
    grid-template-columns: 1fr;
  }

  /* BLOG GRID */
  #blog .services-grid {
    grid-template-columns: 1fr;
  }

  /* HERO section adjustments */
  .hero-left, .hero-right {
    text-align: center;
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Footer content centering */
  .footer-grid #footer-col-i{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col #footer-col-i{
    margin-bottom: 16px;
  }

  .footer-bottom #footer-col-i{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
}


