/* Video Resize */
.videoResize {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Video Player Section */
.main-player-section {
    margin-bottom: 60px;
    margin: auto;
}

.video-container {
    background: white;
    background: linear-gradient(135deg, var(--color-light) 0%, #f8fffe 100%);
    padding: 20px;
    /* overflow: hidden; */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
}


.video-container video {
    width: 100%;
    height: auto;
    min-height: 400px;
    border-radius: 15px;
}

.video-container .video-js {
    width: 100% !important;
    height: auto !important;
    min-height: 400px !important;
    aspect-ratio: 16/9;
}

.video-info {
    padding: 20px 0 0;
    text-align: center;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 400;
}

.video-description {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Gallery Section */
.gallery-section {
    
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;

}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 1px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

/* Video Card Styles */
.video-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-card.active {
    border: 3px solid #a8e6cf;
    box-shadow: 0 15px 35px rgba(168, 230, 207, 0.3);
}

.card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, #f0f2f5, #e1e8ed);
}

.video-preview {
    width: 100%;
    height: 100%;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-preview video {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2c3e50;
    transition: all 0.3s ease;
    padding-left: 4px; /* Adjust play button alignment */
}

.play-icon:hover {
    background: white;
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 400;
}

.card-date {
    color: #a8e6cf;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* VideoJS Customization */
.video-js {
    border-radius: 15px !important;
    width: 100% !important;
    height: auto !important;
}

.video-js.vjs-fluid {
    width: 100% !important;
    max-width: 100% !important;
    height: 0 !important;
    padding-top: 56.25% !important; /* 16:9 aspect ratio */
}

.video-js.vjs-fluid:not(.vjs-audio-only-mode) {
    padding-top: 56.25% !important;
    width: 100% !important;
    height: auto !important;
}

.video-js .vjs-control-bar {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 0 0 15px 15px;
}

.video-js .vjs-play-control,
.video-js .vjs-time-control,
.video-js .vjs-volume-control,
.video-js .vjs-fullscreen-control {
    color: #a8e6cf;
}

.video-js .vjs-progress-control .vjs-progress-holder {
    background: rgba(255, 255, 255, 0.3);
}

.video-js .vjs-progress-control .vjs-play-progress {
    background: #a8e6cf;
}

.video-js .vjs-volume-control .vjs-volume-level {
    background: #a8e6cf;
}


/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #a8e6cf;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    /* Keep the main video player on mobile too, but make it more prominent */
    .main-player-section {
        margin-bottom: 30px;
    }
    
    .video-container {
        padding: 10px;
        margin: 0 -15px;
        border-radius: 0;
    }
    
    /* Simplify video grid for mobile */
    .video-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .video-card {
        height: auto;
        border-radius: 15px;
    }
    
    .card-thumbnail {
        height: 200px;
    }
    
    .header {
        padding: 40px 0 30px;
    }
    
    /* Hide swipe indicators on mobile for now */
    .swipe-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .gallery-title {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile Swipe Animations */
@keyframes swipeIndicator {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

.responsive-inner {
  min-width: 0;         /* Allows shrinking below 1600px */
  max-width: 1600px;    /* Never grows beyond 1600px */
  width: 100%;          /* Fills the container */
  margin: 0 auto;       /* Centers on desktop */
}

/* Category Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: var(--color-primary);
  color: var(--text-light);
}

.tab-button.active {
  background: var(--color-primary);
  color: var(--text-light);
  border-color: var(--color-primary);
}

.video-grid.hidden {
  display: none;
}