/* Eptins Way Of India Services Widget */
.eptins-woi-services {
    --eptins-woi-accent: #c98337;
    position: relative;
    overflow: hidden;
    background: #fbf5ea;
    padding: 80px 40px 60px;
    min-height: 100vh;
    font-family: inherit;
}

.eptins-woi-services::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(190, 120, 55, 0.08), transparent 26%),
        radial-gradient(circle at 80% 15%, rgba(190, 120, 55, 0.07), transparent 24%),
        radial-gradient(circle at 50% 90%, rgba(190, 120, 55, 0.08), transparent 32%);
    z-index: 0;
}

.eptins-woi-services__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: repeating-linear-gradient(45deg, transparent 0, transparent 28px, rgba(180, 122, 65, 0.18) 29px, transparent 30px);
    pointer-events: none;
    z-index: 0;
}

.eptins-woi-services__header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 45px;
}

.eptins-woi-services__eyebrow {
    display: inline-block;
    color: var(--eptins-woi-accent);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.eptins-woi-services__eyebrow::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    background: currentColor;
    margin: 14px auto 0;
}

.eptins-woi-services__heading {
    margin: 0;
    color: #21160f;
    font-family: "Playfair Display", serif;
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
}

.eptins-woi-services__wrap {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 37% 63%;
    gap: 55px;
    align-items: center;
}

.eptins-woi-services__list {
    position: relative;
    z-index: 5;
}

.eptins-woi-service {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 52px 1fr 28px;
    align-items: center;
    gap: 14px;
    min-height: 42px;
    padding: 0 22px;
    border: 0;
    border-bottom: 1px solid rgba(70, 45, 30, 0.14);
    background: transparent;
    color: rgba(33, 22, 15, 0.48);
    cursor: pointer;
    text-align: left;
    transition: all 0.45s ease;
}

.eptins-woi-service:hover,
.eptins-woi-service:focus-visible {
    color: #21160f;
    outline: none;
}

.eptins-woi-service__number {
    font-family: "Playfair Display", serif;
    font-size: 15px;
    color: var(--eptins-woi-accent);
}

.eptins-woi-service__name {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.05;
}

.eptins-woi-service__mark {
    font-size: 22px;
    color: #a87949;
    text-align: right;
}

.eptins-woi-service.is-active {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: transparent;
   
    border-radius: 4px;
    color: #21160f;
}

.eptins-woi-service.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--eptins-woi-accent);
}

.eptins-woi-service.is-active .eptins-woi-service__name {
    font-size: 28px;
}

.eptins-woi-services__feature {
    position: relative;
    min-height: 560px;
}

.eptins-woi-services__image {
    position: absolute;
    left: 0;
    top: 25px;
    width: 70%;
    height: 470px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(40, 24, 12, 0.18);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.eptins-woi-services__image-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.eptins-woi-services__image:hover .eptins-woi-services__image-el {
    transform: scale(1.06);
}

.eptins-woi-services__card {
    position: absolute;
    right: 10%;
    top: 78px;
    width: 430px;
    min-height: 390px;
    background: rgba(255, 252, 246, 0.96);
    padding: 54px 50px 44px;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(40, 24, 12, 0.14);
    z-index: 4;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.eptins-woi-services__card-number {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--eptins-woi-accent);
    font-family: "Playfair Display", serif;
    font-size: 22px;
    margin-bottom: 28px;
}

.eptins-woi-services__card-number em {
    width: 38px;
    height: 1px;
    background: currentColor;
    display: block;
}

.eptins-woi-services__card-title {
    margin: 0;
    color: #21160f;
    font-family: "Playfair Display", serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.08;
}

.eptins-woi-services__divider {
    width: 70px;
    height: 1px;
    background: #d6a66d;
    margin: 26px 0;
}

.eptins-woi-services__desc {
    margin: 0 0 34px;
    color: rgba(33, 22, 15, 0.72);
    font-size: 16px;
    line-height: 1.7;
}

.eptins-woi-services__button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--eptins-woi-accent);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 1px solid currentColor;
    transition: all 0.3s ease;
}

.eptins-woi-services__button:hover {
    gap: 26px;
    color: #21160f;
}

.eptins-woi-services__card.is-changing,
.eptins-woi-services__image.is-changing {
    opacity: 0.35;
    transform: translateY(8px);
}

.eptins-woi-services__benefits {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(70, 45, 30, 0.10);
    padding-top: 30px;
}

.eptins-woi-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-right: 1px solid rgba(70, 45, 30, 0.12);
}

.eptins-woi-benefit:last-child {
    border-right: 0;
}

.eptins-woi-benefit__icon {
    color: #a87949;
    font-size: 28px;
}

.eptins-woi-benefit__text {
    margin: 0;
    color: rgba(33, 22, 15, 0.70);
    font-family: "Playfair Display", serif;
    font-size: 17px;
    line-height: 1.25;
}

@media (max-width: 1024px) {
    .eptins-woi-services {
        padding: 70px 28px 50px;
    }

    .eptins-woi-services__heading {
        font-size: 44px;
    }

    .eptins-woi-services__wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .eptins-woi-services__feature {
        min-height: 520px;
    }

    .eptins-woi-services__image {
        width: 72%;
        height: 420px;
    }

    .eptins-woi-services__card {
        right: 5%;
        width: 380px;
        top: 70px;
    }
}

@media (max-width: 767px) {
    .eptins-woi-services {
        padding: 56px 18px 44px;
        min-height: auto;
    }

    .eptins-woi-services__header {
        margin-bottom: 34px;
    }

    .eptins-woi-services__eyebrow {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .eptins-woi-services__heading {
        font-size: 34px;
    }

    .eptins-woi-services__wrap {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .eptins-woi-services__list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 10px;
        width: 100%;
        scroll-snap-type: x mandatory;
    }

    .eptins-woi-services__list::-webkit-scrollbar {
        height: 4px;
    }

    .eptins-woi-services__list::-webkit-scrollbar-thumb {
        background: rgba(201, 131, 55, 0.45);
        border-radius: 999px;
    }

    .eptins-woi-service {
        flex: 0 0 auto;
        width: auto;
        
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        border: 1px solid rgba(70, 45, 30, 0.14);
        border-radius: 999px;
        scroll-snap-align: start;
        white-space: nowrap;
		margin:0 15px;
    }

    .eptins-woi-service.is-active::before,
    .eptins-woi-service__mark {
        display: none;
    }

    .eptins-woi-service__number {
        font-size: 12px;
    }

    .eptins-woi-service__name,
    .eptins-woi-service.is-active .eptins-woi-service__name {
        font-size: 16px;
    }

    .eptins-woi-services__feature {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .eptins-woi-services__image {
        position: relative;
        top: auto;
        left: auto;
        width: 100% !important;
        height: 310px;
        border-radius: 8px 8px 0 0;
    }

    .eptins-woi-services__card {
        position: relative;
        right: auto;
        top: auto;
        width: 100% !important;
        min-height: auto;
        padding: 32px 26px;
        border-radius: 0 0 8px 8px;
    }

    .eptins-woi-services__card-number {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .eptins-woi-services__card-title {
        font-size: 30px;
    }

    .eptins-woi-services__desc {
        font-size: 15px;
        line-height: 1.65;
    }

    .eptins-woi-services__benefits {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding-top: 25px;
        margin-top: 36px;
    }

    .eptins-woi-benefit {
        justify-content: flex-start;
        border-right: 0;
    }

    .eptins-woi-benefit__text {
        font-size: 15px;
    }
}

/* v1.1.0 controls refinements */
.eptins-woi-service:not(.is-active):hover,
.eptins-woi-service:not(.is-active):focus-visible {
    color: #21160f;
}

.eptins-woi-benefit__icon--image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.eptins-woi-benefit__icon-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .eptins-woi-service:not(.is-active):hover,
    .eptins-woi-service:not(.is-active):focus-visible {
        transform: translateY(-1px);
    }
}



/* ===================================
   Eptins WOI Services Mobile Tabs Final Compact Fix
=================================== */

@media (max-width: 767px) {

    /* Horizontal scroll wrapper */
    .eptins-woi-services__list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        gap: 10px !important;

        width: calc(100% + 36px) !important;
        max-width: calc(100% + 36px) !important;

        padding-left: 28px !important;
        padding-right: 28px !important;
        padding-top: 12px !important;
        padding-bottom: 14px !important;

        margin-left: -18px !important;
        margin-right: -18px !important;

        scroll-snap-type: x proximity !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .eptins-woi-services__list::-webkit-scrollbar {
        display: none !important;
    }

    /* Compact mobile tab */
    .eptins-woi-service {
        flex: 0 0 auto !important;

        width: auto !important;
        min-width: auto !important;
        max-width: none !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;

        box-sizing: border-box !important;

        min-height: 44px !important;
        padding: 10px 16px !important;

        border: 1px solid rgba(33, 22, 15, 0.18) !important;
        border-radius: 999px !important;

        background: transparent !important;
        color: rgba(33, 22, 15, 0.48) !important;

        white-space: nowrap !important;
        overflow: visible !important;

        scroll-snap-align: center !important;

        /* top-bottom margin for each tab */
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Active tab */
    .eptins-woi-service.is-active {
        background: rgba(255, 255, 255, 0.72) !important;
        color: #21160f !important;
        border-color: #c98337 !important;
        border-radius: 999px !important;
        box-shadow: none !important;
    }

    /* Remove desktop active left line on mobile */
    .eptins-woi-service.is-active::before {
        display: none !important;
        content: none !important;
    }

    /* Number */
    .eptins-woi-service__number {
        font-size: 12px !important;
        line-height: 1 !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    /* Service name */
    .eptins-woi-service__name,
    .eptins-woi-service.is-active .eptins-woi-service__name {
        font-size: 17px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    /* Hide plus/star mark on mobile */
    .eptins-woi-service__mark {
        display: none !important;
    }

    /* Non-active hover/focus */
    .eptins-woi-service:not(.is-active):hover,
    .eptins-woi-service:not(.is-active):focus-visible {
        background: rgba(255, 255, 255, 0.45) !important;
        color: #21160f !important;
        border-color: rgba(201, 131, 55, 0.45) !important;
        transform: translateY(-1px);
    }
}
