/* ============================================
   NYANGAO SECONDARY SCHOOL - PROFESSIONAL CSS
   COLORS: Dark Navy (#040720) & Red (#dc2626)
   ============================================ */

:root {
    --dark-navy: #040720;
    --dark-navy-light: #0a1035;
    --dark-navy-dark: #020318;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-light: #ef4444;
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --gray: #6b7280;
    --dark: #1f2937;
    
    --gradient-primary: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-navy-light) 100%);
    --gradient-red: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    color: var(--dark-navy);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--red);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ========== READ MORE LINKS - RED COLOR ========== */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc2626 !important;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.read-more-link:hover {
    color: #b91c1c !important;
    text-decoration: underline !important;
    background: transparent !important;
    border: none !important;
    transform: translateX(3px);
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--dark-navy);
    padding: 0.8rem 0;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: var(--dark-navy-dark);
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text .school-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.brand-text .school-tagline {
    font-size: 0.7rem;
    color: var(--red-light);
    letter-spacing: 0.5px;
}

.navbar-nav {
    gap: 0.2rem;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--red);
    color: var(--white) !important;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 5px;
    margin-left: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-xl);
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 5px 14px;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 0.75rem;
    transition: var(--transition-fast);
    cursor: pointer;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
}

.lang-btn.active {
    background: var(--red);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: var(--red-light);
    color: var(--white);
}

/* Hamburger Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========== PARENT PORTAL BUTTON IN NAVBAR ========== */
.navbar .btn-parent-portal {
    background: var(--red);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    border: none;
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
}

.navbar .btn-parent-portal:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
    text-decoration: none !important;
}

.navbar .btn-parent-portal i {
    margin-right: 6px;
}

@media (max-width: 991px) {
    .navbar .btn-parent-portal {
        display: inline-block;
        margin-top: 0.5rem;
        margin-left: 0;
        text-align: center;
        width: auto;
        text-decoration: none !important;
    }
}

/* ========== HERO SECTION - STATIC CONTENT, SLIDING BACKGROUND ========== */
.hero-slider-static {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.swiper-hero {
    width: 100%;
    height: 100%;
}

.swiper-slide-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.swiper-slide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, rgba(4, 7, 32, 0.92) 0%, rgba(4, 7, 32, 0.8) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content-static {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;
    width: 100%;
    padding: 0 40px;
}

.container-static {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.hero-text-static {
    max-width: 550px;
}

.hero-text-static .pre-title {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #dc2626;
    margin-bottom: 1rem;
    display: block;
}

.hero-text-static h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 1rem;
}

.hero-text-static h1 span {
    color: #dc2626;
}

.hero-text-static p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 90%;
}

/* Buttons */
.btn-primary-static {
    background: #dc2626;
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    margin-right: 1rem;
}

.btn-primary-static:hover {
    background: #b91c1c;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220,38,38,0.3);
}

.btn-outline-static {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.5);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline-static:hover {
    border-color: #dc2626;
    background: rgba(220,38,38,0.1);
    transform: translateY(-3px);
}

/* Particles */
.particle {
    position: absolute;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

/* Swiper Navigation */
.swiper-button-next-static,
.swiper-button-prev-static {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-button-next-static:hover,
.swiper-button-prev-static:hover {
    background: #dc2626;
}

.swiper-button-next-static:after,
.swiper-button-prev-static:after {
    font-size: 1rem;
    color: white;
}

.swiper-pagination-static {
    bottom: 30px !important;
    z-index: 10;
}

.swiper-pagination-static .swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.swiper-pagination-static .swiper-pagination-bullet-active {
    background: #dc2626;
    opacity: 1;
}

/* ========== PROGRAMS SECTION ========== */
.programs-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.program-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.program-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark-navy);
}

.program-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========== STATS SECTION ========== */
.stats-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), #f59e0b, var(--red));
}

.stat-card-professional {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-card-professional:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.1);
    border-color: rgba(220,38,38,0.3);
}

.stat-icon-professional {
    width: 70px;
    height: 70px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 25px rgba(220,38,38,0.3);
}

.stat-number-professional {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label-professional {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== NEWS SECTION ========== */
.news-section {
    padding: 5rem 0;
    background: var(--white);
}

.news-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-image:hover img {
    transform: scale(1.05);
}

.news-list {
    padding-left: 2rem;
}

.news-item-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border-left: 4px solid var(--red);
}

.news-item-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    font-size: 0.75rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0.5rem 0;
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.news-read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
}

.news-read-more:hover {
    text-decoration: underline;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    padding: 5rem 0;
    background: var(--white);
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(220,38,38,0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark-navy);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--gradient-red);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: white;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    color: white;
}

.cta-section .btn {
    background: white;
    color: var(--red);
    padding: 12px 35px;
    font-weight: 700;
    border-radius: 50px;
    position: relative;
    z-index: 1;
}

.cta-section .btn:hover {
    background: var(--dark-navy);
    color: white;
    transform: translateY(-3px);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-navy);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: var(--red-light);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--red);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--red-light);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.7rem;
    color: #aaa;
    font-size: 0.85rem;
}

.footer-contact i {
    width: 28px;
    color: var(--red-light);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--red);
    transform: translateY(-3px);
}

.newsletter-form .input-group {
    display: flex;
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    border-radius: var(--border-radius-xl) 0 0 var(--border-radius-xl);
    font-size: 0.85rem;
    padding: 10px 15px;
}

.newsletter-form .form-control::placeholder {
    color: #aaa;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) 0;
    background: var(--red);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #aaa;
    font-size: 0.75rem;
}

/* ========== GALLERY PAGE STYLES ========== */
.gallery-header {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-navy-light) 100%);
    padding: 3rem 0;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.gallery-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--dark-navy);
    color: var(--dark-navy);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--dark-navy);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 0 0 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(4, 7, 32, 0.95), rgba(4, 7, 32, 0.7));
    color: white;
    padding: 1.2rem;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.75rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.gallery-overlay .gallery-category {
    display: inline-block;
    background: var(--red);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-top: 0.5rem;
}

.gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.gallery-item:hover .gallery-zoom {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-zoom i {
    color: white;
    font-size: 1.2rem;
}

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: var(--red-dark);
}

.lightbox-close i {
    color: white;
    font-size: 1.2rem;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--red);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev i,
.lightbox-next i {
    color: white;
    font-size: 1.5rem;
}

.empty-gallery {
    text-align: center;
    padding: 4rem;
    background: var(--light-gray);
    border-radius: 20px;
}

.empty-gallery i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.empty-gallery h3 {
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
}

.empty-gallery p {
    color: var(--gray);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== HOME GALLERY SECTION ========== */
.home-gallery-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.home-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.home-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.home-gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.home-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-gallery-item:hover .home-gallery-image img {
    transform: scale(1.1);
}

.home-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-gallery-item:hover .home-gallery-overlay {
    opacity: 1;
}

.home-gallery-overlay i {
    color: white;
    font-size: 2rem;
    background: var(--red);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.home-gallery-item:hover .home-gallery-overlay i {
    transform: scale(1.1);
}

.home-gallery-caption {
    padding: 0.8rem 1rem;
    background: white;
    text-align: center;
}

.home-gallery-caption p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--dark-navy);
    font-weight: 500;
}

.btn-view-gallery {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-gallery:hover {
    background: var(--red-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220,38,38,0.3);
}

.btn-view-gallery i {
    transition: transform 0.3s ease;
}

.btn-view-gallery:hover i {
    transform: translateX(5px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--dark-navy);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem;
    }
    
    .lang-toggle {
        margin: 0.8rem 0 0;
        display: inline-block;
    }
    
    .hero-slider-static {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-text-static h1 {
        font-size: 2rem;
    }
    
    .hero-text-static p {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .news-list {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .stat-card-professional {
        margin-bottom: 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-static {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-text-static h1 {
        font-size: 1.5rem;
    }
    
    .hero-text-static .btn-primary-static,
    .hero-text-static .btn-outline-static {
        padding: 8px 18px;
        font-size: 0.8rem;
        margin-right: 0.5rem;
    }
    
    .swiper-slide-hero::before {
        width: 100%;
        background: linear-gradient(90deg, rgba(4,7,32,0.92) 0%, rgba(4,7,32,0.85) 100%);
    }
    
    .feature-card,
    .program-card {
        padding: 1.5rem;
    }
    
    .brand-text .school-name {
        font-size: 1rem;
    }
    
    .brand-text .school-tagline {
        font-size: 0.6rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .stat-number-professional {
        font-size: 1.8rem;
    }
    
    .home-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
    
    .lightbox-close {
        top: -50px;
        right: -20px;
    }
}

@media (max-width: 576px) {
    .home-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
}

/* ========== ANIMATIONS & UTILITIES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-border-custom {
    width: 45px;
    height: 45px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--red-dark);
}

.page-header {
    background: var(--dark-navy);
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.scroll-target {
    scroll-margin-top: 80px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table-responsive table {
    min-width: 600px;
    width: 100%;
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
}