/* =========================================
   Media Centers Styles
   ========================================= */

.media-header {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.8) 0%, rgba(102, 0, 0, 0.9) 100%), url('../images/cabinet.jpg') center/cover no-repeat !important;
    padding: 120px 20px 80px;
    position: relative;
    text-align: center;
    color: white;
}
.media-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 0;
}
.media-header .container {
    position: relative;
    z-index: 1;
}
.media-header h1 {
    font-size: 3rem;
    font-family: 'Roboto Slab', serif;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.media-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Media Navigation */
.media-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: -30px;
    position: relative;
    z-index: 5;
    padding-bottom: 50px;
}
.media-nav-btn {
    background: var(--card);
    color: var(--text);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.media-nav-btn.active, .media-nav-btn:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 77, 153, 0.3);
}

/* Video Grid */
.video-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}
.video-grid::-webkit-scrollbar {
    height: 8px;
}
.video-grid::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 4px;
}
.video-grid::-webkit-scrollbar-track {
    background: var(--bd);
    border-radius: 4px;
}
.video-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: none;
}
.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}
.video-wrapper video, .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-info {
    padding: 25px;
}
.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
    font-family: 'Roboto Slab', serif;
}
body.dark-mode .video-info h3 {
    color: var(--white);
}
.video-desc {
    font-size: 0.95rem;
    color: var(--mu);
    line-height: 1.5;
    margin: 0;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 250px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-info {
    opacity: 1;
}
.gallery-info i {
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}
.gallery-item:hover .gallery-info i {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.gallery-info h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-info h4 {
    transform: translateY(0);
}
.gallery-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}
.gallery-item:hover .gallery-info p {
    transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: var(--re);
}
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: #fff;
}
.lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.lightbox-caption p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}
.lightbox-nav:hover {
    background: var(--blue);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}

/* Brand Assets */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.asset-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}
.asset-card:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(0, 77, 153, 0.1);
}
.asset-icon {
    font-size: 3rem;
    color: var(--blue);
    margin-bottom: 20px;
}
.asset-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}
body.dark-mode .asset-title {
    color: var(--white);
}
.asset-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.asset-download-btn {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(0, 77, 153, 0.1);
    color: var(--blue);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.asset-card:hover .asset-download-btn {
    background: var(--blue);
    color: white;
}
