/* Modern Color Scheme with CSS Variables */
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --max-width: 1200px;
    --border-radius: 12px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    /* --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); */
}

/* Base Styles with Fluid Typography */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    /* font-family: 'Poppins', sans-serif; */
    /* background-color: var(--light); */
    /* color: var(--dark); */
    /* line-height: 1.6; */
    overflow-x: hidden;
}

/* @media (min-width: 576px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
} */

/* h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
} */

/* .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
} */

/* Header - Sticky & Modern */
/* header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo span {
    color: var(--accent);
} */

/* Hero Section with Parallax */
/* #media-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
    background-attachment: fixed;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    #media-hero {
        background-attachment: scroll;
        min-height: 50vh;
    }
} */

/* .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
} */

/* Tabs Navigation with Enhanced Interaction */
/* .tabs-container {
    margin: -3rem auto 3rem;
            position: relative;
            z-index: 5;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 1.5rem;
            max-width: 900px;
} */

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
    margin: 0.5rem;
    border-radius: 50px;
}

.tab-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.tab-btn.active {
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Tab Content with Animation */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

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

.tab-content.active {
    display: block;
}

/* News Section - Card Grid with Staggered Animation */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    will-change: transform, opacity;
}

.news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.news-card:nth-child(3) {
    animation-delay: 0.3s;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.news-img {
    height: 220px;
    overflow: hidden;
}

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

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 0.5rem;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.news-card:hover .news-title {
    color: var(--primary);
}

.news-excerpt {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.news-card:hover .read-more {
    letter-spacing: 0.5px;
}

.news-card:hover .read-more i {
    transform: translateX(5px);
}

/* Image Gallery - Masonry Layout with Hover Effects */
.image-gallery {
    columns: 3;
    column-gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .image-gallery {
        columns: 2;
    }
}

@media (max-width: 576px) {
    .image-gallery {
        columns: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

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

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

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

/* Video Gallery with Play Button Animation */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.video-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.video-card:nth-child(1) {
    animation-delay: 0.1s;
}

.video-card:nth-child(2) {
    animation-delay: 0.2s;
}

.video-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0.8;
    transition: var(--transition);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.video-card:hover .video-title {
    color: var(--primary);
}

/* Modal Styles with Enhanced Animation */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: white;
    margin: 3rem auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    position: relative;
    animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: translateY(20px);
    opacity: 0;
}

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

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.05);
}

/* News Modal */
.news-modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.news-modal-content {
    line-height: 1.8;
}

.news-modal-content p {
    margin-bottom: 1rem;
}

.news-modal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.news-modal-content li {
    margin-bottom: 0.5rem;
}

/* Image Lightbox with Smooth Transitions */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    animation: lightboxFadeIn 0.4s ease forwards;
    transform: scale(0.95);
    opacity: 0;
}

@keyframes lightboxFadeIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-img {
    max-height: 80vh;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.close-lightbox {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.close-lightbox:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Video Modal */
.video-modal-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.video-modal-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Footer */
/* footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: translateY(-3px);
}

.footer-logo span {
    color: var(--accent);
}

.footer-about p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: 0.95rem;
} */

/* .social-links {
    display: flex;
    gap: 1rem;
}

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

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
} */

/* .footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

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

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact i {
    margin-right: 0.8rem;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
} */

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tabs-container {
        margin-top: -1.5rem;
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 0.8rem;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        margin: 0.3rem 0;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .news-modal-img {
        height: 200px;
    }
}