/* ==========================================================================
   GLOBAL BRAND TYPOGRAPHY & SMOOTHING
   ========================================================================== */
body {
    background-color: #fcfdfe;
    color: #2b445f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Base Headings matching your React theme */
h1, h2, h3, h4 {
    font-family: 'Fredoka', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   FRAMER MOTION REPLACEMENTS (CSS Keyframes)
   ========================================================================== */
.home-page-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: reactMotionFade 0.5s ease-out forwards;
}

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

/* ==========================================================================
   COMPONENT STYLES: HERO / BANNER SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    overflow: hidden;
}

/* Decorative backdrop glow for Hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(166, 215, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.02em;
}

.hero-section p {
    font-family: 'Baloo 2', sans-serif;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ==========================================================================
   COMPONENT STYLES: FEATURES & CARDS
   ========================================================================== */
/* Replicating <Card> shadow modifications & interactive triggers */
.card {
    border: none !important;
    border-radius: 22px !important;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(182, 213, 241, 0.18);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.3s ease !important;
}

.card:hover {
    transform: translateY(-6px) scale(1.015) !important;
    box-shadow: 0 12px 35px rgba(208, 215, 239, 0.35) !important;
}

/* Icons inside Academic/Holistic features */
.card i {
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1) rotate(3deg);
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2b445f;
    margin-bottom: 12px;
}

.card p {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.05rem;
    color: #556b82;
    line-height: 1.6;
}

/* ==========================================================================
   UTILITY & CALL TO ACTION COMPONENTS
   ========================================================================== */
/* Admissions Banner Style */
.bg-light.py-5 {
    background: linear-gradient(102deg, #f4f8fd 0%, #f9fbfc 100%) !important;
    border-top: 1px solid rgba(182, 213, 241, 0.2);
    border-bottom: 1px solid rgba(182, 213, 241, 0.2);
}

.bg-light.py-5 h2 {
    color: #2c528b;
    font-weight: 700;
}

/* Reusable Micro-adjustments for Buttons */
.btn-lg {
    padding: 12px 30px !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.02em;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

/* ==========================================================================
   📱 MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.3rem;
    }
    
    .hero-section p {
        font-size: 1.1rem !important;
    }
    
    .card {
        margin-bottom: 24px;
    }
}


/* ==========================================================================
   BACK TO TOP FLOATING INTERACTIVE BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #0d6efd;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    
    /* Smooth opacity and slide engine mimicking custom state manipulation */
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* State when scrolling breaks standard threshhold bounds */
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Micro-interaction updates during cursor targeting */
.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(11, 94, 215, 0.45);
    color: #ffffff;
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.96);
}

/* Ensure ultra-smooth tracking rules match Framer setups natively */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   HERO FULL-SCREEN CAROUSEL ENGINE LAYOUT ENGINE
   ========================================================================== */
#heroHeroCarousel {
    position: relative;
    width: 100%;
    min-height: 75vh;
    background-color: #18336e;
    overflow: hidden;
}

/* Graphic frame scale properties */
.carousel-background-img {
    width: 100%;
    height: 75vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 6s ease-in-out;
}

/* Subtle organic parallax pulse zoom trick when a slide becomes active */
.carousel-item.active .carousel-background-img {
    transform: scale(1.06);
}

/* Layout context wrapper engine centering typography across screens */
.carousel-caption-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
    z-index: 2;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 6px;
    margin-right: 6px;
    background-color: #fff;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #ffd93b; /* Accent highlight matches branding spec */
    transform: scale(1.25);
}

@media (max-width: 767.98px) {
    #heroHeroCarousel, .carousel-background-img {
        min-height: 60vh;
        height: 60vh;
    }
    #heroHeroCarousel h1 {
        font-size: 2.2rem !important;
    }
    #heroHeroCarousel p {
        font-size: 1.1rem !important;
    }
}

/* ==========================================================================
   FLOATING INTERACTIVE SIDEBAR SHORTCUTS SYSTEM
   ========================================================================== */
.floating-contact-shortcuts {
    position: fixed;
    left: 0;
    top: 55%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100000; /* Keeps it layered above your preloader and header wrappers */
}

/* Core pill button structure setup */
.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #164a94;
    color: white;
    padding: 12px;
    padding-left: 14px;
    border-radius: 0 50px 50px 0; /* Keeps left edge flat against the screen border */
    width: 50px;
    min-height: 48px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    cursor: pointer;
    text-decoration: none !important;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(.77, 0, .18, 1), background-color 0.3s, padding-left 0.4s;
    white-space: nowrap;
}

/* Color-coded vector icons matching the React setup tokens */
.shortcut-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.phone-item .shortcut-icon { color: #03a678; }
.email-item .shortcut-icon { color: #fbb034; }
.map-item .shortcut-icon   { color: #fa5555; }

/* Text Label styles hidden by default */
.shortcut-label {
    margin-left: 12px;
    font-family: 'Fredoka', 'Fredoka One', sans-serif;
    font-weight: 500;
    font-size: 0.98rem;
    color: #ffd974;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

/* Hover & Focus Keyboard Event triggers */
.shortcut-item:hover,
.shortcut-item:focus {
    width: 144px;
    padding-left: 16px;
    background-color: #123d7a;
    outline: 2px solid #ffd974;
    outline-offset: -2px;
}

/* Reveal label smoothly upon trigger */
.shortcut-item:hover .shortcut-label,
.shortcut-item:focus .shortcut-label {
    opacity: 1;
    transition-delay: 0.1s; /* Allows pill expansion to begin opening first */
}


@media (max-width: 991.98px) {
    /* ... keep your other styles, just add/update this specific selector ... */
    
    .offcanvas-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
    }

    .offcanvas-body .navbar-nav {
        align-items: start !important; /* Keep this for your links */
        width: 100%;
    }
}
/* Mobile responsive screen adaptations */
@media (max-width: 575.98px) {
    .floating-contact-shortcuts {
        top: auto;
        bottom: 20px; /* Shifts down neatly out of view on tiny viewports */
        transform: none;
        gap: 8px;
    }
    .shortcut-item {
        min-height: 42px;
        width: 44px;
        padding: 10px;
    }
    .shortcut-item:hover {
        width: 44px; /* Disables width stretching on touch targets to avoid screen clutter */
    }
    .shortcut-item:hover .shortcut-label {
        display: none;
    }
}

.blink-announcement {
    animation: pulseAnnouncement 2s infinite ease-in-out;
    display: inline-block; /* Required for transform scaling to work perfectly */
}

@keyframes pulseAnnouncement {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.3);
        color: #ffc107; /* Optional: switches to a gold/warning accent mid-blink */
    }
}

/* ==========================================================================
   OFFCANVAS MOBILE DRAWER STYLE ADAPTATIONS
   ========================================================================== */
@media (max-width: 991.98px) {
    .offcanvas {
        background-color: #ffffff;
        width: 280px !important; /* Locks a clean mobile drawer layout footprint */
    }
    
    .offcanvas-body .navbar-nav {
        align-items: start !important; /* Re-align items to left inside side drawer */
        width: 100%;
    }
    
    .offcanvas-body .nav-item {
        width: 100%;
    }
    
    .offcanvas-body .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Style drop-down listings directly inside the opened sidebar container */
    .offcanvas-body .dropdown-menu {
        box-shadow: none !important;
        border-left: 3px solid var(--color-highlight) !important;
        border-radius: 0 !important;
        padding-left: 12px !important;
        background-color: #f8fafd;
        margin-top: 5px !important;
    }

    @media (max-width: 991.98px) {
    /* Hide Bootstrap's default CSS border-arrows inside the side drawer */
    .offcanvas-body .dropdown-toggle::after {
        display: none !important;
    }
    
    /* Ensure the mobile nav-link stretches smoothly across the offcanvas container */
    .offcanvas-body .nav-link {
        display: flex !important;
        align-items: center;
        justify-content: space-between; /* Pushes the Font Awesome chevron cleanly to the right edge */
        width: 100%;
    }
}
}