/* ================================================================ */
/*                CORE THEME TOKENS                                 */
/* ================================================================ */

:root {
    --dark-blue: #0a192f;
    --dark-slate: #1e293b;
    --slate: #475569;
    --light-slate: #cbd5e1;
    --accent-orange: #FFC107;
    --accent-green: #198754;
    --white: #ffffff;
}

/* ================================================================ */
/*                GLOBAL BASE & NAVBAR                              */
/* ================================================================ */

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}
@media (min-width: 768px) {
    html { font-size: 16px; }
}

/* Force the whole page to white, so no stray grey bg from Bootstrap */
body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: #ffffff !important;
}

/* Focus outlines */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Navbar dropdown (dark) */
.navbar .dropdown-menu-dark {
    background-color: #343a40;
}
.navbar .dropdown-menu-dark .dropdown-item {
    color: #ffffff;
}
.navbar .dropdown-menu-dark .dropdown-item:hover {
    background-color: #495057;
    color: #ffffff;
}

/* Google login button in dropdown */
.dropdown-menu .dropdown-item.btn-primary {
    background-color: #0d6efd;
    color: #ffffff !important;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 5px 10px;
}
.dropdown-menu .dropdown-item.btn-primary:hover {
    background-color: #0b5ed7;
}

/* Two-column dropdown */
.dropdown-menu.columns-2 {
    --bs-dropdown-min-width: 26rem;
    grid-template-columns: repeat(2, minmax(12rem, 1fr));
    column-gap: .75rem;
    row-gap: .25rem;
    padding: .5rem .75rem;
    max-height: 70vh;
    overflow: auto;
}
.dropdown-menu.columns-2.show {
    display: grid;
}
.dropdown-menu.columns-2 .dropdown-item { white-space: normal; }
.dropdown-menu.columns-2 .dropdown-header,
.dropdown-menu.columns-2 .dropdown-divider {
    grid-column: 1 / -1;
}
@media (max-width: 576px) {
    .dropdown-menu.columns-2 { --bs-dropdown-min-width: auto; }
    .dropdown-menu.columns-2.show {
        grid-template-columns: 1fr;
        width: 92vw;
    }
}

/* ================================================================ */
/*                HOME LANDING LAYOUT                               */
/* ================================================================ */

.home-landing {
    background-color: #ffffff !important;
    color: #334155; /* slate-700 */
}

/* Shared section wrapper */
.home-landing .section-dark {
    background-color: #ffffff;
    padding: 4rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Headings */
.home-landing .section-title {
    color: #0f172a; /* slate-900 */
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
    display: inline-block;
}
.home-landing .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}
.home-landing .text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.home-landing .section-subtitle {
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Helper text color */
.home-landing .text-light-slate {
    color: #475569 !important;
}

/* ================================================================ */
/*                CARDS & BUTTONS                                   */
/* ================================================================ */

.home-landing .custom-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    overflow: hidden;
}

/* Make achievement cards stand out a bit more */
#achievements .custom-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 193, 7, 0.55); /* stronger saffron */
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

#achievements .custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.home-landing .custom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(16,24,40,.12);
    border-color: var(--accent-orange);
}
.home-landing .custom-card .card-body { padding: 1.5rem; }
.home-landing .custom-card .card-title { color: #0f172a; font-weight: 600; }
.home-landing .custom-card .card-text  { color: #475569; }

/* Infra / sponsorship tiles */
.infra-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.infra-card .school-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}
.infra-card .item-description {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    flex-grow: 1;
    margin-top: 0.5rem;
}
.infra-card .item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-top: 1rem;
}

/* Buttons */
.home-landing .btn-accent {
    background-color: var(--accent-orange);
    color: #0a192f !important;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
}
.home-landing .btn-accent:hover {
    background-color: #ffca2c;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}
.home-landing .btn-outline-accent {
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange) !important;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.home-landing .btn-outline-accent:hover {
    background-color: var(--accent-orange);
    color: #0a192f !important;
}

/* ================================================================ */
/*                HERO SECTION (IMAGE + STATS)                      */
/* ================================================================ */

/* Wrapper section – matches Vision section horizontally */
/* foreground-color: #5e4133 */

.home-landing .hero-section {
    padding: 4rem 0 2rem;
    background-color: #ffffff !important;
    
}

/* "Card" that holds the hero background image */
.home-landing .hero-card {
    position: relative;
    border-radius: 1.75rem;
    overflow: hidden;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

    min-height: 90vh;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

/* Mobile hero: show full graphic (avoid cropping from background-size: cover) */
@media (max-width: 767.98px) {

  .home-landing .hero-card {
    background-size: contain;          /* show the full image */
    background-position: center top;   /* keep it stable */
    background-color: #38c2f0;         /* fills any letterbox space nicely */

    min-height: 0;                     /* stop forcing 90vh on phones */
    height: clamp(240px, 70vw, 420px); /* nice responsive hero height */

    padding: 0;                        /* since hero is image-only currently */
    border-radius: 1.25rem;            /* matches your mobile rounding style */
  }

  .home-landing .hero-section {
    padding: 2.5rem 0 1.25rem;         /* optional: tighter spacing on mobile */
  }
}


/* Make sure NO overlays or pseudo-elements add grey */
.home-landing .hero-section::before,
.home-landing .hero-section::after,
.home-landing .hero-card::before,
.home-landing .hero-card::after {
    content: none !important;
}

/* Ensure hero always looks like a card even if .home-landing wrapper is missing */
.hero-section {
    padding: 4rem 0 2rem;
    background-color: #ffffff !important;
}
.hero-card {
    position: relative;
    border-radius: 1.75rem;
    overflow: hidden;
}

/* Glass stats strip */
.home-landing .hero-stats {
    background: rgba(255,255,255,0.9);
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
}
.home-landing .hero-stats .h3,
.home-landing .hero-stats .h4 {
    color: var(--accent-orange);
}

/* ================================================================ */
/*                VISION & MISSION SECTION                          */
/* ================================================================ */

.home-landing .section-vision {
    position: relative;
    padding: 0 0 4rem 0;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
}

/* Kill any leftover pseudo-elements that might paint grey */
.home-landing .section-vision::before,
.home-landing .section-vision::after,
.section-vision::before,
.section-vision::after {
    content: none !important;
}

/* Vision card – same width + radius as hero-card */
.home-landing .vision-card {
    position: relative;
    background: linear-gradient(135deg, #0b1020, #161b2e);
    border-radius: 1.75rem;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
@media (max-width: 767.98px) {
    .home-landing .section-vision {
        padding-bottom: 3rem;
    }
    .home-landing .vision-card {
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }
}

/* ================================================================ */
/*                CONTACT SECTION                                   */
/* ================================================================ */

.home-landing .contact-section {
    background-color: #ffffff;
}
.home-landing .contact-section .form-label {
    color: #334155;
}
.home-landing .contact-section .form-control {
    background-color: #ffffff;
    border-color: #ced4da;
    color: #0f172a;
}
.home-landing .contact-section .form-control::placeholder {
    color: #94a3b8;
}
.home-landing .contact-section .form-control:focus {
    background-color: #ffffff;
    border-color: var(--accent-orange);
    color: #0f172a;
    box-shadow: 0 0 0 .2rem rgba(255,193,7,.15);
}
.home-landing .contact-section .input-group-text {
    background-color: #f8fafc;
    border-color: #e5e7eb;
    color: #334155;
}
.home-landing .contact-section .icon-box i {
    font-size: 2rem;
    color: var(--accent-orange);
}

/* ================================================================ */
/*           WEB STORY & CELEBRATIONS (LIST + MODAL)                */
/* ================================================================ */

/* Story listing card */
.story-listing-card {
    display: flex;
    flex-direction: column;
}
.story-description-wrapper {
    position: relative;
    max-height: 4.5em; /* ~3 lines */
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}
.story-description-wrapper.expanded {
    max-height: 500px;
}
.story-description-wrapper:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(to top, #ffffff, rgba(255,255,255,0));
}
.btn-read-more {
    background: none;
    border: none;
    color: var(--accent-orange);
    padding: 0;
    font-weight: bold;
    cursor: pointer;
}

/* Story modal (viewer) */
.story-modal .modal-dialog {
    max-width: 420px;
    margin: 1.75rem auto;
}
.story-modal .modal-content {
    background-color: #111;
    border: none;
    height: 90vh;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.story-modal .carousel-item {
    height: 90vh;
    background-color: #000;
}
.story-modal .carousel-item img,
.story-modal .carousel-item video {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Progress bars (top) */
.story-progress-bars {
    display: flex;
    gap: 4px;
    padding: 8px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}
.progress-bar-segment {
    flex: 1;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: #ffffff;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: none;
}
.progress-bar-segment.active .progress-bar-fill {
    transform: scaleX(1);
    transition: transform 6s linear;
}
.progress-bar-segment.visited .progress-bar-fill {
    transform: scaleX(1);
}

/* Caption area */
.story-caption-area {
    padding: 1rem 1.5rem;
    background-color: #111;
    color: var(--light-slate);
    flex-shrink: 0;
    max-height: 30%;
    overflow-y: auto;
}
.story-caption-area h5 {
    color: #ffffff;
    font-weight: bold;
}

/* Overlay text area */
.story-modal .story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
}
.story-modal .story-overlay h5 { font-weight: 700; }

.story-modal .carousel-control-prev,
.story-modal .carousel-control-next {
    width: 30%;
}
.story-modal .carousel-control-prev-icon,
.story-modal .carousel-control-next-icon {
    display: none;
}
.story-modal .close-story {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    font-size: 1.5rem;
    color: white;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Achievements Splide theming */
.achievements-splide .splide__arrow {
    background-color: rgba(15, 23, 42, 0.75);
    border-radius: 999px;
    width: 2.5rem;
    height: 2.5rem;
}

.achievements-splide .splide__arrow svg {
    fill: var(--accent-orange);
}

.achievements-splide .splide__pagination {
    bottom: -1.75rem;
}

.achievements-splide .splide__pagination__page {
    background: #e5e7eb;
    opacity: 1;
}

.achievements-splide .splide__pagination__page.is-active {
    background: var(--accent-orange);
}

/* Ensure Splide Achievements slider is styled as a carousel */
/* Ensure Splide Achievements slider is styled as a carousel */
#achievementsSplide .splide__track {
    overflow: hidden;
    height: 360px; /* fixed height on desktop */
}

#achievementsSplide .splide__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none !important;
    align-items: stretch; /* make slides share the same height */
}

#achievementsSplide .splide__slide {
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
    /* IMPORTANT: make sure there is NO display:flex here */
}

#achievementsSplide .custom-card {
    height: 100%;      /* card fills the slide */
}

@media (max-width: 767.98px) {
    #achievementsSplide .splide__track {
        height: 420px; /* a bit taller on phones */
    }
}

#achievementsSplide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Achievements section background – soft saffron, not dark */
#achievements.section-dark {
    background: #FFF7E0; /* light saffron */
}

/* Description inside Achievements card: fixed lines, no height change */
#achievementsSplide .achievement-description {
    color: #475569;
    margin-top: 0.25rem;
    /* Line clamp to keep height stable */
    display: -webkit-box;
    -webkit-line-clamp: 3;           /* show 3 lines; change to 4 if you prefer */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Guiding Team section */

.team-section .section-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.team-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-orange, #f59e0b);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slightly tighter layout on very small screens */
@media (max-width: 576px) {
    .team-photo-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* ================================================================ */
/*                ABOUT SECTION                                     */
/* ================================================================ */

.home-landing .section-about {
    padding: 4rem 0;
}

.home-landing .about-wrap {
    border-radius: 1.75rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(56, 194, 240, 0.22); /* hero blue, subtle */
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.home-landing .about-pane {
    padding: 2.5rem 2.25rem;
    background: linear-gradient(135deg,
        rgba(56, 194, 240, 0.18),
        rgba(255, 193, 7, 0.10)
    );
}

.home-landing .about-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .85rem;
    color: #533428; /* matches the hero text tone */
    margin-bottom: .6rem;
}

.home-landing .about-lead {
    font-size: 1.05rem;
    color: #0f172a;
    max-width: 28rem;
}

.home-landing .about-badges {
    display: flex;
    flex-direction: column;   /* 👈 stack vertically */
    gap: .6rem;
    align-items: flex-start;  /* keep pills left-aligned */
}

.home-landing .about-pill {
    width: fit-content;       /* pill stays snug */
}

.home-landing .about-quote {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.05rem;
    border-radius: .9rem;
    background: rgba(255, 255, 255, 0.60);
    border-left: 4px solid var(--accent-orange);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.home-landing .about-quote-mark {
    font-size: 1.25rem;
    line-height: 1;
    color: #0f172a;
    opacity: .9;
    margin-top: .1rem;
}

.home-landing .about-quote-text {
    font-weight: 700;
    color: #0f172a;
}

.home-landing .about-quote-by {
    margin-top: .15rem;
    font-size: .9rem;
    color: #475569;
    font-weight: 600;
}

.home-landing .about-content {
    padding: 2.5rem 2.25rem;
    background: #ffffff;
}

.home-landing .about-subhead {
    color: #0f172a;
    letter-spacing: .06em;
}

.home-landing .about-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: .65rem;
}

.home-landing .about-list li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    color: #475569;
}

.home-landing .about-list li i {
    color: var(--accent-orange);
    margin-top: .15rem;
}

@media (max-width: 767.98px) {
    .home-landing .about-pane,
    .home-landing .about-content {
        padding: 1.75rem 1.25rem;
    }
    .home-landing .about-wrap {
        border-radius: 1.25rem;
    }
}

/* Mobile hero: keep full image visible WITHOUT the blank patch */
@media (max-width: 767.98px) {
  .home-landing .hero-card {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #38c2f0;

    /* key change: let height be driven by ratio, not clamp/vh */
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: unset;   /* overrides your 90vh */
    padding: 0;
  }
}
