/*
Theme Name: Eco School - Екология в действие
Description: Специално създадена тема за проекта "Екология в действие: Новото поколение пазители на природата" от ОУ "Панайот Хитов" - Сливен. Включва страници за 4 основни екологични теми, галерия, презентации и ресурси.
Version: 1.0
Author: School Project Team
Text Domain: eco-school
*/

/* 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-color: #f8f9fa;
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

.project-badge {
    text-align: right;
    font-size: 0.9rem;
}

.project-badge span {
    display: block;
    opacity: 0.8;
}

/* Navigation */
.main-navigation {
    background-color: #1e3a8a;
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background-color: #1e40af;
}

.nav-menu a i {
    margin-right: 0.5rem;
}

/* Dropdown Menu Styles */
.nav-menu .dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1e40af;
    min-width: 250px;
    width: max-content;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:hover {
    background-color: #1d4ed8;
    padding-left: 25px;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #1e40af;
        border-radius: 0;
        margin-top: 0;
        display: none;
        min-width: 100%;
        width: 100%;
        max-width: none;
        white-space: normal;
    }
    
    .mobile-dropdown .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a:hover {
        padding-left: 20px;
    }
    
    .dropdown-toggle .fa-chevron-down {
        margin-left: auto;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(45, 80, 22, 0.8), rgba(74, 124, 89, 0.8));
    color: white;
    text-align: center;
    padding: 4rem 0;
    background-size: cover;
    background-position: center;
}

/* Content Sections Styling */
.content-section {
    padding: 3rem 0;
    margin: 2rem 0;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2d5016;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Content Styling */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.about-text > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
    text-align: justify;
}

.mission-goals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.mission, .goals {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #22c55e;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.1);
}

.mission h3, .goals h3 {
    color: #166534;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mission h3 i, .goals h3 i {
    color: #22c55e;
    font-size: 1.2rem;
}

.mission p {
    color: #166534;
    line-height: 1.7;
    font-size: 1rem;
}

.goals ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goals li {
    color: #166534;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.goals li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Topics Grid Styling */
.topics-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.topic-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.topic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.topic-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.topic-icon i {
    font-size: 2rem;
    color: white;
}

.topic-content h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.topic-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .mission-goals {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding: 1.5rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .topic-card {
        padding: 1.5rem;
    }
    
    .topic-icon {
        width: 60px;
        height: 60px;
    }
    
    .topic-icon i {
        font-size: 1.5rem;
    }
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 10px;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Enhanced Gallery Styles */
.eco-gallery {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.eco-gallery.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.eco-gallery.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Featured Gallery Slider Styles */
.featured-gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    margin: 2rem 0;
}

.featured-gallery-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background: #000;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.slide.active .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

.gallery-cta {
    text-align: center;
    margin-top: 2rem;
}

.gallery-cta p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #666;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    color: white;
}

/* Mobile responsive for slider */
@media (max-width: 768px) {
    .slider-container {
        height: 350px;
    }
    
    .slide-caption {
        padding: 1rem;
    }
    
    .slide-caption h3 {
        font-size: 1.2rem;
    }
    
    .slide-caption p {
        font-size: 0.9rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .featured-gallery-section {
        padding: 2rem 0;
    }
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ==== ENHANCED GALLERY PAGE STYLES ==== */

/* Gallery Navigation */
.gallery-navigation {
    margin-bottom: 3rem;
    text-align: center;
}

.gallery-navigation h2 {
    color: #2d5016;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.tab-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 120px;
}

.tab-btn:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-color: #1976d2;
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

/* Gallery Sections - Simplified for reliability */
.gallery-sections {
    margin-top: 2rem;
}

.gallery-section {
    display: none;
}

.gallery-section.active {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-section h3 {
    color: #2d5016;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #4a7c59;
    display: inline-block;
    position: relative;
}

.gallery-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #2196f3, #4caf50);
}

.gallery-section p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Enhanced Gallery Grid */
.eco-gallery {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease-out;
}

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

.eco-gallery.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.eco-gallery.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Enhanced Gallery Items */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 1.5rem;
    font-size: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Page Header Enhancement */
.page-header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 50%, #2196f3 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header .page-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .gallery-section h3 {
        font-size: 1.5rem;
    }
    
    .eco-gallery.columns-4,
    .eco-gallery.columns-3 {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .page-description {
        font-size: 1.1rem;
    }
}

/* Enhanced Presentations Styles */
.presentations-list.enhanced {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.presentation-item.enhanced {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presentation-item.enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.presentation-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1rem;
}

.presentation-icon {
    font-size: 2.5rem;
    color: #22c55e;
    flex-shrink: 0;
}

.presentation-details {
    flex: 1;
}

.presentation-details h3 {
    margin: 0 0 0.5rem 0;
    color: #2d5016;
    font-size: 1.2rem;
}

.presentation-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.presentation-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-view {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view:hover {
    background: #2563eb;
}

.btn-view i {
    font-size: 0.8rem;
}

/* Presentation Viewer Styles */
.presentation-viewer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.viewer-header h4 {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close {
    background: #ef4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.btn-close:hover {
    background: #dc2626;
}

.pdf-viewer {
    padding: 0;
}

.pdf-viewer iframe {
    border: none;
    background: white;
}

/* Office Online Viewer */
.office-viewer {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.office-viewer iframe {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.viewer-fallback {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
}

.viewer-fallback p {
    margin-bottom: 1rem;
    color: #856404;
}

/* Viewer tabs */
.viewer-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.viewer-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
}

.viewer-tab:hover {
    color: #3b82f6;
}

.viewer-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.viewer-content {
    display: block;
}

/* Enhanced presentation styling */
.presentation-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.download-info {
    color: #6b7280;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.viewer-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.file-info h5 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.file-item i {
    color: #3b82f6;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.file-item span {
    color: #374151;
    font-size: 0.9rem;
}

.btn-download {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-view {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

.powerpoint-viewer {
    padding: 2rem;
}

.viewer-message {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.viewer-message i {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.viewer-message h4 {
    color: #374151;
    margin-bottom: 1rem;
}

.viewer-message p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Animation for viewer toggle */
.presentation-viewer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 700px;
    }
}

/* Mobile responsive for presentations */
@media (max-width: 768px) {
    .presentation-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .presentation-actions {
        width: 100%;
        justify-content: center;
    }
    
    .pdf-viewer iframe {
        height: 400px;
    }
    
    .viewer-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Gallery Loading State */
.gallery-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* No Content Messages */
.no-content-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eco-gallery.columns-3,
    .eco-gallery.columns-4 {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .presentation-item {
        flex-direction: column;
        text-align: center;
    }
    
    .presentation-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Enhanced Lightbox Gallery Styles */
.eco-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.eco-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    margin-top: 1rem;
    border-radius: 25px;
    font-size: 1rem;
    text-align: center;
    max-width: 500px;
}

.lightbox-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

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

.lightbox-prev:disabled,
.lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: 0.5rem;
        left: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-caption {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    .lightbox-counter {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Loading animation */
.lightbox-image {
    transition: opacity 0.3s ease;
}

.lightbox-image.loading {
    opacity: 0.5;
}

/* Keyboard navigation hints */
.lightbox-content::before {
    content: "Използвайте ← → стрелките или плъзнете за навигация. ESC за затваряне.";
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .lightbox-content::before {
        content: "Плъзнете ← → за навигация";
        bottom: -2rem;
        font-size: 0.7rem;
    }
}

/* Enhanced gallery item hover effects */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Add zoom icon overlay */
.gallery-item::after {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

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

/* ==== ENHANCED DOWNLOADS PAGE STYLES ==== */

/* Downloads Page Layout */
.downloads-categories {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.download-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2196f3, #4caf50, #ff9800, #e91e63);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.download-category:hover::before {
    opacity: 1;
}

.download-category h2 {
    color: #2d5016;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.download-category h2 i {
    background: linear-gradient(135deg, #2196f3, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.download-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(33, 150, 243, 0.1);
    transition: all 0.3s ease;
}

.download-section:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

.download-section h3 {
    color: #1976d2;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

/* Download Lists */
.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-link,
.external-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.download-link::before,
.external-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(76, 175, 80, 0.1));
    transition: width 0.3s ease;
    z-index: 1;
}

.download-link:hover::before,
.external-link:hover::before {
    width: 100%;
}

.download-link:hover,
.external-link:hover {
    color: #1976d2;
    border-color: #2196f3;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.download-link i,
.external-link i {
    color: #4caf50;
    font-size: 1.1rem;
    z-index: 2;
    position: relative;
}

.download-link span,
.external-link span {
    z-index: 2;
    position: relative;
}

/* External Links Specific Styles */
.external-links {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #c8e6c9;
}

.external-link i {
    color: #2e7d32;
}

.external-link:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e8 100%);
    border-color: #4caf50;
    color: #2e7d32;
}

/* Download Info Section */
.download-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #bbdefb;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.download-info h2 {
    color: #1565c0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
}

.download-info p {
    color: #37474f;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.download-info strong {
    color: #1565c0;
    font-weight: 600;
}

/* File Type Icons */
.download-link i.fa-file-pdf {
    color: #dc3545;
}

.download-link i.fa-file-powerpoint {
    color: #fd7e14;
}

.download-link i.fa-file-image {
    color: #6610f2;
}

.download-link i.fa-file-excel {
    color: #198754;
}

.download-link i.fa-users {
    color: #0d6efd;
}

.download-link i.fa-chalkboard-teacher {
    color: #6f42c1;
}

.download-link i.fa-calculator {
    color: #20c997;
}

.download-link i.fa-chart-line,
.download-link i.fa-chart-area {
    color: #fd7e14;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .download-category {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .download-category h2 {
        font-size: 1.4rem;
    }
    
    .download-section {
        padding: 1rem;
    }
    
    .download-link,
    .external-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .download-info {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
}

/* Accessibility Improvements */
.download-link:focus,
.external-link:focus {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

/* ==== VIDEOS PAGE STYLES ==== */

/* Video Stats in Header */
.video-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Videos Page Layout */
.videos-categories {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

/* Featured Video Section */
.featured-video-section {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5e35b1 100%);
    color: white;
    padding: 3rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.featured-video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.featured-video-section h2 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.featured-video-container {
    position: relative;
    z-index: 2;
}

/* Featured Video Card */
.featured-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-large .video-embed {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: #000;
}

.featured-large .video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.featured-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.featured-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.featured-info .video-actions {
    gap: 1rem;
}

/* Video Categories */
.video-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.video-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.video-category h2 {
    color: #2d5016;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.video-category h2 i {
    color: #e91e63;
    font-size: 1.4rem;
}

.video-category p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Video Cards */
.video-placeholder,
.video-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

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

/* YouTube Video Embeds */
.video-embed {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Video Actions */
.video-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.btn-share {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.btn-share:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-1px);
}

/* Video Thumbnails */
.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.video-thumbnail .fa-play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 2;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(233, 30, 99, 0.9);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    z-index: 3;
}

.video-placeholder:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(233, 30, 99, 1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

/* Video Information */
.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    color: #2d5016;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.video-info p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Video Meta Information */
.video-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.video-meta span {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-meta .duration {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
    color: #f57c00;
}

.video-meta .category {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
}

.video-meta .students,
.video-meta .participants {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    color: #c2185b;
}

.video-meta .location {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
}

.video-meta .date {
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    color: #00695c;
}

/* Video Buttons */
.btn-video,
.btn-video-large {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-video-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
}

.btn-video:hover,
.btn-video-large:hover {
    background: linear-gradient(135deg, #ad1457, #880e4f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* Video Info Section */
.video-info-section {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.video-info-section h2 {
    color: #2e7d32;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.info-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card i {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .featured-large {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-category,
    .featured-video-section {
        padding: 1.5rem;
    }
    
    .video-meta {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .video-stats {
        justify-content: center;
    }
}

/* ==== ENHANCED PRESENTATIONS PAGE STYLES ==== */

/* Presentation Stats in Header */
.presentation-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Presentations Info Section */
.presentations-info {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.presentations-info h2 {
    color: #2e7d32;
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.info-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 2rem;
}

.info-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.info-item i {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.info-item h3 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mobile responsiveness for presentations */
@media (max-width: 768px) {
    .presentation-stats {
        justify-content: center;
    }
    
    .presentations-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}


/* ==== FOOTER STYLES ==== */

.site-footer {
    background: linear-gradient(135deg, #1a237e 0%, #2d3748 50%, #1f2937 100%);
    color: white;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid-footer" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid-footer)"/></svg>');
    opacity: 0.3;
}

.footer-main {
    padding: 3rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

/* Footer About Section */
.footer-about {
    max-width: 100%;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.logo-icon i {
    font-size: 1.8rem;
    color: white;
}

.logo-text h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.logo-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.3;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* School Info Section */
.school-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
}

.info-item i {
    color: #22c55e;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.info-item span {
    flex: 1;
}

/* Footer Links Section */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid rgba(34, 197, 94, 0.3);
    padding-bottom: 0.5rem;
}

.footer-section h4 i {
    color: #22c55e;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section li {
    transition: transform 0.3s ease;
}

.footer-section li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: #22c55e;
    text-decoration: none;
}

.footer-section a i {
    color: #60a5fa;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Project Stats */
.project-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #22c55e;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Program Badge */
.program-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.program-badge:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(59, 130, 246, 0.25));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.program-badge i {
    color: #fbbf24;
    font-size: 2rem;
    flex-shrink: 0;
}

.badge-text {
    flex: 1;
}

.badge-text strong {
    display: block;
    color: white;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.badge-text span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright {
    flex: 1;
}

.copyright p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.copyright .sub-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #22c55e;
    text-decoration: none;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .program-badge {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .school-info {
        align-items: center;
        text-align: center;
    }
    
    .info-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-item i {
        width: auto;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 1.5rem 0 1rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon i {
        font-size: 1.5rem;
    }
    
    .logo-text h3 {
        font-size: 1.2rem;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .program-badge {
        padding: 1rem;
    }
    
    .program-badge i {
        font-size: 1.5rem;
    }
}

/* Enhanced animations and hover effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-about {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll to top button styling (if you want to add one) */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}


/* ==== HERO VIDEO SECTION STYLES ==== */

.hero-video-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%); /* Fallback background */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1 !important;
    background: #000;
    /* Enhanced mobile Safari support */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Firefox desktop fixes */
    -moz-transform: translateZ(0);
    /* Ensure video covers the full area properly */
    min-width: 100%;
    min-height: 100%;
    /* Fix Firefox video scaling issues */
    object-position: center center;
    /* Prevent video from being pixelated in Firefox */
    image-rendering: auto;
    /* Better video quality on Firefox */
    -moz-crisp-edges: auto;
    /* Ensure poster image is properly displayed */
    background-size: cover;
    background-position: center;
    /* Better performance across browsers */
    will-change: transform;
    /* Firefox-specific video smoothing */
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(45, 80, 22, 0.7) 0%,
        rgba(74, 124, 89, 0.6) 50%,
        rgba(45, 80, 22, 0.8) 100%
    );
    z-index: 2;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    z-index: 0;
}

.hero-video-section .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-video-section .hero-content {
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-video-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-video-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    font-weight: 400;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-video-section .hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-video-section .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    min-width: 120px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-video-section .stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-video-section .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #22c55e;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
}

.hero-video-section .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-video-section {
        min-height: 500px;
        max-height: 700px;
    }
    
    .hero-video-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-video-section p {
        font-size: 1.2rem;
    }
    
    .hero-video-section .stat-item {
        padding: 1.25rem 1.5rem;
        min-width: 100px;
    }
    
    .hero-video-section .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-video-section {
        min-height: 60vh;
        max-height: 80vh;
    }
    
    /* Optimize video performance on tablets */
    .hero-video {
        object-fit: cover;
        object-position: center center;
    }
    
    .hero-video-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-video-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-video-section .hero-stats {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-video-section .stat-item {
        padding: 1rem 1.25rem;
        min-width: 80px;
    }
    
    .hero-video-section .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-video-section .stat-label {
        font-size: 0.9rem;
    }
    
    .hero-video-section .hero-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-video-section {
        min-height: 100vh;
        height: 100vh;
        max-height: none;
    }
    
    .hero-video {
        object-fit: cover;
        object-position: center center;
        /* Ensure video covers full viewport on mobile */
        width: 100vw;
        height: 100vh;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .video-background {
        overflow: hidden;
    }
    
    .hero-video-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-video-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .hero-video-section .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 2rem;
    }
    
    .hero-video-section .stat-item {
        padding: 1rem;
        min-width: auto;
    }
    
    .hero-video-section .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-video-section .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-video-section .hero-content {
        padding: 1rem;
        max-width: 100%;
    }
}

/* Mobile-specific video optimizations */
@media (max-width: 768px) {
    /* Enhanced mobile video performance */
    .hero-video {
        /* Better mobile video handling */
        background-size: cover;
        background-position: center;
        background-image: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    }
}

/* Very small mobile screens - enhanced overlay for readability */
@media (max-width: 480px) {
    .video-overlay {
        background: linear-gradient(
            135deg,
            rgba(45, 80, 22, 0.85) 0%,
            rgba(74, 124, 89, 0.8) 50%,
            rgba(45, 80, 22, 0.9) 100%
        );
    }
    
    /* Ensure text is always readable on mobile */
    .hero-video-section .hero-content {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }
}
        max-width: 300px;
        margin: 1.5rem auto 0;
    }
    
    .hero-video-section .stat-item {
        padding: 0.75rem 1rem;
        min-width: auto;
    }
    
    .hero-video-section .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-video-section .stat-label {
        font-size: 0.8rem;
    }
}

/* Video loading states and fallbacks */
.hero-video:not([src]) {
    display: none;
}

/* For slower connections - reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-video-section .hero-content,
    .hero-video-section .stat-item {
        animation: none;
    }
    
    .hero-video {
        animation: none;
    }
}

/* Enhanced visual effects */
.hero-video-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(248, 249, 250, 0.1));
    z-index: 4;
    pointer-events: none;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .scroll-indicator i {
        font-size: 1.5rem;
    }
    
    .scroll-indicator span {
        font-size: 0.8rem;
    }
}

/* ==== BROWSER-SPECIFIC VIDEO FIXES ==== */

/* Firefox Desktop Optimizations */
@-moz-document url-prefix() {
    .hero-video-section {
        /* Fix Firefox height calculation issues */
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    .hero-video {
        /* Better Firefox video rendering */
        image-rendering: optimizeQuality;
        -moz-transform: translate3d(0, 0, 0);
        /* Fix Firefox object-fit issues */
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        /* Prevent Firefox video distortion */
        max-width: none !important;
        max-height: none !important;
        min-width: 100% !important;
        min-height: 100% !important;
    }
    
    .video-background {
        /* Ensure proper container in Firefox */
        overflow: hidden;
        -moz-transform: translateZ(0);
        /* Better background handling */
        background-attachment: scroll;
    }
    
    .hero-video-section .hero-content {
        /* Ensure text remains readable in Firefox */
        position: relative;
        z-index: 10;
    }
}

/* Firefox-specific media query fixes */
@media screen and (min--moz-device-pixel-ratio:0) {
    .hero-video {
        /* Enhanced Firefox video quality */
        image-rendering: -moz-crisp-edges;
        image-rendering: optimizeQuality;
    }
    
    .hero-video-section {
        /* Fix Firefox viewport issues */
        min-height: 100vh;
        height: 100vh;
    }
}

/* Chrome and Edge specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .hero-video {
        /* Better Chromium rendering */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}


/* Video Play Button Styles */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid rgba(34, 197, 94, 0.8);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    font-size: 28px;
    color: #2d5016;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.video-play-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #22c55e;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.video-play-button:active {
    transform: translate(-50%, -50%) scale(1.05);
}

.video-play-button i {
    margin-left: 4px; /* Offset play icon to center it visually */
}

@media (max-width: 768px) {
    .video-play-button {
        width: 80px;
        height: 80px;
        font-size: 22px;
    }
}

/* Video performance optimizations */
.hero-video-section {
    will-change: scroll-position;
}

.hero-video {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        animation: none;
        transition: none;
    }
    
    .video-play-button {
        transition: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Low bandwidth optimization */
@media (max-width: 768px) and (max-resolution: 150dpi) {
    .hero-video {
        filter: brightness(0.8) contrast(1.2); /* Compensate for potential quality loss */
    }
}


/* Video styling - clean production version */
.hero-video {
    opacity: 1;
    visibility: visible;
    display: block;
    pointer-events: none;
}


/* ==== HERO VIDEO SECTION STYLES - FIXED ==== */

.hero-video-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(45, 80, 22, 0.7) 0%,
        rgba(74, 124, 89, 0.6) 50%,
        rgba(45, 80, 22, 0.8) 100%
    );
    z-index: 2;
}

.hero-video-section .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-video-section .hero-content {
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-video-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-video-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    font-weight: 400;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-video-section .hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-video-section .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    min-width: 120px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-video-section .stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-video-section .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #22c55e;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
}

.hero-video-section .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-video-section {
        min-height: 450px;
        max-height: 600px;
    }
    
    .hero-video-section h1 {
        font-size: 2rem;
    }
    
    .hero-video-section p {
        font-size: 1.1rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
}


/* ==== LABORATORY ANALYSIS STYLES ==== */

.lab-info-section {
    margin-bottom: 3rem;
}

.lab-credentials {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #3b82f6;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.lab-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lab-header i {
    font-size: 3rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.lab-details h3 {
    color: #1e40af;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.lab-details p {
    color: #374151;
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

/* Protocol Cards */
.protocols-section {
    margin: 3rem 0;
}

.protocol-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.protocol-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.protocol-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.protocol-icon i {
    font-size: 1.8rem;
    color: white;
}

.protocol-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.protocol-info p {
    margin: 0.25rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.protocol-results {
    padding: 2rem;
}

.protocol-results h5 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

/* Results Table */
.results-table {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.results-table th {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.results-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.results-table tbody tr:hover {
    background-color: #f3f4f6;
}

/* Status Indicators */
.status-good {
    color: #059669;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-warning {
    color: #d97706;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-danger {
    color: #dc2626;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Results Grid for Drinking Water */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.result-category {
    background: #f8fafc;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.result-category h6 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.mini-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.result-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.result-row .param {
    font-weight: 500;
    color: #374151;
    flex: 1;
    font-size: 0.9rem;
}

.result-row .value {
    font-weight: 600;
    color: #1f2937;
    margin: 0 1rem;
    font-size: 0.9rem;
}

/* Enhanced Finding Items */
.finding-item.excellent {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #22c55e;
}

.finding-item.excellent i {
    color: #16a34a;
    font-size: 2rem;
}

.finding-item.excellent h4 {
    color: #166534;
}

.finding-item.good {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
}

.finding-item.good i {
    color: #2563eb;
    font-size: 2rem;
}

.finding-item.good h4 {
    color: #1e40af;
}

/* Statistical Analysis Cards */
.statistical-analysis {
    margin: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stat-header i {
    color: #3b82f6;
    font-size: 1.5rem;
}

.stat-header h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin: 0;
}

.big-stat {
    font-size: 3rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.big-stat.rating-a {
    color: #16a34a;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Methodology Note */
.methodology-note {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.note-header i {
    color: #d97706;
    font-size: 1.5rem;
}

.note-header h4 {
    color: #92400e;
    margin: 0;
    font-size: 1.2rem;
}

.methodology-note p {
    color: #92400e;
    line-height: 1.6;
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .lab-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .protocol-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-row .value {
        margin: 0;
    }
    
    .results-table {
        font-size: 0.8rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 0.75rem;
    }
}


/* ==== STATIC GALLERY STYLES ==== */

.gallery-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #92400e;
}

.gallery-notice i {
    font-size: 3rem;
    color: #d97706;
    margin-bottom: 1rem;
    display: block;
}

.gallery-notice p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.gallery-notice small {
    color: #a16207;
    font-size: 0.9rem;
    font-style: italic;
}

.gallery-debug {
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
    font-family: monospace !important;
    font-size: 0.8rem !important;
    color: #374151 !important;
}

.gallery-debug strong {
    color: #1f2937 !important;
}

/* Enhanced gallery item hover for static images - clean version */
.eco-gallery .gallery-item {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.eco-gallery .gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 5;
}

.eco-gallery .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 10px;
    display: block;
}

.eco-gallery .gallery-item:hover img {
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.05);
}

/* Add zoom icon overlay on hover */
.eco-gallery .gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.eco-gallery .gallery-item:hover::after {
    opacity: 1;
}

/* Loading state for gallery */
.eco-gallery.loading {
    opacity: 0.6;
    pointer-events: none;
}

.eco-gallery.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Gallery tab improvements for Bulgarian categories */
.gallery-tabs .tab-btn {
    white-space: nowrap;
    min-width: auto;
    padding: 12px 18px;
}

.gallery-tabs .tab-btn[data-category="всички"] {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-color: #16a34a;
}

.gallery-tabs .tab-btn[data-category="всички"]:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.gallery-tabs .tab-btn[data-category="отпадъци"] {
    color: #dc2626;
    border-color: #dc2626;
}

.gallery-tabs .tab-btn[data-category="въздух"] {
    color: #2563eb;
    border-color: #2563eb;
}

.gallery-tabs .tab-btn[data-category="води"] {
    color: #0891b2;
    border-color: #0891b2;
}

.gallery-tabs .tab-btn[data-category="пожари"] {
    color: #ea580c;
    border-color: #ea580c;
}

.gallery-tabs .tab-btn[data-category="ученици"] {
    color: #7c3aed;
    border-color: #7c3aed;
}

.gallery-tabs .tab-btn[data-category="външен лектор"] {
    color: #059669;
    border-color: #059669;
}

/* Mobile responsiveness for Bulgarian text */
@media (max-width: 768px) {
    .gallery-tabs {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-tabs .tab-btn {
        font-size: 0.85rem;
        padding: 10px 14px;
        min-width: 90px;
    }
    
    .gallery-notice {
        padding: 1.5rem;
    }
    
    .gallery-notice i {
        font-size: 2rem;
    }
}
