/* ===========================
   Mediation Page Styles — The ADR Initiative
   =========================== */

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */

.med-hero {
    background-color: var(--color-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dot grid — top-left */
.med-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -60px;
    width: 360px;
    height: 360px;
    background-image: radial-gradient(circle, rgba(87, 7, 102, 0.42) 3.5px, transparent 3.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 32% 34%, black 26%, rgba(0,0,0,0.32) 52%, transparent 74%);
    mask-image:         radial-gradient(ellipse 60% 60% at 32% 34%, black 26%, rgba(0,0,0,0.32) 52%, transparent 74%);
    pointer-events: none;
    z-index: 0;
}

/* Spinning circle — bottom-right */
.med-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px dashed rgba(87, 7, 102, 0.16);
    pointer-events: none;
    z-index: 0;
    animation: deco-spin-slow 24s linear infinite;
}

.med-hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 20px;
}

.med-hero-subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--color-black);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 32px;
}

/* ============================================================
   SECTION 2 — TRUST BAR
   Reuses .home-partnerships / .partnerships-* from home.css
   ============================================================ */

.med-trust {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* ============================================================
   SECTION 3 — INSTITUTIONS
   Reuses .home-trusted / .trusted-* from home.css
   ============================================================ */

.med-institutions {
    background-color: var(--color-white);
}

/* ============================================================
   SECTION 4 — TRAINING PROGRAMS
   ============================================================ */

.med-programs {
    background-color: var(--color-bg-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Soft glow — top-right */
.med-programs::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(87, 7, 102, 0.07) 0%, rgba(87, 7, 102, 0.03) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Orb cluster — bottom-left */
.med-programs::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 40px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(87, 7, 102, 0.20);
    box-shadow:
        50px  -70px 0 16px rgba(87, 7, 102, 0.10),
        20px   90px 0  8px rgba(87, 7, 102, 0.14),
       110px   30px 0  5px rgba(87, 7, 102, 0.18),
       -20px -110px 0 12px rgba(87, 7, 102, 0.08);
    pointer-events: none;
    z-index: 0;
}

.med-programs .section-title {
    text-align: center;
    margin-bottom: 48px;
}

.med-program-card {
    background: var(--color-white);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.med-program-card:last-child {
    margin-bottom: 0;
}

/* PART 1 — Image + overlay section: contains title, badge, desc, buttons */
.med-program-header {
    position: relative;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    padding: 48px 40px 52px;
    display: flex;
    align-items: flex-end;
}

.med-program-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.med-program-header-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
}

.med-program-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 12px;
    line-height: 1.3;
}

.med-program-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-white);
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.med-program-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.75;
    margin: 0 0 28px;
}

.med-program-btns {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}


/* PART 2 — Fee tables */
.med-program-tables {
    padding: 36px 40px 0;
    background: var(--color-white);
}


.med-fee-note {
    font-family: var(--font-body);
    font-size: 14px;
    color: #666;
    margin: -24px 0 32px;
}

/* PART 3 — Book button */
.med-program-book-cta {
    background: var(--color-white);
    padding: 32px 40px 40px;
    text-align: center;
}

/* ============================================================
   FEE TABLES — .course-fee-table
   (CSS from provided table code, consolidated here)
   ============================================================ */

.course-fee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: #1a1a1a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    table-layout: fixed;
    margin-bottom: 40px;
}

.course-fee-table caption {
    caption-side: top;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: left;
    margin-bottom: .75rem;
    font-size: 20px;
    color: var(--color-primary);
}

.course-fee-table thead th {
    background: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 16px 18px;
    text-align: left;
    border: none;
    font-size: 17px;
}

.course-fee-table tbody td {
    padding: 14px 18px;
    border-top: 1px solid #f0f0f0;
}

.course-fee-table tbody tr {
    background: #ffffff;
}

.course-fee-table tbody tr:nth-child(odd) {
    background: #faf6fb;
}

.course-fee-table tbody tr:hover {
    background: #f3e6f7;
}

.course-fee-table tbody td:first-child {
    font-weight: 500;
    color: var(--color-primary);
    text-align: left;
}

.course-fee-table tbody tr.group-sep td {
    border-top: 2px solid #e2d1eb;
    background: #ffffff;
}

@media (min-width: 641px) {
    .course-fee-table thead th,
    .course-fee-table tbody td {
        width: 16.6%;
    }
    .course-fee-table thead th:nth-child(n+3),
    .course-fee-table tbody td:nth-child(n+3) {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .course-fee-table thead { display: none; }
    .course-fee-table,
    .course-fee-table tbody,
    .course-fee-table tr,
    .course-fee-table td {
        display: block;
        width: 100%;
    }
    .course-fee-table tbody tr {
        margin: 0 0 16px;
        border: 1px solid #e6e9ee;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .course-fee-table tbody td {
        border: none;
        border-bottom: 1px solid #eef1f5;
        padding: 12px 16px;
        text-align: left !important;
    }
    .course-fee-table tbody td:last-child { border-bottom: 0; }
    .course-fee-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .02em;
        opacity: .7;
        margin-bottom: 6px;
        color: var(--color-primary);
    }
}

/* ============================================================
   SECTION 5 — MEET THE TRAINERS
   Reuses .ppl-masters-grid + .ppl-master-card from people.css
   ============================================================ */

.med-trainers {
    background-color: var(--color-white);
    padding: 80px 0;
}

/* ============================================================
   SECTION 6 — BOOK YOUR TRAINING FORM
   ============================================================ */

.med-form {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.med-form .section-title {
    text-align: center;
    margin-bottom: 48px;
}

.med-form-inner {
    max-width: 760px;
    margin: 0 auto;
}

.med-form-placeholder {
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    .med-hero-title {
        font-size: 40px;
    }

    .med-trust-heading {
        font-size: 26px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */

@media (max-width: 768px) {

    .med-hero,
    .med-trust,
    .med-programs,
    .med-trainers,
    .med-form {
        padding: 60px 0;
    }

    .med-hero-title {
        font-size: 32px;
    }

    .med-hero-subtitle {
        font-size: 16px;
    }

    .med-trust-heading-wrap {
        gap: 12px;
    }

    .med-trust-heading {
        font-size: 22px;
    }

    .med-trust-logos {
        gap: 28px;
    }

    .med-program-header {
        padding: 36px 24px 40px;
    }

    .med-program-title {
        font-size: 22px;
    }

    .med-program-tables {
        padding: 28px 24px 0;
    }

    .med-program-book-cta {
        padding: 24px 24px 32px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */

@media (max-width: 480px) {

    .med-hero,
    .med-trust,
    .med-programs,
    .med-trainers,
    .med-form {
        padding: 48px 0;
    }

    .med-hero-title {
        font-size: 28px;
    }

    .med-hero-subtitle {
        font-size: 15px;
    }

    .med-trust-heading {
        font-size: 18px;
    }

    .med-program-header {
        padding: 28px 20px 36px;
    }

    .med-program-title {
        font-size: 20px;
    }

    .med-program-tables {
        padding: 24px 20px 0;
    }

    .med-program-book-cta {
        padding: 20px 20px 28px;
    }
}

@media (max-width: 768px) {
    .med-hero::before,    .med-hero::after,
    .med-programs::before, .med-programs::after {
        display: none;
    }
}
