/* ==========================================================================
   Mhams home page + header/footer additions.
   Builds on education-home.css tokens and components; only adds what is new.
   ========================================================================== */

/* custom.css sets overflow-x: hidden on html/body, which turns them into scroll containers and
   stops the sticky header from sticking. `clip` still prevents sideways scrolling but keeps
   the page as the scroll container, so the header stays at the top while scrolling. */
html,
body {
    overflow-x: clip !important;
}

/* Header: white bar with dark menu text (the dark colour lives in the hero / breadcrumb banner) */
.edu-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px -20px rgba(26, 23, 48, 0.35);
}

.edu-nav-links a,
.edu-nav-actions .edu-signin {
    color: var(--text);
    font-size: 17px !important;
    font-weight: 600;
}

.edu-nav-links {
    gap: 28px;
}

.edu-nav-actions .edu-btn {
    font-size: 16px !important;
}

.edu-nav-links a:hover,
.edu-nav-actions .edu-signin:hover,
.edu-nav-links a.is-active {
    color: var(--purple);
}

.edu-nav-links a.is-active {
    font-weight: 700;
}

/* Language switch: grey pill, translate icon + "En/Ar" */
.edu-nav .edu-lang-btn {
    gap: 8px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: #e9e7ee;
    color: var(--heading);
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
}

.edu-nav .edu-lang-btn i {
    font-size: 18px;
}

.edu-nav .edu-lang-btn:hover {
    background: #dedbe6;
    color: var(--heading);
}

/* Account dropdown: same grey pill as the language switch */
.edu-account__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: #e9e7ee;
    color: var(--heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.edu-account__btn:hover,
.edu-account__btn[aria-expanded="true"] {
    background: #dedbe6;
}

.edu-account__btn > .bi-person-circle {
    color: #652d90;
    font-size: 20px;
}

.edu-account__chevron {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.edu-account__btn[aria-expanded="true"] .edu-account__chevron {
    transform: rotate(180deg);
}

.edu-account__menu {
    min-width: 200px;
    margin-top: 8px !important;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(26, 23, 48, 0.35);
}

.edu-account__menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--heading);
    font-size: 15px !important;
    font-weight: 600;
}

.edu-account__menu .dropdown-item .bi {
    color: #652d90;
    font-size: 16px;
}

.edu-account__menu .dropdown-item:hover,
.edu-account__menu .dropdown-item:focus {
    background: #f7f3fb;
    color: #652d90;
}

.edu-nav .edu-lang-btn:hover {
    background: rgba(var(--edu-purple-rgb), 0.1);
    color: var(--purple);
}

/* Menu toggle: grey circle matching the language and account pills */
.edu-nav .edu-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e9e7ee;
    color: var(--heading);
    font-size: 1.3rem;
}

/* Below the desktop breakpoint: compact pills, no icon on the language switch */
@media (max-width: 1199.98px) {
    .edu-nav .edu-nav-actions {
        gap: 8px;
    }

    .edu-nav .edu-lang-btn,
    .edu-account__btn {
        padding: 9px 14px;
        font-size: 14px !important;
    }

    .edu-nav .edu-lang-btn i {
        display: none;
    }

    .edu-account__chevron {
        display: none;
    }
}

/* Phones: the cart moves into the menu; smaller logo */
@media (max-width: 575.98px) {
    .edu-nav .mk-header-cart {
        display: none !important;
    }

    .edu-nav .edu-logo img {
        height: 40px;
    }

    .edu-nav .edu-lang-btn,
    .edu-account__btn {
        padding: 8px 12px;
        font-size: 13.5px !important;
    }

    .edu-account__btn > .bi-person-circle {
        font-size: 18px;
    }
}

/* Hero: text on the start side, image on the end side (mirrors automatically in RTL) */
.mhams-hero {
    text-align: start;
}

.mhams-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.mhams-hero .mhams-hero-text p {
    margin-inline: 0;
    max-width: 620px;
}

.mhams-hero .edu-hero-ctas {
    justify-content: flex-start;
    margin-bottom: 0;
}

.mhams-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 7;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

@media (max-width: 991px) {
    .mhams-hero-grid {
        grid-template-columns: 1fr;
    }

    .mhams-hero-media {
        max-width: 560px;
    }
}

/* Chips (sectors served / partner types) */
.mhams-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: -16px auto 40px;
}

.mhams-chip {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--heading);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
}

.edu-section--light .mhams-chip {
    background: var(--bg-light);
}

/* Procurement: sectors served as cards */
.mhams-sector-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 44px;
}

.mhams-sector-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: var(--edu-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mhams-sector-card:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: rgba(var(--edu-purple-rgb), 0.35);
    box-shadow: 0 22px 44px -26px rgba(var(--edu-purple-rgb), 0.55);
}

.mhams-sector-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--purple);
    background: rgba(var(--edu-purple-rgb), 0.1);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mhams-sector-card:hover .mhams-sector-icon {
    color: #fff;
    background: var(--purple);
}

.mhams-sector-card h4 {
    margin: 0;
    color: var(--heading);
    font-weight: 700;
    font-size: 15.5px !important;
    line-height: 1.4 !important;
}

@media (max-width: 1199px) {
    .mhams-sector-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mhams-sector-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mhams-sector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mhams-sector-card {
        padding: 22px 12px;
    }
}

/* Marketplace product groups */
.mhams-group-card h4 {
    margin-bottom: 16px;
}

.mhams-pill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mhams-pill-list li {
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
    border: 1px solid var(--edu-border-dark);
    border-radius: 999px;
    padding: 5px 12px;
}

/* Supplier platform / traceability checklists */
.mhams-list-title {
    font-size: 15px !important;
    font-weight: 700;
    color: var(--heading);
    margin: 22px 0 0;
}

.mhams-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

@media (max-width: 600px) {
    .mhams-check-grid {
        grid-template-columns: 1fr;
    }
}

.mhams-partner-logos div {
    background: #fff;
}

.mhams-partner-logos img {
    object-fit: contain;
    padding: 16px;
}

/* Final CTA: the journey copy is longer than the default 540px allows */
.edu-cta-section p.mhams-cta-text {
    max-width: 760px;
}

/* Phones: justified paragraph reads better than a ragged centred block */
@media (max-width: 767px) {
    .edu-cta-section p.mhams-cta-text {
        text-align: justify;
        text-align-last: center;
        hyphens: auto;
    }
}

/* Footer: four columns (brand + quick links + services + contact) */
.edu-footer-grid.mhams-footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
}

.mhams-footer-grid ul li i {
    margin-inline-end: 6px;
}

.mhams-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.mhams-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--edu-border-dark);
    color: var(--muted);
    text-decoration: none;
}

.mhams-social a i,
.mhams-social a i.text-dark {
    color: inherit !important;
}

.mhams-social a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .edu-footer-grid.mhams-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .edu-footer-grid.mhams-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Header cart icon (site header) ---------- */
.mk-header-cart {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--heading);
    font-size: 18px !important;
}

.mk-header-cart:hover {
    color: var(--purple);
    background: rgba(var(--edu-purple-rgb), 0.08);
}

.mk-header-cart em {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ff0000;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

/* ==========================================================================
   About page
   ========================================================================== */
.mhams-hero--page {
    padding-block: clamp(36px, 6vw, 64px) clamp(48px, 7vw, 80px);
    /* No dark band on inner pages: plain page background with dark text. */
    background: transparent;
    color: var(--heading);
}

.mhams-hero--page h1 {
    color: var(--heading);
}

.mhams-hero--page p {
    color: var(--text);
}

/* About hero: text on the start side, image on the end side */
.mhams-about-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 8vw, 96px);
    background:
        radial-gradient(circle at 8% 10%, rgba(var(--edu-purple-rgb), 0.08), transparent 38%),
        radial-gradient(circle at 92% 90%, rgba(255, 176, 32, 0.08), transparent 36%);
}

.mhams-about-hero .mhams-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.mhams-about-hero .mhams-hero-media img {
    aspect-ratio: 1 / 1;
}

.mhams-about-hero .mhams-hero-media {
    position: sticky;
    top: 24px;
}

@media (max-width: 991px) {
    .mhams-about-hero .mhams-hero-grid {
        grid-template-columns: 1fr;
    }

    .mhams-about-hero .mhams-hero-media {
        position: static;
    }
}

.mhams-about-hero h1 {
    margin-bottom: 0;
}

.mhams-about-hero__divider {
    display: block;
    width: 72px;
    height: 4px;
    margin: 24px 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--purple), var(--edu-orange));
}

.mhams-hero .mhams-about-hero__desc p {
    max-width: none;
    margin: 0 0 16px;
    color: var(--text);
    font-size: 16.5px !important;
    line-height: 1.9 !important;
}

.mhams-hero .mhams-about-hero__desc p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .mhams-hero .mhams-about-hero__desc p {
        font-size: 16px !important;
    }
}

.mhams-hero--page .mhams-hero-media img {
    box-shadow: 0 30px 60px -36px rgba(26, 23, 48, 0.45);
}

/* Inner-page breadcrumb banner (x-page-breadcrumb) carries the header's dark colour */
.mhams-breadcrumb {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #1c1640 0%, var(--night) 65%);
    color: #fff;
    text-align: center;
    padding-block: clamp(48px, 7vw, 88px);
}

.mhams-breadcrumb::before,
.mhams-breadcrumb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.mhams-breadcrumb::before {
    width: 340px;
    height: 340px;
    inset-inline-start: -120px;
    bottom: -200px;
    background: rgba(var(--edu-purple-rgb), 0.18);
}

.mhams-breadcrumb::after {
    width: 220px;
    height: 220px;
    inset-inline-end: -60px;
    top: 40px;
    background: rgba(255, 176, 32, 0.08);
}

.mhams-breadcrumb .container {
    position: relative;
    z-index: 1;
}

.mhams-breadcrumb__title {
    color: #fff;
    font-size: clamp(30px, 4vw, 46px) !important;
    font-weight: 800;
    line-height: 1.2 !important;
    margin: 0 0 14px;
}

.mhams-breadcrumb .mhams-crumbs {
    justify-content: center;
    margin: 0;
}

.mhams-breadcrumb .mhams-crumbs span {
    color: #fff;
}


.mhams-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.mhams-crumbs a {
    color: var(--muted);
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.mhams-crumbs a:hover {
    color: #fff;
}

.mhams-crumbs .bi {
    font-size: 10px;
}

html[dir="rtl"] .mhams-crumbs .bi {
    transform: scaleX(-1);
}

.mhams-hero--page h1 .edu-accent {
    font-size: 0.62em;
    line-height: 1.35;
    display: inline-block;
}

.edu-split-text p + p {
    margin-top: 14px;
}

/* Vision & Mission: dark navy + purple cards, white round icon, corner circle */
.mhams-vm-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mhams-vm-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 40px 36px 44px;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mhams-vm-card--vision {
    background: #14003f;
}

.mhams-vm-card--mission {
    background: #652d90;
}

.mhams-vm-card::after {
    content: "";
    position: absolute;
    top: -80px;
    inset-inline-end: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.mhams-vm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 50px -30px rgba(20, 0, 63, 0.6);
}

.mhams-vm-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #fff;
    color: #4b1a7a;
    font-size: 24px;
}

.mhams-vm-card h3 {
    position: relative;
    margin: 0 0 14px;
    color: #fff;
    font-size: 26px !important;
    font-weight: 800;
    line-height: 1.3 !important;
}

.mhams-vm-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15.5px !important;
    line-height: 1.9 !important;
}

/* Objectives: card grid, 4 per row, last row centred */
.mhams-objectives {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.mhams-objective {
    position: relative;
    overflow: hidden;
    flex: 0 0 calc((100% - 3 * 22px) / 4);
    padding: 28px 24px 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px -34px rgba(20, 0, 63, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mhams-objective:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--edu-purple-rgb), 0.3);
    box-shadow: 0 28px 50px -30px rgba(20, 0, 63, 0.5);
}

.mhams-objective__num {
    position: absolute;
    top: 16px;
    inset-inline-end: 20px;
    color: rgba(101, 45, 144, 0.12);
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    transition: color 0.25s ease;
}

.mhams-objective:hover .mhams-objective__num {
    color: rgba(101, 45, 144, 0.25);
}

.mhams-objective__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #ece3f5;
    color: #652d90;
    font-size: 20px;
    transition: transform 0.25s ease;
}

.mhams-objective:hover .mhams-objective__icon {
    transform: scale(1.08) rotate(-6deg);
}

.mhams-objective p {
    margin: 0;
    color: var(--heading);
    font-size: 15px !important;
    font-weight: 500;
    line-height: 1.75 !important;
}

.mhams-objective__bar {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #14003f, #652d90);
    transition: width 0.35s ease;
}

.mhams-objective:hover .mhams-objective__bar {
    width: 100%;
}

@media (max-width: 1199px) {
    .mhams-objective {
        flex-basis: calc((100% - 2 * 22px) / 3);
    }
}

@media (max-width: 991px) {
    .mhams-objective {
        flex-basis: calc((100% - 22px) / 2);
    }
}

@media (max-width: 575px) {
    .mhams-objective {
        flex-basis: 100%;
    }
}

.mhams-values {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.mhams-value {
    padding: 26px 18px;
    border-radius: var(--edu-radius);
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mhams-value:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -26px rgba(var(--edu-purple-rgb), 0.55);
}

.mhams-value__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ece3f5;
    color: #652d90;
    font-size: 21px;
    transition: transform 0.25s ease;
}

.mhams-value:hover .mhams-value__icon {
    transform: scale(1.08) rotate(-6deg);
}

.mhams-value h4 {
    margin: 0 0 6px;
    color: var(--heading);
    font-weight: 700;
    font-size: 16.5px !important;
    line-height: 1.35 !important;
}

.mhams-value p {
    margin: 0;
    color: var(--text);
    font-size: 13.5px !important;
    line-height: 1.6 !important;
}

@media (max-width: 1199px) {
    .mhams-values {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mhams-vm-cards {
        grid-template-columns: 1fr;
    }

    .mhams-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Home marketplace section: wider intro paragraph */
.mhams-wide-sub .edu-section-sub {
    max-width: 960px;
}

/* ==========================================================================
   Home: Supplier platform (dark band, services as icon cards)
   ========================================================================== */
.mhams-supplier {
    position: relative;
    overflow: hidden;
    padding-block: var(--edu-section-py);
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(var(--edu-purple-rgb), 0.35) 0%, rgba(var(--edu-purple-rgb), 0) 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(255, 176, 32, 0.12) 0%, rgba(255, 176, 32, 0) 60%),
        var(--night);
    color: #fff;
}

.mhams-supplier__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.mhams-supplier__text .edu-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mhams-supplier__text h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(30px, 3.6vw, 44px) !important;
    line-height: 1.2 !important;
    margin-bottom: 18px;
}

.mhams-supplier__text p {
    color: var(--muted);
    font-size: 17px !important;
    line-height: 1.8 !important;
    max-width: 520px;
    margin-bottom: 30px;
}

.mhams-supplier__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mhams-supplier__services {
    padding: clamp(20px, 3vw, 30px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mhams-supplier__services h3 {
    color: #fff;
    font-weight: 700;
    font-size: 16px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 18px;
}

html[dir="rtl"] .mhams-supplier__services h3 {
    letter-spacing: 0;
}

.mhams-supplier__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mhams-supplier__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--edu-card-dark);
    border: 1px solid var(--edu-border-dark);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mhams-supplier__card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--edu-purple-rgb), 0.6);
    background: #221c44;
}

.mhams-supplier__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    box-shadow: 0 10px 22px -12px rgba(var(--edu-purple-rgb), 0.9);
}

.mhams-supplier__card:nth-child(4n + 2) .mhams-supplier__icon,
.mhams-supplier__card:nth-child(4n + 3) .mhams-supplier__icon {
    background: linear-gradient(135deg, #ffb020, #f08a00);
    box-shadow: 0 10px 22px -12px rgba(255, 176, 32, 0.9);
}

@media (max-width: 991px) {
    .mhams-supplier__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mhams-supplier__cards {
        grid-template-columns: 1fr;
    }
}

.mhams-supplier__badge {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #2b1d00;
    background: var(--edu-orange);
}

/* ==========================================================================
   Home: Product Traceability — same layout, softer finish, rounded checks
   ========================================================================== */
#traceability {
    background:
        radial-gradient(45% 60% at 100% 0%, rgba(var(--edu-purple-rgb), 0.08) 0%, rgba(var(--edu-purple-rgb), 0) 70%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

#traceability .edu-split {
    align-items: center;
}

/* Image / placeholder block */
#traceability .edu-split-media img,
#traceability .edu-split-media .edu-photo-block {
    height: 400px;
    border-radius: 24px;
    box-shadow: 0 40px 70px -40px rgba(var(--edu-purple-rgb), 0.55);
}

#traceability .edu-split-media .edu-photo-block {
    position: relative;
    overflow: hidden;
    font-size: 88px;
    background: radial-gradient(circle at 30% 25%, #8f74ff 0%, var(--purple) 45%, var(--purple-dark) 100%);
}

#traceability .edu-split-media .edu-photo-block::before,
#traceability .edu-split-media .edu-photo-block::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.25);
}

#traceability .edu-split-media .edu-photo-block::before {
    width: 220px;
    height: 220px;
}

#traceability .edu-split-media .edu-photo-block::after {
    width: 320px;
    height: 320px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Text */
#traceability .edu-split-text h2 {
    font-size: clamp(28px, 3.2vw, 40px) !important;
    line-height: 1.2 !important;
    margin-bottom: 14px;
}

#traceability .edu-split-text > p {
    font-size: 16.5px !important;
    line-height: 1.8 !important;
    color: var(--text);
    margin-bottom: 8px;
}

#traceability .mhams-list-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(var(--edu-purple-rgb), 0.1);
    color: var(--purple-dark);
    font-size: 13.5px !important;
    letter-spacing: .3px;
}

/* Rounded check items */
#traceability .mhams-check-grid {
    margin: 0;
    gap: 12px;
}

#traceability .edu-check-list li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 12px 16px;
    padding-inline-start: 54px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--heading);
    font-size: 14.5px !important;
    font-weight: 600;
    line-height: 1.4 !important;
    box-shadow: 0 10px 24px -20px rgba(26, 23, 48, 0.35);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#traceability .edu-check-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--edu-purple-rgb), 0.35);
    box-shadow: 0 16px 30px -20px rgba(var(--edu-purple-rgb), 0.55);
}

#traceability .edu-check-list li::before {
    content: '\2713';
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3ecf8e, #1fa971);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 6px 14px -6px rgba(31, 169, 113, 0.8);
}

@media (max-width: 900px) {
    #traceability .edu-split-media img,
    #traceability .edu-split-media .edu-photo-block {
        height: 300px;
    }
}

/* ==========================================================================
   Home: Success Partners — partner-type cards
   ========================================================================== */
.mhams-partners {
    background:
        radial-gradient(40% 60% at 0% 0%, rgba(var(--edu-purple-rgb), 0.07) 0%, rgba(var(--edu-purple-rgb), 0) 70%),
        radial-gradient(40% 60% at 100% 100%, rgba(255, 176, 32, 0.08) 0%, rgba(255, 176, 32, 0) 70%),
        var(--bg-light);
}

.mhams-partner-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.mhams-partner-card {
    position: relative;
    flex: 0 1 calc((100% - 3 * 22px) / 4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 34px 20px 30px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -30px rgba(26, 23, 48, 0.35);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mhams-partner-card::before {
    content: '';
    position: absolute;
    top: -60px;
    inset-inline-end: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(var(--edu-purple-rgb), 0.06);
    transition: background-color .25s ease;
}

.mhams-partner-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--edu-purple-rgb), 0.3);
    box-shadow: 0 28px 50px -30px rgba(var(--edu-purple-rgb), 0.6);
}

.mhams-partner-card:hover::before {
    background: rgba(var(--edu-purple-rgb), 0.12);
}

.mhams-partner-card__icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    box-shadow: 0 0 0 8px rgba(var(--edu-purple-rgb), 0.1), 0 14px 26px -12px rgba(var(--edu-purple-rgb), 0.8);
    transition: transform .25s ease;
}

.mhams-partner-card:nth-child(even) .mhams-partner-card__icon {
    background: linear-gradient(135deg, #ffb020, #f08a00);
    box-shadow: 0 0 0 8px rgba(255, 176, 32, 0.14), 0 14px 26px -12px rgba(240, 138, 0, 0.8);
}

.mhams-partner-card:hover .mhams-partner-card__icon {
    transform: scale(1.06);
}

.mhams-partner-card h4 {
    position: relative;
    margin: 0;
    color: var(--heading);
    font-weight: 700;
    font-size: 17px !important;
    line-height: 1.4 !important;
}

.mhams-partner-card__bar {
    width: 36px;
    height: 4px;
    margin-top: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--purple), var(--edu-orange));
    transition: width .25s ease;
}

.mhams-partner-card:hover .mhams-partner-card__bar {
    width: 64px;
}

@media (max-width: 991px) {
    .mhams-partner-card {
        flex-basis: calc((100% - 2 * 22px) / 3);
    }
}

@media (max-width: 600px) {
    .mhams-partner-cards {
        gap: 14px;
    }

    .mhams-partner-card {
        flex-basis: calc((100% - 14px) / 2);
        padding: 26px 14px 22px;
    }

    .mhams-partner-card__icon {
        width: 60px;
        height: 60px;
        font-size: 23px;
    }

    .mhams-partner-card h4 {
        font-size: 15px !important;
    }
}

/* ==========================================================================
   Our Services page
   ========================================================================== */
.mhams-services-intro__title {
    font-size: clamp(28px, 3.4vw, 42px) !important;
}

.mhams-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.mhams-service {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    padding: 30px 28px 32px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fcfaff 100%);
    box-shadow: 0 18px 40px -34px rgba(20, 0, 63, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    scroll-margin-top: 24px;
}

.mhams-service::after {
    content: "";
    position: absolute;
    bottom: -1px;
    inset-inline-start: 28px;
    width: 52px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, #652d90, var(--edu-orange));
    transition: width 0.35s ease;
}

.mhams-service:hover {
    transform: translateY(-6px);
    border-color: rgba(101, 45, 144, 0.3);
    box-shadow: 0 30px 56px -32px rgba(20, 0, 63, 0.5);
}

.mhams-service:hover::after {
    width: calc(100% - 56px);
}

.mhams-service__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mhams-service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #ece3f5;
    color: #652d90;
    font-size: 23px;
    transition: transform 0.25s ease;
}

.mhams-service:hover .mhams-service__icon {
    transform: scale(1.08) rotate(-6deg);
}

.mhams-service__num {
    color: rgba(101, 45, 144, 0.14);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.mhams-service h3 {
    margin: 0 0 10px;
    color: var(--heading);
    font-size: 20px !important;
    font-weight: 800;
    line-height: 1.35 !important;
}

.mhams-service__desc {
    margin: 0 0 20px;
    color: var(--text);
    font-size: 15px !important;
    line-height: 1.75 !important;
}

.mhams-service__includes {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed rgba(101, 45, 144, 0.22);
}

.mhams-service__label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(101, 45, 144, 0.08);
    color: #652d90;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mhams-service__includes ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.mhams-service__includes li {
    position: relative;
    padding-inline-start: 26px;
    color: var(--heading);
    font-size: 14.5px !important;
    line-height: 1.55 !important;
}

.mhams-service__includes li::before {
    content: "\f00c";
    position: absolute;
    top: 2px;
    inset-inline-start: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #652d90;
    color: #fff;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
}

@media (max-width: 1199px) {
    .mhams-service {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .mhams-service {
        flex-basis: 100%;
        padding: 26px 22px 28px;
    }
}

/* Why Mhams Services: centred heading + card grid (4 per row, last row centred) */
.mhams-why {
    background:
        radial-gradient(circle at 90% 10%, rgba(101, 45, 144, 0.08), transparent 40%),
        radial-gradient(circle at 10% 95%, rgba(255, 176, 32, 0.08), transparent 35%),
        #f7f3fb;
}

.mhams-why__head {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.mhams-why__head .mhams-about-hero__divider {
    margin: 18px auto 0;
}

.mhams-why__kicker {
    display: block;
    margin-bottom: 10px;
    color: #652d90;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mhams-why h2 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(28px, 3.2vw, 40px) !important;
    font-weight: 800;
    line-height: 1.25 !important;
}

.mhams-why__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.mhams-why-card {
    position: relative;
    overflow: hidden;
    flex: 0 0 calc((100% - 3 * 22px) / 4);
    padding: 32px 24px 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 40px -34px rgba(20, 0, 63, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    isolation: isolate;
}

/* Navy-to-purple fill that rises on hover */
.mhams-why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, #14003f 0%, #652d90 100%);
    transform: translateY(101%);
    transition: transform 0.4s ease;
}

.mhams-why-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 30px 56px -30px rgba(20, 0, 63, 0.6);
}

.mhams-why-card:hover::before {
    transform: translateY(0);
}

.mhams-why-card__num {
    position: absolute;
    top: 14px;
    inset-inline-end: 18px;
    color: rgba(101, 45, 144, 0.14);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    transition: color 0.3s ease;
}

.mhams-why-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #ece3f5;
    color: #652d90;
    font-size: 24px;
    box-shadow: 0 0 0 8px rgba(236, 227, 245, 0.45);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.mhams-why-card p {
    margin: 0;
    color: var(--heading);
    font-size: 15px !important;
    font-weight: 500;
    line-height: 1.7 !important;
    transition: color 0.3s ease;
}

.mhams-why-card:hover .mhams-why-card__num {
    color: rgba(255, 255, 255, 0.16);
}

.mhams-why-card:hover .mhams-why-card__icon {
    background: #fff;
    color: #652d90;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12);
}

.mhams-why-card:hover p {
    color: #fff;
}

.mhams-why__more {
    display: flex;
    justify-content: center;
    margin-top: clamp(32px, 4vw, 44px);
}

@media (max-width: 1199px) {
    .mhams-why-card {
        flex-basis: calc((100% - 2 * 22px) / 3);
    }
}

@media (max-width: 991px) {
    .mhams-why-card {
        flex-basis: calc((100% - 22px) / 2);
    }
}

@media (max-width: 575px) {
    .mhams-why-card {
        flex-basis: 100%;
    }
}

/* ==========================================================================
   Contact Us page
   ========================================================================== */
.mhams-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: 24px;
    align-items: stretch;
}

.mhams-contact__info {
    position: relative;
    overflow: hidden;
    padding: 36px 30px;
    border-radius: 14px;
    background: #14003f;
    color: #fff;
}

.mhams-contact__info::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

html[dir="rtl"] .mhams-contact__info::after {
    right: auto;
    left: -60px;
}

.mhams-contact__info h2 {
    margin: 0 0 24px;
    color: #fff;
    font-size: 26px !important;
    font-weight: 800;
    line-height: 1.3 !important;
}

.mhams-contact__info ul {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mhams-contact__info li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mhams-contact__info li:last-child {
    border-bottom: 0;
}

.mhams-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #d4e83a;
    font-size: 18px;
}

.mhams-contact__info small {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.mhams-contact__info strong,
.mhams-contact__info a {
    color: #fff;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.5 !important;
    word-break: break-word;
}

.mhams-contact__info a:hover {
    color: #d4e83a;
}

.mhams-contact__form {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.mhams-contact__form h2 {
    margin: 0 0 6px;
    color: var(--heading);
    font-size: 26px !important;
    font-weight: 800;
    line-height: 1.3 !important;
}

.mhams-contact__form > p {
    margin: 0 0 24px;
    color: var(--text);
    font-size: 15.5px !important;
}

.mhams-contact__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mhams-contact__field {
    margin-bottom: 18px;
}

.mhams-contact__field label {
    display: block;
    margin-bottom: 7px;
    color: var(--heading);
    font-size: 14px;
    font-weight: 700;
}

.mhams-contact__field label span {
    color: #e11d48;
}

.mhams-contact__field input,
.mhams-contact__field select,
.mhams-contact__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcd9e6;
    border-radius: 8px;
    background: #fff;
    color: var(--heading);
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mhams-contact__field input,
.mhams-contact__field select {
    height: 48px;
}

.mhams-contact__field textarea {
    resize: vertical;
    min-height: 160px;
}

.mhams-contact__field input:focus,
.mhams-contact__field select:focus,
.mhams-contact__field textarea:focus {
    border-color: #652d90;
    box-shadow: 0 0 0 3px rgba(101, 45, 144, 0.14);
}

.mhams-contact__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border: 0;
    border-radius: 6px;
    background: #4a0072;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.mhams-contact__submit:hover {
    background: #652d90;
}

@media (max-width: 991px) {
    .mhams-contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .mhams-contact__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mhams-contact__form {
        padding: 24px 20px;
    }
}

/* Phones: a long username must not push the menu button off screen */
@media (max-width: 575.98px) {
    .edu-account__btn span {
        max-width: 84px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
