/* ============================================================
   ANKUR PUBLIC SCHOOL — Premium Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---- Force light mode on all devices ---------------------- */
/* Prevents OS/browser dark-mode from inverting site colours   */
:root {
  color-scheme: only light;
}

/* Belt-and-braces override: neutralise any UA dark-mode sheet */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light;
  }
  html, body {
    background-color: #ffffff !important;
    color: #0f172a !important;
  }
}

/* ---- CSS Variables ---------------------------------------- */
:root {
  --navy: #1e3a8a;
  --navy-dark: #162d6b;
  --navy-light: #3b5fc0;
  --yellow: #fbbf24;
  --yellow-light: #fef3c7;
  --blue-pale: #eff6ff;
  --peach: #fff7ed;
  --peach-mid: #fed7aa;
  --lavender: #f5f3ff;
  --mint: #f0fdf4;
  --white: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --text-dark: #0f172a;
  --text-mid: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, .08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .10);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---- Base ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface);
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -.02em;
}

p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

img {
  display: block;
  max-width: 100%;
}

/* ---- Utility --------------------------------------------- */
.text-navy {
  color: var(--navy) !important;
}

.text-yellow {
  color: var(--yellow) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-navy {
  background-color: var(--navy) !important;
}

.bg-yellow {
  background-color: var(--yellow) !important;
}

.bg-surface {
  background-color: var(--surface) !important;
}

/* ---- Navbar ---------------------------------------------- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-nav .navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy) !important;
  gap: .6rem;
  display: flex;
  align-items: center;
}

.site-nav .navbar-brand .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
  margin-left: 2px;
}

.site-nav .nav-link {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-mid) !important;
  padding: .4rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.site-nav .nav-link:hover {
  background: var(--blue-pale);
  color: var(--navy) !important;
}

.site-nav .nav-link.active {
  color: var(--navy) !important;
  font-weight: 600;
}

.site-nav .btn-cta,
.site-nav .btn-cta.active {
  background: var(--navy);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1.4rem !important;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
}

.site-nav .btn-cta:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

/* ---- Chips / Tags ---------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
}

.chip-yellow {
  background: var(--yellow);
  color: var(--navy);
}

.chip-navy {
  background: var(--navy);
  color: var(--white);
}

.chip-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.chip-outline:hover,
.chip-outline.active {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--blue-pale);
}

/* ---- Buttons --------------------------------------------- */
.btn-primary-school {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.8rem;
  border-radius: 50px;
  border: 2px solid var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition);
}

.btn-primary-school:hover {
  background: transparent;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-yellow-school {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  padding: .7rem 1.8rem;
  border-radius: 50px;
  border: 2px solid var(--yellow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition);
}

.btn-yellow-school:hover {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.btn-outline-school {
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.8rem;
  border-radius: 50px;
  border: 2px solid var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition);
}

.btn-outline-school:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Section Heading ------------------------------------- */
.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---- Cards ----------------------------------------------- */
.card-glass {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card-glass:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-navy-fill {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
}

.card-navy-fill h2,
.card-navy-fill h3,
.card-navy-fill h4,
.card-navy-fill p {
  color: var(--white) !important;
}

.card-peach-fill {
  background: var(--peach);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-blue-fill {
  background: var(--blue-pale);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-mint-fill {
  background: var(--mint);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-lavender-fill {
  background: var(--lavender);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-yellow-fill {
  background: var(--yellow-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Icon circle */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.icon-circle-yellow {
  background: var(--yellow);
  color: var(--navy);
}

.icon-circle-navy {
  background: var(--navy);
  color: var(--white);
}

.icon-circle-blue {
  background: #bfdbfe;
  color: #1d4ed8;
}

.icon-circle-peach {
  background: var(--peach-mid);
  color: #c2410c;
}

.icon-circle-mint {
  background: #bbf7d0;
  color: #166534;
}

/* ---- Hero / Carousel ------------------------------------- */
.hero-carousel img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-float-card {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  margin-top: -90px;
  position: relative;
  z-index: 10;
}

/* ---- Page Hero Banner (inner pages) ---------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 4rem 0 3.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 350px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 280px;
  height: 300px;
  border-radius: 50%;
  background: rgba(251, 191, 36, .07);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
}

/* Breadcrumb */
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, .6);
  font-size: .85rem;
}

.page-hero .breadcrumb-item.active {
  color: var(--yellow);
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .4);
}

/* ---- Step Timeline --------------------------------------- */
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* ---- Gallery Grid ---------------------------------------- */
.gallery-item img {
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* ---- Video Card ------------------------------------------ */
.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.video-card-body {
  padding: 1rem 1.25rem;
}

/* ---- Form inputs ----------------------------------------- */
.input-group-school {
  background: #f1f5f9;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  transition: border-color var(--transition), background var(--transition);
}

.input-group-school:focus-within {
  border-color: var(--navy-light);
  background: var(--white);
}

.input-group-school label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.input-group-school input,
.input-group-school select,
.input-group-school textarea {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.input-group-school textarea {
  resize: vertical;
  min-height: 90px;
}

/* ---- Contact info item ----------------------------------- */
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: background var(--transition);
}

.contact-info-item:hover {
  background: var(--blue-pale);
}

/* ---- Footer ---------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .7);
  padding: 4rem 0 1.5rem;
}

.site-footer h5,
.site-footer .footer-brand {
  color: var(--white);
  font-weight: 700;
}

.site-footer a {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--yellow);
}

.site-footer hr {
  border-color: rgba(255, 255, 255, .1);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
}

/* ---- Animations ------------------------------------------ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp .6s ease both;
}

.fade-up-d1 {
  animation-delay: .1s;
}

.fade-up-d2 {
  animation-delay: .2s;
}

.fade-up-d3 {
  animation-delay: .3s;
}

.fade-up-d4 {
  animation-delay: .4s;
}

/* ---- Divider blob shape ---------------------------------- */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--yellow);
  border-radius: 4px;
  margin: .75rem 0 1.5rem;
}

/* ---- Responsive tweaks ----------------------------------- */
@media (max-width: 767px) {
  .hero-carousel img {
    height: 50vw;
    min-height: 250px;
  }

  .hero-float-card {
    margin-top: -40px;
    padding: 1.5rem;
  }

  .page-hero {
    padding: 3rem 0 2.5rem;
  }

  .step-card {
    margin-bottom: .5rem;
  }

  .card-navy-fill {
    padding: 1.5rem;
  }
}

/* ---- Font-weight utilities -------------------------------- */
.fw-500 {
  font-weight: 500 !important;
}

.fw-600 {
  font-weight: 600 !important;
}

.fw-700 {
  font-weight: 700 !important;
}

.fw-800 {
  font-weight: 800 !important;
}

/* ---- Color aliases (footer icons etc.) ------------------- */
.text-gold {
  color: var(--yellow) !important;
}

.text-yellow {
  color: var(--yellow) !important;
}

.text-mid {
  color: var(--text-mid) !important;
}

/* ---- Navbar scroll shadow -------------------------------- */
.site-nav.scrolled {
  box-shadow: 0 4px 24px rgba(30, 58, 138, .08);
}

/* ---- Navbar toggler styling ----------------------------- */
.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231e3a8a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hover-lift generic helper --------------------------- */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ---- Image rounded helper -------------------------------- */
.img-school {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  display: block;
}

/* ---- Scrollbar thin ------------------------------------ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

/* ---- Selection color ------------------------------------ */
::selection {
  background: var(--yellow);
  color: var(--navy);
}

.school-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .school-logo {
        width: 45px;
        height: 45px;
    }

    .navbar-brand {
        max-width: 85%;
    }

    .navbar-brand .fw-bold {
        font-size: 14px;
    }

    .navbar-brand small {
        font-size: 10px;
    }
}