/* ==========================================================
   AFDES MEDIA PAGES
========================================================== */

.media-page {
    background: #ffffff;
}

/* HERO */

.media-hero {
    padding: clamp(56px, 8vw, 96px) 0;
    background:
        radial-gradient(circle at top right, rgba(4, 155, 206, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(7, 24, 39, 0.08);
}

.media-hero.compact {
    padding: clamp(46px, 7vw, 76px) 0;
}

.media-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #049bce;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.media-hero h1 {
    max-width: 980px;
    margin: 0;
    color: #071827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5.6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.media-hero p {
    max-width: 800px;
    margin: 20px 0 0;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.75;
}

/* HUB */

.media-hub {
    padding: 64px 0 78px;
}

.media-feature {
    margin-bottom: 34px;
    padding: clamp(30px, 5vw, 48px);
    border: 1px solid rgba(7, 24, 39, 0.08);
    background:
        linear-gradient(135deg, #071827, #0f2f47);
    color: #ffffff;
}

.media-feature span {
    display: inline-block;
    margin-bottom: 12px;
    color: #8de6ff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.media-feature h2 {
    max-width: 780px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.media-feature p {
    max-width: 760px;
    margin: 18px 0 24px;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
}

.media-feature a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 11px 18px;
    background: #049bce;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.media-feature a:hover {
    background: #ffffff;
    color: #071827;
}


/* ==========================================================
   MEDIA INTRO FEATURE — LIGHT EDITORIAL TREATMENT
========================================================== */

.media-feature.media-feature--intro {
    display: grid;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: stretch;
    margin-bottom: 42px;
    padding: 0;
    border: 0;
    border-top: 1px solid #d9e3ea;
    border-bottom: 1px solid #d9e3ea;
    background: transparent;
    color: #071827;
}

.media-feature--intro .media-intro-copy {
    min-width: 0;
    box-sizing: border-box;
    padding: clamp(34px, 5vw, 58px) 0;
}

.media-feature--intro .media-intro-copy > span {
    margin-bottom: 13px;
    color: #049bce;
}

.media-feature--intro h2 {
    max-width: 760px;
    color: #071827;
    font-size: clamp(2rem, 4vw, 3.15rem);
}

.media-feature--intro p {
    max-width: 720px;
    margin: 18px 0 22px;
    color: #526578;
    font-size: .98rem;
    line-height: 1.75;
}

.media-feature--intro a.media-intro-link {
    display: inline-flex;
    min-height: 0;
    gap: 8px;
    align-items: center;
    padding: 0 0 5px;
    border-bottom: 1px solid rgba(4, 155, 206, .35);
    border-radius: 0;
    background: transparent;
    color: #049bce;
    font-size: .76rem;
    letter-spacing: .09em;
    transition: color .2s ease, border-color .2s ease, gap .2s ease;
}

.media-feature--intro a.media-intro-link:hover {
    gap: 12px;
    border-color: #071827;
    background: transparent;
    color: #071827;
}

.media-format-index {
    display: flex;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 4vw, 44px) clamp(30px, 4vw, 54px);
    border-left: 1px solid #d9e3ea;
    background: linear-gradient(135deg, rgba(4, 155, 206, .035), rgba(7, 24, 39, .018));
}

.media-format-row {
    display: grid;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 34px minmax(0, 1fr) minmax(54px, auto);
    gap: 12px;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid #d9e3ea;
}

.media-format-row:first-child {
    border-top: 1px solid #d9e3ea;
}

.media-format-row small {
    color: #049bce;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.media-format-row strong {
    color: #071827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(.98rem, 1.6vw, 1.16rem);
    line-height: 1.25;
}

.media-format-row > span {
    margin: 0;
    color: #8292a1;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-align: right;
    white-space: nowrap;
    text-transform: uppercase;
}

@media (max-width: 1050px) {
    .media-feature.media-feature--intro {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .media-format-index {
        padding: 8px 0 34px;
        border-left: 0;
        background: transparent;
    }
}

@media (max-width: 520px) {
    .media-feature--intro .media-intro-copy {
        padding: 30px 0 26px;
    }

    .media-format-row {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 9px;
        padding: 13px 0;
    }

    .media-format-row > span {
        grid-column: 2;
        margin-top: -4px;
    }
}

.media-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.media-category-card {
    display: block;
    min-height: 230px;
    padding: 28px 24px;
    border: 1px solid rgba(7, 24, 39, 0.08);
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(7, 24, 39, 0.045);
    transition: 0.22s ease;
}

.media-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(4, 155, 206, 0.28);
    box-shadow: 0 20px 46px rgba(7, 24, 39, 0.08);
}

.media-category-card span {
    display: block;
    margin-bottom: 38px;
    color: #049bce;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.media-category-card h3 {
    margin: 0 0 10px;
    color: #071827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.media-category-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

/* MEDIA LIST PAGES */

.media-list-section {
    padding: 48px 0 76px;
}

.media-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(7, 24, 39, 0.09);
}

.media-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 17px;
    border: 1px solid rgba(7, 24, 39, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #071827;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.media-tabs a:hover {
    border-color: #049bce;
    color: #049bce;
}

.media-tabs a.active {
    background: #071827;
    border-color: #071827;
    color: #ffffff;
}

.media-grid.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.media-item,
.interview-card {
    border: 1px solid rgba(7, 24, 39, 0.08);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(7, 24, 39, 0.045);
    overflow: hidden;
}

.media-thumb {
    position: relative;
    height: 210px;
    background: #e2e8f0;
    overflow: hidden;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.95);
}

.play-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #049bce;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.media-item-body {
    padding: 22px;
}

.media-item-body span,
.interview-card span,
.podcast-card span,
.event-card span {
    display: inline-block;
    margin-bottom: 8px;
    color: #049bce;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.media-item-body h3,
.interview-card h3,
.podcast-card h3,
.event-card h3 {
    margin: 0 0 10px;
    color: #071827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.16;
}

.media-item-body p,
.interview-card p,
.podcast-card p,
.event-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

/* PODCASTS */

.media-stack {
    display: grid;
    gap: 16px;
}

.podcast-card,
.event-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(7, 24, 39, 0.08);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(7, 24, 39, 0.045);
}

.podcast-number {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(4, 155, 206, 0.1);
    color: #049bce;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.podcast-card a,
.event-card a,
.interview-card a {
    color: #049bce;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.podcast-card a:hover,
.event-card a:hover,
.interview-card a:hover {
    color: #071827;
}

/* INTERVIEWS */

.interview-card {
    padding: 28px;
    text-align: center;
}

.interview-photo {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
}

.interview-photo.placeholder {
    background: rgba(4, 155, 206, 0.1);
    color: #049bce;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 900;
}

/* EVENTS */

.events-list {
    display: grid;
    gap: 16px;
}

.event-date {
    width: 68px;
    height: 68px;
    border: 1px solid rgba(4, 155, 206, 0.24);
    background: rgba(4, 155, 206, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-date strong {
    color: #071827;
    font-size: 1rem;
    line-height: 1;
}

.event-date span {
    margin: 6px 0 0;
    color: #049bce;
    font-size: 0.72rem;
    font-weight: 900;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .media-category-grid,
    .media-grid.cards-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .media-category-grid,
    .media-grid.cards-3 {
        grid-template-columns: 1fr;
    }

    .podcast-card,
    .event-card {
        grid-template-columns: 1fr;
    }

    .media-tabs {
        justify-content: flex-start;
    }
}

/* ==========================================================
   MEDIA EMPTY STATE + LINKS
========================================================== */

.media-item-body h3 a {
    color: #071827;
    text-decoration: none;
}

.media-item-body h3 a:hover {
    color: #049bce;
}

.media-thumb {
    display: block;
    color: inherit;
    text-decoration: none;
}

.media-empty {
    padding: 44px;
    border: 1px solid rgba(7, 24, 39, 0.08);
    background: #ffffff;
    text-align: center;
    box-shadow: 0 12px 32px rgba(7, 24, 39, 0.045);
}

.media-empty h2 {
    margin: 0 0 10px;
    color: #071827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.media-empty p {
    max-width: 620px;
    margin: 0 auto;
    color: #64748b;
    line-height: 1.7;
}

/* ==========================================================
   DYNAMIC MEDIA HUB
========================================================== */

.dynamic-feature {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 34px;
    align-items: center;
}

.media-feature-content {
    min-width: 0;
}

.media-feature-image {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

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

.latest-media-section {
    margin-top: 56px;
    padding-top: 42px;
    border-top: 1px solid rgba(7, 24, 39, 0.08);
}

.media-section-heading {
    max-width: 820px;
    margin-bottom: 28px;
}

.media-section-heading span {
    display: inline-block;
    margin-bottom: 10px;
    color: #049bce;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.media-section-heading h2 {
    margin: 0;
    color: #071827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.media-grid.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.media-hub-card .media-thumb {
    height: 170px;
}

.media-type-link {
    display: inline-block;
    margin-top: 16px;
    color: #049bce;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.media-type-link:hover {
    color: #071827;
}

@media (max-width: 1100px) {
    .dynamic-feature {
        grid-template-columns: 1fr;
    }

    .media-feature-image {
        max-width: 540px;
    }

    .media-grid.cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .media-grid.cards-4 {
        grid-template-columns: 1fr;
    }

    .media-feature-image {
        height: 220px;
    }
}
/* ==========================================================
   MEDIA DETAIL HELPERS
========================================================== */

.media-guest {
    margin-bottom: 10px !important;
    color: #334155 !important;
    font-weight: 800;
}

.interview-card .interview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}