/* ==========================================================================
   Ayurvedic Treatments Section — ts- prefix namespace
   ========================================================================== */

/* ── Section shell ─────────────────────────────────────────────────────── */
#treatments-section {
    background-color: #F8F4EE;
    position: relative;
    padding: 56px 0 52px;
    overflow: hidden;
}

/* ── Botanical corner decorations ───────────────────────────────────────── */
.ts-corner {
    position: absolute;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 0;
    background-image: url('../images/leaf-for-corner.webp');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.38;
}

.ts-corner--tl {
    top: -10px;
    left: -10px;
    background-position: top left;
    transform: scaleY(-1);
}

.ts-corner--tr {
    top: -10px;
    right: -10px;
    background-position: top right;
    transform: rotate(180deg);
}

.ts-corner--bl {
    bottom: -10px;
    left: -10px;
    background-position: bottom left;
}

.ts-corner--br {
    bottom: -10px;
    right: -10px;
    background-position: bottom right;
    transform: scaleX(-1);
}

/* ── Inner container ────────────────────────────────────────────────────── */
.ts-inner {
    position: relative;
    z-index: 1;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.ts-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ts-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #1a6640;
    margin: 0 0 12px;
}

.ts-leaf {
    width: 14px;
    height: 14px;
    fill: #1a6640;
    flex-shrink: 0;
}

.ts-leaf--flip {
    transform: scaleX(-1);
}

.ts-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 46px;
    font-weight: 700;
    color: #1a2e22;
    line-height: 1.12;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

/* Gold lotus separator */
.ts-sep {
    display: flex;
    align-items: center;
    width: 200px;
    margin-bottom: 14px;
}

.ts-sep__line {
    flex: 1;
    height: 1px;
}

.ts-sep__line:first-child {
    background: linear-gradient(90deg, rgba(196, 158, 79, 0) 0%, rgba(196, 158, 79, 0.5) 100%);
}

.ts-sep__line:last-child {
    background: linear-gradient(90deg, rgba(196, 158, 79, 0.5) 0%, rgba(196, 158, 79, 0) 100%);
}

.ts-sep__lotus {
    width: 24px;
    height: 16px;
    color: #c49e4f;
    flex-shrink: 0;
    margin: 0 10px;
    opacity: 0.85;
}

.ts-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #5a6e62;
    max-width: 620px;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   3-COLUMN GRID
   ══════════════════════════════════════════════════════════════════════════ */
.ts-grid {
    display: grid;
    grid-template-columns: 1fr 280px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 36px;
}

.ts-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Treatment Card ─────────────────────────────────────────────────────── */
.ts-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #EAE3D6;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 16px 14px 16px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
}

/* Green left accent bar */
.ts-card__accent {
    width: 4px;
    min-width: 4px;
    align-self: stretch;
    background: linear-gradient(180deg, #1a6640, rgba(26, 102, 64, 0.2));
    border-radius: 0 4px 4px 0;
    flex-shrink: 0;
}

/* Circular icon */
.ts-card__icon {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 50%;
    background: rgba(26, 102, 64, 0.07);
    border: 1.5px solid rgba(26, 102, 64, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ts-card:hover .ts-card__icon {
    transform: scale(1.05);
}

.ts-card__icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: brightness(0.88) saturate(1.15);
}

/* Card text */
.ts-card__body {
    flex: 1;
    min-width: 0;
}

.ts-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a4028;
    margin: 0 0 6px;
    line-height: 1.25;
}

.ts-card__bar {
    display: block;
    width: 36px;
    height: 2.5px;
    background: linear-gradient(90deg, #c49e4f, rgba(196, 158, 79, 0.2));
    border-radius: 999px;
    margin-bottom: 7px;
}

.ts-card__desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: #66796d;
    margin: 0;
}

/* Arrow badge */
.ts-card__arrow {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(196, 158, 79, 0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c49e4f;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    margin-right: 4px;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.ts-card:hover .ts-card__arrow {
    background: #c49e4f;
    color: #fff;
}

/* ── IPD Card (wide center bottom card) ─────────────────────────────────── */
.ts-card--ipd {
    margin-top: 16px;
    padding: 16px 14px 16px 16px;
    /* no accent bar => symmetric padding */
}

.ts-card--ipd .ts-card__accent {
    display: none;
}

.ts-card--ipd .ts-card__icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: rgba(196, 158, 79, 0.08);
    border-color: rgba(196, 158, 79, 0.22);
}

/* ══════════════════════════════════════════════════════════════════════════
   CENTER — Circular Illustration
   ══════════════════════════════════════════════════════════════════════════ */
.ts-illus-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 260px;
    margin: 0 auto;
}

/* Decorative gold rings */
.ts-illus-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(196, 158, 79, 0.30);
}

.ts-illus-ring--outer {
    inset: 0;
}

.ts-illus-ring--inner {
    inset: 10px;
    border-color: rgba(196, 158, 79, 0.18);
}

/* Gold lotus on top of ring */
.ts-illus-lotus {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 22px;
    color: #c49e4f;
    z-index: 2;
}

/* Main illustration image */
.ts-illus-img {
    width: 86%;
    height: 86%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

/* ── Consultation Banner Strip ──────────────────────────────────────────── */
.ts-consult-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 1px solid #E8E0CF;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    padding: 20px 28px;
}

.ts-consult-banner__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.ts-consult-banner__icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.75;
}

.ts-consult-banner__text {
    flex: 1;
    min-width: 0;
}

.ts-consult-banner__heading {
    font-size: 15.5px;
    font-weight: 700;
    color: #1a2e22;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ts-consult-banner__sub {
    font-size: 13px;
    color: #66796d;
    margin: 0;
    line-height: 1.45;
}

.ts-consult-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a4028;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 0 28px;
    height: 48px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(26, 64, 40, 0.25);
}

.ts-consult-banner__btn:hover {
    background: #0f5c30;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(26, 64, 40, 0.35);
}

.ts-consult-banner__btn-icon {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.ts-consult-banner__arrow {
    font-size: 15px;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .ts-consult-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ts-consult-banner__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ts-title {
        font-size: 36px;
    }

    .ts-grid {
        grid-template-columns: 1fr 240px 1fr;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    #treatments-section {
        padding: 44px 0;
    }

    .ts-title {
        font-size: 28px;
        letter-spacing: 0;
    }

    .ts-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px;
    }

    .ts-col--left {
        grid-column: 1;
        grid-row: 1;
    }

    .ts-col--right {
        grid-column: 2;
        grid-row: 1;
    }

    .ts-col--center {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px;
    }

    .ts-illus-wrap {
        max-width: 180px;
        flex-shrink: 0;
    }

    .ts-card--ipd {
        flex: 1;
        min-width: 200px;
    }

    .ts-corner--bl,
    .ts-corner--br {
        display: none;
    }
}

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

    .ts-col--right {
        grid-column: 1;
        grid-row: 2;
    }

    .ts-col--center {
        grid-row: 3;
        flex-direction: column;
    }

    .ts-corner {
        display: none;
    }
}

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

    .ts-card,
    .ts-cta-btn {
        transition: none !important;
    }
}