/* ===================================
   Sun Flower Public School - Design System
   Inspired by Kidsa Template
   =================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --primary: #FF9B50;
    --primary-dark: #E8863E;
    --primary-light: #FFB77A;
    --secondary: #4A90E2;
    --secondary-dark: #357ABD;
    --secondary-light: #6BA8F0;
    --accent-green: #6BC06B;
    --accent-purple: #9B6BC0;
    --accent-yellow: #FFD93D;
    --accent-pink: #FF6B9D;
    --accent-teal: #5BC0BE;
    --navy: #1B2A4A;
    --navy-light: #2C3E6B;
    --dark: #222222;
    --text: #555555;
    --text-light: #888888;
    --cream: #FFF9F1;
    --cream-dark: #FFF0DD;
    --light-blue: #EDF5FF;
    --light-green: #E8F8E8;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-orange: 0 8px 30px rgba(255, 155, 80, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-full: 50%;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
     max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 155, 80, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

.btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* ---- Section Styles ---- */
.section {
    padding: 90px 0;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.section-label i {
    font-size: 0.8rem;
}

.section-title {
    margin-bottom: 20px;
}

.section-desc {
    max-width: 600px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ---- Wavy Dividers ---- */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider.wave-top {
    transform: rotate(180deg);
}

/* ===================================
   TOP BAR
   =================================== */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 10px 0;
    font-size: 0.88rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-left a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}

.top-bar-left a i {
    color: var(--primary);
    font-size: 1rem;
}

.top-bar-left a:hover {
    color: var(--primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right span {
    color: var(--text-light);
    margin-right: 8px;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text);
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 249, 241, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .logo-icon {
    width: 48px;
    height: 48px;
}

.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand .brand-text span {
    color: var(--navy);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--navy);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

/* ---- Navigation Dropdown ---- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding-top: 10px;
    pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown-inner {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border-top: 3px solid var(--primary);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-dropdown-item:hover {
    background: var(--cream);
    color: var(--primary);
    padding-left: 28px;
}

.nav-dropdown-item:hover i {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.nav-dropdown-item.active {
    background: linear-gradient(90deg, var(--cream), var(--white));
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

.nav-dropdown-item.active i {
    background: var(--primary);
    color: var(--white);
}

.nav-cta {
    margin-left: 16px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    z-index: 2001;
    position: relative;
    transition: var(--transition);
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hide toggle when menu is open to avoid duplicate close buttons */
.mobile-toggle.open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* Hide mobile-only elements on desktop */
.mobile-menu-header {
    display: none !important;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    overflow: hidden;
}

/* ---- Floating decorations (keep but push to very low z-index on slider) ---- */
.hero .float-deco {
    z-index: 3;
    pointer-events: none;
}

/* ============================================================
   PROFESSIONAL FULL-WIDTH HERO SLIDER
   ============================================================ */
.pro-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 480px;
    max-height: 680px;
    overflow: hidden;
    background: var(--navy);
}

/* ---- Individual Slide ---- */
.pro-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.pro-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* ---- Background Image ---- */
.pro-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.pro-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 7s ease;
    display: block;
}

.pro-slide.active .pro-slide-bg img {
    transform: scale(1);
}

/* ---- Gradient overlay ---- */
.pro-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg,
            rgba(8, 16, 42, 0.82) 0%,
            rgba(8, 16, 42, 0.60) 50%,
            rgba(8, 16, 42, 0.18) 100%);
}

/* ---- Content wrapper (also carries .container class) ---- */
.pro-slide-content-wrap {
    /* Override .container centering for full-bleed positioning */
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    /* Match the page container's left padding so text lines up */
    padding-left: max(20px, calc((100vw - 1280px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1280px) / 2 + 20px));
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

.pro-slide-content {
    max-width: 580px;
    width: 100%;
    color: #fff;
    padding: 48px 0 80px;
    text-align: left;
}

/* ---- Label ---- */
.pro-slide-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.pro-slide.active .pro-slide-label {
    opacity: 1;
    transform: translateY(0);
}

.pro-label-line {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--accent-yellow);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ---- Title ---- */
.pro-slide-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}

.pro-slide.active .pro-slide-title {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Description ---- */
.pro-slide-desc {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 480px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}

.pro-slide.active .pro-slide-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Action Buttons ---- */
.pro-slide-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.65s, transform 0.7s ease 0.65s;
}

.pro-slide.active .pro-slide-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Glass button variant */
.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Navigation Arrows ---- */
.pro-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    outline: none;
}

.pro-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.pro-arrow:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 3px;
}

.pro-arrow-prev {
    left: 28px;
}

.pro-arrow-next {
    right: 28px;
}

/* ---- Slider Footer (dots + counter) ---- */
.pro-slider-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 0 var(--container-pad, 20px);
    padding-left: max(20px, calc((100% - 1280px) / 2 + 20px));
}

/* ---- Dots ---- */
.pro-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    flex-shrink: 0;
}

.pro-dot.active {
    width: 32px;
    border-radius: 4px;
    background: var(--primary);
    border-color: var(--primary);
}

.pro-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.pro-dot:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 3px;
}

/* ---- Counter ---- */
.pro-counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.pro-counter-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.pro-counter-sep {
    font-size: 0.8rem;
    opacity: 0.5;
    margin: 0 1px;
}

/* ---- Progress Bar ---- */
.pro-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
    overflow: hidden;
}

.pro-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width linear;
    border-radius: 2px;
}

/* ---- Floating decorations ---- */
.float-deco {
    position: absolute;
    z-index: 5;
    animation-duration: 4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    pointer-events: none;
}

.float-deco.balloon {
    animation-name: float-up;
    left: 5%;
    top: 20%;
    font-size: 2.5rem;
    opacity: 0.6;
}

.float-deco.star {
    animation-name: float-spin;
    right: 10%;
    bottom: 30%;
    font-size: 2rem;
    color: var(--accent-yellow);
    opacity: 0.7;
}

.float-deco.cloud {
    animation-name: float-side;
    top: 10%;
    right: 15%;
    font-size: 2.5rem;
    color: #fff;
    opacity: 0.2;
}

@keyframes float-up {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-spin {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

@keyframes float-side {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(15px);
    }
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about-stats {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-orange);
    text-align: center;
}

.about-stats .stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}

.about-stats .stat-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.about-content {
    padding-left: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.about-feature:hover {
    background: var(--cream-dark);
    transform: translateX(4px);
}

.about-feature i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

.about-feature span {
    font-weight: 500;
    color: var(--navy);
    font-size: 0.9rem;
}

.about-cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.about-phone {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-phone .phone-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    animation: phone-ring 3s ease-in-out infinite;
}

@keyframes phone-ring {

    0%,
    80%,
    100% {
        transform: rotate(0);
    }

    85% {
        transform: rotate(10deg);
    }

    90% {
        transform: rotate(-10deg);
    }

    95% {
        transform: rotate(5deg);
    }
}

.about-phone .phone-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.about-phone .phone-number {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
}

/* ===================================
   PROGRAMS SECTION
   =================================== */
.programs-section {
    background: var(--gray-100);
    position: relative;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.08);
}

.program-card-icon {
    position: absolute;
    bottom: -24px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.program-card-icon.orange {
    background: var(--primary);
}

.program-card-icon.blue {
    background: var(--secondary);
}

.program-card-icon.green {
    background: var(--accent-green);
}

.program-card-icon.purple {
    background: var(--accent-purple);
}

.program-card-icon.pink {
    background: var(--accent-pink);
}

.program-card-icon.teal {
    background: var(--accent-teal);
}

.program-card-body {
    padding: 36px 24px 24px;
}

.program-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.program-card-title a:hover {
    color: var(--primary);
}

.program-card-text {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
}

.program-card-link:hover {
    gap: 10px;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--navy) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    top: -200px;
    right: -100px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
    bottom: -150px;
    left: -50px;
}

.cta-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ===================================
   MANAGEMENT COMMITTEE SECTION
   =================================== */
.management-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.management-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Rectangular portrait */
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 4px solid var(--white);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
    background: var(--cream);
}

.teacher-card:hover .management-image {
    border-color: var(--primary-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.management-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.teacher-card:hover .management-image img {
    transform: scale(1.05);
}

/* Inherit teacher-social styling but override position for rectangles */
.management-image .teacher-social {
    bottom: 20px;
}

/* ===================================
   TEACHERS SECTION
   =================================== */
.teachers-section {
    background: var(--cream);
    /* Creates a visual break from the Management section */
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.teacher-card {
    background: var(--white);
    text-align: center;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding-bottom: 24px;
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.teacher-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Large square at the top of the card */
    margin: 0 0 20px 0;
    /* Remove auto-margin, flush with edges */
    overflow: hidden;
    position: relative;
}

/* Remove image border hover effects since the card itself hovers now */
.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.08);
    /* Beautiful subtle image zoom */
}

.teacher-social {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: var(--transition);
}

.teacher-card:hover .teacher-social {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.teacher-social a {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
}

.teacher-social a:hover {
    background: var(--navy);
}

.teacher-name {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.teacher-role {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 500;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials-section {
    background: var(--cream);
    position: relative;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: var(--accent-yellow);
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
    font-style: italic;
    margin-bottom: 28px;
    position: relative;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    margin: 0 auto 12px;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy);
    font-size: 1.1rem;
}

.testimonial-role {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.testimonial-nav button {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.testimonial-nav button:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 155, 80, 0.85), rgba(74, 144, 226, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */
.newsletter-section {
    background: var(--cream);
    padding: 60px 0;
}

.newsletter-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-content h3 {
    margin-bottom: 8px;
}

.newsletter-content p {
    color: var(--text-light);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    white-space: nowrap;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .brand-text span {
    color: var(--primary);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.footer-contact li i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--primary);
}

/* ===================================
   COUNTER SECTION
   =================================== */
.counter-section {
    background: var(--primary);
    padding: 60px 0;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.counter-item {
    color: var(--white);
}

.counter-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.counter-text {
    font-size: 0.92rem;
    opacity: 0.85;
}

/* ===================================
   SCROLL TO TOP
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ===================================
   ANIMATIONS (Scroll Reveal)
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        padding-left: 0;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .teachers-grid,
    .management-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        gap: 0;
         box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        overflow-y: auto;
       -webkit-overflow-scrolling: touch;
    }

    .nav-menu.open {
        right: 0;
    }

    .mobile-menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 20px 25px;
        background: var(--cream);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        margin-bottom: 5px;
        flex-shrink: 0;
    }

    .mobile-menu-header .brand-text {
        font-size: 1.3rem;
        font-family: var(--font-heading);
        font-weight: 700;
        color: var(--primary);
    }

    .mobile-menu-header .brand-text span {
        color: var(--navy);
    }

    .mobile-close {
        background: var(--white);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: var(--radius-full);
        color: var(--navy);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: var(--shadow-sm);
        font-size: 1rem;
        transition: var(--transition);
    }
    
    .mobile-close:hover {
        background: var(--accent-pink);
        color: var(--white);
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-link {
        padding: 14px 25px;
        border-bottom: 1px solid var(--gray-100);
        width: 100%;
        font-size: 0.98rem;
        font-weight: 600;
        display: block;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 155, 80, 0.05);
        color: var(--primary);
    }

    /* Mobile Dropdown */
    .nav-dropdown > .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-dropdown-arrow {
        font-size: 0.75rem;
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown.open > .nav-link {
        color: var(--primary) !important;
        background: rgba(255, 155, 80, 0.08);
    }

    .nav-dropdown-arrow {
        font-size: 0.7rem;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--gray-100);
        transition: all 0.3s ease;
    }

    .nav-dropdown.open .nav-dropdown-arrow {
        transform: rotate(180deg);
        background: var(--primary);
        color: var(--white);
    }

    .nav-dropdown-menu {
         position: static !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--white);
        box-shadow: none;
        border-top: none;
        width: 100%;
        pointer-events: auto;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 1000px;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-dropdown-inner {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
       
    }

    .nav-dropdown-item {
        padding: 14px 25px 14px 50px !important;
        display: flex !important;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid var(--gray-100);
        color: var(--text);
        font-weight: 500;
        font-size: 0.95rem;
        background: var(--gray-50);
    }

    .nav-dropdown-item i {
        width: 30px;
        height: 30px;
        border-radius: 6px;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 0.85rem;
    }

   .nav-dropdown-item.active {
        color: var(--primary);
        background: var(--white);
    }

    .nav-dropdown-item:last-child {
        border-bottom: none;
    }

    .nav-cta {
        margin: 20px 25px;
        width: calc(100% - 50px);
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 10px;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 990;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-overlay.open {
        display: block;
        opacity: 1;
    }

    /* Pro-slider mobile */
    .pro-slider {
        height: 72vh;
        min-height: 420px;
        max-height: 560px;
    }

    .pro-slide-content-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pro-slide-content {
        padding: 40px 0 72px;
    }

    .pro-slide-desc {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 22px;
    }

    .pro-slide-title {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
        margin-bottom: 10px;
    }

    .pro-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }

    .pro-arrow-prev {
        left: 10px;
    }

    .pro-arrow-next {
        right: 10px;
    }

    .pro-slider-footer {
        bottom: 18px;
        gap: 14px;
        padding-left: 20px;
    }

    .pro-counter {
        display: none;
    }

    .pro-slide-actions {
        gap: 10px;
    }

    .pro-slide-actions .btn {
        padding: 10px 20px;
        font-size: 0.86rem;
    }

    .float-deco.balloon,
    .float-deco.star,
    .float-deco.cloud {
        display: none;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .teachers-grid,
    .management-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .newsletter-form {
        min-width: auto;
        width: 100%;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .counter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .about-cta-row {
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .pro-slider {
        height: 65vh;
        min-height: 380px;
        max-height: 480px;
    }

    .pro-slide-title {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    .pro-slide-label {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .pro-label-line {
        width: 20px;
    }

    .pro-slide-desc {
        display: none;
        /* hide on very small screens to keep it clean */
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .counter-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PRE-LOADER
   =================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* ---- Spinning petal ring ---- */
.preloader-ring {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: -91px;
    /* perfectly overlap center of 72px logo */
}

.preloader-ring span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    animation: preloader-spin 1.6s linear infinite;
}

.preloader-ring span:nth-child(1) {
    border-top-color: var(--primary);
    animation-delay: 0s;
}

.preloader-ring span:nth-child(2) {
    border-right-color: var(--accent-yellow);
    animation-delay: 0.12s;
    inset: 8px;
    border-width: 3px;
}

.preloader-ring span:nth-child(3) {
    border-bottom-color: var(--accent-green);
    animation-delay: 0.24s;
    inset: 16px;
    border-width: 3px;
}

.preloader-ring span:nth-child(4) {
    border-left-color: var(--secondary);
    animation-delay: 0.36s;
    inset: 24px;
    border-width: 2px;
}

@keyframes preloader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ---- Logo centred inside the ring ---- */
.preloader-logo {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloader-pulse 2s ease-in-out infinite;
    margin-bottom: 41px;
    /* ensure text below has enough space after ring */
}

.preloader-logo svg,
.preloader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes preloader-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* ---- School name ---- */
.preloader-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: preloader-fadein 0.6s ease 0.2s both;
}

.preloader-brand-highlight {
    color: var(--primary);
}

.preloader-brand-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--text-light);
}

@keyframes preloader-fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Three bouncing dots ---- */
.preloader-dots {
    display: flex;
    gap: 7px;
    margin-top: 18px;
    animation: preloader-fadein 0.6s ease 0.35s both;
}

.preloader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: preloader-bounce 1.3s ease-in-out infinite;
}

.preloader-dots span:nth-child(1) {
    background: var(--primary);
    animation-delay: 0s;
}

.preloader-dots span:nth-child(2) {
    background: var(--accent-yellow);
    animation-delay: 0.2s;
}

.preloader-dots span:nth-child(3) {
    background: var(--accent-green);
    animation-delay: 0.4s;
}

@keyframes preloader-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.55);
        opacity: 0.45;
    }

    40% {
        transform: scale(1.25);
        opacity: 1;
    }
}

/* ===================================
   ADMIN PANEL STYLES
   =================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 270px;
    background: var(--navy);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.admin-sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
}

.admin-sidebar-brand .brand-text span {
    color: var(--primary);
}

.admin-sidebar-brand small {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-nav {
    padding: 16px 0;
}

.admin-nav-label {
    padding: 16px 24px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-main {
    flex: 1;
    margin-left: 270px;
    background: var(--gray-100);
    min-height: 100vh;
}

.admin-topbar {
    background: var(--white);
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar h4 {
    font-family: var(--font-heading);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-content {
    padding: 30px;
}

/* Admin Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.admin-stat-icon.orange {
    background: rgba(255, 155, 80, 0.12);
    color: var(--primary);
}

.admin-stat-icon.blue {
    background: rgba(74, 144, 226, 0.12);
    color: var(--secondary);
}

.admin-stat-icon.green {
    background: rgba(107, 192, 107, 0.12);
    color: var(--accent-green);
}

.admin-stat-icon.purple {
    background: rgba(155, 107, 192, 0.12);
    color: var(--accent-purple);
}

.admin-stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    display: block;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Admin Table */
.admin-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-header h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--navy);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.admin-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.92rem;
}

.admin-table tr:hover td {
    background: var(--cream);
}

.admin-table .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(107, 192, 107, 0.12);
    color: #2d962d;
}

.badge-warning {
    background: rgba(255, 211, 61, 0.2);
    color: #c69500;
}

.badge-danger {
    background: rgba(255, 107, 157, 0.12);
    color: #d32f2f;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .actions button,
.admin-table .actions a {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.action-edit {
    background: rgba(74, 144, 226, 0.1);
    color: var(--secondary);
}

.action-edit:hover {
    background: var(--secondary);
    color: var(--white);
}

.action-delete {
    background: rgba(255, 107, 157, 0.1);
    color: var(--accent-pink);
}

.action-delete:hover {
    background: var(--accent-pink);
    color: var(--white);
}

/* Admin Form */
.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--navy);
    font-size: 0.92rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 155, 80, 0.1);
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 0;
        overflow: hidden;
    }

    .admin-sidebar.open {
        width: 270px;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ===== NOTICE BOARD SECTION ===== */
.notice-board-section {
    padding: 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.notice-board-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.notice-board-header {
    display: flex;
    align-items: stretch;
    background: var(--navy);
    color: var(--white);
}

.notice-board-title {
    background: var(--primary);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    padding-right: 45px;
}

.notice-board-ticker {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    overflow: hidden;
    gap: 15px;
    font-size: 0.95rem;
}

.notice-board-ticker > span {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.ticker-item {
    margin-right: 40px;
    color: rgba(255,255,255,0.9);
}

.ticker-dot {
    color: var(--primary);
    margin-right: 8px;
}

topper-feature-section {
    padding: 0;
}

.notice-topper-single-row {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 18px;
    align-items: start;
}

.topper-feature-wrapper {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

.topper-feature-head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(90deg, #fff9ef 0%, #ffffff 100%);
}

.topper-feature-head h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.topper-feature-head i {
    color: var(--primary);
}

.topper-slider {
    position: relative;
    min-height: 430px;
    overflow: hidden;
}

.topper-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.topper-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.topper-passport-frame {
    width: 230px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    background: #fff;
}

.topper-passport-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topper-slide-content {
    text-align: center;
    padding: 12px 14px 0;
}

.topper-slide-content h4 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1.1rem;
}

.topper-slide-content p {
    margin: 0 0 6px;
    color: var(--text-light);
}

.topper-slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 0 18px;
}

.topper-slider-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
}

.topper-slider-controls button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.notice-list-container {
    padding: 10px 20px;
    background: #ffffff;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-100);
}

.notice-list-container::-webkit-scrollbar {
    width: 4px;
}

.notice-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.notice-list-container::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

.notice-list-container:hover::-webkit-scrollbar-thumb {
    background: var(--primary);
}

.notice-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notice-card {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    min-width: 0;
    max-width: none;
    flex-shrink: 1;
}

.notice-card:last-child {
    border-bottom: none;
}

.notice-card:hover {
    padding-left: 10px;
    background: var(--gray-50);
}

.notice-card:hover {
    background: var(--gray-50);
}

.notice-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: var(--radius-sm);
    color: var(--navy);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.notice-date .day {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.notice-date .month {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
    color: var(--text-light);
}

.notice-content {
    flex: 1;
}

.notice-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.badge-urgent {
    background: #FFF5F5;
    color: var(--accent-pink);
    border: 1px solid rgba(244, 114, 182, 0.2);
}

.badge-new {
    background: #F0FDFA;
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.notice-title {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
}

.notice-excerpt {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.notice-actions {
    margin-top: auto;
}

.notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.notice-btn:hover {
    color: var(--navy);
}

.notice-info {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    
    .notice-topper-single-row {
        grid-template-columns: 1fr;
    }
    
    .notice-board-header {
        flex-direction: column;
    }
    
    .notice-board-title {
        clip-path: none;
        padding-right: 30px;
        justify-content: center;
    }
    
    .notice-board-ticker {
        padding: 10px 15px;
    }
    
    .notice-grid {
        gap: 0;
    }
    
     .topper-slider {
        min-height: 390px;
    }

    .topper-passport-frame {
        width: 190px;
        height: 250px;
    }
    

    .notice-card {
        min-width: 0;
        max-width: none;
        padding-left: 0;
    }
}



