@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* ============================================
   BUDS THE PRESCHOOL - Main Stylesheet
   Colors from logo: Green, Yellow, Orange, Magenta/Pink, Purple
   ============================================ */

:root {
    --green: #4CAF50;
    --green-dark: #388E3C;
    --yellow: #FFC107;
    --yellow-light: #FFF8E1;
    --orange: #FF9800;
    --orange-dark: #F57C00;
    --magenta: #E91E63;
    --purple: #9C27B0;
    --red: #F44336;

    --primary: #4CAF50;
    --secondary: #FF9800;
    --accent: #E91E63;

    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #777777;
    --white: #ffffff;
    --light-bg: #FFF9F0;
    --light-green-bg: #F1F8E9;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);

    --font-primary: 'Nunito', sans-serif;
    --font-heading: 'Fredoka One', cursive;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .highlight {
    color: var(--primary);
}

.section-header .highlight-orange {
    color: var(--secondary);
}

.section-header .highlight-pink {
    color: var(--accent);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i,
.top-bar-right i {
    margin-right: 6px;
}

.top-bar-right a {
    color: var(--white);
    margin-left: 15px;
    font-size: 14px;
}

.top-bar-right a:hover {
    color: var(--yellow);
    transform: scale(1.2);
    display: inline-block;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 55px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu li a {
    padding: 10px 16px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
    background: var(--light-green-bg);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.btn-enroll {
    background: linear-gradient(135deg, var(--magenta), var(--orange)) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4) !important;
    background: linear-gradient(135deg, var(--orange), var(--magenta)) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   NOTICE TICKER
   ============================================ */
.notice-ticker {
    background: var(--yellow-light);
    border-bottom: 2px solid var(--yellow);
    padding: 8px 0;
    overflow: hidden;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticker-label {
    background: var(--magenta);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-content {
    overflow: hidden;
    flex: 1;
}

.ticker-scroll {
    display: flex;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 10px;
}

.urgent-badge {
    background: var(--red);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 6px;
}

.ticker-separator {
    margin: 0 15px;
    color: var(--orange);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    inset: 0;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(0, 0, 0, 0.2) 100%);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 3;
    padding: 0 20px;
}

.slide-content .container {
    max-width: 750px;
}

.slide-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease both;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.slide-content h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s 0.15s ease both;
}

.slide-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 550px;
    line-height: 1.8;
    animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.45s ease both;
}

.btn-slider-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-slider-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 25px;
}

.slider-next {
    right: 25px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Floating Stats Bar */
.hero-floating-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 0;
    border-top: 3px solid var(--primary);
}

.float-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-right: 1px solid #eee;
}

.float-stat:last-child {
    border-right: none;
}

.float-stat i {
    font-size: 24px;
    color: var(--primary);
}

.float-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.2;
}

.float-stat span {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    font-family: var(--font-primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--green);
    box-shadow: var(--card-shadow);
}

.btn-secondary:hover {
    background: var(--light-green-bg);
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 13px;
}

/* ============================================
   FEATURES / WHY CHOOSE US
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.feature-card:nth-child(1)::before {
    background: var(--green);
}

.feature-card:nth-child(2)::before {
    background: var(--yellow);
}

.feature-card:nth-child(3)::before {
    background: var(--orange);
}

.feature-card:nth-child(4)::before {
    background: var(--magenta);
}

.feature-card:nth-child(5)::before {
    background: var(--purple);
}

.feature-card:nth-child(6)::before {
    background: var(--green);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.feature-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card:nth-child(1) .icon {
    background: #E8F5E9;
    color: var(--green);
}

.feature-card:nth-child(2) .icon {
    background: #FFF8E1;
    color: var(--orange);
}

.feature-card:nth-child(3) .icon {
    background: #FFF3E0;
    color: var(--orange-dark);
}

.feature-card:nth-child(4) .icon {
    background: #FCE4EC;
    color: var(--magenta);
}

.feature-card:nth-child(5) .icon {
    background: #F3E5F5;
    color: var(--purple);
}

.feature-card:nth-child(6) .icon {
    background: #E8F5E9;
    color: var(--green);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Feature cards with images */
.feature-card.has-image {
    padding: 0;
    text-align: center;
    overflow: hidden;
}

.feature-card.has-image .feature-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.feature-card.has-image .feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card.has-image:hover .feature-img img {
    transform: scale(1.08);
}

.feature-card.has-image h3 {
    padding: 18px 20px 0;
}

.feature-card.has-image p {
    padding: 0 20px 22px;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs {
    padding: 80px 0;
    background: var(--light-bg);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.program-card .program-icon {
    padding: 35px 20px 20px;
    font-size: 50px;
}

.program-card .program-icon.svg-icon {
    padding: 20px 15px 10px;
}

.program-card .program-icon.svg-icon svg {
    width: 100%;
    max-width: 110px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s ease;
}

.program-card:hover .program-icon.svg-icon svg {
    transform: scale(1.08);
}

.program-card:nth-child(1) .program-icon {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.program-card:nth-child(2) .program-icon {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}

.program-card:nth-child(3) .program-icon {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
}

.program-card:nth-child(4) .program-icon {
    background: linear-gradient(135deg, #FCE4EC, #F8BBD0);
}

.program-card:nth-child(5) .program-icon {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
}

.program-card .program-info {
    padding: 20px;
}

.program-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.program-card .age {
    display: inline-block;
    background: var(--light-green-bg);
    color: var(--green);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.program-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   ABOUT PREVIEW / CTA SECTION
   ============================================ */
.about-preview {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.about-image .experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--orange), var(--magenta));
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.about-image .experience-badge .number {
    font-family: var(--font-heading);
    font-size: 36px;
    display: block;
}

.about-image .experience-badge span {
    font-size: 13px;
    font-weight: 700;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
}

.about-feature-item i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.about-feature-item:nth-child(odd) i {
    background: #E8F5E9;
    color: var(--green);
}

.about-feature-item:nth-child(even) i {
    background: #FFF3E0;
    color: var(--orange);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 50%, #2E7D32 100%);
    padding: 70px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.cta-banner .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner .cta-text {
    text-align: left;
    flex: 1;
    min-width: 280px;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 10px;
}

.cta-banner p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 0;
}

.cta-banner .cta-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

/* Decorative dots pattern */
.cta-banner .cta-dots {
    position: absolute;
    top: 20px;
    right: 15%;
    display: grid;
    grid-template-columns: repeat(5, 8px);
    gap: 10px;
    opacity: 0.15;
}

.cta-banner .cta-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.event-card .event-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card .event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--magenta);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    line-height: 1.2;
}

.event-date-badge .day {
    font-family: var(--font-heading);
    font-size: 22px;
    display: block;
}

.event-date-badge .month {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-card .event-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.event-card .event-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.event-card .event-meta i {
    color: var(--secondary);
    margin-right: 4px;
}

.event-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    flex: 1;
}

.event-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.event-card:nth-child(1) .event-placeholder {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.event-card:nth-child(2) .event-placeholder {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}

.event-card:nth-child(3) .event-placeholder {
    background: linear-gradient(135deg, #FCE4EC, #F8BBD0);
}

/* ============================================
   GALLERY PREVIEW (Homepage)
   ============================================ */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-preview-large .gallery-item {
    aspect-ratio: auto;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
}

.gallery-preview-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.gallery-preview-small .gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 2/1;
}

.gallery-preview-small .gallery-item {
    aspect-ratio: auto;
    border-radius: var(--radius);
    min-height: 0;
}

@media (max-width: 768px) {
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }

    .gallery-preview-large .gallery-item {
        min-height: 250px;
    }

    .gallery-preview-small {
        grid-template-columns: 1fr;
    }

    .gallery-preview-small .gallery-item:first-child {
        grid-column: auto;
    }
}

/* ============================================
   GALLERY SECTION (Full Page)
   ============================================ */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-filters .filter-btn {
    padding: 8px 22px;
    border: 2px solid #E0E0E0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
    font-family: var(--font-primary);
    color: var(--text-medium);
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--card-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 16px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox .close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: bold;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
}

.lightbox-caption h4 {
    font-family: var(--font-heading);
    font-size: 18px;
}

/* ============================================
   NOTICES HOME SECTION (Homepage)
   ============================================ */
.notices-home-section {
    background: linear-gradient(135deg, #F1F8E9 0%, #FFF8E1 100%);
}

.notices-home-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.notices-home-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.notice-home-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    padding: 18px 22px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.notice-home-card:hover {
    transform: translateX(5px);
    box-shadow: var(--card-shadow-hover);
}

.notice-home-card.urgent {
    border-left-color: var(--red);
    background: #FFF5F5;
}

.notice-home-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    height: 55px;
    background: var(--light-green-bg);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.notice-home-card.urgent .notice-home-date {
    background: #FFEBEE;
}

.notice-day {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--primary);
    line-height: 1;
}

.notice-home-card.urgent .notice-day {
    color: var(--red);
}

.notice-month {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
}

.notice-home-info {
    flex: 1;
    min-width: 0;
}

.notice-home-info h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.notice-home-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.notice-home-attach {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.notice-home-attach:hover {
    background: var(--primary);
    color: white;
}

/* Quick Contact Card */
.quick-contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.qc-header {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    padding: 25px 30px;
    color: white;
}

.qc-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 5px;
}

.qc-header h3 i {
    margin-right: 8px;
}

.qc-header p {
    font-size: 14px;
    opacity: 0.85;
}

.qc-form {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qc-form input,
.qc-form select,
.qc-form textarea {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: var(--transition);
    background: #FAFAFA;
}

.qc-form input:focus,
.qc-form select:focus,
.qc-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.qc-phone {
    padding: 15px 30px 25px;
    text-align: center;
    border-top: 1px solid #eee;
}

.qc-phone span {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.qc-phone a {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
}

.qc-phone a:hover {
    color: var(--green-dark);
}

/* ============================================
   NOTICES SECTION (Full Page)
   ============================================ */
.notices-section {
    padding: 80px 0;
}

.notices-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 30px;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
    position: relative;
}

.notice-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateX(5px);
}

.notice-card.urgent {
    border-left-color: var(--red);
    background: #FFF5F5;
}

.notice-card .notice-date {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-card .notice-date i {
    color: var(--secondary);
}

.notice-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.notice-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
}

.notice-card .notice-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.notice-card .notice-attachment:hover {
    color: var(--green-dark);
}

.notice-urgent-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

/* ============================================
   PAGE BANNER
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, #E8F5E9 0%, #FFF8E1 50%, #FFF3E0 100%);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1), transparent);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.page-banner h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.page-banner .breadcrumb {
    font-size: 14px;
    color: var(--text-light);
}

.page-banner .breadcrumb a {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-full {
    padding: 80px 0;
}

.about-full .about-content-block {
    max-width: 900px;
    margin: 0 auto 50px;
}

.about-full h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-full p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.curriculum-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.curriculum-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.curriculum-card .cur-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.curriculum-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 10px;
}

.curriculum-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   PROGRAMS PAGE
   ============================================ */
.programs-full {
    padding: 80px 0;
}

.program-detail {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    align-items: start;
    transition: var(--transition);
}

.program-detail:hover {
    box-shadow: var(--card-shadow-hover);
}

.program-detail .prog-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
}

.program-detail:nth-child(1) .prog-icon {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.program-detail:nth-child(2) .prog-icon {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}

.program-detail:nth-child(3) .prog-icon {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
}

.program-detail:nth-child(4) .prog-icon {
    background: linear-gradient(135deg, #FCE4EC, #F8BBD0);
}

.program-detail:nth-child(5) .prog-icon {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
}

.program-detail h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 5px;
}

.program-detail .age-group {
    display: inline-block;
    background: var(--light-green-bg);
    color: var(--green);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.program-detail p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 12px;
}

.program-detail ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.program-detail ul li {
    font-size: 14px;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-detail ul li i {
    color: var(--green);
    font-size: 12px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-cards {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.contact-info-card .info-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-card:nth-child(1) .info-icon {
    background: #E8F5E9;
    color: var(--green);
}

.contact-info-card:nth-child(2) .info-icon {
    background: #FFF3E0;
    color: var(--orange);
}

.contact-info-card:nth-child(3) .info-icon {
    background: #FCE4EC;
    color: var(--magenta);
}

.contact-info-card:nth-child(4) .info-icon {
    background: #F3E5F5;
    color: var(--purple);
}

.contact-info-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 800;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: var(--transition);
    background: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

/* ============================================
   ADMISSION PAGE
   ============================================ */
.admission-section {
    padding: 80px 0;
}

.admission-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.admission-intro p {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.8;
}

.admission-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    position: relative;
}

.step-card .step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--white);
    margin: 0 auto 15px;
}

.step-card:nth-child(1) .step-number {
    background: var(--green);
}

.step-card:nth-child(2) .step-number {
    background: var(--orange);
}

.step-card:nth-child(3) .step-number {
    background: var(--magenta);
}

.step-card:nth-child(4) .step-number {
    background: var(--purple);
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
}

.admission-form-wrap {
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   ALERT / MESSAGE
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
}

.alert-success {
    background: #E8F5E9;
    color: var(--green-dark);
    border: 1px solid #C8E6C9;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-medium);
}

.empty-state p {
    font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-wave {
    margin-top: -2px;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-main {
    background: #2d2d2d;
    padding: 50px 0 30px;
    color: #ccc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-desc {
    margin-top: 10px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #aaa;
    align-items: flex-start;
}

.contact-list li i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    background: #222;
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* ============================================
   ADMIN PANEL STYLES - Revamped
   ============================================ */

/* Admin Login Page */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.admin-login::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15), transparent);
    top: -150px;
    right: -100px;
}

.admin-login::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.1), transparent);
    bottom: -100px;
    left: -100px;
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.97);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 4px solid var(--primary);
}

.admin-login-card img {
    height: 55px;
    margin-bottom: 10px;
}

.admin-login-card h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.admin-login-card .login-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Sidebar */
.admin-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.admin-sidebar .sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.admin-sidebar .sidebar-header img {
    height: 42px;
    filter: brightness(0) invert(1);
}

.admin-sidebar .sidebar-header p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    margin-top: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.admin-sidebar .sidebar-menu {
    padding: 15px 0;
    flex: 1;
}

.sidebar-menu .menu-label {
    padding: 15px 25px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.admin-sidebar .sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 25px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.admin-sidebar .sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border-left-color: rgba(76, 175, 80, 0.5);
}

.admin-sidebar .sidebar-menu a.active {
    background: rgba(76, 175, 80, 0.12);
    color: white;
    border-left-color: var(--primary);
}

.admin-sidebar .sidebar-menu a.active i {
    color: var(--primary);
}

.admin-sidebar .sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-menu .menu-logout {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 10px;
    padding-top: 10px;
}

.sidebar-menu .menu-logout a {
    color: rgba(244, 67, 54, 0.7) !important;
}

.sidebar-menu .menu-logout a:hover {
    color: #F44336 !important;
    background: rgba(244, 67, 54, 0.08);
    border-left-color: rgba(244, 67, 54, 0.5);
}

/* Main Content Area */
.admin-content {
    margin-left: 270px;
    padding: 0;
    min-height: 100vh;
    background: #F0F2F5;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 18px 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    margin-bottom: 0;
    border-radius: 0;
}

.admin-topbar h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-dark);
}

.admin-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-topbar .topbar-date {
    font-size: 13px;
    color: var(--text-light);
}

.admin-topbar .topbar-date i {
    color: var(--primary);
    margin-right: 5px;
}

.admin-topbar .admin-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F5F5F5;
    padding: 8px 15px;
    border-radius: 50px;
}

.admin-topbar .admin-avatar .avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
}

.admin-topbar .admin-avatar span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Admin Page Content */
.admin-page-content {
    padding: 30px;
}

/* Stat Cards - Revamped */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 0 0 0 100%;
    opacity: 0.06;
}

.stat-card:nth-child(1)::after {
    background: var(--green);
}

.stat-card:nth-child(2)::after {
    background: var(--orange);
}

.stat-card:nth-child(3)::after {
    background: var(--magenta);
}

.stat-card:nth-child(4)::after {
    background: var(--purple);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: var(--green);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: var(--orange);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #FCE4EC, #F8BBD0);
    color: var(--magenta);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    color: var(--purple);
}

.stat-card .stat-info h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-info p {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

/* Admin Card */
.admin-card {
    background: white;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-dark);
    margin: 0;
    padding: 20px 25px;
}

.admin-card-header h3 {
    padding: 0;
    margin: 0;
}

.admin-card-body {
    padding: 20px 25px;
}

/* Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.admin-table th {
    background: #FAFBFC;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    border-bottom: 2px solid #eee;
}

.admin-table tr {
    transition: var(--transition);
}

.admin-table tr:hover {
    background: #FAFBFC;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
}

/* Badges */
.badge-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #E8F5E9;
    color: var(--green);
}

.badge-active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.badge-inactive {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #FFEBEE;
    color: var(--red);
}

.badge-inactive::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 6px;
}

.action-btns a,
.action-btns button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit {
    background: #FFF3E0;
    color: var(--orange);
}

.btn-edit:hover {
    background: var(--orange);
    color: white;
    transform: scale(1.1);
}

.btn-delete {
    background: #FFEBEE;
    color: var(--red);
}

.btn-delete:hover {
    background: var(--red);
    color: white;
    transform: scale(1.1);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: #FAFBFC;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 0;
    padding: 25px 30px 0;
}

.modal-body {
    padding: 25px 30px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    float: right;
    margin: 20px 20px 0 0;
}

.modal-close:hover {
    background: var(--red);
    color: white;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 13px;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.quick-action-card i {
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-card:nth-child(1) i {
    background: #E8F5E9;
    color: var(--green);
}

.quick-action-card:nth-child(2) i {
    background: #FFF3E0;
    color: var(--orange);
}

.quick-action-card:nth-child(3) i {
    background: #FCE4EC;
    color: var(--magenta);
}

.quick-action-card:nth-child(4) i {
    background: #F3E5F5;
    color: var(--purple);
}

.quick-action-card:nth-child(5) i {
    background: #E3F2FD;
    color: #1976D2;
}

.quick-action-card:nth-child(6) i {
    background: #FFF8E1;
    color: var(--orange-dark);
}

/* Admin Dashboard Grid */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item .activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.activity-item .activity-text {
    flex: 1;
}

.activity-item .activity-text strong {
    font-size: 14px;
    color: var(--text-dark);
}

.activity-item .activity-text p {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.activity-item .activity-time {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    margin-top: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   RESPONSIVE - TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 34px;
    }

    /* Hero */
    .hero-slider {
        height: 480px;
    }

    .slide-content h1 {
        font-size: 34px;
    }

    .slide-content p {
        font-size: 16px;
        max-width: 450px;
    }

    .hero-floating-stats {
        display: none;
    }

    /* Notices */
    .notices-home-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Programs */
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .programs {
        padding: 60px 0;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-content h2 {
        font-size: 30px;
    }

    .about-image .experience-badge {
        bottom: -10px;
        right: 10px;
    }

    /* CTA */
    .cta-banner {
        padding: 50px 0;
    }

    .cta-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner .cta-text {
        text-align: center;
    }

    .cta-banner h2 {
        font-size: 30px;
    }

    /* Events */
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Programs Page */
    .program-detail {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }

    .program-detail .prog-icon {
        margin: 0 auto;
    }

    .program-detail ul {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* Admin */
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    /* --- Top Bar --- */
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
    }

    .top-bar-left span:last-child {
        display: none;
    }

    .top-bar-right a {
        margin-left: 10px;
        font-size: 13px;
    }

    /* --- Navbar --- */
    .navbar {
        padding: 8px 0;
    }

    .navbar .logo img {
        height: 42px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 10px 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        gap: 0;
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 15px;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
        margin-top: 8px;
        text-align: center;
    }

    .nav-menu li a.active::after {
        display: none;
    }

    /* --- Notice Ticker --- */
    .ticker-wrap {
        gap: 10px;
    }

    .ticker-label {
        font-size: 11px;
        padding: 3px 10px;
    }

    .ticker-item {
        font-size: 13px;
    }

    /* --- Hero Slider --- */
    .hero-slider {
        height: 420px;
    }

    .slide-content {
        padding: 0 10px;
    }

    .slide-content .container {
        max-width: 100%;
    }

    .slide-badge {
        font-size: 11px;
        padding: 6px 16px;
        margin-bottom: 14px;
        letter-spacing: 1px;
    }

    .slide-content h1 {
        font-size: 26px;
        margin-bottom: 14px;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
        max-width: 100%;
        line-height: 1.6;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        padding: 11px 22px;
        font-size: 13px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }

    .slider-dots {
        bottom: 18px;
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    /* --- Section Headers --- */
    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 15px;
    }

    .section-header .subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    /* --- Features / Why Parents Love Buds --- */
    .features {
        padding: 50px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-card .icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card.has-image .feature-img {
        height: 160px;
    }

    /* --- Programs --- */
    .programs {
        padding: 50px 0;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .program-card .program-icon {
        padding: 25px 15px 15px;
        font-size: 40px;
    }

    .program-card .program-icon.svg-icon {
        padding: 15px 10px 8px;
    }

    .program-card .program-icon.svg-icon svg {
        max-width: 85px;
    }

    .program-card .program-info {
        padding: 14px;
    }

    .program-card h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .program-card .age {
        font-size: 11px;
        padding: 2px 10px;
        margin-bottom: 6px;
    }

    .program-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    /* --- About Preview --- */
    .about-preview {
        padding: 50px 0;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .about-content p {
        font-size: 15px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-feature-item {
        font-size: 13px;
    }

    .about-image .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-block;
        margin-top: 15px;
    }

    .about-image .experience-badge .number {
        font-size: 28px;
    }

    /* --- Notices Home --- */
    .notices-home-section {
        padding: 50px 0;
    }

    .notices-home-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .notice-home-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .notice-home-date {
        min-width: 48px;
        height: 48px;
    }

    .notice-day {
        font-size: 18px;
    }

    .notice-month {
        font-size: 10px;
    }

    .notice-home-info h4 {
        font-size: 14px;
    }

    .notice-home-info p {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Quick Contact */
    .qc-header {
        padding: 20px;
    }

    .qc-header h3 {
        font-size: 20px;
    }

    .qc-form {
        padding: 20px;
    }

    /* --- CTA Banner --- */
    .cta-banner {
        padding: 40px 0;
    }

    .cta-banner h2 {
        font-size: 26px;
    }

    .cta-banner p {
        font-size: 15px;
    }

    .cta-banner .cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .cta-banner .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Events --- */
    .events-section {
        padding: 50px 0;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card .event-image {
        height: 180px;
    }

    .event-card .event-info {
        padding: 18px;
    }

    .event-card h3 {
        font-size: 18px;
    }

    .event-placeholder {
        height: 160px;
        font-size: 50px;
    }

    /* --- Gallery --- */
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }

    .gallery-preview-large .gallery-item {
        min-height: 220px;
    }

    .gallery-preview-small {
        grid-template-columns: 1fr;
    }

    .gallery-preview-small .gallery-item:first-child {
        grid-column: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 1/1;
    }

    .gallery-filters {
        gap: 6px;
        margin-bottom: 25px;
    }

    .gallery-filters .filter-btn {
        padding: 6px 16px;
        font-size: 12px;
    }

    /* --- Notices Page --- */
    .notices-section {
        padding: 50px 0;
    }

    .notice-card {
        padding: 18px 20px;
    }

    .notice-card h3 {
        font-size: 16px;
    }

    /* --- Page Banner --- */
    .page-banner {
        padding: 35px 0;
    }

    .page-banner h1 {
        font-size: 30px;
    }

    .page-banner .breadcrumb {
        font-size: 13px;
    }

    /* --- About Page --- */
    .about-full {
        padding: 50px 0;
    }

    .about-full h2 {
        font-size: 26px;
    }

    .curriculum-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .curriculum-card {
        padding: 22px;
    }

    /* --- Programs Page --- */
    .programs-full {
        padding: 50px 0;
    }

    .program-detail {
        padding: 24px 20px;
        gap: 20px;
    }

    .program-detail .prog-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .program-detail h3 {
        font-size: 20px;
    }

    /* --- Contact Page --- */
    .contact-section {
        padding: 50px 0;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .contact-form h3 {
        font-size: 20px;
    }

    .contact-info-card {
        padding: 18px;
        gap: 14px;
    }

    .contact-info-card .info-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* --- Admission Page --- */
    .admission-section {
        padding: 50px 0;
    }

    .admission-intro {
        margin-bottom: 30px;
    }

    .admission-intro p {
        font-size: 15px;
    }

    .admission-steps {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .step-card {
        padding: 22px 16px;
    }

    .step-card h4 {
        font-size: 16px;
    }

    /* --- Footer --- */
    .footer-main {
        padding: 40px 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-about {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 15px;
        display: block;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col h3 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col {
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
        text-align: left;
    }

    .footer-col ul li a {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 14px 0;
    }

    .footer-wave svg {
        height: 50px;
    }

    /* --- Admin --- */
    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-login-card {
        margin: 20px;
        padding: 35px 25px;
    }

    /* Lightbox */
    .lightbox {
        padding: 15px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 75vh;
    }

    .lightbox .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }

    .lightbox-caption {
        bottom: 15px;
    }

    .lightbox-caption h4 {
        font-size: 15px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {

    .container {
        padding: 0 15px;
    }

    /* Hero */
    .hero-slider {
        height: 380px;
    }

    .slide-badge {
        font-size: 10px;
        padding: 5px 12px;
    }

    .slide-content h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
        font-size: 13px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }

    .slider-dots {
        bottom: 12px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    /* Programs */
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .program-card {
        display: flex;
        flex-direction: row;
        text-align: left;
    }

    .program-card .program-icon {
        padding: 20px 15px;
        min-width: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .program-card .program-icon.svg-icon {
        padding: 12px 10px;
        min-width: 100px;
    }

    .program-card .program-icon.svg-icon svg {
        max-width: 75px;
    }

    .program-card .program-info {
        padding: 16px 14px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .program-card h3 {
        font-size: 16px;
    }

    .program-card p {
        font-size: 13px;
    }

    /* Features */
    .feature-card {
        padding: 20px 16px;
    }

    .feature-card .icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 13px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-preview-large .gallery-item {
        min-height: 200px;
    }

    /* CTA */
    .cta-banner h2 {
        font-size: 22px;
    }

    .cta-banner p {
        font-size: 14px;
    }

    /* Events */
    .event-card .event-image {
        height: 150px;
    }

    .event-card .event-info {
        padding: 14px;
    }

    .event-card h3 {
        font-size: 16px;
    }

    .event-card .event-meta {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Notices */
    .notice-home-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notice-home-date {
        flex-direction: row;
        min-width: auto;
        height: auto;
        padding: 6px 14px;
        gap: 6px;
    }

    .notice-day {
        font-size: 16px;
    }

    /* Admission */
    .admission-steps {
        grid-template-columns: 1fr;
    }

    /* Page Banner */
    .page-banner h1 {
        font-size: 26px;
    }

    /* About */
    .about-content h2 {
        font-size: 24px;
    }

    /* Contact */
    .contact-info-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    /* Footer */
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Program Detail */
    .program-detail {
        padding: 20px 16px;
    }

    .program-detail .prog-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .program-detail h3 {
        font-size: 18px;
    }
}

/* ============================================================
   BUDS CONTEMPORARY HERO & HERITAGE-STEM MODULE (2026)
   ============================================================ */

:root {
    --buds-green: #4CAF50;
    --buds-orange: #ff4757;
    --buds-navy: #2c3e50;
    --buds-light: #f8f9fa;
    --buds-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* New Hero Section Container */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 550px;
    background: #222;
    overflow: hidden;
}

/* Individual Slide Styling */
.slide-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

/* Modern Typography for BUDS */
.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 15px 0 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}



/* Button Styling Alignment */
.hero-btns .btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-white {
    background: #fff;
    color: var(--buds-navy);
}

.btn-white:hover {
    background: var(--buds-light);
    transform: translateY(-2px);
}

/* Heritage-STEM Floating Stats */
.hero-floating-stats {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: #fff;
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: var(--buds-shadow);
    z-index: 5;
    width: 90%;
    max-width: 800px;
    justify-content: space-around;
}

.float-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.float-stat i {
    color: var(--buds-green);
    font-size: 1.4rem;
}

.float-stat strong {
    display: block;
    font-size: 0.95rem;
    color: var(--buds-navy);
}

.float-stat span {
    font-size: 0.75rem;
    color: #777;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-floating-stats {
        display: none;
        /* Hide on small screens to avoid clutter */
    }

    .hero-content {
        text-align: center;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

/* --- BUDS FINAL HERO POLISH --- */

.hero-slider {
    background-color: #333 !important;
    /* Ensuring a dark base if image fails */
    color: #ffffff !important;
}

.hero-content {
    padding-top: 100px;
    max-width: 800px;
}

.hero-content h1 {
    color: #ffffff !important;
    /* Force white text */
    font-family: 'Fredoka One', sans-serif;
    /* Using your brand's friendly font */
    margin-bottom: 30px !important;
}



/* Button Fixes */
.hero-btns .btn {
    border-radius: 50px !important;
    /* Ensure the rounded "Pill" shape */
    padding: 15px 35px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.btn-primary {
    background-color: #ff4757 !important;
    /* Bright action color */
    border: none !important;
    color: #fff !important;
}

.btn-white {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    border: none !important;
}

.hero-btns .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- BUDS 2026 CONTEMPORARY RESET --- */
.hero-slider {
    background: #2c3e50 !important;
    /* Dark professional blue-grey */
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #ffffff !important;
}

.hero-content h1 {
    color: #ffffff !important;
    font-size: 4rem !important;
    font-weight: 800 !important;
    margin: 20px 0 !important;
}

.hero-btns .btn {
    border-radius: 50px !important;
    padding: 15px 35px !important;
    font-weight: 700 !important;
    margin: 10px !important;
    display: inline-block !important;
}

.btn-primary {
    background: #ff4757 !important;
    color: white !important;
    border: none !important;
}

.btn-white {
    background: white !important;
    color: #333 !important;
    border: none !important;
}

/* Floating Stats Alignment */
.hero-floating-stats {
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 20px !important;
    margin-top: -50px !important;
    /* Pulls it up into the hero area */
}

/* --- BUDS INNER PAGE HELPERS --- */
.rounded-image {
    border-radius: 15px;
    width: 100%;
    height: auto;
    display: block;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-900 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.curriculum-diagram {
    max-width: 400px;
    margin: 30px auto 10px;
    display: block;
    border-radius: 15px;
}

/* Card Borders */
.top-border-green {
    border-top: 4px solid #4CAF50;
}

.top-border-orange {
    border-top: 4px solid #FF9800;
}

.top-border-magenta {
    border-top: 4px solid #E91E63;
}

.top-border-purple {
    border-top: 4px solid #9C27B0;
}

.top-border-blue {
    border-top: 4px solid #2196F3;
}

.top-border-yellow {
    border-top: 4px solid #FFC107;
}

.top-border-teal {
    border-top: 4px solid #009688;
}

/* Icon Colors */
.text-green {
    color: #4CAF50;
}

.bg-green-light {
    background: #E8F5E9;
}

.text-orange {
    color: #FF9800;
}

.bg-orange-light {
    background: #FFF3E0;
}

.text-magenta {
    color: #E91E63;
}

.bg-magenta-light {
    background: #FCE4EC;
}

.text-purple {
    color: #9C27B0;
}

.bg-purple-light {
    background: #F3E5F5;
}

.text-blue {
    color: #2196F3;
}

.bg-blue-light {
    background: #E3F2FD;
}

.text-yellow {
    color: #FFC107;
}

.bg-yellow-light {
    background: #FFF8E1;
}

.text-teal {
    color: #009688;
}

.bg-teal-light {
    background: #E0F2F1;
}

/* ============================================================
   BUDS PROGRAMS MODULE
   ============================================================ */

/* Alternating Row Layout */
.program-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.program-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Reverses every second row for a premium look */
.program-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Circular Images */
.program-row .prog-icon {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
}

.circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--buds-light, #f8f9fa);
}

/* Typography & Badges */
.prog-text h3 {
    font-size: 2.2rem;
    font-family: 'Fredoka One', sans-serif;
    color: var(--buds-navy, #2c3e50);
    margin-bottom: 10px;
}

.age-badge {
    display: inline-block;
    background: #E8F5E9;
    color: #4CAF50;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Two-Column Feature List */
.prog-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.prog-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {

    .program-row,
    .program-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .prog-features {
        grid-template-columns: 1fr;
        /* Stacks the list on mobile */
        text-align: left;
    }
}

/* ============================================================
   BUDS ADMISSION MODULE
   ============================================================ */

/* Early Bird Callout */
.early-bird-callout {
    background: linear-gradient(135deg, #FFC107, #FFE082);
    padding: 20px 30px;
    border-radius: 15px;
    display: inline-block;
}

.offer-title {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.5rem;
    color: var(--buds-navy, #2c3e50);
    display: block;
}

/* Split Layout for Steps & Form */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Vertical Steps */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-info h4 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--buds-navy, #2c3e50);
}

.step-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Modern Form Styling */
.form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    border-top: 5px solid #ff4757;
}

.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        /* Stacks the form under the steps on mobile */
    }

    .split-2 {
        grid-template-columns: 1fr;
        /* Stacks side-by-side inputs on mobile */
    }
}

/* ============================================================
   BUDS CONTACT US MODULE
   ============================================================ */

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    margin: 0 0 5px 0;
    color: var(--buds-navy, #2c3e50);
    font-size: 1.2rem;
    font-family: 'Fredoka One', sans-serif;
}

.contact-info-card p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ============================================================
   BUDS EVENTS MODULE
   ============================================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.modern-event-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-image-wrapper,
.event-placeholder-wrapper {
    position: relative;
    height: 220px;
    width: 100%;
    background: var(--buds-light, #f8f9fa);
    overflow: hidden;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-event-card:hover .event-img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* Fallback gradient if no image */
.placeholder-icon {
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #FFF3E0, #FFE082);
}

/* Floating Date Badge */
.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    padding: 8px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--buds-navy, #2c3e50);
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff4757;
    text-transform: uppercase;
    margin-top: 3px;
}

.event-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-content h3 {
    font-family: 'Fredoka One', sans-serif;
    color: var(--buds-navy, #2c3e50);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.event-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Empty State Styling */
.empty-state {
    background: #ffffff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

/* ============================================================
   BUDS GALLERY & LIGHTBOX MODULE
   ============================================================ */

/* Modern Filter Buttons */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: #ffffff;
    color: var(--buds-navy, #2c3e50);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: #E91E63;
    /* Brand Magenta */
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
    transform: translateY(-2px);
}

/* Perfect Aspect-Ratio Grid */
.modern-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.modern-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    /* Forces all images to be perfect rectangles */
    background: #eee;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Elegant Dark Overlay on Hover */
.modern-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-gallery-item:hover .modern-gallery-overlay {
    opacity: 1;
}

.overlay-content {
    color: #ffffff;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modern-gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.overlay-content p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Little zoom icon hint */
.zoom-icon {
    position: absolute;
    top: -45px;
    right: 0;
    background: #4CAF50;
    /* Brand Green */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- THE NEW LIGHTBOX --- */
.modern-lightbox {
    display: none;
    /* Hidden by default, your JS function toggle this */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    /* Nice modern glass effect */
}

/* Ensure your existing JS function adds this class to display it */
.modern-lightbox.active,
.lightbox[style*="display: block"],
.lightbox[style*="display: flex"] {
    display: flex !important;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    object-fit: contain;
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
}

.lightbox-caption h4 {
    margin: 0 0 5px 0;
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.5rem;
    color: #FFC107;
    /* Brand Yellow */
}

.lightbox-caption p {
    margin: 0;
    font-size: 1rem;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10000;
}

.close-lightbox:hover {
    transform: scale(1.1) rotate(90deg);
    color: #ff4757;
}

/* ============================================================
   BUDS ADMIN PANEL MODULE
   ============================================================ */

.admin-body {
    background-color: #f4f7f6;
    /* Very light grey for a clean workspace */
    margin: 0;
    font-family: 'Nunito', sans-serif;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Modern Dark Sidebar */
.admin-sidebar {
    width: 260px;
    background: #1e293b;
    /* Deep Slate/Navy */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 20;
}

.sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.sidebar-brand img {
    width: 40px;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
}

.sidebar-nav {
    padding: 20px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-section {
    padding: 10px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-left-color: #ff4757;
    /* Brand Magenta accent */
}

/* Notification Badge */
.badge-danger {
    background: #ff4757;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: auto;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff4757;
    color: #ffffff;
}

/* Main Area & Topbar */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.admin-topbar {
    background: #ffffff;
    padding: 0 30px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.page-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--buds-navy, #2c3e50);
    font-family: 'Fredoka One', sans-serif;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.date-display {
    font-weight: 600;
    color: #64748b;
    font-size: 0.95rem;
}

.view-site-btn {
    background: #E8F5E9;
    color: #4CAF50;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-site-btn:hover {
    background: #4CAF50;
    color: #ffffff;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 2px solid #f1f5f9;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
}

.admin-name {
    font-weight: 700;
    color: var(--buds-navy, #2c3e50);
}

.admin-content-inner {
    padding: 30px;
    flex-grow: 1;
}

/* Mobile Admin Adjustments */
@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
        /* In a future step we can add a mobile hamburger toggle */
    }

    .hidden-mobile {
        display: none;
    }

    .admin-topbar {
        padding: 0 15px;
    }

    .admin-content-inner {
        padding: 15px;
    }
}

/* ============================================================
   BUDS ADMIN DASHBOARD FIXES
   ============================================================ */

/* Helper Classes */
.mb-4 {
    margin-bottom: 24px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.text-muted {
    color: #64748b;
}

.text-sm {
    font-size: 0.85rem;
}

.text-dark {
    color: #2c3e50;
}

.font-bold {
    font-weight: 700;
}

.ml-2 {
    margin-left: 8px;
}

.p-0 {
    padding: 0 !important;
}

/* Dashboard Grid Layout (Fixes Overlap) */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.admin-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-family: 'Fredoka One', sans-serif;
    color: #2c3e50;
    line-height: 1;
}

.stat-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Specific Top Borders */
.border-top-magenta {
    border-top: 4px solid #E91E63;
}

.border-top-orange {
    border-top: 4px solid #FF9800;
}

.border-top-green {
    border-top: 4px solid #4CAF50;
}

.border-top-blue {
    border-top: 4px solid #2196F3;
}

.border-top-red {
    border-top: 4px solid #ff4757;
}

.border-left-orange {
    border-left: 3px solid #FF9800 !important;
}

.border-left-green {
    border-left: 3px solid #4CAF50 !important;
}

.border-left-red {
    border-left: 3px solid #ff4757 !important;
}

/* Text & BG Colors */
.text-red {
    color: #ff4757;
}

.bg-red-light {
    background: #ffebee;
}

/* Panels */
.admin-panel-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-header h3 {
    margin: 0;
    font-family: 'Fredoka One', sans-serif;
    color: #2c3e50;
    font-size: 1.2rem;
}

.panel-body {
    padding: 20px;
}

/* Quick Actions */
.quick-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.qa-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 50px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.qa-btn:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.position-relative {
    position: relative;
}

.qa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

/* Content Split */
.admin-content-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

/* Buttons */
.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 6px 15px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #f1f5f9;
    color: #2c3e50;
}

/* Timeline */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #ccc;
    /* Default, overridden inline */
}

/* Empty States */
.empty-state-panel {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state-panel i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

.empty-state-panel.small {
    padding: 20px;
}

.empty-state-panel.small i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Responsive adjustments for Dashboard */
@media (max-width: 1024px) {
    .admin-content-split {
        grid-template-columns: 1fr;
    }
}

/* --- BUDS HERO ALIGNMENT FIX --- */

/* --- BUDS HERO ALIGNMENT & SLIDER FIX --- */

.hero-slider {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 600px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #2c3e50 !important;
    overflow: hidden !important;
    /* Keeps slides contained */
}

.slide-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    text-align: center;

    /* Crossfade Animation Magic */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

/* This class is toggled by the Javascript engine */
.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-floating-stats {
    position: absolute !important;
    bottom: -40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 900px !important;
    z-index: 10 !important;
    margin-top: 0 !important;
}

.features.section-padding {
    padding-top: 80px !important;
}

/* ============================================================
   BUDS ADMIN MODALS & BUTTONS
   ============================================================ */

/* Modern Modal Container */
.modal-content-modern {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content-modern {
    transform: translateY(0);
}

.modal-header {
    background: #f8fafc;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.25rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff4757;
}

/* Action Icon Buttons for Tables */
.admin-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    /* for anchor tags */
}

.edit-btn {
    background: #e0f2fe;
    color: #0ea5e9;
}

.edit-btn:hover {
    background: #0ea5e9;
    color: #ffffff;
}

.delete-btn {
    background: #ffebee;
    color: #ff4757;
}

.delete-btn:hover {
    background: #ff4757;
    color: #ffffff;
}

/* --- ADMIN LAYOUT OVERLAP FIX --- */

.admin-wrapper {
    display: block !important;
}

.admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
}

.admin-main {
    margin-left: 260px !important;
    /* Pushes all content to the right of the sidebar */
    width: calc(100% - 260px) !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* --- PREMIUM HERO TITLE STYLING --- */


/* Optional: Make the badge pop more to match */


/* --- PREMIUM HERO TITLE OVERRIDE --- */
.hero-content h1 {
    color: #FFC107 !important;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.7) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    /* This physically forces the gap to shrink */
    letter-spacing: 1px !important;
    display: block !important;
    margin-bottom: 20px !important;
}

/* --- UNIFIED CLASSY SIGNATURE SUBTITLE --- */
.hero-badge {
    font-family: 'Great Vibes', cursive !important;
    font-size: 3rem !important;
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.8) !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: none !important;
    padding: 0 !important;
    margin-top: -15px !important;
    margin-bottom: 35px !important;
    display: inline-block !important;
}