/* Media Coverage — shared listing, department, entry pages */

/* ---------- Listing (/mediacoverage) ---------- */
.mc-listing-section {
    padding: 2rem 0 3rem;
}

.mc-listing-wrap {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.mc-filter-bar {
    margin-bottom: 1.5rem;
}

.mc-office-select-wrap {
    max-width: 420px;
    margin-bottom: 1rem;
}

.mc-office-select-wrap label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0.35rem;
}

.mc-dept-grid {
    row-gap: 1.35rem;
}

.mc-dept-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mc-dept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(12, 124, 187, 0.16);
    color: inherit;
}

.mc-dept-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    overflow: hidden;
}

.mc-dept-thumb img {
    height: 88px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.mc-dept-body {
    padding: 0.85rem 1rem 1rem;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-dept-body h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #0f172a;
}

.mc-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.mc-no-match {
    display: none !important;
}

/* ---------- Department listing (/mediacoverage/details) ---------- */
.mc-dept-hero {
    position: relative;
    min-height: 180px;
    background: linear-gradient(135deg, #0c7cbb 0%, #0f766e 55%, #134e4a 100%);
    color: #fff;
    overflow: hidden;
}

.mc-dept-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.22;
}

.mc-dept-hero-inner {
    position: relative;
    z-index: 1;
    padding: 2rem 0 1.5rem;
}

.mc-dept-hero h1 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    margin: 0.35rem 0 0;
}

.mc-dept-hero .mc-breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.mc-dept-hero .mc-breadcrumb a:hover {
    text-decoration: underline;
}

.mc-dept-hero .mc-breadcrumb span {
    color: rgba(255, 255, 255, 0.75);
}

.mc-entries-section {
    padding: 2rem 0 3rem;
}

.mc-search-wrap {
    max-width: 420px;
    margin-bottom: 1.5rem;
}

.mc-entry-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mc-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(12, 124, 187, 0.16);
    color: inherit;
}

.mc-entry-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.mc-entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.mc-entry-card:hover .mc-entry-thumb img {
    transform: scale(1.03);
}

.mc-entry-body {
    padding: 0.9rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mc-entry-body h3 {
    font-size: 0.975rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    line-height: 1.35;
    color: #0f172a;
}

.mc-entry-excerpt {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}

.mc-entry-more {
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0c7cbb;
}

/* ---------- Entry detail (/mediacoverage/entry) ---------- */
.mc-hero {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, #0c7cbb 0%, #0f766e 55%, #134e4a 100%);
    color: #fff;
    overflow: hidden;
}

.mc-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.32;
}

.mc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.55) 100%);
    z-index: 0;
    pointer-events: none;
}

.mc-hero-inner {
    position: relative;
    z-index: 1;
    padding: 2.25rem 0 1.75rem;
}

.mc-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.mc-breadcrumb a:hover {
    text-decoration: underline;
}

.mc-breadcrumb span {
    color: rgba(255, 255, 255, 0.75);
}

.mc-hero h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0.65rem 0 0;
    line-height: 1.25;
}

.mc-content {
    padding: 2rem 0 3.5rem;
}

.mc-article-body {
    max-width: 820px;
    margin: 0 auto 2rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    font-size: 1rem;
    line-height: 1.65;
    color: #334155;
}

.mc-article-body p {
    margin-bottom: 0.85rem;
}

.mc-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.mc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.mc-tab {
    border: none;
    background: #f1f5f9;
    color: #334155;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.mc-tab:hover {
    background: #e2e8f0;
}

.mc-tab.active {
    background: linear-gradient(135deg, #0c7cbb, #0f766e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(12, 124, 187, 0.35);
}

.mc-panel {
    display: none;
    animation: mcFade 0.3s ease;
}

.mc-panel.active {
    display: block;
}

@keyframes mcFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.mc-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #e2e8f0;
}

.mc-section-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin: -0.5rem 0 1rem;
}

.mc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.mc-gallery-item {
    border: none;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f8fafc;
    aspect-ratio: 1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}

.mc-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 24px rgba(12, 124, 187, 0.2);
}

.mc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.mc-youtube-embed iframe {
    border: 0;
    border-radius: 8px;
}

.mc-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.mc-video-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s;
}

.mc-video-card:hover {
    transform: translateY(-4px);
}

.mc-video-card video,
.mc-video-card .mc-v-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.mc-play-overlay svg {
    width: 56px;
    height: 56px;
    fill: #fff;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.mc-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.mc-doc-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
    transition: box-shadow 0.25s, transform 0.25s;
}

.mc-doc-card:hover {
    box-shadow: 0 10px 28px rgba(12, 124, 187, 0.15);
    transform: translateY(-2px);
}

.mc-doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mc-doc-icon img {
    width: 28px;
    height: 28px;
}

.mc-doc-info {
    flex: 1;
    min-width: 0;
}

.mc-doc-info h6 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.mc-doc-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mc-doc-actions a {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.mc-btn-view {
    background: #0c7cbb;
    color: #fff;
}

.mc-btn-dl {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.mc-related-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mc-related-link-item {
    margin: 0;
}

.mc-related-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #0c7cbb;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.mc-related-link:hover {
    background: #f0f9ff;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(12, 124, 187, 0.12);
    color: #0f766e;
}

.mc-related-link-icon {
    font-size: 1.1rem;
    opacity: 0.7;
}

.mc-lightbox,
.mc-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.92);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mc-lightbox.open,
.mc-video-modal.open {
    display: flex;
}

.mc-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.mc-lightbox-close,
.mc-video-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    border: none;
    background: transparent;
}

.mc-video-modal video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

.mc-empty-panel {
    text-align: center;
    color: #64748b;
    padding: 2.5rem 1rem;
}

.gallery-video {
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .mc-dept-thumb {
        min-height: 100px;
        padding: 0.75rem 1rem;
    }

    .mc-dept-thumb img {
        height: 72px;
    }
}
