/* Qureshi Media Center - lightweight page-specific styles */
.qmb-media-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #0f766e 100%);
    color: #fff;
    padding: 76px 0 64px;
    position: relative;
    overflow: hidden;
}

.qmb-media-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -130px;
    top: -190px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .04), 0 0 0 58px rgba(255, 255, 255, .025);
}

.qmb-media-hero .container,
.qmb-media-content {
    position: relative;
    z-index: 1;
}

.qmb-media-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.qmb-media-hero p {
    color: rgba(255, 255, 255, .82);
    max-width: 680px;
}

.qmb-media-content {
    background: #f7fafc;
}

.qmb-media-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

/* frontend.min.css hides generic grid columns until its reveal script runs.
   Media cards are intentionally static/lazy-loaded, so keep them visible. */
.qmb-media-content .row > article.col-md-6 {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.qmb-media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .13);
}

.qmb-media-frame {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.qmb-media-frame img,
.qmb-media-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

.qmb-media-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(220, 38, 38, .96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.qmb-media-play:hover,
.qmb-media-play:focus-visible {
    background: #b91c1c;
    transform: translate(-50%, -50%) scale(1.08);
}

.qmb-media-card__body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.qmb-media-card__title {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.4;
    margin: 0;
}

.qmb-media-card__description {
    color: #64748b;
    font-size: .94rem;
    line-height: 1.65;
    margin: .65rem 0 0;
}

.qmb-media-category {
    color: #0f766e;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.qmb-media-empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 3.5rem 1.5rem;
}

@media (max-width: 767.98px) {
    .qmb-media-hero {
        padding: 56px 0 48px;
    }

    .qmb-media-hero::after {
        right: -220px;
    }
}
