
/**
 * =====================================================
 * PARIMAH THEME - HOMEPAGE STYLES
 * =====================================================
 */


/* =====================================================
   1. HOMEPAGE HERO - BASE
===================================================== */

.home-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background-color: #F8F1E6;
}

/* Hero Image Container */

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Hero Background Image */

.home-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
}

/* Desktop Image Overlay */

.home-hero::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    background: linear-gradient(
        to left,
        rgba(248, 241, 230, 0.96) 0%,
        rgba(248, 241, 230, 0.88) 32%,
        rgba(248, 241, 230, 0.25) 58%,
        rgba(248, 241, 230, 0) 75%
    );
}

/* Hero Content Container */

.home-hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1280px;
    min-height: 360px;
    margin: 0 auto;
    padding: 40px 5%;
    direction: rtl;
}

/* Hero Text Content */

.home-hero__content {
    width: 48%;
    max-width: 560px;
    text-align: right;
}

/* Main Heading */

.home-hero__title {
    margin: 0 0 16px;
    color: #142B45;
    font-family: var(--font-primary, 'Vazirmatn', sans-serif);
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.65;
}

.home-hero__title span {
    display: block;
    color: #B18A3D;
}

/* Description */

.home-hero__description {
    max-width: 480px;
    margin: 0 0 24px;
    color: #48566A;
    font-family: var(--font-primary, 'Vazirmatn', sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 2;
}

/* Hero Buttons Container */

.home-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Shared Button Styles */

.home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-family: var(--font-primary, 'Vazirmatn', sans-serif);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

/* Primary Button */

.home-hero__button--primary {
    color: #ffffff;
    background-color: #B18A3D;
    border-color: #B18A3D;
}

.home-hero__button--primary:hover {
    color: #ffffff;
    background-color: #96702D;
    border-color: #96702D;
    transform: translateY(-2px);
}

/* Primary Button Icon */

.home-hero__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
}

/* Secondary Button */

.home-hero__button--secondary {
    color: #142B45;
    background-color: rgba(255, 255, 255, 0.75);
    border-color: rgba(20, 43, 69, 0.12);
}

.home-hero__button--secondary:hover {
    color: #142B45;
    background-color: #ffffff;
    border-color: #B18A3D;
    transform: translateY(-2px);
}


/* =====================================================
   2. DESKTOP - MIN WIDTH 1025PX
===================================================== */

@media (min-width: 1025px) {

    .home-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .home-hero {
        min-height: 520px;
        margin-top: -120px;
    }

    .home-hero__media,
    .home-hero__image {
        min-height: 520px;
    }

    .home-hero__image {
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .home-hero__container {
        min-height: 520px;
        padding-top: 155px;
        padding-bottom: 35px;
    }

}


/* =====================================================
   3. TABLET - 768PX TO 1024PX
===================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .home-hero,
    .home-hero__container {
        min-height: 320px;
    }

    .home-hero__media,
    .home-hero__image {
        min-height: 320px;
    }

    .home-hero__image {
        object-position: 35% center;
    }

    .home-hero::after {
        background: linear-gradient(
            to top,
            rgba(248, 241, 230, 0.88) 0%,
            rgba(248, 241, 230, 0.72) 40%,
            rgba(248, 241, 230, 0.34) 72%,
            rgba(248, 241, 230, 0.12) 100%
        );
    }

    .home-hero__container {
        align-items: center;
        justify-content: center;
        padding: 20px 4%;
        text-align: center;
    }

    .home-hero__content {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        text-align: center;
    }

    .home-hero__title {
        font-size: clamp(25px, 3.5vw, 34px);
        text-align: center;
    }

    .home-hero__description {
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
        text-align: center;
    }

    .home-hero__actions {
        justify-content: center;
    }

}


/* =====================================================
   4. MOBILE - MAX WIDTH 767PX
===================================================== */

@media (max-width: 767px) {

    .home-hero,
    .home-hero__container {
        min-height: 380px;
    }

    .home-hero__media,
    .home-hero__image {
        min-height: 380px;
    }

    .home-hero__media {
        height: 100%;
    }

    .home-hero__image {
        object-position: 35% center;
    }

    .home-hero::after {
        background: linear-gradient(
            to top,
            rgba(248, 241, 230, 0.88) 0%,
            rgba(248, 241, 230, 0.72) 40%,
            rgba(248, 241, 230, 0.34) 72%,
            rgba(248, 241, 230, 0.12) 100%
        );
    }

    .home-hero__container {
        align-items: center;
        justify-content: center;
        padding: 20px;
        text-align: center;
    }

    .home-hero__content {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        text-align: center;
    }

    .home-hero__title {
        margin-bottom: 10px;
        font-size: 25px;
        line-height: 1.7;
        text-align: center;
    }

    .home-hero__description {
        margin: 0 auto 18px;
        font-size: 13px;
        line-height: 1.9;
        text-align: center;
    }

    .home-hero__actions {
        justify-content: center;
        gap: 8px;
    }

    .home-hero__button {
        min-height: 42px;
        padding: 9px 15px;
        font-size: 12px;
    }

}


/* =====================================================
   5. SMALL MOBILE - MAX WIDTH 380PX
===================================================== */

@media (max-width: 380px) {

    .home-hero,
    .home-hero__container,
    .home-hero__media,
    .home-hero__image {
        min-height: 360px;
    }

    .home-hero__title {
        font-size: 22px;
    }

    .home-hero__description {
        font-size: 12px;
    }

    .home-hero__button {
        padding: 8px 12px;
        font-size: 11px;
    }

}


/* =====================================================
   6. HERO CONTENT ENTRANCE ANIMATION
===================================================== */

@keyframes heroFadeUp {
    from {
        opacity: 0;
        translate: 0 24px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

.home-hero__title {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 0.15s forwards;
}

.home-hero__description {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 0.35s forwards;
}

.home-hero__button--primary {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 0.55s forwards;
}

.home-hero__button--secondary {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 0.7s forwards;
}


/* =====================================================
   7. ACCESSIBILITY - REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .home-hero__title,
    .home-hero__description,
    .home-hero__button--primary,
    .home-hero__button--secondary {
        opacity: 1;
        animation: none;
        translate: none;
    }

}

/* =====================================================
   8. HOMEPAGE TRUST SECTION
===================================================== */

.home-trust {
    width: 100%;
    padding: 18px 20px 28px;
    background: transparent;
}

.home-trust__container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    max-width: 1280px;
    min-height: 112px;
    margin: 0 auto;
    padding: 12px 20px;
    background: #F8F1E6;
    border-radius: 24px;
    direction: rtl;
}

/* Trust Items */

.home-trust__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    min-height: 88px;
    padding: 12px 20px;
    text-align: right;
}

/* Vertical Separators */

.home-trust__item:not(:last-child)::after {
    position: absolute;
    top: 25%;
    left: 0;
    width: 1px;
    height: 50%;
    content: "";
    background: rgba(177, 138, 61, 0.38);
}

/* Icons */

.home-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
}

.home-trust__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #B18A3D;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Text */

.home-trust__content {
    min-width: 0;
}

.home-trust__title {
    margin: 0 0 5px;
    color: #142B45;
    font-family: var(--font-primary, 'Vazirmatn', sans-serif);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
}

.home-trust__description {
    margin: 0;
    color: #687386;
    font-family: var(--font-primary, 'Vazirmatn', sans-serif);
    font-size: 11px;
    line-height: 1.8;
}

/* Brand Logos */

.home-trust__item--brands {
    flex-direction: column;
    gap: 7px;
    text-align: center;
}

.home-trust__brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    min-height: 36px;
}

.home-trust__brands img {
    display: block;
    width: auto;
    max-width: 78px;
    height: 32px;
    object-fit: contain;
}

.home-trust__item--brands .home-trust__title {
    margin-bottom: 2px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {

    .home-trust {
        padding: 14px 18px 22px;
    }

    .home-trust__container {
        min-height: 105px;
        padding: 8px 10px;
        border-radius: 20px;
    }

    .home-trust__item {
        gap: 8px;
        padding: 10px 8px;
    }

    .home-trust__icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .home-trust__icon svg {
        width: 28px;
        height: 28px;
    }

    .home-trust__title {
        font-size: 12px;
    }

    .home-trust__description {
        font-size: 9px;
    }

    .home-trust__brands {
        gap: 9px;
    }

    .home-trust__brands img {
        max-width: 58px;
        height: 27px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .home-trust {
        padding: 12px 12px 20px;
    }

    .home-trust__container {
        min-height: 105px;
        padding: 8px 4px;
        border-radius: 16px;
    }

    .home-trust__item {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        min-height: 88px;
        padding: 8px 4px;
        text-align: center;
    }

    .home-trust__item:not(:last-child)::after {
        top: 25%;
        height: 50%;
    }

    .home-trust__icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .home-trust__icon svg {
        width: 24px;
        height: 24px;
    }

    .home-trust__title {
        margin-bottom: 3px;
        font-size: 10px;
        line-height: 1.7;
    }

    .home-trust__description {
        font-size: 8px;
        line-height: 1.6;
    }

    .home-trust__item--brands {
        gap: 6px;
    }

    .home-trust__brands {
        gap: 4px;
        min-height: 26px;
    }

    .home-trust__brands img {
        max-width: 35px;
        height: 22px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .home-trust {
        padding-right: 8px;
        padding-left: 8px;
    }

    .home-trust__container {
        border-radius: 14px;
    }

    .home-trust__item {
        padding-right: 2px;
        padding-left: 2px;
    }

    .home-trust__title {
        font-size: 9px;
    }

    .home-trust__description {
        font-size: 7px;
    }

    .home-trust__brands img {
        max-width: 30px;
        height: 20px;
    }

}

/* =====================================================
   HERO HEIGHT & FLOATING TRUST SECTION
===================================================== */

/* Desktop Hero */

@media (min-width: 1025px) {

    .home-hero,
    .home-hero__container {
        min-height: 550px;
    }

    .home-hero__media,
    .home-hero__image {
        min-height: 550px;
    }

    .home-hero__container {
        padding-top: 155px;
        padding-bottom: 35px;
    }

}

/* Tablet Hero */

@media (min-width: 768px) and (max-width: 1024px) {

    .home-hero,
    .home-hero__container {
        min-height: 350px;
    }

    .home-hero__media,
    .home-hero__image {
        min-height: 350px;
    }

}

/* Mobile Hero */

@media (max-width: 767px) {

    .home-hero,
    .home-hero__container {
        min-height: 410px;
    }

    .home-hero__media,
    .home-hero__image {
        min-height: 410px;
    }

}

/* Small Mobile */

@media (max-width: 380px) {

    .home-hero,
    .home-hero__container,
    .home-hero__media,
    .home-hero__image {
        min-height: 390px;
    }

}


/* =====================================================
   HERO UNDER THE FLOATING MOBILE / TABLET HEADER
   -----------------------------------------------------
   Like the landing banners, the home banner starts at the
   very top of the page and the rounded header floats on it.
   72px = header top gap (8px) + header height (64px),
   see header.css / navigation.css (max-width: 1024px).
===================================================== */

@media (max-width: 1024px) {

    .home-hero {
        margin-top: -72px;
    }

    .home-hero__container {
        padding-top: 92px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    .home-hero,
    .home-hero__container,
    .home-hero__media,
    .home-hero__image {
        min-height: 422px;
    }
}

@media (max-width: 767px) {

    .home-hero,
    .home-hero__container,
    .home-hero__media,
    .home-hero__image {
        min-height: 482px;
    }
}

@media (max-width: 380px) {

    .home-hero,
    .home-hero__container,
    .home-hero__media,
    .home-hero__image {
        min-height: 462px;
    }
}


/* =====================================================
   FLOATING TRUST SECTION
===================================================== */

.home-trust {
    position: relative;
    z-index: 5;
    margin-top: -41px;
    padding: 0 20px 24px;
    background: transparent;
}

.home-trust__container {
    min-height: 82px;
    padding: 6px 20px;
}

.home-trust__item {
    min-height: 66px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Tablet */

@media (max-width: 1024px) {

    .home-trust {
        margin-top: -38px;
        padding: 0 18px 20px;
    }

    .home-trust__container {
        min-height: 76px;
        padding: 5px 10px;
    }

    .home-trust__item {
        min-height: 64px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

}

/* Mobile */

@media (max-width: 767px) {

    .home-trust {
        margin-top: -36px;
        padding: 0 12px 18px;
    }

    .home-trust__container {
        min-height: 72px;
        padding: 4px;
    }

    .home-trust__item {
        min-height: 62px;
        padding: 5px 3px;
    }

}

/* Small Mobile */

@media (max-width: 380px) {

    .home-trust {
        margin-top: -34px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .home-trust__container {
        min-height: 68px;
    }

    .home-trust__item {
        min-height: 58px;
    }

}
/* =====================================================
   HERO & TRUST RELOAD ANIMATIONS
===================================================== */

@keyframes parimahFadeUp {
    from {
        opacity: 0;
        translate: 0 24px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* Hero Content */
.home-hero__title {
    opacity: 0;
    animation: parimahFadeUp 0.8s ease-out 0.15s forwards;
}

.home-hero__description {
    opacity: 0;
    animation: parimahFadeUp 0.8s ease-out 0.3s forwards;
}

.home-hero__button--primary {
    opacity: 0;
    animation: parimahFadeUp 0.8s ease-out 0.45s forwards;
}

.home-hero__button--secondary {
    opacity: 0;
    animation: parimahFadeUp 0.8s ease-out 0.55s forwards;
}

/* Trust Section */
.home-trust__item {
    opacity: 0;
    animation: parimahFadeUp 0.7s ease-out forwards;
}

.home-trust__item:nth-child(1) {
    animation-delay: 0.65s;
}

.home-trust__item:nth-child(2) {
    animation-delay: 0.8s;
}

.home-trust__item:nth-child(3) {
    animation-delay: 0.95s;
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .home-hero__title,
    .home-hero__description,
    .home-hero__button--primary,
    .home-hero__button--secondary,
    .home-trust__item {
        opacity: 1;
        animation: none;
        translate: none;
    }
}
/* =====================================================
   HOMEPAGE SERVICES SECTION
   -----------------------------------------------------
   Large image cards with overlay content.
   Desktop: 4-column grid
   Tablet / Mobile: horizontal scroll-snap slider
   (controls: assets/js/components/services.js)
===================================================== */

.home-services {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 46px 20px 44px;
    background: #ffffff;
    direction: rtl;
}

.home-services__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Heading */

.home-services__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.home-services__heading-content {
    max-width: 560px;
    text-align: right;
}

.home-services__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #B18A50;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-services__title {
    margin: 0 0 6px;
    color: #142B45;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.6;
}

.home-services__title span {
    color: #B18A50;
}

.home-services__description {
    margin: 0;
    color: #77716A;
    font-size: 13px;
    line-height: 2;
}

/* Slider Controls (hidden on desktop) */

.home-services__controls {
    display: none;
    flex-shrink: 0;
    gap: 8px;
}

.home-services__control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #D6C19A;
    border-radius: 50%;
    background: #ffffff;
    color: #142B45;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        opacity 0.25s ease;
}

.home-services__control svg {
    width: 18px;
    height: 18px;
}

.home-services__control:hover:not(:disabled) {
    background: #142B45;
    border-color: #142B45;
    color: #ffffff;
}

.home-services__control:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Track */

.home-services__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Card */

.home-services__card {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 410px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 22px;
    background: #142B45;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(20, 43, 69, 0.10);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.home-services__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20, 43, 69, 0.18);
}

.home-services__card:focus-visible {
    outline: 2px solid #C6A052;
    outline-offset: 3px;
}

/* Card Background Image */

.home-services__card-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.home-services__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.home-services__card:hover .home-services__card-media img {
    transform: scale(1.07);
}

/* Dark gradient overlay for readable text */

.home-services__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(20, 43, 69, 0) 28%,
        rgba(20, 43, 69, 0.55) 58%,
        rgba(14, 30, 49, 0.95) 100%
    );
}

/* Card Number Badge */

.home-services__card-number {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

/* Card Content */

.home-services__card-body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px 20px 20px;
    text-align: right;
}

.home-services__card-subtitle {
    display: block;
    margin-bottom: 3px;
    color: #EAD6A8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.home-services__card-title {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.6;
}

/* Description is revealed on hover (always visible on touch devices) */

.home-services__card-description {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 2;
    transition:
        max-height 0.45s ease,
        opacity 0.35s ease;
}

.home-services__card:hover .home-services__card-description,
.home-services__card:focus-visible .home-services__card-description {
    max-height: 80px;
    opacity: 1;
}

/* "View Service" Pill */

.home-services__card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 5px 15px 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.home-services__card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E6C987 0%, #C6A052 45%, #A98135 100%);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.home-services__card:hover .home-services__card-link {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(234, 214, 168, 0.6);
}

.home-services__card:hover .home-services__card-arrow {
    transform: translateX(-4px);
}

/* Touch devices: no hover, so always show the description */

@media (hover: none) {
    .home-services__card-description {
        max-height: none;
        opacity: 1;
    }
}

/* Scroll Reveal (classes added by section-reveal.js) */

.home-services__heading,
.home-services__card {
    opacity: 0;
    translate: 0 24px;
}

.home-services__heading {
    transition:
        opacity 0.7s ease,
        translate 0.7s ease;
}

.home-services__card {
    transition:
        opacity 0.7s ease var(--reveal-delay, 0s),
        translate 0.7s ease var(--reveal-delay, 0s),
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.home-services__card:nth-child(2) { --reveal-delay: 0.1s; }
.home-services__card:nth-child(3) { --reveal-delay: 0.2s; }
.home-services__card:nth-child(4) { --reveal-delay: 0.3s; }

.home-services__heading.is-visible,
.home-services__card.is-visible {
    opacity: 1;
    translate: 0 0;
}

/* Tablet: slider */

@media (max-width: 1024px) {

    .home-services {
        padding: 38px 18px 36px;
    }

    .home-services__controls {
        display: flex;
    }

    /* Horizontal slider only: vertical swipes scroll the page,
       not the track (cards waiting for the reveal sit lower) */
    .home-services__track {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 6px;
    }

    .home-services__track::-webkit-scrollbar {
        display: none;
    }

    .home-services__card {
        flex: 0 0 calc((100% - 28px) / 3);
        min-height: 370px;
        scroll-snap-align: start;
    }

    .home-services__card:hover {
        transform: none;
    }
}

/* Mobile */

@media (max-width: 767px) {

    .home-services {
        padding: 32px 16px 30px;
    }

    .home-services__heading {
        gap: 14px;
        margin-bottom: 18px;
    }

    .home-services__title {
        font-size: 21px;
    }

    .home-services__description {
        font-size: 12px;
    }

    .home-services__control {
        width: 38px;
        height: 38px;
    }

    .home-services__card {
        flex-basis: 74%;
        min-height: 350px;
        border-radius: 18px;
    }

    .home-services__card-title {
        font-size: 17px;
    }
}

/* Small Mobile */

@media (max-width: 380px) {

    .home-services__heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-services__card {
        flex-basis: 84%;
        min-height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-services__heading,
    .home-services__card {
        opacity: 1;
        translate: none;
        transition: none;
    }

    .home-services__card-media img {
        transition: none;
    }
}



/* =====================================================
   PARIMAH — HOMEPAGE BEFORE & AFTER
   FINAL UNIFIED VERSION
===================================================== */

.home-before-after {
    --ba-navy: #142B45;
    --ba-dark: #0E2034;
    --ba-gold: #D9B66F;
    --ba-light-gold: #EAD6A8;

    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px 20px 20px;
    overflow: hidden;
    isolation: isolate;
    background: var(--ba-navy);
    direction: rtl;
}

/* BACKGROUND DECORATION */

.home-before-after::before,
.home-before-after::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    pointer-events: none;
}

.home-before-after::before {
    top: -220px;
    right: -160px;
    background: radial-gradient(
        circle,
        rgba(198,160,82,.22),
        transparent 70%
    );
}

.home-before-after::after {
    bottom: -260px;
    left: -180px;
    background: radial-gradient(
        circle,
        rgba(217,182,111,.14),
        transparent 70%
    );
}

/* CONTAINER */

.home-before-after__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* HEADER */

.home-before-after__heading {
    max-width: 850px;
    margin: 0 auto 17px;
    text-align: center;
}

.home-before-after__eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--ba-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-before-after__title {
    margin: 0 0 4px;
    color: #fff;
    font-size: clamp(22px,2.2vw,30px);
    font-weight: 800;
    line-height: 1.4;
}

.home-before-after__title span {
    color: var(--ba-gold);
}

.home-before-after__description {
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 11px;
    line-height: 1.7;
}

/* MAIN LAYOUT */

.home-before-after__layout {
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    align-items: stretch;
    gap: 18px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* RIGHT — COMPARISON STAGE */

.home-before-after__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    align-self: stretch;
}

.home-before-after__compare {
    --position: 50%;

    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;

    border: 1px solid rgba(217,182,111,.28);
    border-radius: 18px;
    background: var(--ba-dark);
    box-shadow: 0 22px 50px rgba(0,0,0,.32);

    direction: ltr;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* IMAGES — NEVER CROP */

.home-before-after__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center;
    background: var(--ba-dark);
    pointer-events: none;
    transition: opacity .35s ease;
}

.home-before-after__before-layer {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.home-before-after__compare--switching
.home-before-after__image {
    opacity: 0;
}

/* BADGES */

.home-before-after__badge {
    position: absolute;
    top: 11px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 9999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}

.home-before-after__badge--before {
    left: 11px;
    background: rgba(20,43,69,.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-before-after__badge--after {
    right: 11px;
    background: linear-gradient(
        135deg,
        #E6C987 0%,
        #C6A052 45%,
        #A98135 100%
    );
}

/* DIVIDER */

.home-before-after__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    z-index: 3;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 12px rgba(0,0,0,.35);
    transform: translateX(-50%);
    pointer-events: none;
}

.home-before-after__handle-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #E6C987 0%,
        #C6A052 45%,
        #A98135 100%
    );
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    transform: translate(-50%,-50%);
    transition: transform .25s ease;
}

.home-before-after__handle-knob svg {
    width: 19px;
    height: 19px;
}

.home-before-after__handle-knob::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    animation: beforeAfterPulse 2.2s ease-out infinite;
}

@keyframes beforeAfterPulse {
    from {
        opacity: .9;
        transform: scale(.85);
    }
    to {
        opacity: 0;
        transform: scale(1.35);
    }
}

.home-before-after__compare--dragging
.home-before-after__handle-knob {
    transform: translate(-50%,-50%) scale(1.1);
}

/* ACCESSIBLE RANGE */

.home-before-after__range {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.home-before-after__range:focus-visible
+ .home-before-after__handle
.home-before-after__handle-knob {
    outline: 3px solid var(--ba-light-gold);
    outline-offset: 4px;
}

/* HINT */

.home-before-after__hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    z-index: 4;
    margin: 0;
    padding: 4px 11px;
    border-radius: 9999px;
    background: rgba(20,43,69,.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,.88);
    font-size: 10px;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .3s ease;
}

.home-before-after__compare--dragging
+ .home-before-after__hint {
    opacity: 0;
}

/* LEFT — INFORMATION PANEL */

.home-before-after__panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-width: 0;
    align-self: stretch;
}

/* INFO BOX */

.home-before-after__info {
    padding: 13px 17px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    text-align: right;
}

.home-before-after__info-subtitle {
    display: block;
    margin-bottom: 2px;
    color: var(--ba-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.home-before-after__info-title {
    margin: 0 0 3px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.home-before-after__info-text {
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: 11px;
    line-height: 1.7;
}

/* CASE GRID */

.home-before-after__cases {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    flex: none;
    min-height: 0;
    grid-auto-rows: auto;
}

/* CASE CARD */

.home-before-after__case {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 7px;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: rgba(255,255,255,.04);

    color: #fff;
    font-family: inherit;
    text-align: right;
    cursor: pointer;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.home-before-after__case:hover {
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
}

.home-before-after__case:focus-visible {
    outline: 2px solid var(--ba-light-gold);
    outline-offset: 2px;
}

.home-before-after__case--active {
    border-color: var(--ba-gold);
    background: rgba(217,182,111,.12);
}

/* THUMBNAILS */

.home-before-after__case-thumb {
    position: relative;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    min-height: 0;
    overflow: hidden;
    border-radius: 9px;
    background: var(--ba-dark);
}

.home-before-after__case-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* CASE TEXT */

.home-before-after__case-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.home-before-after__case-title {
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-before-after__case-subtitle {
    overflow: hidden;
    color: var(--ba-light-gold);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* CASE NAVIGATION */

.home-before-after__cases-nav {
    display: none;
    justify-content: center;
    gap: 10px;
}

.home-before-after__cases-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(217,182,111,.45);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: var(--ba-light-gold);
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, opacity .3s ease;
}

.home-before-after__cases-arrow svg {
    width: 18px;
    height: 18px;
}

.home-before-after__cases-arrow:hover:not(:disabled) {
    background: var(--ba-gold);
    color: var(--ba-navy);
}

.home-before-after__cases-arrow:disabled {
    opacity: .35;
    cursor: default;
}

/* CTA */

.home-before-after__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    padding: 10px 16px;
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        #E6C987 0%,
        #C6A052 45%,
        #A98135 100%
    );
    box-shadow: 0 6px 22px rgba(198,160,82,.3);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-before-after__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(198,160,82,.42);
}

.home-before-after__cta span {
    font-size: 16px;
    line-height: 1;
    transition: transform .25s ease;
}

.home-before-after__cta:hover span {
    transform: translateX(-4px);
}

/* SCROLL REVEAL */

.home-before-after__heading,
.home-before-after__stage,
.home-before-after__panel {
    opacity: 0;
    translate: 0 26px;
    transition: opacity .8s ease, translate .8s ease;
}

.home-before-after__panel {
    transition-delay: .15s;
}

.home-before-after__heading.is-visible,
.home-before-after__stage.is-visible,
.home-before-after__panel.is-visible {
    opacity: 1;
    translate: 0 0;
}

/* TABLET */

@media (min-width:768px) and (max-width:1024px) {

    .home-before-after {
        padding: 24px 18px 20px;
    }

    .home-before-after__layout {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 13px;
    }

    .home-before-after__stage {
        max-width: none;
        margin: 0;
    }

    .home-before-after__compare {
        aspect-ratio: 1.3 / 1;
        height: auto;
        flex: none;
        border-radius: 15px;
    }

    .home-before-after__cases {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 7px;
    }

    .home-before-after__case {
        flex-direction: column;
        align-items: center;
        padding: 6px;
        text-align: center;
    }

    .home-before-after__case-thumb {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .home-before-after__case-content {
        align-items: center;
        width: 100%;
    }
}

/* MOBILE */

@media (max-width:767px) {

    .home-before-after {
        padding: 19px 12px 16px;
    }

    .home-before-after__heading {
        margin-bottom: 13px;
    }

    .home-before-after__eyebrow {
        font-size: 9px;
    }

    .home-before-after__title {
        font-size: 21px;
        line-height: 1.5;
    }

    .home-before-after__description {
        font-size: 10px;
        line-height: 1.7;
    }

    .home-before-after__layout {
        grid-template-columns: minmax(0,1fr);
        gap: 12px;
    }

    .home-before-after__stage {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
    }

    .home-before-after__compare {
        width: 100%;
        height: auto;
        aspect-ratio: 1.25 / 1;
        flex: none;
        border-radius: 14px;
    }

    .home-before-after__badge {
        top: 9px;
        padding: 4px 10px;
        font-size: 10px;
    }

    .home-before-after__handle-knob {
        width: 37px;
        height: 37px;
    }

    .home-before-after__hint {
        bottom: 8px;
        font-size: 9px;
    }

    .home-before-after__panel {
        height: auto;
        gap: 9px;
    }

    .home-before-after__info {
        padding: 12px 13px;
        border-radius: 12px;
    }

    .home-before-after__info-title {
        font-size: 15px;
    }

    .home-before-after__info-text {
        font-size: 10px;
    }

    /* HORIZONTAL CASE SCROLLER */

    .home-before-after__cases {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .home-before-after__cases::-webkit-scrollbar {
        display: none;
    }

    .home-before-after__case {
        flex: 0 0 42%;
        flex-direction: column;
        align-items: stretch;
        scroll-snap-align: start;
        padding: 7px;
        text-align: center;
    }

    .home-before-after__case-thumb {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .home-before-after__case-content {
        align-items: center;
        width: 100%;
    }

    .home-before-after__case-title {
        font-size: 11px;
    }

    .home-before-after__case-subtitle {
        font-size: 9px;
    }

    .home-before-after__cases-nav {
        display: flex;
        gap: 7px;
    }

    .home-before-after__cases-arrow {
        width: 34px;
        height: 34px;
    }

    .home-before-after__cta {
        padding: 10px 13px;
        font-size: 11px;
    }
}

/* SMALL MOBILE */

@media (max-width:380px) {

    .home-before-after {
        padding: 16px 9px 13px;
    }

    .home-before-after__case {
        flex-basis: 46%;
    }

    .home-before-after__compare {
        aspect-ratio: 1 / 1;
    }

    .home-before-after__badge {
        top: 12px;
        padding: 5px 12px;
        font-size: 11px;
    }

    .home-before-after__badge--before {
        left: 12px;
    }

    .home-before-after__badge--after {
        right: 12px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .home-before-after__heading,
    .home-before-after__stage,
    .home-before-after__panel {
        opacity: 1;
        translate: none;
        transition: none;
    }

    .home-before-after__handle-knob::after {
        animation: none;
    }
}


/* =========================================
   HOME DOCTORS SECTION - FINAL
========================================= */

.home-doctors {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    padding: 24px 20px 28px;
    background: #FFFFFF;
    direction: rtl;
}

/* Main Container */
.home-doctors__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas: "heading doctors";
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* =========================================
   HEADING AREA - RIGHT SIDE
========================================= */

.home-doctors__heading {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-area: heading;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px 22px;
    border-radius: 18px;
    text-align: right;
    background: #F8F5EF;
    background-image:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(176, 138, 74, 0.15) 0%,
            rgba(176, 138, 74, 0.07) 42%,
            transparent 72%
        );
}

.home-doctors__heading > * {
    position: relative;
    z-index: 1;
}

.home-doctors__eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #B08A4A;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.home-doctors__title {
    margin: 0 0 5px;
    color: #142B45;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.5;
}

.home-doctors__description {
    margin: 0;
    color: #77716A;
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================
   CTA BUTTON
========================================= */

.home-doctors__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 10px 20px;
    border: 1px solid #142B45;
    border-radius: 8px;
    background: #142B45;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.home-doctors__button span {
    display: inline-block;
    margin: 0;
    color: #D8B777;
    font-size: 19px;
    line-height: 1;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.home-doctors__button:hover {
    background: #B08A4A;
    border-color: #B08A4A;
    color: #FFFFFF;
}

.home-doctors__button:hover span {
    color: #FFFFFF;
    transform: translateX(-4px);
}

/* =========================================
   DOCTORS GRID - LEFT SIDE
========================================= */

.home-doctors__grid {
    grid-area: doctors;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

/* Doctor Card */
.home-doctor-card {
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(176, 138, 74, 0.12);
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(20, 43, 69, 0.045);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-doctor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20, 43, 69, 0.08);
}

/* Doctor Image */
.home-doctor-card__image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #EDE5D9;
}

.home-doctor-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.home-doctor-card:hover .home-doctor-card__image img {
    transform: scale(1.025);
}

/* Doctor Number */
.home-doctor-card__number {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: rgba(20, 43, 69, 0.88);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

/* Card Content */
.home-doctor-card__content {
    padding: 13px 15px 14px;
}

.home-doctor-card__specialty {
    display: inline-block;
    margin-bottom: 4px;
    color: #B08A4A;
    font-size: 11px;
    font-weight: 700;
}

.home-doctor-card__name {
    margin: 0 0 5px;
    color: #142B45;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}

.home-doctor-card__description {
    min-height: 0;
    margin: 0 0 10px;
    color: #77716A;
    font-size: 12px;
    line-height: 1.75;
}

/* Card Link */
.home-doctor-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 9px;
    border-top: 1px solid #EEE8DE;
    color: #142B45;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-doctor-card__link:hover {
    color: #B08A4A;
}

.home-doctor-card__link span {
    color: #B08A4A;
    font-size: 17px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) and (min-width: 768px) {

    .home-doctors {
        padding: 22px 18px 26px;
    }

    .home-doctors__container {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 20px;
    }

    .home-doctors__heading {
        padding: 22px 16px;
    }

    .home-doctors__title {
        font-size: 20px;
    }

    .home-doctors__description {
        font-size: 12px;
    }

    .home-doctors__grid {
        gap: 13px;
    }

    .home-doctor-card__image {
        height: 190px;
    }

    .home-doctor-card__content {
        padding: 12px;
    }

    .home-doctor-card__name {
        font-size: 15px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .home-doctors {
        padding: 20px 14px 24px;
    }

    .home-doctors__container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .home-doctors__heading {
        width: 100%;
        padding: 20px 17px;
        margin: 0;
        text-align: right;
        border-radius: 14px;
    }

    .home-doctors__title {
        font-size: 20px;
    }

    .home-doctors__description {
        font-size: 12px;
    }

    .home-doctors__button {
        gap: 16px;
        margin-top: 12px;
        padding: 9px 17px;
    }

    .home-doctors__grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: 390px;
        margin: 0 auto;
    }

    .home-doctor-card {
        display: grid;
        grid-template-columns: 38% 1fr;
        align-items: stretch;
        border-radius: 13px;
    }

    .home-doctor-card__image {
        height: 100%;
        min-height: 155px;
    }

    .home-doctor-card__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 11px 12px;
    }

    .home-doctor-card__name {
        font-size: 15px;
    }

    .home-doctor-card__description {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .home-doctor-card__number {
        top: 8px;
        right: 8px;
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .home-doctor-card {
        grid-template-columns: 35% 1fr;
    }

    .home-doctor-card__content {
        padding: 9px 10px;
    }

    .home-doctor-card__name {
        font-size: 14px;
    }

    .home-doctor-card__description {
        font-size: 10px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .home-doctor-card,
    .home-doctor-card__image img,
    .home-doctors__button,
    .home-doctors__button span {
        transition: none;
    }
}


/* =========================================
   HOME TREATMENT STEPS
========================================= */

.home-treatment-steps {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 38px 20px 42px;
    background: #fff;
    direction: rtl;
}

.home-treatment-steps__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.home-treatment-steps__heading {
    max-width: 650px;
    margin: 0 auto 30px;
    text-align: center;
}

.home-treatment-steps__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #B08A4A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-treatment-steps__title {
    margin: 0 0 7px;
    color: #142B45;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.7;
}

.home-treatment-steps__description {
    margin: 0;
    color: #77716A;
    font-size: 13px;
    line-height: 1.9;
}

.home-treatment-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-treatment-step {
    position: relative;
    min-width: 0;
    padding: 20px 15px 18px;
    text-align: center;
    background: #fff;
    border: 1px solid #F0E9DE;
    border-radius: 15px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.home-treatment-step:hover {
    border-color: #D7BD8D;
    transform: translateY(-3px);
}

.home-treatment-step__number {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #D2BD98;
    font-size: 11px;
    font-weight: 800;
    direction: ltr;
}

.home-treatment-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: #F8F1E6;
    color: #B08A4A;
}

.home-treatment-step__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-treatment-step__title {
    margin: 0 0 8px;
    color: #142B45;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
}

.home-treatment-step__description {
    margin: 0;
    color: #77716A;
    font-size: 12px;
    line-height: 1.9;
}

/* Tablet */
@media (max-width: 1024px) {
    .home-treatment-steps {
        padding: 32px 18px;
    }

    .home-treatment-steps__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .home-treatment-step {
        padding: 19px 14px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .home-treatment-steps {
        padding: 26px 14px 30px;
    }

    .home-treatment-steps__heading {
        margin-bottom: 20px;
    }

    .home-treatment-steps__title {
        font-size: 20px;
    }

    .home-treatment-steps__description {
        font-size: 12px;
    }

    .home-treatment-steps__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-treatment-step {
        padding: 17px 10px 14px;
        border-radius: 12px;
    }

    .home-treatment-step__icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }

    .home-treatment-step__icon svg {
        width: 21px;
        height: 21px;
    }

    .home-treatment-step__title {
        font-size: 13px;
    }

    .home-treatment-step__description {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .home-treatment-step {
        padding: 15px 8px 12px;
    }

    .home-treatment-step__title {
        font-size: 12px;
    }

    .home-treatment-step__description {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-treatment-step {
        transition: none;
    }
}
/* =========================================
   SCROLL REVEAL - DOCTORS & TREATMENT
========================================= */

.home-doctors__heading,
.home-treatment-steps__heading,
.home-doctor-card,
.home-treatment-step {
    opacity: 0;
    translate: 0 25px;
    transition:
        opacity 0.7s ease,
        translate 0.7s ease;
}

.home-doctors__heading.is-visible,
.home-treatment-steps__heading.is-visible,
.home-doctor-card.is-visible,
.home-treatment-step.is-visible {
    opacity: 1;
    translate: 0 0;
}

/* Stagger */
.home-doctor-card:nth-child(2),
.home-treatment-step:nth-child(2) {
    transition-delay: 0.12s;
}

.home-doctor-card:nth-child(3),
.home-treatment-step:nth-child(3) {
    transition-delay: 0.24s;
}

.home-treatment-step:nth-child(4) {
    transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
    .home-doctors__heading,
    .home-treatment-steps__heading,
    .home-doctor-card,
    .home-treatment-step {
        opacity: 1;
        translate: none;
        transition: none;
    }
}
/* =========================================
   SAME HOVER AS SERVICES CARDS
========================================= */

/* Doctor Cards */
.home-doctor-card {
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.7s ease,
        translate 0.7s ease;
}

.home-doctor-card:hover {
    transform: translateY(-4px);
    background: #FFFDF9;
    box-shadow: 0 7px 18px rgba(20, 43, 69, 0.08);
}

.home-doctor-card__image img {
    transition: transform 0.4s ease;
}

.home-doctor-card:hover .home-doctor-card__image img {
    transform: scale(1.05);
}

/* Treatment Steps */
.home-treatment-step {
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        opacity 0.7s ease,
        translate 0.4s ease;
}

.home-treatment-step:hover {
    transform: translateY(-4px);
    background: #FFFDF9;
    box-shadow: 0 7px 18px rgba(20, 43, 69, 0.08);
    border-color: rgba(201, 166, 107, 0.12);
}
.home-doctor-card,
.home-treatment-step {
    transition-delay: 0s !important;
    transition-duration: 0.18s !important;
}

.home-doctor-card__image img {
    transition-delay: 0s !important;
    transition-duration: 0.25s !important;
}
/* =========================================
   WHY PARIMAH SECTION
========================================= */

.home-why {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 28px 20px 32px;
    background: #fff;
}

.home-why__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px;
    background: #F8F3E9;
    border: 1px solid rgba(201, 166, 107, .16);
    border-radius: 26px;
    box-shadow: 0 5px 24px rgba(20, 43, 69, .045);
}

.home-why__layout {
    display: grid;
    grid-template-columns: minmax(250px, .82fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 35px;
    direction: rtl;
}

/* Intro */

.home-why__intro {
    text-align: right;
    max-width: 340px;
}

.home-why__eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #B18A50;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-why__title {
    margin: 0 0 13px;
    color: #142B45;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.7;
}

.home-why__title span {
    color: #B18A50;
}

.home-why__description {
    margin: 0 0 19px;
    color: #68717C;
    font-size: 12px;
    line-height: 2.2;
}

.home-why__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 17px;
    border: 1px solid #142B45;
    border-radius: 9px;
    background: #142B45;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.home-why__link:hover {
    background: #B18A50;
    border-color: #B18A50;
    color: #fff;
}

.home-why__link span {
    font-size: 16px;
    line-height: 1;
}

/* Cards */

.home-why__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.home-why-card {
    position: relative;
    min-width: 0;
    min-height: 166px;
    padding: 17px 18px 15px;
    overflow: hidden;
    border: 1px solid rgba(20, 43, 69, .065);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(20, 43, 69, .035);
    transition:
        transform .2s ease,
        background-color .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        opacity .7s ease,
        translate .7s ease;
}

.home-why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 166, 107, .3);
    background: #FFFDF9;
    box-shadow: 0 8px 19px rgba(20, 43, 69, .075);
}

.home-why-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.home-why-card__number {
    color: #C5AD86;
    font-size: 11px;
    font-weight: 700;
    direction: ltr;
}

.home-why-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201, 166, 107, .25);
    border-radius: 12px;
    background: #F9F3E9;
    color: #B18A50;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.home-why-card__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.home-why-card:hover .home-why-card__icon {
    transform: scale(1.06);
    background: #142B45;
    color: #E6C58F;
}

.home-why-card__title {
    margin: 0 0 6px;
    color: #142B45;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.8;
}

.home-why-card__text {
    margin: 0;
    color: #77808A;
    font-size: 10px;
    line-height: 2;
}

.home-why-card__line {
    position: absolute;
    right: 18px;
    bottom: 0;
    width: 32px;
    height: 2px;
    border-radius: 5px 5px 0 0;
    background: #C9A66B;
    transition: width .25s ease;
}

.home-why-card:hover .home-why-card__line {
    width: 55px;
}

/* Tablet */

@media (max-width: 1024px) {
    .home-why {
        padding: 25px 18px;
    }

    .home-why__container {
        padding: 25px;
        border-radius: 22px;
    }

    .home-why__layout {
        grid-template-columns: minmax(210px, .75fr) minmax(0, 1.4fr);
        gap: 22px;
    }

    .home-why__title {
        font-size: 23px;
    }

    .home-why-card {
        min-height: 160px;
        padding: 14px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .home-why {
        padding: 20px 12px 24px;
    }

    .home-why__container {
        padding: 22px 15px;
        border-radius: 18px;
    }

    .home-why__layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-why__intro {
        max-width: 100%;
    }

    .home-why__eyebrow {
        margin-bottom: 5px;
    }

    .home-why__title {
        margin-bottom: 7px;
        font-size: 21px;
    }

    .home-why__description {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .home-why__link {
        padding: 9px 14px;
    }

    .home-why__grid {
        gap: 10px;
    }

    .home-why-card {
        min-height: 155px;
        padding: 13px;
        border-radius: 12px;
    }

    .home-why-card__icon {
        width: 37px;
        height: 37px;
        border-radius: 10px;
    }

    .home-why-card__icon svg {
        width: 21px;
        height: 21px;
    }

    .home-why-card__title {
        font-size: 12px;
    }

    .home-why-card__text {
        font-size: 10px;
        line-height: 1.9;
    }
}

/* Small Mobile */

@media (max-width: 380px) {
    .home-why__container {
        padding: 18px 12px;
    }

    .home-why__grid {
        gap: 8px;
    }

    .home-why-card {
        min-height: 150px;
        padding: 11px;
    }

    .home-why-card__title {
        font-size: 11px;
    }

    .home-why-card__text {
        font-size: 9px;
    }
}
/* =========================================
   TESTIMONIALS SECTION
========================================= */

.home-testimonials {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 30px 20px 35px;
    background: #fff;
}

.home-testimonials__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.home-testimonials__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
    align-items: stretch;
    gap: 25px;
    direction: rtl;
}

/* Content */

.home-testimonials__content {
    min-width: 0;
}

.home-testimonials__heading {
    margin-bottom: 17px;
    text-align: right;
}

.home-testimonials__eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #B18A50;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-testimonials__title {
    margin: 0 0 5px;
    color: #142B45;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.7;
}

.home-testimonials__title span {
    color: #B18A50;
}

.home-testimonials__description {
    margin: 0;
    color: #77808A;
    font-size: 11px;
    line-height: 2;
}

/* Comments Grid */

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

.home-testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 185px;
    padding: 15px 16px 13px;
    overflow: hidden;
    border: 1px solid rgba(201, 166, 107, .19);
    border-radius: 15px;
    background: #F9F5ED;
    transition:
        transform .2s ease,
        background-color .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        opacity .7s ease,
        translate .7s ease;
}

.home-testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 166, 107, .4);
    background: #FFFDF9;
    box-shadow: 0 8px 20px rgba(20, 43, 69, .07);
}

.home-testimonial-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.home-testimonial-card__quote {
    height: 35px;
    color: #C9A66B;
    font-family: Georgia, serif;
    font-size: 43px;
    font-weight: 700;
    line-height: 1;
}

.home-testimonial-card__stars {
    color: #C49A53;
    font-size: 13px;
    letter-spacing: 2px;
    direction: ltr;
}

.home-testimonial-card__text {
    flex: 1;
    margin: 0 0 13px;
    color: #5E6874;
    font-size: 10px;
    line-height: 2.1;
    text-align: right;
}

.home-testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 10px;
    border-top: 1px solid rgba(20, 43, 69, .08);
}

.home-testimonial-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(201, 166, 107, .35);
    border-radius: 50%;
    background: #EDE2D0;
    color: #142B45;
    font-size: 13px;
    font-weight: 700;
}

.home-testimonial-card__person {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-testimonial-card__person strong {
    color: #142B45;
    font-size: 10px;
    font-weight: 700;
}

.home-testimonial-card__person span {
    color: #9299A0;
    font-size: 9px;
}

/* Image */

.home-testimonials__image {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #EDE2D0;
    isolation: isolate;
}

.home-testimonials__image::after {
    position: absolute;
    inset: 35% 0 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(12, 29, 47, .72)
    );
    content: "";
    pointer-events: none;
}

.home-testimonials__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.home-testimonials__image:hover img {
    transform: scale(1.035);
}

.home-testimonials__image-caption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.home-testimonials__image-caption span {
    color: #E6C58F;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-testimonials__image-caption strong {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
}

/* Tablet */

@media (max-width: 1024px) {
    .home-testimonials {
        padding: 25px 18px 30px;
    }

    .home-testimonials__layout {
        grid-template-columns: minmax(0, 1.3fr) minmax(230px, .8fr);
        gap: 17px;
    }

    .home-testimonial-card {
        min-height: 180px;
        padding: 13px;
    }

    .home-testimonials__image img {
        min-height: 390px;
    }

    .home-testimonials__title {
        font-size: 21px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .home-testimonials {
        padding: 22px 12px 28px;
    }

    .home-testimonials__layout {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .home-testimonials__image {
        order: 1;
        min-height: 230px;
        max-height: 270px;
        border-radius: 15px;
    }

    .home-testimonials__image img {
        min-height: 230px;
        max-height: 270px;
    }

    .home-testimonials__content {
        order: 2;
    }

    .home-testimonials__heading {
        margin-bottom: 12px;
    }

    .home-testimonials__title {
        font-size: 20px;
    }

    .home-testimonials__grid {
        gap: 9px;
    }

    .home-testimonial-card {
        min-height: 175px;
        padding: 12px;
        border-radius: 12px;
    }

    .home-testimonial-card__text {
        font-size: 10px;
    }

    .home-testimonials__image-caption {
        right: 16px;
        bottom: 16px;
    }

    .home-testimonials__image-caption strong {
        font-size: 17px;
    }
}

/* Small Mobile */

@media (max-width: 380px) {
    .home-testimonial-card {
        min-height: 185px;
        padding: 10px;
    }

    .home-testimonial-card__stars {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .home-testimonial-card__text {
        font-size: 9px;
    }

    .home-testimonial-card__person strong {
        font-size: 9px;
    }
}
/* Testimonials Reveal */

.home-testimonials__heading,
.home-testimonial-card,
.home-testimonials__image {
    opacity: 1;
    translate: none;
}

html.parimah-reveal-ready .home-testimonials__heading,
html.parimah-reveal-ready .home-testimonial-card,
html.parimah-reveal-ready .home-testimonials__image {
    opacity: 0;
    translate: 0 24px;
}

html.parimah-reveal-ready .home-testimonials__heading.is-visible,
html.parimah-reveal-ready .home-testimonial-card.is-visible,
html.parimah-reveal-ready .home-testimonials__image.is-visible {
    opacity: 1;
    translate: 0 0;
}

.home-testimonial-card:nth-child(2) {
    transition-delay: .12s;
}

.home-testimonial-card:nth-child(3) {
    transition-delay: .24s;
}

.home-testimonial-card:nth-child(4) {
    transition-delay: .36s;
}

/* Hover should not inherit reveal delay */

.home-testimonial-card:hover {
    transition-delay: 0s !important;
}

@media (prefers-reduced-motion: reduce) {
    html.parimah-reveal-ready .home-testimonials__heading,
    html.parimah-reveal-ready .home-testimonial-card,
    html.parimah-reveal-ready .home-testimonials__image {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

/* =====================================================
   HOME MAGAZINE
   -----------------------------------------------------
   Compact layout:
   - Heading row with "view all" link
   - Right: horizontal featured card
   - Left: compact list of 4 articles
===================================================== */

.home-magazine {
    position: relative;
    width: 100%;
    padding: 30px 20px 28px;
    background: #ffffff;
    direction: rtl;
}

.home-magazine__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Heading */

.home-magazine__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.home-magazine__heading-content {
    text-align: right;
}

.home-magazine__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #B18A50;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-magazine__title {
    margin: 0;
    color: #142B45;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.6;
}

.home-magazine__title span {
    color: #B18A50;
}

.home-magazine__description {
    margin: 2px 0 0;
    color: #858585;
    font-size: 12px;
    line-height: 1.8;
}

.home-magazine__all-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border: 1px solid #D8C49E;
    border-radius: 30px;
    color: #142B45;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.home-magazine__all-link:hover {
    border-color: #142B45;
    background: #142B45;
    color: #ffffff;
}

.home-magazine__all-link span,
.home-magazine__read-more span {
    transition: transform 0.25s ease;
}

.home-magazine__all-link:hover span,
.home-magazine__read-more:hover span {
    transform: translateX(-4px);
}

/* Layout */

.home-magazine__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: stretch;
    gap: 14px;
}

/* Featured Article (horizontal card) */

.home-magazine__featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #EEE9DF;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(23, 43, 67, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.home-magazine__featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(23, 43, 67, 0.09);
}

.home-magazine__featured-image {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: #F5F0E7;
}

.home-magazine__featured-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-magazine__featured:hover .home-magazine__featured-image img {
    transform: scale(1.045);
}

.home-magazine__featured-label {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 30px;
    background: #142B45;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 600;
}

.home-magazine__featured-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 14px 16px;
}

.home-magazine__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #A18A64;
    font-size: 10.5px;
    font-weight: 500;
}

.home-magazine__date-icon {
    font-size: 14px;
}

.home-magazine__featured-title {
    margin: 6px 0 4px;
    color: #142B45;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
}

.home-magazine__featured-title a,
.home-magazine__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.home-magazine__featured-title a:hover,
.home-magazine__card-title a:hover {
    color: #B18A50;
}

.home-magazine__featured-excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #777777;
    font-size: 12px;
    line-height: 1.9;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-magazine__read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 8px;
    color: #B18A50;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

/* Compact Article List (2 x 2) */

.home-magazine__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.home-magazine__card {
    position: relative;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 7px 7px 7px 10px;
    border: 1px solid #EEE9DF;
    border-radius: 14px;
    background: #ffffff;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.home-magazine__card:hover {
    border-color: #E3D3B4;
    box-shadow: 0 8px 20px rgba(23, 43, 67, 0.07);
    transform: translateX(-3px);
}

.home-magazine__card-image {
    display: block;
    width: 80px;
    height: 64px;
    overflow: hidden;
    border-radius: 10px;
    background: #F5F0E7;
}

.home-magazine__card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-magazine__card:hover .home-magazine__card-image img {
    transform: scale(1.06);
}

.home-magazine__card-content {
    min-width: 0;
}

.home-magazine__card-title {
    display: -webkit-box;
    margin: 2px 0 0;
    overflow: hidden;
    color: #142B45;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.8;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-magazine__card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F4ECDD;
    color: #B18A50;
    font-size: 14px;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.home-magazine__card:hover .home-magazine__card-arrow {
    background: #142B45;
    color: #ffffff;
}

/* Placeholder when an article has no featured image */

.home-magazine__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #F5F0E7;
    color: #B18A50;
    font-family: Georgia, serif;
    font-size: 18px;
    letter-spacing: 3px;
}

/* Tablet */

@media (max-width: 900px) {

    .home-magazine {
        padding: 34px 18px 30px;
    }

    .home-magazine__layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-magazine__featured {
        min-height: 200px;
    }

    .home-magazine__list {
        grid-template-rows: auto;
    }
}

/* Mobile */

@media (max-width: 640px) {

    .home-magazine {
        padding: 24px 16px 22px;
    }

    .home-magazine__heading {
        margin-bottom: 16px;
    }

    .home-magazine__title {
        font-size: 19px;
    }

    .home-magazine__description {
        display: none;
    }

    .home-magazine__all-link {
        padding: 7px 13px;
        font-size: 11px;
    }

    .home-magazine__featured {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-magazine__featured-image {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .home-magazine__featured-content {
        padding: 14px 15px 15px;
    }

    .home-magazine__featured-title {
        font-size: 15px;
    }

    .home-magazine__featured-excerpt {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .home-magazine__list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-magazine__card {
        grid-template-columns: 76px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .home-magazine__card-image {
        width: 76px;
        height: 58px;
    }

    .home-magazine__card-title {
        font-size: 12px;
    }

    .home-magazine__date {
        font-size: 10px;
    }
}

/* Small Mobile */

@media (max-width: 380px) {

    .home-magazine__card-arrow {
        display: none;
    }

    .home-magazine__card {
        grid-template-columns: 70px minmax(0, 1fr);
        padding-left: 10px;
    }

    .home-magazine__card-image {
        width: 70px;
        height: 54px;
    }
}


/* HOME CTA */
.home-cta {
    width: 100%;
    padding: 16px 24px;
    overflow: hidden;
    background: linear-gradient(115deg, #111e38, #263e5b);
}

.home-cta__container {
    width: 100%;
    max-width: 1180px;
    min-height: 165px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

/* متن سمت راست */
.home-cta__content {
    direction: rtl;
    order: 2;
    flex: 1;
    max-width: 720px;
    text-align: right;
}

.home-cta__eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #d5b77e;
    font-size: 10px;
    letter-spacing: 2px;
}

.home-cta__content h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.7;
}

.home-cta__content p {
    margin: 0 0 12px;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    line-height: 2;
}

/* دکمه */
.home-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 19px;
    color: #172b43;
    background: linear-gradient(135deg, #e4c994, #c9a66b);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: .25s ease;
}

.home-cta__button:hover {
    color: #172b43;
    transform: translateY(-2px);
}

.home-cta__button-icon {
    display: flex;
    align-items: center;
}

.home-cta__button-icon svg {
    width: 19px;
    height: 19px;
}

/* تصویر دایره ای سمت چپ */
.home-cta__image {
    order: 1;
    display: block;
    flex: 0 0 175px;
    width: 175px;
    height: 175px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(213,183,126,.65);
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.home-cta__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

/* TABLET */
@media (max-width: 900px) {
    .home-cta {
        padding: 14px 20px;
    }

    .home-cta__container {
        min-height: 145px;
        gap: 24px;
    }

    .home-cta__image {
        flex-basis: 145px;
        width: 145px;
        height: 145px;
    }

    .home-cta__content h2 {
        font-size: 21px;
    }
}

/* MOBILE */
@media (max-width: 640px) {
    .home-cta {
        padding: 24px 18px;
    }

    .home-cta__container {
        min-height: auto;
        flex-direction: column;
        gap: 17px;
    }

    .home-cta__image {
        order: 1;
        flex: 0 0 135px;
        width: 135px;
        height: 135px;
    }

    .home-cta__content {
        order: 2;
        width: 100%;
        text-align: center;
    }

    .home-cta__content h2 {
        font-size: 20px;
    }

    .home-cta__content p {
        font-size: 12px;
        line-height: 1.9;
    }
}
/* ========================================
   HOME FAQ & CONTACT
======================================== */

.home-faq-contact {
    width: 100%;
    padding: 65px 24px;
    direction: rtl;
    background: #f8f6f1;
}

.home-faq-contact__container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    align-items: start;
    gap: 45px;
}

/* FAQ HEADING */

.home-faq__heading {
    margin-bottom: 24px;
}

.home-faq__eyebrow,
.home-faq-form__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #b18b4b;
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-faq__heading h2,
.home-faq-form__heading h2 {
    margin: 0 0 8px;
    color: #172b43;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.7;
}

.home-faq__heading p,
.home-faq-form__heading p {
    margin: 0;
    color: #777b80;
    font-size: 13px;
    line-height: 2;
}

/* FAQ ITEMS */

.home-faq__list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.home-faq__item {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 11px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.home-faq__item[open] {
    border-color: rgba(177, 139, 75, .45);
    box-shadow: 0 5px 18px rgba(23, 43, 67, .045);
}

.home-faq__item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 19px;
    color: #26384e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.9;
    cursor: pointer;
    list-style: none;
}

.home-faq__item summary::-webkit-details-marker {
    display: none;
}

.home-faq__icon {
    position: relative;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #f5f0e6;
}

.home-faq__icon::before,
.home-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1.5px;
    background: #a78348;
    transform: translate(-50%, -50%);
}

.home-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform .25s ease;
}

.home-faq__item[open] .home-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0);
}

.home-faq__answer {
    padding: 0 19px 17px;
}

.home-faq__answer p {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #f0ede7;
    color: #777b80;
    font-size: 12px;
    line-height: 2.2;
}

/* FORM CARD */

.home-faq-form {
    position: relative;
    padding: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(23, 43, 67, .07);
}

.home-faq-form::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #b18b4b, #e4c994, #b18b4b);
}

.home-faq-form__heading {
    margin-bottom: 23px;
}

.home-faq-form__heading h2 {
    font-size: 23px;
}

/* FORM FIELDS */

.home-faq-form__form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.home-faq-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-faq-form__field label {
    color: #26384e;
    font-size: 12px;
    font-weight: 700;
}

.home-faq-form__field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: #26384e;
    background: #faf9f6;
    border: 1px solid #eae6de;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 12px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.home-faq-form__field input::placeholder {
    color: #a4a4a4;
    font-size: 11px;
}

.home-faq-form__field input:focus {
    border-color: #b18b4b;
    box-shadow: 0 0 0 3px rgba(177, 139, 75, .1);
}

/* SUBMIT */

.home-faq-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 47px;
    margin-top: 3px;
    color: #172b43;
    background: linear-gradient(135deg, #e4c994, #c9a66b);
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-faq-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(177, 139, 75, .2);
}

.home-faq-form__submit span {
    font-size: 18px;
}

.home-faq-form__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    color: #929292;
    font-size: 11px;
}

.home-faq-form__footer-icon {
    color: #b18b4b;
}

/* FORM MESSAGES */

.home-faq-form__notice {
    margin-bottom: 17px;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.9;
}

.home-faq-form__notice--success {
    color: #286343;
    background: #edf7f0;
}

.home-faq-form__notice--error {
    color: #a33c3c;
    background: #fff0f0;
}

/* HONEYPOT */

.home-faq-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* TABLET */

@media (max-width: 900px) {
    .home-faq-contact {
        padding: 48px 20px;
    }

    .home-faq-contact__container {
        gap: 25px;
        grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    }

    .home-faq-form {
        padding: 23px;
    }

    .home-faq__heading h2,
    .home-faq-form__heading h2 {
        font-size: 22px;
    }
}

/* MOBILE */

@media (max-width: 680px) {
    .home-faq-contact {
        padding: 38px 17px;
    }

    .home-faq-contact__container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-faq__heading {
        margin-bottom: 18px;
    }

    .home-faq__heading h2,
    .home-faq-form__heading h2 {
        font-size: 22px;
    }

    .home-faq__item summary {
        padding: 14px;
        font-size: 12px;
    }

    .home-faq__answer {
        padding: 0 14px 14px;
    }

    .home-faq-form {
        padding: 24px 19px;
    }
}
/* ========================================
   FAQ & Contact - Entrance Animation
======================================== */

.home-faq-contact {
    animation: faqSectionReveal 0.8s ease both;
}

.home-faq,
.home-faq-form {
    animation: faqContentReveal 0.8s ease both;
}

.home-faq-form {
    animation-delay: 0.15s;
}

.home-faq__item {
    animation: faqItemReveal 0.6s ease both;
}

.home-faq__item:nth-child(2) {
    animation-delay: 0.08s;
}

.home-faq__item:nth-child(3) {
    animation-delay: 0.16s;
}

.home-faq__item:nth-child(4) {
    animation-delay: 0.24s;
}

@keyframes faqSectionReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faqContentReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faqItemReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   FAQ Accordion Animation
======================================== */

/* خود آیتم سوال */
.home-faq__item {
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* حالت Hover */
.home-faq__item:hover {
    transform: translateY(-2px);
    border-color: rgba(177, 139, 75, 0.45);
}

/* حالت باز */
.home-faq__item[open] {
    border-color: #b18b4b;
    background-color: #fffdf9;
    box-shadow: 0 8px 24px rgba(23, 43, 67, 0.07);
}

/* عنوان سوال */
.home-faq__item summary {
    cursor: pointer;
    transition: color 0.3s ease;
}

/* رنگ عنوان در حالت باز */
.home-faq__item[open] summary {
    color: #b18b4b;
}

/* چرخش آیکون */
.home-faq__item summary::after {
    transition: transform 0.35s ease;
}

.home-faq__item[open] summary::after {
    transform: rotate(180deg);
}

/* انیمیشن باز و بسته شدن پاسخ */
.home-faq__item::details-content {
    height: 0;
    overflow: clip;
    transition:
        height 0.4s ease,
        content-visibility 0.4s allow-discrete;
}

.home-faq__item[open]::details-content {
    height: auto;
}

/* نمایش تدریجی متن پاسخ */
.home-faq__item[open] > *:not(summary) {
    animation: faqAnswerReveal 0.35s ease both;
}

@keyframes faqAnswerReveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   Form Interaction
======================================== */

.home-faq-form__form input {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.home-faq-form__form input:focus {
    border-color: #b18b4b;
    box-shadow: 0 0 0 3px rgba(177, 139, 75, 0.12);
    outline: none;
}

.home-faq-form__form button {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.home-faq-form__form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(177, 139, 75, 0.22);
}

.home-faq-form__form button:active {
    transform: translateY(0) scale(0.98);
}


/* ========================================
   Accessibility
======================================== */

@media (prefers-reduced-motion: reduce) {
    .home-faq-contact,
    .home-faq,
    .home-faq-form,
    .home-faq__item,
    .home-faq__item > *:not(summary) {
        animation: none !important;
        transition: none !important;
    }
}
/* Smooth FAQ Accordion */

.home-faq__item {
    interpolate-size: allow-keywords;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.home-faq__item::details-content {
    height: 0;
    overflow: clip;

    transition:
        height 0.4s ease,
        content-visibility 0.4s allow-discrete;
}

.home-faq__item[open]::details-content {
    height: auto;
}

/* Question */

.home-faq__item summary {
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Open state */

.home-faq__item[open] {
    background: #fffdf9;
    border-color: #b18b4b;
    box-shadow: 0 8px 24px rgba(23, 43, 67, 0.07);
}

.home-faq__item[open] summary {
    color: #b18b4b;
}

/* Arrow animation */

.home-faq__item summary::after {
    transition: transform 0.35s ease;
}

.home-faq__item[open] summary::after {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .home-faq__item,
    .home-faq__item::details-content,
    .home-faq__item summary::after {
        transition: none !important;
    }
}
