/* ============================================
   HAPPY KIDS SCHOOL - COMPLETE WEBSITE STYLES
   ============================================ */

:root {
    /* New Color Scheme */
    --primary-dark: #0B1A4A;        /* Headings / Navbar */
    --primary-yellow: #FBC02D;     /* Buttons / Highlights */
    --dark-yellow: #D4AF37;         /* Dark Yellow / Gold */
    --primary-blue: #1AA3D8;       /* Backgrounds / Sections */
    --accent-green: #8BC34A;       /* Icons / Illustrations */
    --accent-pink: #E91E63;        /* Icons / Illustrations */
    
    /* Legacy variables for compatibility */
    --logo-dark-blue: #0B1A4A;
    --logo-light-blue: #1AA3D8;
    --logo-lime-green: #8BC34A;
    --logo-yellow: #FBC02D;
    --logo-orange: #FBC02D;
    --logo-pink: #E91E63;
    
    /* Standard colors */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #0B1A4A;
    --light-text: #666666;
    --border-color: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Optimize image loading */
img[loading="lazy"] {
    content-visibility: auto;
}

/* Prevent layout shift */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

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

/* ============================================
   TOP BANNER
   ============================================ */

.top-banner {
    background: transparent;
    color: var(--dark-yellow);
    padding: 0.8rem 0;
    font-size: 0.875rem;
    position: relative;
    z-index: 1001;
}

.top-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.top-banner-logo {
    display: flex;
    align-items: center;
}

.top-banner-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.top-banner-logo-image {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.top-banner-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-banner-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-yellow);
}

.top-banner-item i {
    font-size: 0.9rem;
    color: var(--dark-yellow);
}

.top-banner-item a {
    color: var(--dark-yellow);
    text-decoration: none;
    transition: color 0.3s;
}

.top-banner-item a:hover {
    color: var(--primary-yellow);
}

.top-banner-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-banner-social a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-yellow);
    text-decoration: none;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--dark-yellow);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.top-banner-social a:hover {
    background: var(--dark-yellow);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.navbar .logo {
    color: var(--white);
}

.navbar .logo:hover {
    color: var(--primary-yellow);
}

.navbar .nav-menu a {
    color: var(--white);
}

.navbar .nav-menu a:hover,
.navbar .nav-menu a.active {
    color: var(--primary-yellow);
}

.navbar .nav-menu a.active::after {
    background: var(--primary-yellow);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Logo removed from navbar - now in top banner */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-yellow);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-yellow);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    margin-top: 10px;
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: var(--primary-yellow);
    color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-modern {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    max-height: 900px;
    overflow: hidden;
}

.hero-slider-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slider-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11, 26, 74, 0.85) 0%,
        rgba(11, 26, 74, 0.65) 40%,
        rgba(11, 26, 74, 0.2) 70%,
        rgba(11, 26, 74, 0) 100%
    );
    z-index: 2;
}

.hero-slider-wrapper .container {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 80px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content-modern {
    max-width: 700px;
    color: #fff;
}

.hero-school-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #f1f1f1;
    margin-bottom: 35px;
    max-width: 620px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.hero-btn {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--primary-dark);
    padding: 14px 34px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    background: #f9b800;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 192, 45, 0.4);
}

.hero-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 6;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    transform: scale(1.3);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ============================================
   HIGHLIGHTS SECTION
   ============================================ */

.highlights-modern {
    padding: 5rem 0;
    background: var(--white);
}

.highlights-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.highlight-item-modern {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s;
}

.highlight-item-modern:hover {
    transform: translateY(-5px);
}

.highlight-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 2rem;
}

.highlight-item-modern h3 {
    color: var(--dark-gray);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.highlight-item-modern p {
    color: var(--light-text);
}

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

.about-modern-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-content-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-description-modern {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.about-stats-modern {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item-modern {
    text-align: center;
}

.stat-number-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.stat-label-modern {
    color: var(--light-text);
    font-weight: 600;
}

.btn-modern {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-modern {
    background: var(--primary-yellow);
    color: var(--primary-dark);
}

.btn-primary-modern:hover {
    background: #f9b800;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.about-image-modern {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.about-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */

.programs-modern-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.programs-modern-section::before {
    content: '';
    position: absolute;
    top: 0;
        left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--accent-green), var(--accent-pink));
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle-modern {
        font-size: 1.2rem;
    color: var(--light-text);
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.programs-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.program-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border-top: 4px solid transparent;
}

.program-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--accent-green));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.program-card-modern:hover::before {
    transform: scaleX(1);
}

.program-card-nursery {
    border-top-color: var(--accent-pink);
}

.program-card-primary {
    border-top-color: var(--accent-green);
}

.program-card-cambridge {
    border-top-color: var(--primary-yellow);
}

.program-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.program-icon-wrapper {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
}

.program-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
}

.program-card-nursery .program-icon {
    background: linear-gradient(135deg, var(--accent-pink), #f48fb1);
    color: var(--white);
}

.program-card-primary .program-icon {
    background: linear-gradient(135deg, var(--accent-green), #aed581);
    color: var(--white);
}

.program-card-cambridge .program-icon {
    background: linear-gradient(135deg, var(--primary-yellow), #ffd54f);
    color: var(--primary-dark);
}

.program-icon i {
    font-size: 2rem;
}

.program-card-modern:hover .program-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.program-image-modern {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.program-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card-modern:hover .program-image-modern img {
    transform: scale(1.15);
}

.program-badge-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-yellow);
    color: var(--primary-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.4);
    letter-spacing: 0.5px;
}

.program-content-modern {
    padding: 2.5rem;
    position: relative;
}

.program-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.program-content-modern h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    flex: 1;
}

.program-age-badge {
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-green));
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(251, 192, 45, 0.3);
}

.program-description {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.program-features-modern {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.program-features-modern li {
    padding: 0.75rem 0;
    color: var(--light-text);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    transition: transform 0.3s;
}

.program-card-modern:hover .program-features-modern li {
    transform: translateX(5px);
}

.program-features-modern li:nth-child(1) {
    transition-delay: 0.05s;
}

.program-features-modern li:nth-child(2) {
    transition-delay: 0.1s;
}

.program-features-modern li:nth-child(3) {
    transition-delay: 0.15s;
}

.program-features-modern i {
    color: var(--primary-yellow);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.program-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-green));
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.3);
}

.program-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(251, 192, 45, 0.4);
    gap: 1rem;
}

.program-cta-btn i {
    transition: transform 0.3s;
}

.program-cta-btn:hover i {
    transform: translateX(5px);
}

.program-overlay-modern {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 26, 74, 0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.program-card-modern:hover .program-overlay-modern {
    opacity: 1;
}

.btn-program-modern {
    background: var(--white);
    color: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-program-modern:hover {
    background: var(--primary-yellow);
    transform: scale(1.05);
}

/* ============================================
   BRANCHES SECTION
   ============================================ */

.branches-modern-section {
    padding: 5rem 0;
    background: var(--white);
}

.branches-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.branch-card-modern {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.branch-card-modern:hover {
    transform: translateY(-5px);
}

.branch-image-modern {
    height: 250px;
    overflow: hidden;
}

.branch-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-content-modern {
    padding: 2rem;
}

.branch-content-modern h3 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.branch-content-modern p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.branch-info-modern {
    margin-bottom: 1.5rem;
}

.branch-info-modern p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.branch-info-modern i {
    color: var(--primary-yellow);
    margin-right: 0.5rem;
}

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

.btn-outline-modern:hover {
    background: var(--primary-yellow);
    color: var(--primary-dark);
}

/* ============================================
   PARTNERS SECTION
   ============================================ */

.partners-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.partners-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.partners-carousel-container {
    overflow: hidden;
    width: 100%;
}

.partners-carousel-track {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    animation: slideLeft 25s linear infinite;
    will-change: transform;
    flex-wrap: nowrap;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.partners-carousel-track:hover {
    animation-play-state: paused;
}

.partner-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-yellow);
}

.partner-logo-wrapper {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
}

.partner-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-item h3 {
    display: none;
}

.nesa-logo {
    position: relative;
}

.nesa-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 10px;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 968px) {
    .partner-item {
        min-width: 180px;
        max-width: 180px;
        padding: 0.8rem;
    }
    
    .partner-logo-wrapper {
        height: 50px;
    }
    
    .partner-logo {
        max-height: 50px;
    }
    
    .partners-carousel-track {
        animation-duration: 20s;
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .partner-item {
        min-width: 150px;
        max-width: 150px;
        padding: 0.8rem;
    }
    
    .partner-logo-wrapper {
        height: 45px;
    }
    
    .partner-logo {
        max-height: 45px;
    }
    
    .partners-carousel-track {
        animation-duration: 18s;
        gap: 1rem;
    }
}

/* ============================================
   NEWS CAROUSEL SECTION
   ============================================ */

.news-carousel-section {
    padding: 3.5rem 0;
    background: #2D8659;
    position: relative;
    overflow: hidden;
}

.news-carousel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #2D8659;
}

.geometric-shape {
    position: absolute;
    opacity: 0.15;
    z-index: 0;
}

.shape-top-left {
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: #8BC34A;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform: rotate(45deg);
}

.shape-bottom-right {
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: #8BC34A;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transform: rotate(45deg);
}

.shape-middle {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 200px;
    height: 200px;
    background: #8BC34A;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.section-header-carousel {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.section-title-carousel {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.title-bar-carousel {
    width: 80px;
    height: 4px;
    background: var(--primary-yellow);
    margin: 0 auto;
    border-radius: 2px;
}

.news-carousel-wrapper-new {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-slider-container {
    overflow: hidden;
    border-radius: 0;
    margin: 0 80px;
}

.carousel-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide-item {
    min-width: 100%;
}

.carousel-slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: transparent;
    padding: 1.5rem 0;
    align-items: center;
}

.carousel-slide-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-slide-text h3 {
    font-size: 1.9rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.carousel-slide-text p {
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    opacity: 0.95;
}

.carousel-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    transition: all 0.3s;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.carousel-btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    gap: 1rem;
}

.carousel-btn-more i {
    transition: transform 0.3s;
}

.carousel-btn-more:hover i {
    transform: translateX(5px);
}

.carousel-slide-img {
    height: 380px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.carousel-btn-nav:hover {
    background: var(--primary-yellow);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.carousel-dot.active {
    background: var(--primary-yellow);
    width: 30px;
    transform: scale(1);
}

/* ============================================
   SCHOOL LIFE SECTION
   ============================================ */

.school-life-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.school-life-header {
    text-align: center;
    margin-bottom: 3rem;
}

.school-life-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.school-life-subtitle {
    color: var(--light-text);
    font-size: 1.2rem;
}

.school-life-carousel-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.school-life-carousel-container {
    overflow: hidden;
    border-radius: 15px;
}

.school-life-track {
    display: flex;
    transition: transform 0.5s ease;
}

.school-life-slide {
    min-width: 33.333%;
    padding: 0 10px;
}

.school-life-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.school-life-card:hover {
    transform: translateY(-5px);
}

.school-life-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.school-life-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-life-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.school-life-card:hover .school-life-overlay {
    opacity: 1;
}

.school-life-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.school-life-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.school-life-prev {
    left: -25px;
}

.school-life-next {
    right: -25px;
}

.school-life-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.school-life-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.school-life-dot.active {
    background: var(--primary-yellow);
    transform: scale(1.3);
}

.btn-school-life {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-yellow);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-school-life:hover {
    background: #f9b800;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.school-life-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-modern-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: var(--white);
    text-align: center;
}

.cta-content-modern h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content-modern p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons-modern {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary-modern {
    background: var(--primary-yellow);
    color: var(--primary-dark);
}

.btn-cta-primary-modern:hover {
    background: #f9b800;
    color: var(--primary-dark);
}

.btn-cta-secondary-modern {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-cta-secondary-modern:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

.whatsapp-float i {
    color: var(--white);
    font-size: 32px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }

    .nav-wrapper {
        justify-content: space-between;
        position: relative;
        width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 70px 2rem 2rem;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        list-style: none;
        margin: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-menu a {
        color: var(--white);
        display: block;
        padding: 1rem;
        width: 100%;
        border-radius: 5px;
        transition: background 0.3s;
        font-size: 1rem;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--primary-yellow);
        color: var(--primary-dark);
    }

    .nav-menu a.active::after {
        display: none;
    }
    
    .dropdown {
        position: relative;
    }
    
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown > a i {
        transition: transform 0.3s;
    }
    
    .dropdown.active > a i {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        margin-left: 0;
        border: none;
        padding: 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .hero-slider-wrapper .container {
        padding: 0 30px;
    justify-content: center;
    }

    .about-content-modern {
        grid-template-columns: 1fr;
    }

    .carousel-slide-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-slider-container {
        margin: 0 60px;
    }
    
    .carousel-slide-img {
        height: 350px;
    }
    
    .carousel-slide-text h3 {
        font-size: 1.8rem;
    }

    .school-life-slide {
        min-width: 100%;
    }

    .highlights-grid-modern,
    .programs-grid-modern,
    .branches-grid-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .program-card-modern {
        max-width: 100%;
    }
    
    .program-icon-wrapper {
        top: 15px;
        left: 15px;
    }
    
    .program-icon {
        width: 60px;
        height: 60px;
    }
    
    .program-icon i {
        font-size: 1.5rem;
    }
    
    .program-content-modern {
        padding: 2rem;
    }
    
    .program-header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .program-content-modern h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-modern {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title-modern,
    .section-title-carousel {
        font-size: 2rem;
    }
}

/* ============================================
   PAGE HERO SECTIONS
   ============================================ */

.about-hero,
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-image: url('../images/B.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.about-hero-content,
.page-hero-content {
    position: relative;
    z-index: 2;
}

.about-hero-content h1,
.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.about-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

.mission-vision-section {
    padding: 5rem 0;
    background: var(--white);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.mission-vision-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.mission-vision-card:hover {
    transform: translateY(-10px);
}

.mission-vision-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 3rem;
}

.mission-vision-card h2 {
    color: var(--dark-gray);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mission-vision-card p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-content-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.about-text-content {
    animation: fadeInLeft 0.8s ease-out;
}

.section-heading {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--logo-dark-blue);
}

.about-feature-item i {
    color: var(--primary-yellow);
    font-size: 1.3rem;
}

.about-image-content {
    animation: fadeInRight 0.8s ease-out;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.about-image-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.values-section {
    padding: 5rem 0;
    background: var(--white);
}

.values-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-top: 0.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-yellow);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.8rem;
    transition: transform 0.3s;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.value-card p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 1rem;
}

.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.95;
}

.history-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.history-image {
    animation: fadeInLeft 0.8s ease-out;
}

.history-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.history-text {
    animation: fadeInRight 0.8s ease-out;
}

.history-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   BRANCHES PAGE STYLES
   ============================================ */

.section {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 3rem;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.branch-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.branch-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.branch-card-content {
    padding: 2rem;
}

.branch-card-content h3 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.branch-card-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.branch-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.branch-info i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.branch-info strong {
    color: var(--dark-gray);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: #f9b800;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 192, 45, 0.4);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--primary-dark);
}

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

/* ============================================
   NEWS PAGE STYLES
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card-content {
    padding: 2rem;
}

.news-card-date {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-card-content h3 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-card-content p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   GALLERY PAGE STYLES
   ============================================ */

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 2px solid transparent;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-yellow);
    color: var(--primary-dark);
    border-color: var(--primary-yellow);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-yellow);
    color: var(--primary-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    line-height: 1;
    padding: 0;
}

.lightbox-close:hover {
    background: var(--white);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-content img {
        max-height: 85vh;
    }

    .lightbox-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* ============================================
   PUBLICATIONS PAGE STYLES
   ============================================ */

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.publication-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border-left: 4px solid var(--primary-yellow);
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.publication-card h3 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.publication-card p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.1);
}

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

.contact-info {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 15px;
}

.contact-info h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item i {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-info-item strong {
    color: var(--dark-gray);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-info-item a {
    color: var(--primary-yellow);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   RESPONSIVE - ADDITIONAL
   ============================================ */

@media (max-width: 968px) {
    .about-hero-content h1,
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content-wrapper,
    .history-content {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .branches-grid,
    .news-grid,
    .publications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero,
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }

    .section {
        padding: 3rem 0;
    }

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

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.admin-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.admin-header h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.admin-nav a.active {
    background: var(--primary-yellow);
    color: var(--primary-dark);
}

.admin-nav a:last-child {
    background: rgba(255, 255, 255, 0.15);
}

.admin-nav a:last-child:hover {
    background: rgba(255, 0, 0, 0.2);
}

/* Admin Dashboard Cards */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-yellow);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.highlight-card i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.highlight-card h3 {
    color: var(--dark-gray);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.highlight-card p {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: var(--white);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--light-text);
}

.admin-table tbody tr:hover {
    background: var(--light-gray);
}

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

/* Admin Forms */
.admin-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-form h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="tel"],
.admin-form input[type="file"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.1);
}

.admin-form input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

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

/* Admin Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    padding: 2rem;
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
}

.login-box h2 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.login-box .form-group {
    margin-bottom: 1.5rem;
}

.login-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.login-box input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
        font-size: 1rem;
    transition: border-color 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.1);
}

.login-box .btn {
    width: 100%;
    padding: 0.875rem;
        font-size: 1.1rem;
    margin-top: 0.5rem;
    background: var(--primary-yellow);
    color: var(--primary-dark);
}

.login-box .btn:hover {
    background: #f9b800;
    color: var(--primary-dark);
}

/* Admin Gallery Grid */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    aspect-ratio: 1;
}

.admin-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.admin-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.admin-gallery-overlay h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.admin-gallery-overlay p {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.admin-gallery-actions {
    margin-top: 0.5rem;
}

.admin-gallery-actions a {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-gallery-actions a:hover {
    text-decoration: underline;
}

.admin-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.admin-gallery-item:hover {
    transform: translateY(-5px);
}

.admin-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.admin-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 1rem;
}

.admin-gallery-overlay h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.admin-gallery-overlay p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.admin-gallery-actions {
    margin-top: 0.5rem;
}

.admin-gallery-actions a {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-gallery-actions a:hover {
    text-decoration: underline;
}

/* Button Variants */
.btn-danger {
    background: #ef4444;
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.new {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.read {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.published {
    background: rgba(139, 195, 74, 0.2);
    color: #8BC34A;
}

.status-badge.draft {
    background: #f3f4f6;
    color: #374151;
}

/* Top Banner Responsive */
@media (max-width: 968px) {
    .top-banner-content {
        justify-content: center;
        text-align: center;
    }
    
    .top-banner-logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .top-banner-info {
        justify-content: center;
        gap: 1rem;
    }
    
    .top-banner-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 28px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }

    .top-banner {
        padding: 0.6rem 0;
        font-size: 0.75rem;
    }
    
    .top-banner-logo-image {
        height: 35px;
    }
    
    .top-banner-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .top-banner-item {
        justify-content: center;
    }
    
    .top-banner-social {
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Admin Responsive */
@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-nav a {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .admin-form {
        padding: 1.5rem;
    }

    .login-box {
        padding: 2rem;
    }
}
