/* ============================================
   Media Page — Volt-Corp style layout
   ============================================ */

.media-page {
    --media-navy: #2e3171;
    --media-navy-dark: #12141d;
    --media-red: #c10d0d;
    --media-red-bright: #e31e24;
    --media-text: #5a5f6e;
    --media-border: #e2e4ea;
    --media-serif: var(--font-heading);
    --media-sans: var(--font-body);
}

/* Media page typography */
.media-page p,
.media-section-desc,
.media-video-card p,
.media-featured-content p,
.media-news-card p,
.media-footer-about,
.media-footer-contact,
.media-footer-links a,
.media-footer-bar,
.media-read-link,
.btn-press-archives,
.media-meta {
    font-family: var(--font-body);
}

.media-page h1,
.media-page h2,
.media-page h3,
.media-page h4,
.media-video-card h3,
.media-news-card h4 {
    font-family: var(--font-heading);
}

.media-page .navbar-nav .nav-link.active-page {
    color: var(--media-red-bright);
    font-weight: 600;
    position: relative;
}

.media-page .navbar-nav .nav-link.active-page::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    height: 2px;
    background: var(--media-red-bright);
    border-radius: 2px;
}

.btn-request-quote {
    background: var(--media-red-bright);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s;
}

.btn-request-quote:hover {
    background: #c4191f;
    color: #fff;
}

/* ── Video Library ── */
.media-videos {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.media-videos-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.media-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--media-red-bright);
    margin-bottom: 0.75rem;
}

.media-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--media-navy);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.media-section-desc {
    font-family: var(--media-sans);
    font-size: 0.95rem;
    color: var(--media-text);
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}

.media-carousel-nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.media-nav-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--media-border);
    background: #fff;
    color: var(--media-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.media-nav-btn:hover:not(:disabled) {
    border-color: var(--media-navy);
}

.media-nav-btn.active,
.media-nav-btn:not(:disabled):hover {
    background: var(--media-navy);
    color: #fff;
    border-color: var(--media-navy);
}

.media-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.media-video-track-wrap {
    overflow: hidden;
}

.media-video-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s ease;
}

.media-video-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}

.media-video-thumb {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 1.25rem;
    cursor: pointer;
    background: #1a1a1a;
}

.media-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.media-video-thumb:hover img {
    transform: scale(1.04);
}

.media-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.25s;
}

.media-video-thumb:hover .media-video-play {
    background: rgba(0, 0, 0, 0.4);
}

.media-video-play i {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--media-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    padding-left: 3px;
}

.media-video-tags {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.media-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.55rem;
}

.media-tag.duration {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}

.media-tag.category {
    background: var(--media-red-bright);
    color: #fff;
}

/* Platform badges (YouTube / Instagram) */
.media-platform-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.6rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.media-platform-badge.yt {
    background: #ff0000;
    color: #fff;
}

.media-platform-badge.ig {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #515bd4);
    color: #fff;
}

.media-video-card h3 {
    font-family: var(--media-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--media-navy);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.media-video-card p {
    font-size: 0.88rem;
    color: var(--media-text);
    line-height: 1.65;
    margin: 0;
}

/* ── News & Updates ── */
/* .media-news {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(4rem, 7vw, 6rem);
  border-top: 1px solid var(--media-border);
} */

.media-news-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.media-news-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--media-navy);
    margin: 0;
    white-space: nowrap;
}

.media-news-header .media-news-line {
    flex: 1;
    height: 1px;
    background: var(--media-border);
}

.media-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

.media-featured-img {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.media-featured-img img,
.media-featured-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Featured Reel Overlay ── */
.media-featured-reel-wrap {
  position: relative;
  overflow: hidden;
}

.media-featured-bg {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: blur(3px) brightness(0.55);
  transform: scale(1.05);
}

.media-featured-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.media-reel-phone {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-reel-phone iframe {
  width: 195px;
  height: 340px;
  border: none;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  background: #000;
}

.media-report-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--media-red-bright);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.75rem;
}

.media-featured-content {
    padding-top: 0.5rem;
}

.media-meta {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--media-red-bright);
    margin-bottom: 1rem;
}

.media-featured-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--media-navy);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.media-featured-content p {
    font-size: 0.92rem;
    color: var(--media-text);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.media-read-link {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--media-navy);
    text-decoration: none;
    transition: color 0.2s;
}

.media-read-link:hover {
    color: var(--media-red-bright);
}

.media-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.media-news-card-img {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 1rem;
}

.media-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.35s;
}

.media-news-card:hover .media-news-card-img img {
    filter: grayscale(40%);
}

.media-news-card .media-meta {
    margin-bottom: 0.65rem;
    color: var(--media-text);
    font-weight: 600;
}

.media-news-card h4 {
    font-family: var(--media-sans);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--media-navy);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.media-news-card p {
    font-size: 0.85rem;
    color: var(--media-text);
    line-height: 1.6;
    margin: 0;
}

.btn-press-archives {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    border: 1px solid var(--media-border);
    background: transparent;
    color: var(--media-navy);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.btn-press-archives:hover {
    border-color: var(--media-navy);
    color: var(--media-red-bright);
}

/* ── Dark Footer ── */
.media-footer {
    background: var(--media-navy-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: clamp(3rem, 5vw, 4rem) 0 0;
}

.media-footer .footer-logo {
    filter: brightness(0) invert(1);
    max-width: 160px;
    margin-top: 0;
}

.media-footer-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--media-red-bright);
    margin: 0.75rem 0 1rem;
}

.media-footer-about {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.media-footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.media-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.media-footer-links li {
    margin-bottom: 0.65rem;
}

.media-footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.media-footer-links a:hover {
    color: #fff;
}

.media-footer-links a strong {
    color: #fff;
    font-weight: 600;
}

.media-footer-contact {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
}

.media-footer-contact a {
    color: var(--media-red-bright);
    text-decoration: none;
}

.media-footer-contact a:hover {
    text-decoration: underline;
}

.media-footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.media-footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.media-footer-social a:hover {
    border-color: var(--media-red-bright);
    color: #fff;
}

.media-footer-bar {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

.media-footer-bar a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    margin-left: 1.25rem;
}

.media-footer-bar a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Video modal */
.media-modal .modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.media-modal .modal-body {
    padding: 0;
}

.media-modal video {
    width: 100%;
    display: block;
}

/* Instagram Reel modal — portrait / phone size */
.media-modal .modal-dialog-instagram {
    max-width: 400px;
}

.media-modal .modal-dialog-instagram .modal-content {
    background: #000;
}

/* ── Dark Mode Overrides ── */
[data-theme="dark"] .media-page,
[data-theme="dark"] .media-videos,
[data-theme="dark"] .media-news {
    background: var(--bg-light, #1a1a1a);
}

[data-theme="dark"] .media-section-title {
    color: #ffffff;
}

[data-theme="dark"] .media-section-desc {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .media-nav-btn {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

[data-theme="dark"] .media-nav-btn.active,
[data-theme="dark"] .media-nav-btn:not(:disabled):hover {
    background: #ffffff;
    color: #2e3171;
    border-color: #ffffff;
}

[data-theme="dark"] .media-video-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .media-video-card p {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .media-news {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .media-news-header h2 {
    color: #ffffff;
}

[data-theme="dark"] .media-news-header .media-news-line {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .media-featured-content h3 {
    color: #ffffff;
}

[data-theme="dark"] .media-featured-content p {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .media-read-link {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .media-read-link:hover {
    color: #e31e24;
}

[data-theme="dark"] .media-news-card h4 {
    color: #ffffff;
}

[data-theme="dark"] .media-news-card p {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .media-news-card .media-meta {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .btn-press-archives {
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    background: transparent;
}

[data-theme="dark"] .btn-press-archives:hover {
    border-color: #ffffff;
    color: #e31e24;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .media-video-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

    .media-featured {
        grid-template-columns: 1fr;
    }

    .media-news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .media-reel-phone iframe {
        width: 160px;
        height: 280px;
    }
}

@media (max-width: 767px) {
    .media-videos-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .media-video-card {
        flex: 0 0 100%;
    }

    .media-news-grid {
        grid-template-columns: 1fr;
    }

    .media-footer-bar {
        flex-direction: column;
        text-align: center;
    }

    .media-footer-bar a {
        margin-left: 0;
        margin-right: 0.75rem;
    }

    /* Reel phone frame on mobile */
    .media-reel-phone iframe {
        width: 140px;
        height: 250px;
        border-radius: 14px;
    }

    /* Platform badges on mobile */
    .media-platform-badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.45rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Video tags on mobile */
    .media-video-tags {
        bottom: 0.5rem;
        left: 0.5rem;
        gap: 0.3rem;
    }

    .media-tag {
        font-size: 0.58rem;
        padding: 0.25rem 0.45rem;
    }

    /* Featured section on mobile */
    .media-featured-img {
        aspect-ratio: 1 / 1;
    }

    .media-report-tag {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
        top: 0.75rem;
        left: 0.75rem;
    }

    /* Navigation buttons on mobile */
    .media-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    /* Section titles on mobile */
    .media-section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .media-news-header h2 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .media-reel-phone iframe {
        width: 120px;
        height: 215px;
        border-radius: 12px;
    }

    .media-platform-badge {
        font-size: 0.5rem;
        padding: 0.18rem 0.4rem;
        gap: 0.2rem;
    }

    .media-platform-badge i {
        font-size: 0.7rem;
    }

    .media-video-play i {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .media-video-card h3 {
        font-size: 0.95rem;
    }

    .media-video-card p {
        font-size: 0.82rem;
    }

    .media-featured-content h3 {
        font-size: 1.15rem;
    }

    .media-featured-content p {
        font-size: 0.85rem;
    }
}