/* input(16,10): run-time error CSS1030: Expected identifier, found '.'
input(16,31): run-time error CSS1025: Expected comma or open brace, found ')' */
/* Medical reports page — design tokens (strict) */
.medical-reports-page {
    --mr-bg-start: #0f2a3f;
    --mr-bg-end: #133b5c;
    --mr-card-bg: #163a56;
    --mr-accent: #2f80ed;
    --mr-text: #ffffff;
    --mr-text-secondary: #b0c4d4;
    --mr-border: rgba(255, 255, 255, 0.08);
    --mr-glow: rgba(47, 128, 237, 0.4);
    --mr-max: 1200px;
    --mr-section-gap: 80px;
    font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

html:has(.medical-reports-page) {
    scroll-behavior: smooth;
}

.mr-container {
    width: 100%;
    max-width: var(--mr-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* ----- Hero ----- */
.medical-reports-hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    isolation: isolate;
    background: linear-gradient(135deg, var(--mr-bg-start), var(--mr-bg-end));
    overflow: hidden;
    min-height: min(92vh, 980px);
    display: flex;
    align-items: center;
    padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(4rem, 9vw, 6.5rem);
}

.mr-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(47, 128, 237, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 255, 255, 0.06), transparent 50%);
}

.mr-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.mr-hero-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.mr-hero-copy {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.mr-hero-label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--mr-accent);
    letter-spacing: 0.02em;
}

.mr-hero-title {
    margin: 0;
    font-size: clamp(2.35rem, 5.5vw, 3.5rem);
    font-weight: 700;
    color: var(--mr-text);
    line-height: 1.2;
}

.mr-hero-desc {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    font-weight: 400;
    color: var(--mr-text-secondary);
    line-height: 1.8;
}

.mr-hero-visual {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mr-hero-image-wrap {
    max-width: min(640px, 54vw);
    width: 100%;
    filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.48));
}

.mr-hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: min(640px, 54vw);
}

/* ----- Page body (continuation of gradient feel) ----- */
.mr-page-body {
    background: linear-gradient(180deg, #133b5c 0%, #0f2a3f 45%, #0c2436 100%);
    padding-bottom: 0;
}

.mr-divider {
    height: 1px;
    width: 100%;
    margin: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.mr-section {
    padding-top: var(--mr-section-gap);
}

/* ----- Reports section (white panel) ----- */
.mr-reports {
    background: #ffffff;
    padding-bottom: var(--mr-section-gap);
    margin-top: 0;
}

.mr-reports .mr-section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mr-reports .mr-section-label {
    margin: 0 0 0.5rem;
    font-size: 14px;
    font-weight: 700;
    color: var(--mr-accent);
}

.mr-reports .mr-section-title {
    margin: 0 auto 1rem;
    max-width: 32rem;
    font-size: clamp(1.55rem, 3.5vw, 2.15rem);
    font-weight: 700;
    color: #0f2a3f;
    line-height: 1.35;
}

.mr-reports .mr-section-rule {
    display: block;
    width: 60px;
    height: 3px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--mr-accent);
    box-shadow: 0 0 12px rgba(47, 128, 237, 0.35);
}

/* ----- Grid ----- */
.mr-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 991.98px) {
    .mr-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .mr-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Card ----- */
.mr-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--mr-card-bg);
    border: 1px solid var(--mr-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(5, 16, 28, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mr-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(47, 128, 237, 0.15);
}

.mr-card__media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.mr-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.mr-card__overlay-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    line-height: 1;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: rgba(15, 42, 63, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.mr-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.35rem 1.5rem;
    gap: 0.75rem;
}

.mr-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--mr-text);
    line-height: 1.35;
}

.mr-card__desc {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--mr-text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mr-card__actions {
    margin-top: auto;
    padding-top: 0.25rem;
}

.mr-card__actions .btn {
    font-family: inherit;
}

/* ----- Responsive hero ----- */
@media (max-width: 991.98px) {
    .mr-hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .mr-hero-copy {
        align-items: center;
        order: 2;
    }

    .mr-hero-visual {
        order: 1;
    }

    .mr-hero-desc {
        max-width: 36rem;
    }

    .mr-hero-image-wrap,
    .mr-hero-image {
        max-width: min(560px, 88vw);
    }

    .medical-reports-hero {
        min-height: min(88vh, 900px);
    }
}

@media (max-width: 575.98px) {
    .medical-reports-page {
        --mr-section-gap: 56px;
    }

    .mr-hero-title {
        font-size: 1.85rem;
    }

    .mr-hero-desc {
        font-size: 0.95rem;
    }

    .mr-hero-image-wrap,
    .mr-hero-image {
        max-width: min(520px, 92vw);
    }
}
