/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    max-width: 400px;
    margin: auto;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

/* Dialog Styles */
dialog {
    border: none;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    max-width: 400px;
    width: 90%;
}

dialog::backdrop {
    background: rgba(0,0,0,0.5);
}

dialog form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

dialog label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 500;
}

dialog input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.dialog-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.dialog-actions button[type="submit"] {
    background: var(--primary-color);
    color: white;
}

.dialog-actions button[type="button"] {
    background: #6c757d;
    color: white;
}
/* Stats Section Background Image */
.stats-section {
    background: url('../images/background-chooseus.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Ensure logo is left-aligned in header */
.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 0;
    padding-left: 0;
    width: auto;
    overflow: visible;
}
/* Global Styles */
:root {
    --primary-color: #c11228;
    --secondary-color: #1c242c;
    --accent-color: #666666;
    --dark-color: #040611;
    --light-color: #ffffff;
    --light-gray-color: #edecec;
    --gray-color: #edecec;
    --text-color: #1c242c;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-outline:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 28px;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 16px;
    color: #666;
}

.section-header.light h2,
.section-header.light p {
    color: var(--light-color);
}

.section-header.light h2::after {
    background: var(--light-color);
}

.center-btn {
    text-align: center;
    margin-top: 30px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: 14px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section with Slider */
.hero {
    padding: 0;
    margin-top: 80px;
}

.hero-slider {
    height: 80vh;
    min-height: 600px;
}

.hero .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 50%;
    padding: 0 50px;
}

.slide-content h2 {
    font-size: 48px;
    color: var(--light-color);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 18px;
    color: var(--light-color);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.slide-content .btn-primary,
.slide-content .btn-secondary {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Interactive courses layout: left filters, right list (moved from courses-interactive.html) */
.interactive-container{padding:60px 20px}
.interactive-inner{display:grid;grid-template-columns:280px 1fr;gap:30px;align-items:start}
.filter-panel{background:var(--light-color);padding:20px;border-radius:12px;box-shadow:var(--box-shadow)}
.filter-panel h4{margin-top:0;margin-bottom:12px}
.filter-group{margin-bottom:18px}
.filter-group label{display:block;margin-bottom:8px;font-weight:600}
.filter-input, .filter-select{width:100%;padding:10px;border-radius:8px;border:1px solid #e6e6e6}
.courses-list-compact{display:grid;grid-template-columns:1fr;gap:18px}
.course-card-compact{display:flex;gap:16px;align-items:flex-start;padding:16px;background:var(--light-color);border-radius:12px;box-shadow:var(--box-shadow);cursor:pointer}
.course-card-compact:hover{transform:translateY(-6px)}
.card-thumb{width:140px;height:90px;border-radius:8px;overflow:hidden;flex:0 0 140px}
.card-thumb img{width:100%;height:100%;object-fit:cover}
.card-body h3{margin:0 0 8px 0;font-size:18px}
.card-body p{margin:0;color:#666}
.card-meta{display:flex;gap:12px;margin-top:8px;font-size:13px;color:#666}
.empty-state{padding:40px;text-align:center;color:#666}
@media(max-width:900px){.interactive-inner{grid-template-columns:1fr}.filter-panel{order:2}}

/* Accessibility: make course cards focusable with visible outline */
.course-card-compact:focus{outline:3px solid rgba(193,18,40,0.2);outline-offset:4px}
.course-card-compact:focus .card-thumb img{transform:scale(1.02)}

/* Modal close button contrast and focus state */
.course-details-modal .close-modal{background:rgba(0,0,0,0.7);color:var(--light-color)}
.course-details-modal .close-modal:focus{outline:3px solid rgba(0,0,0,0.1);outline-offset:3px}

/* Modal styles for interactive page (reuse existing modal patterns) */
.course-details-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.8);z-index:1000;overflow-y:auto;padding:50px 0}
.course-details-modal .modal-content{background:var(--light-color);width:90%;max-width:900px;margin:0 auto;border-radius:var(--border-radius);overflow:hidden;position:relative}
.course-details-modal .close-modal{position:absolute;top:16px;right:16px;font-size:20px;color:var(--light-color);background:rgba(0,0,0,0.5);width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}
.course-details-modal .modal-image{height:300px}
.course-details-modal .modal-image img{width:100%;height:100%;object-fit:cover}
.course-details-modal .modal-details{padding:24px}
.course-details-modal .modal-details h2{font-size:24px;margin-bottom:12px}
.course-details-modal .modal-info{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px;color:#666}
.course-details-modal .modal-features ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.course-details-modal .modal-curriculum .curriculum-item{background:var(--gray-color);padding:10px;border-radius:8px;margin-bottom:8px}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.hero .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--light-color);
    opacity: 0.5;
}

.hero .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

.hero .swiper-button-next,
.hero .swiper-button-prev {
    color: var(--light-color);
}

/* Featured Courses Section */
.featured-courses {
    background-color: var(--gray-color);
}

/* Process Timeline Section */
.process-section {
    background-color: var(--light-color);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    display: flex;
    /* keep everything on a single row; allow horizontal scroll on small viewports */
    /* allow wrapping so items can flow to new rows instead of forcing scroll */
    flex-wrap: wrap;
    /* center items on large screens and keep even spacing */
    justify-content: center;
    gap: 24px;
    align-items: flex-start;
    padding: 0 12px; /* small side padding so first/last items aren't flush to edge */
}

.timeline::before {
    content: '';
    position: absolute;
    /* span the full available width behind the icons */
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    /* align the line with the center of the timeline icons */
    top: 54px;
    z-index: 1;
}

.timeline-item {
    /* make items flexible so they can shrink and wrap to new rows */
    flex: 1 1 160px; /* grow/shrink with a base width */
    min-width: 120px; /* keep cards readable on very narrow screens */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
}

/* On very small screens, allow wrapping so content remains readable */
@media (max-width: 600px) {
    .timeline {
        /* stack items on narrow screens for readability */
        justify-content: center;
    }
    .timeline-item {
        flex: 1 1 100%;
    }
    .timeline::before {
        /* keep the line aligned with the icons */
        top: 54px;
    }
}

.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #e02a44);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    z-index: 2;
    position: relative;
    box-shadow: 0 5px 15px rgba(193, 18, 40, 0.3);
}

.timeline-icon i {
    font-size: 32px;
    color: var(--light-color);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.timeline-content p {
    color: #666;
    font-size: 14px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 20px;
}

.course-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.course-content p {
    color: #666;
    margin-bottom: 20px;
}

/* Why Choose Us Preview Section */
.why-choose-us-preview {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/why-choose-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-card .icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--gray-color);
}

.testimonial-slider {
    padding-bottom: 50px;
}

.testimonial-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card .quote {
    font-size: 30px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.student-info {
    display: flex;
    align-items: center;
}

.student-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.student-info h4 {
    margin-bottom: 5px;
}

.student-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Clients Preview Section */
.clients-preview {
    background-color: var(--light-color);
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.logo-item {
    flex: 0 0 150px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact {
    background-color: var(--gray-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info .info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info .info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-form form {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
}

.form-status.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

footer h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: var(--light-color);
    font-size: 14px;
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.newsletter-form .form-group {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 14px;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--light-color);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .slide-content {
        width: 70%;
        padding: 0 30px;
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 10px;
    }
    
    .feature-card .icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .slide-content {
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .hero-slider {
        height: 70vh;
    }
    
    .timeline::before {
        width: 100%;
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .timeline-item:last-child {
        margin-bottom: 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 80%;
        margin-bottom: 10px;
    }
}

/* Moments Gallery Styles */
.moments-gallery-section { background: #f7f8fa; padding: 60px 0; }
.moments-gallery-section .section-header h2 { color: #111; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.gallery-item { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, box-shadow .35s ease; aspect-ratio: 4/3; }
.gallery-item:hover img { transform: scale(1.06); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { 
    .gallery-grid { 
        grid-template-columns: 1fr; 
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .section-header p {
        font-size: 14px;
    }
}

/* Lightweight lightbox styles */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 92%; max-height: 92%; background: #fff; border-radius: 10px; overflow: hidden; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.lightbox-content img { width: 100%; height: auto; display: block; }
.lightbox-caption { padding: 12px 16px; font-size: 1rem; color: #222; }
.lightbox-close { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; }

/* Focus outlines for accessibility */
.gallery-item img:focus { outline: 3px solid rgba(193,18,40,0.25); outline-offset: 3px; }
.lightbox-close:focus { outline: 3px solid rgba(0,0,0,0.35); }

/* Moments Tabs styles */
.moments-gallery-section { background:#f7f8fa; padding:60px 0; }

/* Lightbox navigation buttons */
.lightbox-prev,
.lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.45); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 22px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:focus, .lightbox-next:focus { outline: 3px solid rgba(255,255,255,0.18); }

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 24px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .hero-slider {
        height: 60vh;
        min-height: 500px;
    }
    
    .client-logos {
        gap: 20px;
    }
    
    .logo-item {
        flex: 0 0 120px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
    }
    
    .timeline-icon i {
        font-size: 24px;
    }
    
    .timeline::before {
        top: 30px;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Lab Login Styles */
.btn-lab-login {
    background: linear-gradient(135deg, #2c3e50, #3498db) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    font-size: 14px;
}

.btn-lab-login:hover {
    background: linear-gradient(135deg, #3498db, #2c3e50) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-lab {
    background: linear-gradient(135deg, #34495e, #2980b9);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(41, 128, 185, 0.3);
}

.btn-lab:hover {
    background: linear-gradient(135deg, #2980b9, #34495e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
    color: white;
}

/* Lab Login Modal */
.lab-login-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.lab-login-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #edecec);
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.lab-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.lab-login-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
}

.lab-login-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.lab-form-group {
    margin-bottom: 20px;
}

.lab-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.lab-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lab-form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.lab-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lab-login-btn:hover {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.lab-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #bdc3c7;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lab-close:hover {
    color: #e74c3c;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Enhancement Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--light-color);
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    min-width: 300px;
    box-shadow: var(--box-shadow);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-info {
    background: #666666;
}

.notification-success {
    background: #1c242c;
}

.notification-warning {
    background: #1c242c;
}

.notification-error {
    background: var(--primary-color);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-effect 0.3s ease;
}

@keyframes ripple-effect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--light-color);
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dashboard Mobile Optimizations */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .section-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .data-table {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Form Enhancement Styles */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.form-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.form-modal.active .modal-content {
    transform: scale(1);
}

/* Chart Container Enhancements */
.chart-container canvas {
    max-height: 300px;
}

/* Status Badge Enhancements */
.status-badge {
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.status-badge:hover::before {
    left: 100%;
}

/* Enhanced Button Animations */
.btn-primary:active,
.btn-secondary:active,
.action-btn:active {
    transform: translateY(1px);
}

/* Sidebar Enhancement for Mobile */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 320px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
}