/* Media page — hero matches news page treatment */
.media-page .about-hero {
    background: #3D5AA8 !important;
    position: relative;
    padding: 80px 112px 70px !important;
}

.media-page .about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at -4325% -4325%, rgba(29, 37, 48, 1) 1%, rgba(29, 37, 48, 0) 1%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.media-page .about-hero .about-hero-content {
    position: relative;
    z-index: 1;
}

.media-page .about-hero .about-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.media-page .about-hero .about-breadcrumb .breadcrumb-item {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3333;
    color: #fff !important;
}

.media-page .about-hero h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 48px !important;
    font-weight: 700;
    line-height: 1em !important;
    letter-spacing: -0.025em !important;
    color: #fff !important;
    margin: 0 0 16px 0 !important;
}

.media-page .about-hero p {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px !important;
    font-weight: 400;
    line-height: 1.4em !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
}

/* Featured Media section */
.featured-media-section {
    padding: 56px 80px 80px;
    background: #ffffff;
}

.featured-media-section .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.featured-media-header {
    margin-bottom: 40px;
    max-width: 720px;
}

.featured-media-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d5aa8;
}

.featured-media-eyebrow-rule {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: #3d5aa8;
    border-radius: 1px;
    flex-shrink: 0;
}

.featured-media-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1d2530;
    margin: 0 0 12px;
}

.featured-media-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #67717e;
    margin: 0;
}

.featured-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

a.featured-media-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.featured-media-card:hover {
    box-shadow: 0 8px 24px rgba(29, 37, 48, 0.08);
}

a.featured-media-card:focus {
    outline: none;
}

a.featured-media-card:focus-visible {
    outline: 2px solid #3d5aa8;
    outline-offset: 3px;
}

.featured-media-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8eaed;
}

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

.media-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 4px 12px;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.media-badge--interview {
    background: #3d5aa8;
    color: #ffffff;
}

.media-badge--testimonial {
    background: #1b5e20;
    color: #ffffff;
}

.media-badge--event {
    background: #76ff03;
    color: #1d2530;
}

.media-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.featured-media-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px 24px;
    flex: 1;
}

.featured-media-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #9ca3af;
}

.featured-media-card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #1d2530;
    margin: 0;
}

.featured-media-card-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: #67717e;
    margin: 0;
}

.featured-media-card-body--compact {
    gap: 10px;
    padding: 18px 20px 22px;
}

/* Interviews — In Conversation */
.interviews-media-section {
    padding: 56px 80px 72px;
    background: #f9fafb;
}

.interviews-media-section .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.interviews-media-header {
    margin-bottom: 40px;
    max-width: 720px;
}

.interviews-media-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1d2530;
    margin: 0 0 12px;
}

.interviews-media-lede {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #67717e;
    margin: 0;
}

.interviews-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.interviews-see-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.interviews-media-section .interviews-media-card.is-hidden,
.interviews-media-section .interviews-see-more-wrap.is-hidden {
    display: none !important;
}

.interviews-see-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid #3d5aa8;
    border-radius: 9999px;
    background: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #3d5aa8;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(29, 37, 48, 0.04);
}

.interviews-see-more:hover {
    background: rgba(61, 90, 168, 0.06);
    box-shadow: 0 4px 12px rgba(61, 90, 168, 0.12);
}

.interviews-see-more:focus {
    outline: none;
}

.interviews-see-more:focus-visible {
    outline: 2px solid #3d5aa8;
    outline-offset: 3px;
}

.interviews-see-more__icon {
    flex-shrink: 0;
}

/* Events — Moments That Matter */
.events-media-section {
    padding: 56px 80px 72px;
    background: #f9fafb;
}

.events-media-section .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.events-media-header {
    margin-bottom: 40px;
    max-width: 720px;
}

.events-media-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1d2530;
    margin: 0 0 12px;
}

.events-media-lede {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #67717e;
    margin: 0;
}

.events-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.events-see-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.events-media-section .events-media-card.hidden,
.events-media-section .events-see-more-wrap.hidden {
    display: none !important;
}

.events-see-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid #3d5aa8;
    border-radius: 9999px;
    background: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #3d5aa8;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(29, 37, 48, 0.04);
}

.events-see-more:hover {
    background: rgba(61, 90, 168, 0.06);
    box-shadow: 0 4px 12px rgba(61, 90, 168, 0.12);
}

.events-see-more:focus {
    outline: none;
}

.events-see-more:focus-visible {
    outline: 2px solid #3d5aa8;
    outline-offset: 3px;
}

.events-see-more__icon {
    flex-shrink: 0;
}

/* Testimonials — Voices of Trust (carousel) */
.testimonials-media-section {
    padding: 56px 80px 72px;
    background: #ffffff;
}

.testimonials-media-section .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.testimonials-media-header {
    margin-bottom: 36px;
    max-width: 720px;
}

.testimonials-media-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1d2530;
    margin: 0 0 12px;
}

.testimonials-media-lede {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #67717e;
    margin: 0;
}

.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonials-carousel__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.testimonials-carousel__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 4px 20px;
    margin: 0 -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 90, 168, 0.35) transparent;
}

.testimonials-carousel__track::-webkit-scrollbar {
    height: 6px;
}

.testimonials-carousel__track::-webkit-scrollbar-thumb {
    background: rgba(61, 90, 168, 0.35);
    border-radius: 3px;
}

.testimonials-carousel__nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e3e5e8;
    border-radius: 50%;
    background: #ffffff;
    color: #3d5aa8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(29, 37, 48, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.testimonials-carousel__nav:hover:not(:disabled) {
    background: rgba(61, 90, 168, 0.06);
    border-color: #3d5aa8;
}

.testimonials-carousel__nav:focus {
    outline: none;
}

.testimonials-carousel__nav:focus-visible {
    outline: 2px solid #3d5aa8;
    outline-offset: 2px;
}

.testimonials-carousel__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

a.testimonial-carousel-card {
    flex: 0 0 22%;
    min-width: 260px;
    max-width: 320px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease;
}

a.testimonial-carousel-card:hover {
    box-shadow: 0 8px 24px rgba(29, 37, 48, 0.08);
}

a.testimonial-carousel-card:focus {
    outline: none;
}

a.testimonial-carousel-card:focus-visible {
    outline: 2px solid #3d5aa8;
    outline-offset: 3px;
}

.testimonial-carousel-card .featured-media-card-media {
    aspect-ratio: 16 / 10;
}

.testimonial-carousel-card__content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.testimonial-carousel-card__quote-mark {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 36px;
    line-height: 0.85;
    color: #3d5aa8;
    margin-bottom: 4px;
}

.testimonial-carousel-card__quote {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    color: #4b5563;
}

.testimonial-carousel-card__rule {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 14px 0 12px;
}

.testimonial-carousel-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-carousel-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8eaed;
}

.testimonial-carousel-card__author-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.testimonial-carousel-card__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #1d2530;
}

.testimonial-carousel-card__meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #9ca3af;
}

@media (max-width: 1200px) {
    a.testimonial-carousel-card {
        flex: 0 0 32%;
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .testimonials-carousel__nav {
        display: none;
    }

    a.testimonial-carousel-card {
        flex: 0 0 min(85vw, 320px);
        min-width: min(85vw, 280px);
    }

    .testimonials-carousel__track {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Video modal (YouTube / Facebook iframe) */
.media-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.media-modal[hidden] {
    display: none !important;
}

.media-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 24, 0.78);
    cursor: pointer;
}

.media-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.media-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1d2530;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.15s ease;
}

.media-modal__close:hover {
    background: #fff;
    transform: scale(1.05);
}

.media-modal__close:focus {
    outline: none;
}

.media-modal__close:focus-visible {
    outline: 2px solid #3d5aa8;
    outline-offset: 2px;
}

.media-modal__aspect {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.media-modal__aspect--landscape {
    max-width: min(960px, 94vw);
    aspect-ratio: 16 / 9;
}

.media-modal__aspect--portrait {
    width: min(420px, 92vw, calc(90vh * 9 / 16));
    max-height: 90vh;
    aspect-ratio: 9 / 16;
}

.media-modal__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-modal__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 576px) {
    .media-modal__aspect--portrait {
        width: min(100%, calc(90vh * 9 / 16));
    }
}

@media (max-width: 1200px) {
    .featured-media-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .interviews-media-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .events-media-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 1440px) {
    .media-page .about-hero {
        padding: 60px 80px !important;
    }

    .featured-media-section {
        padding: 48px 40px 64px;
    }

    .interviews-media-section {
        padding: 48px 40px 64px;
    }

    .testimonials-media-section {
        padding: 48px 40px 64px;
    }

    .events-media-section {
        padding: 48px 40px 64px;
    }
}

@media (max-width: 992px) {
    .media-page .about-hero h1 {
        font-size: 40px !important;
    }

    .featured-media-title {
        font-size: 28px;
    }

    .testimonials-media-heading {
        font-size: 28px;
    }

    .events-media-heading {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .media-page .about-hero {
        padding: 48px 40px !important;
    }

    .media-page .about-hero h1 {
        font-size: 36px !important;
    }

    .media-page .about-hero p {
        font-size: 18px !important;
    }

    .featured-media-section {
        padding: 40px 24px 56px;
    }

    .interviews-media-section {
        padding: 40px 24px 56px;
    }

    .testimonials-media-section {
        padding: 40px 24px 56px;
    }

    .events-media-section {
        padding: 40px 24px 56px;
    }

    .interviews-media-heading {
        font-size: 24px;
    }

    .testimonials-media-heading {
        font-size: 24px;
    }

    .events-media-heading {
        font-size: 24px;
    }

    .featured-media-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .media-page .about-hero {
        padding: 32px 24px !important;
    }

    .media-page .about-hero h1 {
        font-size: 28px !important;
    }

    .media-page .about-hero p {
        font-size: 16px !important;
    }

    .featured-media-section {
        padding: 32px 16px 48px;
    }

    .interviews-media-section {
        padding: 32px 16px 48px;
    }

    .testimonials-media-section {
        padding: 32px 16px 48px;
    }

    .events-media-section {
        padding: 32px 16px 48px;
    }

    .interviews-media-heading {
        font-size: 22px;
    }

    .testimonials-media-heading {
        font-size: 22px;
    }

    .events-media-heading {
        font-size: 22px;
    }

    .featured-media-eyebrow {
        font-size: 11px;
    }
}
