﻿/* nice centering + spacing for a hero */
.hero-center {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*place-items: center;*/ /* centers content both axes */
    /*padding-block: 32px;*/
    color: var(--color-white); /* readable on your green bg */
    /*padding-bottom: var(--divider-h-sm, 7rem);*/ /* smaller divider space */
    overflow: hidden;
    padding-bottom: 4rem
}

    /* keep hero content above the divider */
    .hero-center > * {
        position: relative;
        z-index: 1;
    }

    .hero-center .pre-consultation {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 1rem;
    }

        .hero-center .pre-consultation button {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background: var(--bg-custom-light);
            padding: 1rem;
            border-radius: 1rem;
            border: none;
            color: var(--color-white);
            font-weight: bold;
            transition: all 0.3s ease-in-out;
        }

            .hero-center .pre-consultation button:hover {
                opacity: 0.8;
            }

.custom-bg-category {
    background: var(--bg-custom-light);
    /*background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px);*/
    background-size: 24px 24px;
}

.home-items-group {
    list-style: none; /* remove bullets */
    padding-left: 0; /* reset default padding */
    margin: 0; /* remove default margin */
}

    .home-items-group .img-container {
        height: 16rem;
        position: relative;
        border-radius: 1rem;
        transition: all 0.3s ease-in-out;
    }

.img-container .info-item {
    width: 10rem;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

    .img-container .info-item h3 {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--color-white);
        /*text-align: center;*/
    }

    .img-container .info-item p {
        color: var(--color-custom-pale);
        text-align: center;
    }


.img-container a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.img-container img {
    object-position: right;
    height: 100%;
    aspect-ratio: 12 / 7;
    border-radius: 1rem;
    object-fit: contain; /* better fit inside container */
}

.img-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.3rem;
    height: 1.3rem;
    border: 1px solid var(--color-custom-pale);
    color: var(--color-custom-pale);
    border-radius: 50%;
    font-size: 0.75rem;
}

.divider-main-1 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    display: block;
    z-index: 0;
    pointer-events: none; /* divider is decorative; keep clicks on content */
    user-select: none;
    -webkit-user-drag: none;
}

/*----------Report---------*/
.report {
    padding-top: 6rem;
    padding-bottom: 10rem;
}

    .report img {
        position: absolute;
        transform: scaleX(-1);
        top: -70px;
        right: -59px;
    }

.down-arrow {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite;
}


    .down-arrow img {
        width: 40px;
        transition: transform 0.3s ease;
    }

    .down-arrow:hover img {
        transform: translateY(5px);
    }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        /* Keep the -50% here so it stays centered! */
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(8px);
    }

    60% {
        transform: translateX(-50%) translateY(4px);
    }
}

.down-arrow img:hover {
    opacity: 0.6;
}

.counter + span {
    margin-right: 4px;
}

.curved-top {
    z-index: 2;
    margin-top: -5.25rem;
    padding-top: 84px;
    position: relative;
    overflow: hidden;
}

    .curved-top:before {
        content: "";
        height: 84px;
        z-index: -1;
        background: #f7f0e6;
        border-radius: 50% 50% 0 0 / 100% 100% 0 0;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        transform: scaleX(1.15);
    }

/*----------counselor-feature---------*/
.counselor-feature {
    background: linear-gradient(#f7f0e6 60%, #fffcf6 80%);
}

    .counselor-feature button {
        color: var(--color-white);
        background-color: var(--bg-custom-medium);
        border: none;
        border-radius: 1rem;
        transition: all 0.1s ease-in-out;
    }

        .counselor-feature button:hover {
            color: var(--color-white);
            background-color: var(--color-custom-dark);
            outline: none;
        }

/* === Swiper Overrides === */
.swiper {
    padding: 10px 40px; /* room for navigation arrows outside */
}

.swiper-slide {
    height: auto !important; /* Allow natural height */
    display: flex;
}


.swiper-wrapper {
    align-items: stretch !important; /* Override any Bootstrap alignment */
}

.doctor-card {
    height: 100% !important; /* Ensure cards fill the slide height */
    text-decoration: none;
}

/* === Doctor Card === */
.doctor-card {
    background: #ffffff;
    border-radius: 16px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);*/
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    direction: rtl;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

    .doctor-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

    /* Subtle top accent line */
    .doctor-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--color-custom-medium);
        border-radius: 16px 16px 0 0;
    }

/* === Doctor Image === */
.doctor-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease;
}

.doctor-card:hover .doctor-img {
    border-color: var(--color-custom-medium);
}

/* === Typography === */
.doctor-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-custom-medium);
    margin: 0 0 0.4rem;
    line-height: 1.4;
}

.therapy-types {
    color: #475569;
    font-size: 0.9rem;
    margin: 0.5rem 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

    /* Make each therapy a nice tag */
    .therapy-types span {
        background: var(--custom-bg);
        color: var(--color-custom-medium);
        padding: 0.25rem 0.75rem;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 500;
    }

.description {
    color: var(--color-custom-light);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: auto; /* push to bottom if card has extra space */
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}

/* If you're using a Truncate helper, it's just text, no extra style needed */

/* === Navigation Arrows === */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--color-custom-medium);
    /*top: 50%;*/
    /*transform: translateY(-50%);*/
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: var(--color-custom-medium);
        color: #ffffff;
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
    }

/* RTL positioning – already fixed in your code, keep it */
.swiper-button-next {
    right: auto;
    left: 0;
}

.swiper-button-prev {
    left: auto;
    right: 0;
}

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1.2rem;
        font-weight: bold;
    }

/*----------how-work---------*/
.divider-2 {
    position: relative;
    height: 14rem;
    background-color: #fffcf6;
}

    .divider-2 img {
        position: absolute;
        bottom: 0;
        width: 100%;
        z-index: 10;
    }

.how-work {
    background-color: #f5f7f5;
    position: relative;
    padding-bottom: 6rem !important; /* قابل تنظیم */
}

.how-work-info .media-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.how-work-info img {
    width: 100%;
    max-width: 520px; /* جلوگیری از بزرگ شدن بیش از حد در دسکتاپ */
    height: auto;
    display: block;
    object-fit: contain;
}

.arrow-image {
    width: 3rem;
    height: auto;
    margin: 0 auto;
    display: block;
}

.how-work h3 {
    font-size: 1.25rem;
    margin: 0;
}

.how-work p {
    margin: 0;
    line-height: 1.6;
    color: #2b2b2b;
}

/*----------comparison-table---------*/
.home_faq_section {
    background-color: #fffcf6;
}

.divider-3 {
    position: relative;
    height: 5.5rem;
    background-color: #fffcf6;
}

    .divider-3 img {
        position: absolute;
        bottom: -0.5rem;
        width: 100%;
        height: auto;
        z-index: 10;
    }

.comparison-table {
    background-color: var(--bg-custom-dark);
    color: #fff;
}

.logo {
    width: 3rem;
}

.table-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-collapse: collapse;
    margin-top: 2rem;
}

.table-row {
    display: contents;
}

    .table-row > div {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        border-bottom: 1px solid #939b92;
    }

    .table-row.header > div {
        font-weight: bold;
        justify-content: center;
    }

        .table-row.header > div:nth-child(2) {
            background: var(--color-custom-medium);
            border-radius: .5rem .5rem 0 0;
        }

.comparison-table i {
    color: var(--color-custom-pale);
}

/*----------Responsive---------*/
@media (max-width: 575.98px) {
    .hero-center {
        /*padding-bottom: var(--divider-h-sm, 3rem);*/
    }

        .hero-center h1 {
            font-size: 1rem;
            font-weight: bold;
        }

    .home-items-group {
        padding: 0 1rem;
    }

        .home-items-group .img-container {
            aspect-ratio: 17 / 6;
            height: 7rem;
        }

    .img-container .info-item h3 {
        padding: 0;
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .home-items-group .img-container p {
        font-size: 14px;
        margin-bottom: 0;
    }

    .home-items-group img {
        width: 100%;
        height: 100%;
        object-position: right center;
    }

    .divider-main-1 {
        bottom: 0;
    }
    /*----------Report---------*/
    .report {
        padding-bottom: 7rem;
    }

        .report h2, h3 {
            padding-right: 2rem;
        }

        .report h2 {
            font-size: 18px;
        }

        .report h3 {
            font-size: 1rem;
        }

        .report img {
            width: 50px;
            transform: scaleX(-1);
            top: -40px;
            right: 0;
        }

    .down-arrow {
        bottom: 1rem;
        left: 50%;
        z-index: 10;
    }
    /*----------counselor-feature---------*/
    .swiper {
        padding: 10px 20px;
    }


    .doctor-card {
        padding: 1.5rem 1rem;
    }

        .doctor-card h3 {
            padding: 0;
        }

    .doctor-img {
        width: 100px;
        height: 100px;
    }
    /*----------how-work---------*/
    .how-work {
        padding-bottom: 3rem !important;
    }

        .how-work h2 {
            font-size: 1.3rem;
            font-weight: bold;
        }

    .how-work-info {
        text-align: center;
    }

        .how-work-info .d-flex.flex-column {
            align-items: center;
        }

    .how-work h3 {
        font-size: 1.125rem;
    }

    .how-work-info .media-wrap {
        max-width: 200px;
    }

    .how-work-info img {
        width: 100%;
        height: auto;
    }

    .divider-2 {
        height: 4rem;
    }
    /*----------comparison-table---------*/
    .divider-3 {
        position: relative;
        height: 1rem;
        background-color: #fffcf6;
    }

    .table-container {
    }

    .table-row > div {
        gap: 0.5rem;
        padding: 0.5rem;
        border-bottom: 1px solid #939b92;
    }

    .table-row span {
        font-size: 0.8rem;
        font-weight: normal;
    }

    .table-row.header > div {
        font-weight: bold;
        justify-content: center;
    }
}

/* Large devices (desktops) */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .home-items-group .img-container {
        height: 14rem;
    }

    .img-container img {
        aspect-ratio: 16 / 9;
    }
}

/*----------collapse-toggle---------*/
.faq-accordion {
    direction: rtl;
}

.faq-item {
    border-bottom: 1px solid #c3c8c1;
}

.collapse-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    background: transparent;
    border: none;
    font-size: 1rem;
    text-align: right;
    cursor: pointer;
}

    .collapse-toggle:focus {
        outline: none;
        box-shadow: none;
    }

    .collapse-toggle i {
        transition: transform 0.3s ease;
        font-size: 1.2rem;
    }

    .collapse-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

.collapse-content {
    padding: 1rem 0;
    color: #333;
}

.faq-item:last-child {
    border-bottom: 0;
}
