/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) blur(1px);
    opacity: 0.8;
}

.header-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.logo-container {
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #00695c;
    box-shadow: 0 0 20px rgba(0, 105, 92, 0.6);
    background: white;
    padding: 6px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.college-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #00695c;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-title {
    font-size: 1.2rem;
    color: #4db6ac;
    font-weight: 300;
}

/* --- HEADER & NAV --- */
/* Navigation Bar - Desktop & Mobile */
.nav-bar {
    background: linear-gradient(135deg, #0a1a1a 0%, #1a3333 100%);
    backdrop-filter: blur(10px);
    position: relative;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Desktop Layout (> 1024px) */
@media (min-width: 1025px) {
    .nav-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
        position: relative;
    }

    /* Hide hamburger on desktop */
    .hamburger-btn {
        display: none;
    }

    /* Desktop menu - horizontal */
    .menu-list {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 0;
        padding: 0;
    }

    .menu-list a {
        display: block;
        padding: 15px 25px;
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 5px;
        position: relative;
    }

    .menu-list a:hover {
        background: rgba(255,255,255,0.15);
        transform: translateY(-2px);
    }

    .menu-list a.active {
        background: rgba(38, 166, 154, 0.2);
        color: #26a69a;
    }

    /* Hover effect: sliding line under menu */
    .menu-list a::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: #26a69a;
        transition: 0.3s;
    }

    .menu-list a:hover::after,
    .menu-list a.active::after {
        width: 80%;
    }

    /* Social icons on right for desktop */
    .social-media {
        position: absolute;
        right: 20px;
        display: flex;
        gap: 15px;
        align-items: center;
    }
}

/* Mobile/Tablet Layout (<= 1024px) */
@media (max-width: 1024px) {
    .nav-bar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px 20px;
        position: relative;
        min-height: 60px;
    }

    /* Hide hamburger button by default on mobile site */
    .hamburger-btn {
        display: none;
        position: absolute;
        left: 20px;
        top: 15px;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-btn span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
        position: relative;
        margin: 0;
        transform-origin: center;
    }

    /* Default state - horizontal lines */
    .hamburger-btn span:nth-child(1) {
        transform: rotate(0deg) translate(0px, 0px);
        opacity: 1;
    }

    .hamburger-btn span:nth-child(2) {
        transform: rotate(0deg) translate(0px, 0px);
        opacity: 1;
    }

    .hamburger-btn span:nth-child(3) {
        transform: rotate(0deg) translate(0px, 0px);
        opacity: 1;
    }

    /* Active state - X shape */
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Menu visible by default on mobile site - HORIZONTAL */
    .menu-list {
        position: static;
        width: 100%;
        height: auto;
        background: none;
        list-style: none;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        transition: none;
        z-index: auto;
        overflow: visible;
        margin: 10px 0;
        flex-wrap: wrap;
        gap: 10px;
    }

    .menu-list li {
        margin: 2px 5px;
        width: auto;
    }

    .menu-list a {
        display: block;
        text-align: center;
        padding: 8px 12px;
        color: white;
        text-decoration: none;
        font-size: 0.85rem;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .menu-list a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }

    .menu-list a.active {
        background: rgba(38, 166, 154, 0.3);
        color: #26a69a;
    }

    /* Social icons - below menu */
    .social-media {
        display: flex;
        gap: 15px;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-top: 5px;
    }

    /* Show hamburger only when screen is very small or menu items don't fit */
    @media (max-width: 650px) {
        .nav-bar {
            flex-direction: row;
            justify-content: center;
            padding: 15px 20px;
        }

        .hamburger-btn {
            display: flex;
        }

        .menu-list {
            position: fixed;
            top: 70px;
            left: -100%;
            width: 100%;
            height: calc(100vh - 70px);
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            padding-top: 30px;
            transition: left 0.3s ease;
            z-index: 999;
            overflow-y: auto;
            margin: 0;
            gap: 0;
        }

        .menu-list.active {
            left: 0;
        }

        .menu-list li {
            margin: 8px 0;
            width: 85%;
            max-width: 280px;
        }

        .menu-list a {
            padding: 12px 20px;
            font-size: 1rem;
            border-radius: 8px;
        }

        .social-media {
            margin-top: 0;
        }
    }
}

/* Social Media Icons Styling */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Facebook */
.social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #0d5aa7 0%, #1877f2 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Telegram */
.social-link.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
}

.social-link.telegram:hover {
    background: linear-gradient(135deg, #006699 0%, #0088cc 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

/* TikTok */
.social-link.tiktok {
    background: linear-gradient(135deg, #ff0050 0%, #fe2c55 100%);
}

.social-link.tiktok:hover {
    background: linear-gradient(135deg, #cc003d 0%, #ff0050 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 0, 80, 0.4);
}

/* Mobile Specific (< 480px) - Force hamburger menu */
@media (max-width: 480px) {
    .nav-bar {
        flex-direction: row !important;
        justify-content: center !important;
        padding: 15px 20px !important;
    }

    .hamburger-btn {
        display: flex !important;
        left: 15px;
        width: 25px;
        height: 18px;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
    }

    .hamburger-btn span {
        height: 2px;
    }

    /* Ensure horizontal lines on mobile */
    .hamburger-btn:not(.active) span {
        transform: rotate(0deg) translate(0px, 0px) !important;
        opacity: 1 !important;
    }

    .menu-list {
        position: fixed !important;
        top: 60px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 25px !important;
        transition: left 0.3s ease !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        margin: 0 !important;
    }

    .menu-list.active {
        left: 0 !important;
    }

    .menu-list li {
        margin: 6px 0 !important;
        width: 85% !important;
        max-width: 280px !important;
    }

    .menu-list a {
        padding: 10px 18px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
    }

    .social-media {
        gap: 12px;
        margin-top: 0 !important;
    }

    .social-link {
        width: 30px;
        height: 30px;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }
}

/* Main Content Styles */
.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.news-section h2 {
    color: #00695c;
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

.news-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00695c, #4db6ac);
    border-radius: 2px;
}

/* Featured News */
.featured-news {
    margin-bottom: 35px;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 105, 92, 0.15);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    border-left: 5px solid #00695c;
    min-height: 350px;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 105, 92, 0.25);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.3s ease;
}

.featured-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-category {
    background: linear-gradient(135deg, #00695c, #004d40);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card h3 {
    color: #00695c;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.read-more {
    color: #00695c;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    align-self: flex-start;
    padding: 8px 20px;
    border: 2px solid #00695c;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
}

.read-more:hover {
    background: #00695c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 105, 92, 0.3);
}

.read-more.expanded {
    background: #00695c;
    color: white;
}

.news-full-content {
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease-in-out, 
                padding-top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-full-content.expanded {
    max-height: 600px;
    opacity: 1;
    padding-top: 15px;
}

.news-full-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.7;
}

.news-preview {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    display: block;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 105, 92, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #00695c;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00695c, #4db6ac);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 105, 92, 0.2);
    border-left-color: #004d40;
}

.news-card.urgent {
    border-left-color: #ff6b6b;
    animation: pulse 2s infinite;
}

.news-card.urgent::before {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
}

@keyframes pulse {
    0% { box-shadow: 0 10px 30px rgba(32, 178, 170, 0.1); }
    50% { box-shadow: 0 15px 35px rgba(255, 107, 107, 0.2); }
    100% { box-shadow: 0 10px 30px rgba(32, 178, 170, 0.1); }
}

.news-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: blink 1.5s infinite;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.news-card h3 {
    color: #00695c;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.news-date {
    color: #00695c;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.news-card p:last-of-type {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #008b8b 0%, #20b2aa 100%);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        height: 200px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
        border: 3px solid #20b2aa;
        padding: 5px;
    }
    
    .college-name {
        font-size: 1.8rem;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .news-image img {
        height: 100%;
        min-height: 200px;
        object-fit: cover;
    }
    
    .news-content {
        padding: 25px;
    }
    
    .featured-card h3 {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header {
        height: 180px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
        border: 2px solid #20b2aa;
        padding: 4px;
    }
    
    .college-name {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 0 15px;
    }
    
    .featured-card {
        margin: 0 -5px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .featured-card h3 {
        font-size: 1.3rem;
    }
    
    .news-card {
        padding: 20px;
        margin: 0 -5px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-section h2 {
        font-size: 1.8rem;
    }
    
    .news-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Tablet Specific Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        justify-content: space-around;
    }
    
    .nav-menu a {
        padding: 12px 20px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: linear-gradient(135deg, #e8f5f3, #d4f1f4);
    color: #008b8b;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(32, 178, 170, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: #20b2aa;
    color: white;
    transform: scale(1.05);
}
/* Small news images for news cards */
.news-image-small {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    background: #000;
}

.news-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.news-card:hover .news-image-small img {
    transform: scale(1.05);
}

/* Responsive adjustments for small images */
@media (max-width: 768px) {
    .news-image-small {
        height: 150px;
        margin-bottom: 12px;
    }
    
    .news-image-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .news-image-small {
        height: 120px;
        margin-bottom: 10px;
    }
    
    .news-image-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Video Section Styles - YouTube Layout */
.video-section {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 30px 0 60px 0;
    margin-top: 20px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 105, 92, 0.1);
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-section h2 {
    color: #00695c;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

.video-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #00695c, #4db6ac);
    border-radius: 2px;
}

/* YouTube-style Layout */
.youtube-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Main Video Player */
.main-player {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 105, 92, 0.1);
    border-left: 5px solid #00695c;
}

.main-player .video-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
}

.main-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-details {
    padding: 20px;
}

.video-details h3 {
    color: #00695c;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.video-details p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Video Thumbnails Sidebar */
.video-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 105, 92, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 105, 92, 0.2);
    border-left-color: #00695c;
}

.thumbnail-item.active {
    border-left-color: #00695c;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    box-shadow: 0 8px 25px rgba(0, 105, 92, 0.2);
}

.thumbnail-image {
    position: relative;
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-image img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.thumbnail-item:hover .video-duration {
    background: rgba(0, 105, 92, 0.95);
    transform: scale(1.05);
}

.thumbnail-info {
    padding: 10px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thumbnail-info h4 {
    color: #00695c;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.2;
}

.thumbnail-info p {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.3;
}

.thumbnail-item.active .thumbnail-info h4 {
    color: #004d40;
}

/* Responsive Design for YouTube Layout */
@media (max-width: 768px) {
    .youtube-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-player .video-wrapper {
        height: 250px;
    }
    
    .video-thumbnails {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .thumbnail-item {
        flex-direction: column;
    }
    
    .thumbnail-image {
        width: 100%;
        height: 100px;
    }
    
    .thumbnail-info {
        padding: 8px 10px;
        text-align: center;
    }
    
    .video-section {
        padding: 40px 0;
        margin-top: 40px;
    }
    
    .video-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .video-container {
        padding: 0 15px;
    }
    
    .main-player .video-wrapper {
        height: 200px;
    }
    
    .video-thumbnails {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .thumbnail-item {
        flex-direction: row;
    }
    
    .thumbnail-image {
        width: 80px;
        height: 60px;
    }
    
    .thumbnail-info {
        padding: 5px 10px;
        text-align: left;
    }
    
    .thumbnail-info h4 {
        font-size: 0.8rem;
    }
    
    .thumbnail-info p {
        font-size: 0.7rem;
    }
    
    .video-section h2 {
        font-size: 1.8rem;
    }
    
    .video-duration {
        font-size: 10px;
        padding: 2px 5px;
        bottom: 4px;
        right: 4px;
    }
}
.card-footer {
    margin-top: auto;
    padding-top: 15px;
}






/* Congratulations Popup Styles */
.congrats-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    padding: 15px;
}

.congrats-overlay.active {
    opacity: 1;
    visibility: visible;
}

.congrats-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 20px;
    padding: 20px 20px 25px 20px;
    max-width: 650px;
    max-height: none;
    height: auto;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 105, 92, 0.3);
    transform: scale(0.7) rotateX(20deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid #00695c;
    overflow: visible;
}

.congrats-overlay.active .congrats-popup {
    transform: scale(1) rotateX(0deg);
}

.close-popup {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    line-height: 1;
}

.close-popup:hover {
    background: #ff5252;
    transform: rotate(90deg) scale(1.1);
}

.congrats-content {
    text-align: center;
    position: relative;
    z-index: 5;
}

.trophy-icon {
    font-size: 40px;
    animation: bounce 1s infinite;
    margin-bottom: 8px;
    filter: drop-shadow(0 10px 20px rgba(255, 215, 0, 0.5));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.congrats-title {
    font-size: 1.8rem;
    color: #00695c;
    margin-bottom: 8px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 105, 92, 0.2);
    animation: titleGlow 2s ease-in-out infinite;
    line-height: 1.2;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(0, 105, 92, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 105, 92, 0.6), 2px 2px 4px rgba(0, 105, 92, 0.3);
    }
}

.congrats-message {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
    padding: 0 5px;
}

.certificate-preview {
    margin: 15px auto;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 6px 20px rgba(0, 105, 92, 0.2);
    border: 2px solid #00695c;
    transition: all 0.3s ease;
    max-width: 100%;
    width: 100%;
    position: relative;
    background: #f5f5f5;
    line-height: 0;
}

.certificate-preview:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 105, 92, 0.3);
}

.certificate-preview img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
    border-radius: 8px;
    vertical-align: top;
}

/* Sparkle effects around certificate */
.certificate-preview::before,
.certificate-preview::after {
    content: '✨';
    position: absolute;
    font-size: 20px;
    animation: certificateSparkle 2s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

.certificate-preview::before {
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.certificate-preview::after {
    bottom: -10px;
    right: -10px;
    animation-delay: 1s;
}

@keyframes certificateSparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.congrats-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
    padding: 0 5px;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.news-btn {
    background: linear-gradient(135deg, #00695c 0%, #4db6ac 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 105, 92, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.news-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 105, 92, 0.4);
    background: linear-gradient(135deg, #004d40 0%, #00695c 100%);
}

.news-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Sparkles Animation */
.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700;
    animation: sparkleFloat 3s ease-in-out infinite;
    opacity: 0;
}

.sparkle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    top: 40%;
    left: 5%;
    animation-delay: 1s;
}

.sparkle:nth-child(4) {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.sparkle:nth-child(5) {
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.sparkle:nth-child(6) {
    top: 30%;
    right: 5%;
    animation-delay: 2.5s;
}

.sparkle:nth-child(7) {
    top: 70%;
    right: 25%;
    animation-delay: 0.8s;
}

.sparkle:nth-child(8) {
    top: 50%;
    left: 15%;
    animation-delay: 1.8s;
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0) rotate(360deg);
    }
}

/* Confetti Animation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall 4s linear infinite;
    opacity: 0.8;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design for Popup */
@media (max-width: 768px) {
    .congrats-overlay {
        padding: 10px;
    }
    
    .congrats-popup {
        padding: 18px 15px;
        max-width: 100%;
        max-height: 96vh;
        border-radius: 18px;
    }
    
    .trophy-icon {
        font-size: 35px;
        margin-bottom: 6px;
    }
    
    .congrats-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .congrats-message {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .certificate-preview {
        margin: 8px auto;
        border-radius: 8px;
    }
    
    .congrats-subtitle {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .popup-buttons {
        margin-top: 8px;
    }
    
    .news-btn {
        padding: 9px 25px;
        font-size: 0.9rem;
    }
    
    .close-popup {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 6px;
        right: 6px;
    }
}

@media (max-width: 480px) {
    .congrats-overlay {
        padding: 8px;
    }
    
    .congrats-popup {
        padding: 15px 12px;
        border-radius: 15px;
        border: 2px solid #00695c;
        max-height: 97vh;
    }
    
    .trophy-icon {
        font-size: 32px;
        margin-bottom: 5px;
    }
    
    .congrats-title {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .congrats-message {
        font-size: 0.8rem;
        margin-bottom: 6px;
        padding: 0 3px;
    }
    
    .certificate-preview {
        margin: 6px auto;
        border-radius: 6px;
        border: 2px solid #00695c;
    }
    
    .congrats-subtitle {
        font-size: 0.75rem;
        margin-bottom: 8px;
        padding: 0 3px;
    }
    
    .popup-buttons {
        margin-top: 6px;
    }
    
    .news-btn {
        padding: 8px 22px;
        font-size: 0.85rem;
    }
    
    .close-popup {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 5px;
        right: 5px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (max-height: 500px) {
    .congrats-popup {
        padding: 12px 10px;
        max-height: 98vh;
    }
    
    .trophy-icon {
        font-size: 28px;
        margin-bottom: 4px;
    }
    
    .congrats-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .congrats-message {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
    
    .certificate-preview {
        margin: 5px auto;
    }
    
    .congrats-subtitle {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }
    
    .popup-buttons {
        margin-top: 5px;
    }
    
    .news-btn {
        padding: 7px 18px;
        font-size: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .congrats-popup {
        padding: 12px 10px;
    }
    
    .trophy-icon {
        font-size: 28px;
    }
    
    .congrats-title {
        font-size: 1.2rem;
    }
    
    .congrats-message {
        font-size: 0.75rem;
    }
    
    .certificate-preview {
    }
    
    .congrats-subtitle {
        font-size: 0.7rem;
    }
    
    .news-btn {
        padding: 7px 20px;
        font-size: 0.8rem;
    }
}
