/* Videos Page CSS */
.main-content {
    margin-top: 80px;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 30px;
}

.video-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.stat-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Featured Video */
.video-hero {
    padding: 50px 0;
    background-color: var(--bg-color);
}

.featured-video {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-player-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    background-color: var(--bg-secondary);
}

.video-player {
    position: relative;
    background-color: #000;
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
}

.plyr {
    border-radius: 0;
}

.video-info {
    padding: 30px;
    background-color: var(--bg-secondary);
}

.video-info h2 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.video-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta i {
    color: var(--secondary-color);
}

.video-description {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.video-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.video-tag {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Video Filters */
.video-filters {
    padding: 30px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

/* Video Gallery */
.video-gallery {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.sort-options select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-options select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.video-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dark-theme .video-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-card:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.play-btn {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    transform: scale(0.9);
}

.video-card:hover .play-btn {
    transform: scale(1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-card-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
}

.video-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.video-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-card-meta i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.video-card-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.video-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more .btn {
    padding: 12px 40px;
}

.load-more .btn i {
    margin-right: 8px;
}

/* Video Playlists */
.video-playlists {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.playlist-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.playlist-card:hover {
    transform: translateY(-5px);
}

.playlist-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-count {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.playlist-count i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.playlist-info {
    padding: 25px;
}

.playlist-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.playlist-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}

.video-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--primary-color);
    color: white;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
}

.modal-video-player {
    background-color: #000;
    padding: 20px;
}

.modal-video-player video {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
}

.modal-video-info {
    padding: 25px 30px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-light);
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-meta i {
    color: var(--secondary-color);
}

.modal-video-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .video-player-container {
        grid-template-columns: 1fr;
    }
    
    .video-info {
        order: -1;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .video-stats {
        gap: 25px;
    }
    
    .stat-item {
        font-size: 1rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .videos-grid, .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-video-info {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0 20px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .video-stats {
        gap: 20px;
    }
    
    .stat-item {
        font-size: 0.9rem;
    }
    
    .video-info h2 {
        font-size: 1.5rem;
    }
    
    .video-meta {
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .videos-grid, .playlists-grid {
        grid-template-columns: 1fr;
    }
    
    .video-thumbnail, .playlist-thumbnail {
        height: 200px;
    }
    
    .modal-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Plyr Player Customization */
.plyr--full-ui.plyr--video {
    --plyr-color-main: var(--secondary-color);
}

.plyr--video .plyr__controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.plyr__control--overlaid {
    background: var(--secondary-color);
}

.plyr__control--overlaid:hover {
    background: var(--secondary-dark);
}




/* =========================================== */
/* MODERN PROFESSIONAL FOOTER STYLES */
/* =========================================== */

.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    padding-top: 60px;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Section */
.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-image {
    width: 70px;
    height: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-text h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.footer-tagline {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-description {
    color: var(--footer-text);
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Newsletter */
.footer-newsletter h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-newsletter {
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-newsletter:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

/* Footer Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--footer-text);
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
    padding: 4px 0;
}

.footer-menu a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Contact Info */
.contact-info {
    margin-top: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact-text p {
    margin: 0;
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer Middle Section (Social Media) */
.footer-middle {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-media h4 {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: white;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 140, 0, 0.2);
    color: var(--secondary-color);
}

.social-icon.facebook:hover {
    background-color: rgba(24, 119, 242, 0.2);
    color: #1877F2;
}

.social-icon.instagram:hover {
    background-color: rgba(225, 48, 108, 0.2);
    color: #E1306C;
}

.social-icon.tiktok:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: orange;
}

.social-icon.youtube:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: #FF0000;
}

.social-icon i {
    font-size: 1.1rem;
}

.social-icon span {
    font-weight: 500;
}

/* Footer Bottom Section */
.footer-bottom {
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--footer-text);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal a {
    color: var(--footer-text);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

.divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Design Credit */
.design-credit {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--footer-text);
    font-size: 0.9rem;
}

.design-credit i {
    color: #ff4757;
    margin: 0 5px;
}

.designer {
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1px;
    padding-left: 5px;
}

/* Back to Top Button */
.back-to-top {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.8;
    z-index: 100;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* =========================================== */
/* RESPONSIVE STYLES FOR FOOTER */
/* =========================================== */

@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-slideshow {
        height: 65vh;
        min-height: 450px;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .countdown-item {
        min-width: 100px;
        padding: 20px 10px;
    }
    
    .countdown-item span {
        font-size: 2.5rem;
    }
    
    .slide-control {
        width: 40px;
        height: 40px;
    }
    
    /* Footer Responsive */
    .footer-top {
        gap: 30px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        padding: 10px 15px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .btn-newsletter {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-slideshow {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .countdown-item span {
        font-size: 2rem;
    }
    
    .highlight-card, .group-card {
        padding: 20px;
    }
    
    .group-image {
        height: 200px;
    }
    
    .slideshow-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Footer Responsive */
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
    
    .social-icons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-icon {
        width: 200px;
        justify-content: center;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-logo-image {
        margin: 0 auto;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-slideshow {
        height: 55vh;
        min-height: 350px;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}