
:root {
    --primary-color: #5a9149;
    --secondary-color: #ffd700;
    --accent-color: #27ae60;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --overlay-color: rgba(0, 0, 0, 0.9);
    --focus-outline: 2px solid var(--secondary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

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

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/culture-dance.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ed7022;
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Media Gallery Styles */
.media-gallery {
    padding: 2rem 0;
}

.media-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.toggle-buttons {
    display: inline-flex;
    position: relative;
    padding: 6px;
    background: #f1f3f5;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: calc(50% - 6px);
    background: #ed7022;
    border-radius: 50px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(237, 112, 34, 0.2);
    z-index: 1;
}

.toggle-btn {
    position: relative;
    background: transparent;
    color: #495057;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.4s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    gap: 8px;
}

.toggle-btn:hover {
    color: #ed7022;
}

.toggle-btn.active {
    color: var(--white);
    font-weight: 700;
}

.toggle-buttons:has(.toggle-btn.active:nth-child(2)) .toggle-slider,
.videos-active .toggle-slider {
    transform: translateX(100%);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: 40px;
}

.media-stats {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.media-container {
    width: 100%;
    margin: 0 auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.media-container.hidden {
    display: none;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    padding: 10px;
}

.media-item {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.media-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.video-item {
    cursor: default;
}

.video-item:hover {
    transform: translateY(-3px);
}

.video-item video {
    border-radius: 12px;
}

.video-item:hover video {
    transform: none;
}

/* Enhanced Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-color);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 95vh;
    animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-height: 95vh;
    max-width: 95vw;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    display: block;
}

.close-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.7);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(10px);
    opacity: 0.8;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0,0,0,0.3);
}

.lightbox-counter {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.lightbox-caption {
    position: fixed;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    z-index: 1001;
    max-width: 80%;
    text-align: center;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid #e1e8ed;
    min-width: 40px;
    gap: 0.5rem;
}

.page-link:hover:not(.disabled):not(.current) {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.page-link.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    cursor: default;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f3f5;
    color: #6c757d;
}


/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(1rem, 3vw, 1.5rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.footer h3 {
    color: var(--primary-color);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.footer-about p {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1rem);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(35px, 3.5vw, 40px);
    height: clamp(35px, 3.5vw, 40px);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

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

.footer-links li {
    margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
}

.footer-links a {
    transition: var(--transition);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}


.footer-contact i {
    margin-right: clamp(0.5rem, 1vw, 0.75rem);
    color: var(--accent-color);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.footer-bottom {
    text-align: center;
    padding-top: clamp(1rem, 2vw, 1.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
}

.footer-bottom a {
    text-decoration:  none;
    color: var(--white-color);
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
    }

    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-numbers {
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.4rem 0.6rem;
        min-width: 32px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .media-controls {
        padding: 1rem;
        gap: 1.5rem;
    }

    .toggle-btn {
        padding: 10px 18px;
        min-width: 100px;
        font-size: 0.9rem;
    }

    .filter-controls {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .filter-select {
        width: 100%;
        max-width: 300px;
    }

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

    .lightbox-container {
        padding: 1rem;
    }

    .close-btn {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .lightbox-nav.prev {
        left: 1rem;
    }

    .lightbox-nav.next {
        right: 1rem;
    }

    .lightbox-counter, .lightbox-caption {
        bottom: 1rem;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .lightbox-content img {
        max-height: 90vh;
        max-width: 95vw;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .toggle-btn {
        padding: 8px 12px;
        min-width: 80px;
        font-size: 0.8rem;
        gap: 4px;
    }
}

/* Focus and Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
