/* ==========================================================================
   Springdales Academy - Main Stylesheet
   Modern, Fancy, Prestigious School UI with High Conversion & SEO Focus
   ========================================================================== */

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

:root {
    --primary: #0c2340;
    --primary-dark: #071526;
    --primary-light: #183864;
    --secondary: #e63946;
    --secondary-hover: #c92a37;
    --gold: #ffb703;
    --gold-dark: #f59e0b;
    --accent-emerald: #10b981;
    --accent-cyan: #0284c7;
    --dark: #0f172a;
    --text-muted: #64748b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(12, 35, 64, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(12, 35, 64, 0.08), 0 8px 10px -6px rgba(12, 35, 64, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(12, 35, 64, 0.12), 0 10px 15px -5px rgba(12, 35, 64, 0.06);
    --shadow-glow: 0 0 25px rgba(255, 183, 3, 0.4);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ================= Top Announcement Ticker ================= */
.top-ticker {
    background: linear-gradient(90deg, #b91c1c, #e63946, #c2410c);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 0;
    position: relative;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 35s linear infinite;
    letter-spacing: 0.5px;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ================= Top Information Bar ================= */
.top-infobar {
    background: var(--primary-dark);
    color: #cbd5e1;
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-infobar a {
    color: #e2e8f0;
}
.top-infobar a:hover {
    color: var(--gold);
}
.top-infobar .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin-left: 6px;
    font-size: 0.78rem;
    color: #fff;
}
.top-infobar .social-icons a:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ================= Main Navigation Header ================= */
.main-navbar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(12, 35, 64, 0.07);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition);
}
.main-navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 8px 25px rgba(12, 35, 64, 0.12);
}
.navbar-brand {
    padding: 0;
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
}
.navbar-brand img, .brand-logo-img {
    height: 52px !important;
    max-height: 52px !important;
    width: 52px !important;
    max-width: 52px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    padding: 2px !important;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.12) !important;
    display: block !important;
    flex-shrink: 0 !important;
    transition: var(--transition);
}
.brand-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}
.brand-main-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.2px;
}
.brand-sub-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.70rem;
    font-weight: 700;
    color: #b45309;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}
@media (max-width: 991px) {
    .brand-main-name {
        font-size: 1.15rem;
    }
    .brand-sub-badge {
        font-size: 0.62rem;
    }
}
@media (max-width: 480px) {
    .brand-main-name {
        font-size: 1rem;
    }
    .navbar-brand img, .brand-logo-img {
        height: 44px !important;
        width: 44px !important;
        max-height: 44px !important;
        max-width: 44px !important;
    }
}
.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--primary) !important;
    padding: 8px 14px !important;
    position: relative;
    border-radius: 6px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(230, 57, 70, 0.06);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}
.btn-admit-nav {
    background: linear-gradient(135deg, var(--secondary), #d90429);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 20px !important;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}
.btn-admit-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.45);
    background: linear-gradient(135deg, #d90429, var(--secondary));
}

/* ================= Hero Slider Section ================= */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    background: var(--primary);
}
.hero-slide {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 35, 64, 0.92) 0%, rgba(12, 35, 64, 0.75) 55%, rgba(12, 35, 64, 0.4) 100%);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 183, 3, 0.18);
    border: 1px solid rgba(255, 183, 3, 0.5);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #e2e8f0;
    margin-bottom: 35px;
    max-width: 640px;
    font-weight: 400;
}
.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
    color: var(--primary-dark);
}
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover {
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Hero Carousel Controls */
.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 25px;
    backdrop-filter: blur(5px);
    opacity: 0.8;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--gold);
    color: var(--primary);
    opacity: 1;
}

/* ================= Feature Strip & Highlights ================= */
.features-strip {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.feature-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--secondary);
    transition: var(--transition);
    height: 100%;
}
.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -10px rgba(12, 35, 64, 0.18);
}
.feature-box.highlight {
    border-top-color: var(--gold);
}
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(12, 35, 64, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}
.feature-box:hover .feature-icon-wrapper {
    background: var(--primary);
    color: var(--gold);
    transform: scale(1.08) rotate(-4deg);
}
.feature-title {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================= Section Headers ================= */
.section-tag {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    background: rgba(230, 57, 70, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}
.section-tag.gold {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
}
.section-title {
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* ================= Notice Board Ticker & Card ================= */
.notice-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.notice-card-header {
    background: var(--primary);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notice-list {
    max-height: 430px;
    overflow-y: auto;
    padding: 10px 0;
}
.notice-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.notice-item:hover {
    background: #f8fafc;
}
.notice-date-badge {
    background: rgba(12, 35, 64, 0.06);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    text-align: center;
    min-width: 60px;
}
.notice-date-day {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.notice-date-month {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
}
.notice-content-wrap h6 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.notice-badge-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

/* ================= Counter / Stats Strip ================= */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    position: relative;
    padding: 70px 0;
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}
.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* ================= Facility Cards ================= */
.facility-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 183, 3, 0.5);
}
.facility-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.facility-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.facility-card:hover .facility-img-wrap img {
    transform: scale(1.08);
}
.facility-cat-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(12, 35, 64, 0.85);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}
.facility-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.facility-body h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.facility-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    flex: 1;
}

/* ================= Gallery Section & Lightbox ================= */
.gallery-tab-btn {
    border: none;
    background: #f1f5f9;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    margin: 4px;
    transition: var(--transition);
}
.gallery-tab-btn:hover, .gallery-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
}
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 35, 64, 0.9) 0%, rgba(12, 35, 64, 0.2) 60%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h6 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 4px;
}
.gallery-overlay p {
    font-size: 0.8rem;
    color: var(--gold);
    margin: 0;
}

/* ================= Local Catchment 40KM Area Banner ================= */
.catchment-strip {
    background: linear-gradient(135deg, #071526, #0c2340);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.catchment-badge {
    background: rgba(255, 183, 3, 0.2);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
}
.tag-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ================= Footer ================= */
.main-footer {
    background: #071526;
    color: #94a3b8;
    padding-top: 80px;
    font-size: 0.92rem;
}
.footer-logo {
    height: 70px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}
.footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover {
    color: var(--gold);
    transform: translateX(4px);
}
.footer-bottom {
    background: #030a13;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #64748b;
}

/* ================= Floating Sticky Buttons (Mobile & Desktop) ================= */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: var(--transition);
    position: relative;
}
.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
    color: #ffffff;
}
.floating-whatsapp {
    background: #25d366;
}
.floating-call {
    background: var(--primary);
}
.floating-admit {
    background: var(--secondary);
    width: auto;
    border-radius: var(--radius-full);
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 8px;
}
.floating-btn .tooltip-label {
    position: absolute;
    right: 65px;
    background: var(--dark);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.floating-btn:hover .tooltip-label {
    opacity: 1;
    transform: translateX(-5px);
}

/* ================= Forms & Inputs ================= */
.form-control, .form-select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.15);
}

/* Mobile Responsiveness adjustments */
@media (max-width: 991px) {
    .navbar-brand img, .brand-logo-img {
        height: 54px !important;
        max-height: 54px !important;
    }
    .features-strip {
        margin-top: 20px;
    }
    .hero-slide {
        min-height: 520px;
    }
    .main-navbar .btn-admit-nav {
        margin-top: 15px;
        display: inline-block;
        text-align: center;
    }
}
@media (max-width: 576px) {
    .navbar-brand img, .brand-logo-img {
        height: 48px !important;
        max-height: 48px !important;
    }
    .hero-slide {
        min-height: 480px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .floating-actions {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }
    .floating-admit span {
        display: none;
    }
    .floating-admit {
        width: 46px;
        height: 46px;
        padding: 0;
    }
}
