:root {
    --home-navy: #102b4e;
    --home-purple: #6416a5;
    --home-purple-dark: #4d0e88;
    --home-muted: #637188;
    --home-surface: #f4f8f8;
    --home-border: #e1e8ed;
}

.home-section,
.home-hero-exact {
    font-family: "Roboto", sans-serif;
}

.home-section {
    padding: 90px 0;
    color: var(--home-navy);
}

.home-container {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
}

.home-section h2 {
    margin: 0;
    color: var(--home-navy);
    font-size: clamp(36px, 4.5vw, 62px);
    font-weight: 700;
    line-height: 1.08;
}

.section-head {
    margin-bottom: 48px;
}

.section-head.with-ruler {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--home-border);
}

.vertical-label {
    display: block;
    margin-bottom: 14px;
    color: var(--home-purple);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.help-card-grid,
.consultation-card-grid,
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.help-card {
    min-height: 350px;
    padding: 38px 34px;
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(19, 43, 70, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.help-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 60px rgba(19, 43, 70, .13);
}

.help-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 42px;
    place-items: center;
    border-radius: 20px;
    background: #f2e8fc;
    color: var(--home-purple);
    font-size: 28px;
}

.tone-blue .help-icon { background: #e6f2ff; color: #1571bd; }
.tone-green .help-icon { background: #e5f7ef; color: #16855b; }

.help-card h3,
.consultation-card h3,
.works-grid h3,
.program-timeline h3 {
    margin: 0 0 14px;
    color: var(--home-navy);
    font-size: 23px;
    font-weight: 700;
}

.help-card p,
.consultation-card p,
.works-grid p,
.program-timeline p {
    margin: 0;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.7;
}

.help-card a,
.consultation-card a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    color: var(--home-purple);
    font-weight: 700;
    text-decoration: none;
}

.condition-strip {
    padding: 70px 0;
    background: var(--home-surface);
}

.condition-strip h2 {
    margin-bottom: 34px;
    font-size: clamp(34px, 3.5vw, 50px);
}

.condition-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
}

.condition-pills a {
    padding: 13px 22px;
    border: 1px solid #d6dfe5;
    border-radius: 999px;
    background: #fff;
    color: #42536a;
    font-size: 15px;
    text-decoration: none;
    transition: all .2s ease;
}

.condition-pills a:hover {
    border-color: var(--home-purple);
    background: var(--home-purple);
    color: #fff;
}

.see-all-link {
    display: inline-block;
    margin-top: 26px;
    color: var(--home-purple);
    font-weight: 700;
}

.consultation-cards-section {
    background: #fff;
}

.consultation-card {
    position: relative;
    min-height: 310px;
    padding: 40px 32px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--home-navy);
    color: #fff;
}

.consultation-card:nth-child(2) { background: var(--home-purple); }
.consultation-card:nth-child(3) { background: #166b6b; }

.consultation-card > i {
    margin-bottom: 35px;
    font-size: 42px;
    opacity: .9;
}

.consultation-card h3,
.consultation-card p,
.consultation-card a { color: #fff; }
.consultation-card p { opacity: .78; }

.appointment-section {
    background: #f7f4fb;
}

.appointment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(37, 25, 55, .1);
}

.appointment-image {
    position: relative;
    min-height: 630px;
    overflow: hidden;
}

.appointment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appointment-image span {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--home-purple);
    font-weight: 700;
}

.appointment-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px;
}

.appointment-panel h2 {
    margin-bottom: 34px;
    font-size: clamp(38px, 4vw, 58px);
}

.accordion-list {
    border-top: 1px solid var(--home-border);
}

.accordion-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 17px 0;
    border: 0;
    border-bottom: 1px solid var(--home-border);
    background: transparent;
    color: #31465f;
    font-weight: 500;
    text-align: left;
}

.accordion-row i { color: var(--home-purple); font-size: 12px; }

.primary-action {
    display: inline-flex;
    width: fit-content;
    margin-top: 32px;
    padding: 16px 30px;
    border-radius: 12px;
    background: var(--home-purple);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.primary-action:hover { background: var(--home-purple-dark); color: #fff; }

.recovery-programs-section {
    background: var(--home-navy);
}

.recovery-programs-section h2 {
    margin-bottom: 52px;
    color: #fff;
}

.program-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.program-timeline article {
    padding: 10px 38px 10px 0;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.program-timeline article + article { padding-left: 38px; }
.program-timeline article:last-child { border-right: 0; }

.program-timeline span {
    display: block;
    margin-bottom: 42px;
    color: #bd8ee4;
    font-size: 52px;
    font-weight: 300;
}

.program-timeline h3 { color: #fff; }
.program-timeline p { color: rgba(255, 255, 255, .68); }

.works-section {
    background: #fff;
}

.section-subtitle {
    max-width: 650px;
    margin: 18px auto 52px;
    color: var(--home-muted);
    font-size: 18px;
    line-height: 1.7;
}

.works-grid article {
    padding: 40px 30px;
    border: 1px solid var(--home-border);
    border-radius: 22px;
    background: #fff;
}

.works-grid article > i {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 27px;
    place-items: center;
    border-radius: 50%;
    background: #f1e8fa;
    color: var(--home-purple);
    font-size: 27px;
}

@media (max-width: 991px) {
    .home-section { padding: 70px 0; }
    .help-card-grid, .consultation-card-grid, .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .appointment-grid { grid-template-columns: 1fr; }
    .appointment-image { min-height: 450px; }
    .program-timeline { grid-template-columns: 1fr; gap: 38px; }
    .program-timeline article, .program-timeline article + article { padding: 0 0 35px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
    .program-timeline article:last-child { border-bottom: 0; }
    .program-timeline span { margin-bottom: 18px; }
}

@media (max-width: 640px) {
    .home-container { width: min(100% - 30px, 1240px); }
    .home-section { padding: 55px 0; }
    .help-card-grid, .consultation-card-grid, .works-grid { grid-template-columns: 1fr; }
    .help-card { min-height: auto; }
    .appointment-image { min-height: 320px; }
    .appointment-panel { padding: 38px 24px; }
}

/* Screenshot-matched home redesign */
.home-hero-exact {
    width: 100%;
    min-height: clamp(360px, 37.5vw, 720px);
    background: #e7f2ef;
}

.home-hero-exact::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: var(--hero-background);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-hero-exact .hero-overlay {
    width: 68%;
    background: linear-gradient(90deg, rgba(231, 242, 239, .98) 0%, rgba(231, 242, 239, .92) 58%, rgba(231, 242, 239, 0) 100%);
}

.home-hero-exact .hero-container { max-width: 1320px; }
.home-hero-exact .hero-content { width: 52%; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.home-hero-exact .hero-content h1 { margin-bottom: 16px; color: #082945; font-size: clamp(30px, 3vw, 58px); letter-spacing: -.025em; }
.home-hero-exact .hero-content h2 { margin-bottom: 20px; color: #6500a8; font-size: clamp(28px, 2.8vw, 54px); font-weight: 400; }
.home-hero-exact .hero-content p { max-width: 620px; margin-bottom: 24px; color: #29465c; font-size: clamp(13px, 1.1vw, 18px); line-height: 1.65; }
.home-hero-exact .hero-search { height: clamp(50px, 4.2vw, 70px); margin-bottom: 17px; border: 1px solid rgba(15,43,70,.08); border-radius: 12px; box-shadow: 0 14px 32px rgba(25,50,69,.1); }
.home-hero-exact .hero-search input { color: #18364d; font-size: clamp(13px, 1vw, 16px); }
.home-hero-exact .hero-search input::placeholder { color: #9aa6b1; opacity: 1; }
.home-hero-exact .hero-search button { height: calc(100% - 12px); border-radius: 10px; }
.home-hero-exact .popular-search span { color: #536a7c; font-weight: 500; }
.home-hero-exact .popular-search a { padding: 5px 11px; border-color: rgba(36,73,94,.22); background: rgba(255,255,255,.62); color: #405b6d; font-size: 11px; text-shadow: none; }
.home-hero-exact .popular-search a:hover { border-color: #6500a8; background: #6500a8; color: #fff; }

.help-choice-section { padding: 70px 0 85px; }
.help-choice-section .home-container,
.need-help-section .home-container,
.consultation-cards-section .home-container,
.appointment-section .home-container,
.recovery-programs-section .home-container,
.works-section .home-container,
.why-choose-section .home-container,
.recovery-cta-section .home-container { max-width: 1080px; }

.help-choice-section .section-head { max-width: 100%; margin-bottom: 35px; border: 0; }
.help-choice-section .section-head > div { padding-left: 25px; border-left: 2px dotted #cad1d8; }
.help-choice-section .vertical-label { display: none; }
.help-choice-section .section-head h2 { font-size: 38px; }
.help-choice-section .help-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.help-choice-section .help-card { min-height: 250px; padding: 28px 18px 20px; border-radius: 12px; box-shadow: none; }
.help-choice-section .help-icon { width: 58px; height: 58px; margin-bottom: 25px; border-radius: 50%; }
.help-choice-section .tone-yellow .help-icon { background: #fff4c7; color: #786000; }
.help-choice-section .tone-red .help-icon { background: #ffe4e2; color: #ff514b; }
.help-choice-section .help-card h3 { font-size: 15px; }
.help-choice-section .help-card p { min-height: 48px; font-size: 11px; line-height: 1.45; }
.help-choice-section .help-card a { margin-top: 16px; font-size: 11px; color: #0b2844; }

.condition-strip { padding: 70px 0; background: #031a3d; }
.condition-strip h2 { margin-bottom: 25px; color: #fff; font-size: 34px; }
.condition-strip .condition-pills { max-width: 650px; margin: auto; gap: 9px; }
.condition-strip .condition-pills a { padding: 7px 18px; border-color: #36506e; background: transparent; color: #b6c2d0; font-size: 11px; }
.condition-strip .see-all-link { color: #fff; font-size: 12px; }

.need-help-section { padding: 75px 0 60px; }
.need-help-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.need-help-heading h2 { font-size: 34px; }
.need-help-heading > a { color: #5f11a5; font-size: 12px; font-weight: 700; }
.need-help-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.need-help-card { min-height: 175px; padding: 14px 12px; border: 1px solid #e3e5e8; border-radius: 7px; background: #fff; }
.need-help-card h3 { margin: 0 0 11px; color: #7c16bc; font-size: 11px; line-height: 1.25; }
.need-help-card h3 i { margin-right: 5px; }
.need-help-card ul { min-height: 80px; margin: 0; padding-left: 15px; color: #243a50; font-size: 9px; line-height: 1.55; }
.need-help-card > a { color: #6d0fab; font-size: 9px; font-weight: 700; text-decoration: none; }

.consultation-cards-section { padding: 30px 0 75px; background: #f7f7f7; }
.consultation-cards-section .section-head { margin-bottom: 26px; }
.consultation-cards-section .section-head h2 { font-size: 34px; }
.consultation-cards-section .consultation-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.consultation-cards-section .consultation-card,
.consultation-cards-section .consultation-card:nth-child(n) { min-height: 235px; padding: 22px 15px 13px; border: 1px solid #e4e6e9; border-radius: 8px; background: #fff; color: #102b4e; }
.consultation-cards-section .consultation-card > i { margin-bottom: 20px; color: #6010a1; font-size: 28px; }
.consultation-cards-section .consultation-card h3 { color: #102b4e; font-size: 15px; }
.consultation-cards-section .consultation-card p { min-height: 75px; color: #687486; font-size: 11px; line-height: 1.45; }
.consultation-cards-section .consultation-card a { display: flex; justify-content: center; margin-top: 12px; padding: 8px; border-radius: 4px; background: #e6cdfa; color: #5f0e9d; font-size: 10px; }

.appointment-section { padding: 75px 0; background: #fff; }
.appointment-section .appointment-grid { grid-template-columns: 1fr 1fr; gap: 65px; overflow: visible; align-items: center; border-radius: 0; box-shadow: none; }
.appointment-section .appointment-image { min-height: 470px; border-radius: 3px; }
.appointment-section .appointment-image span { display: none; }
.appointment-section .appointment-panel { padding: 0; }
.appointment-section .appointment-panel h2 { margin-bottom: 25px; font-size: 40px; }
.appointment-section .accordion-row { margin-bottom: 6px; padding: 11px 12px; border: 1px solid #dfe3e7; border-radius: 7px; font-size: 12px; }
.appointment-section .primary-action { margin-top: 20px; padding: 12px 25px; border-radius: 3px; font-size: 11px; }

.recovery-programs-section { padding: 65px 0; background: #fff; }
.recovery-programs-section h2 { margin-bottom: 35px; color: #102b4e; font-size: 34px; }
.recovery-programs-section .program-timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.recovery-programs-section .program-timeline article,
.recovery-programs-section .program-timeline article + article { position: relative; padding: 0 10px; border: 0; text-align: center; }
.recovery-programs-section .program-timeline article::before { content: ""; position: absolute; top: 31px; left: 0; width: 50%; height: 1px; background: #d8dce1; transform: translateX(-50%); }
.recovery-programs-section .program-timeline article:first-child::before { display: none; }
.recovery-programs-section .program-timeline span { display: grid; width: 62px; height: 62px; margin: 0 auto 15px; place-items: center; border-radius: 50%; background: #6410a5; color: #fff; font-size: 20px; font-weight: 700; }
.recovery-programs-section .program-timeline h3 { margin-bottom: 5px; color: #102b4e; font-size: 13px; }
.recovery-programs-section .program-timeline p { color: #85909e; font-size: 9px; }

.works-section { padding: 70px 0 80px; background: #062a47; color: #fff; }
.works-section h2 { color: #fff; font-size: 34px; }
.works-section .section-subtitle { max-width: 500px; margin: 10px auto 35px; color: #9eafbe; font-size: 11px; }
.works-section .works-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.works-section .works-grid article { padding: 25px 14px 18px; border: 0; border-radius: 7px; background: #0c3a61; }
.works-section .works-grid article > i { width: 46px; height: 46px; margin-bottom: 20px; background: transparent; color: #b980e3; font-size: 26px; }
.works-section .works-grid h3 { color: #fff; font-size: 14px; }
.works-section .works-grid p { color: #9fb0c0; font-size: 9px; line-height: 1.45; }

.why-choose-section { padding: 75px 0 55px; }
.why-choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; }
.why-choose-image { height: 420px; overflow: hidden; border-radius: 10px; }
.why-choose-image img { width: 100%; height: 100%; object-fit: cover; }
.why-choose-content h2 { margin-bottom: 25px; font-size: 40px; }
.why-choose-list { display: grid; gap: 8px; }
.why-choose-list > div { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 4px; background: #eceeef; color: #173149; font-size: 12px; }
.why-choose-list > div:nth-child(2) { background: #062a47; color: #fff; }

.recovery-cta-section { padding: 20px 0 90px; }
.recovery-cta-box { padding: 65px 30px; border-radius: 12px; background: #062a47; color: #fff; text-align: center; }
.recovery-cta-box h2 { color: #fff; font-size: 35px; }
.recovery-cta-box p { max-width: 540px; margin: 18px auto 25px; color: #91a4b5; font-size: 11px; line-height: 1.55; }
.recovery-cta-box a { display: inline-block; padding: 13px 38px; border-radius: 2px; background: #d8df00; color: #102b4e; font-size: 11px; font-weight: 700; }

@media (max-width: 991px) {
    .home-hero-exact .hero-content { width: 58%; }
    .help-choice-section .help-card-grid { grid-template-columns: repeat(3, 1fr); }
    .need-help-grid { grid-template-columns: repeat(4, 1fr); }
    .consultation-cards-section .consultation-card-grid { grid-template-columns: repeat(3, 1fr); }
    .appointment-section .appointment-grid, .why-choose-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .works-section .works-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .home-hero-exact { min-height: 520px; background-position: 66% center; }
    .home-hero-exact .hero-overlay { width: 100%; background: rgba(231,242,239,.9); }
    .home-hero-exact .hero-content { width: 100%; }
    .help-choice-section .help-card-grid, .consultation-cards-section .consultation-card-grid { grid-template-columns: 1fr 1fr; }
    .need-help-grid { grid-template-columns: repeat(2, 1fr); }
    .appointment-section .appointment-grid, .why-choose-grid { grid-template-columns: 1fr; }
    .appointment-section .appointment-image, .why-choose-image { min-height: 300px; height: 330px; }
    .recovery-programs-section .program-timeline { grid-template-columns: 1fr 1fr; gap: 30px; }
    .recovery-programs-section .program-timeline article::before { display: none; }
    .works-section .works-grid { grid-template-columns: 1fr; }
}

/* Arabic / RTL home layout */
html[dir="rtl"] .home-section,
html[dir="rtl"] .home-hero-exact {
    font-family: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .home-hero-exact .hero-content {
    direction: rtl;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

html[dir="rtl"] .home-hero-exact::before {
    transform: scaleX(-1);
}

html[dir="rtl"] .home-hero-exact .hero-overlay {
    right: 0;
    left: auto;
    background: linear-gradient(270deg, rgba(231,242,239,.98) 0%, rgba(231,242,239,.92) 58%, rgba(231,242,239,0) 100%);
}

html[dir="rtl"] .home-hero-exact .hero-search {
    direction: rtl;
}

html[dir="rtl"] .home-hero-exact .search-icon {
    order: 0;
}

html[dir="rtl"] .home-hero-exact .hero-search input {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .home-hero-exact .hero-search button {
    margin-right: 0;
    margin-left: 9px;
}

html[dir="rtl"] .home-hero-exact .popular-search {
    direction: rtl;
    justify-content: flex-start;
}

html[dir="rtl"] .home-hero-exact .popular-search span {
    margin-right: 0;
    margin-left: 5px;
}

html[dir="rtl"] .help-choice-section .section-head > div {
    padding-right: 25px;
    padding-left: 0;
    border-right: 2px dotted #cad1d8;
    border-left: 0;
    text-align: right;
}

html[dir="rtl"] .help-card,
html[dir="rtl"] .consultation-card,
html[dir="rtl"] .need-help-card,
html[dir="rtl"] .program-timeline article,
html[dir="rtl"] .works-grid article,
html[dir="rtl"] .why-choose-content {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .help-card a,
html[dir="rtl"] .need-help-card > a {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .need-help-heading {
    direction: rtl;
}

html[dir="rtl"] .need-help-card h3 i {
    margin-right: 0;
    margin-left: 5px;
}

html[dir="rtl"] .need-help-card ul {
    padding-right: 15px;
    padding-left: 0;
}

html[dir="rtl"] .appointment-grid,
html[dir="rtl"] .why-choose-grid {
    direction: rtl;
}

html[dir="rtl"] .appointment-panel,
html[dir="rtl"] .appointment-panel h2 {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .accordion-row {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .appointment-image span {
    right: 30px;
    left: auto;
}

html[dir="rtl"] .recovery-programs-section h2,
html[dir="rtl"] .need-help-heading h2,
html[dir="rtl"] .consultation-cards-section .section-head h2 {
    text-align: right;
}

html[dir="rtl"] .recovery-programs-section .program-timeline article::before {
    right: 0;
    left: auto;
    transform: translateX(50%);
}

html[dir="rtl"] .why-choose-list > div {
    direction: rtl;
}

html[dir="rtl"] .recovery-cta-box {
    direction: rtl;
}

@media (max-width: 640px) {
    html[dir="rtl"] .home-hero-exact .hero-search button {
        margin: 0;
    }
}
