/* =========================================================
   SARAVANA HOSPITAL - ABOUT SECTION
   File: about.css
   Works with the existing .about and .about_set HTML structure.
========================================================= */

/* =========================
   ABOUT SECTION BACKGROUND
========================= */

.about {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(68px, 8vw, 112px) clamp(18px, 4vw, 58px);
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(32, 167, 160, 0.14),
            transparent 27%
        ),
        radial-gradient(
            circle at 94% 10%,
            rgba(60, 105, 199, 0.15),
            transparent 30%
        ),
        linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
}

.about::before,
.about::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.about::before {
    top: 110px;
    left: -170px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(47, 87, 173, 0.11);
    box-shadow:
        0 0 0 52px rgba(47, 87, 173, 0.035),
        0 0 0 104px rgba(47, 87, 173, 0.02);
}

.about::after {
    right: -120px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    background: rgba(32, 167, 160, 0.075);
    filter: blur(1px);
}

/* =========================
   SECTION TITLE
========================= */

.about > h2 {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 0 auto clamp(38px, 5vw, 64px);
    padding-bottom: 18px;
    color: var(--brand-900, #17346f);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-align: center;
    text-wrap: balance;
}

.about > h2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -42px;
    width: 24px;
    height: 3px;
    background: var(--accent, #20a7a0);
    border-radius: 999px;
    transform: translateY(-50%);
}

.about > h2::after {
    content: "";
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent, #20a7a0),
        var(--brand-600, #3c69c7)
    );
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(47, 87, 173, 0.2);
}

/* =========================
   MAIN ABOUT CARD
========================= */

.about_set {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(38px, 5vw, 78px);
    width: min(100%, var(--page-width, 1320px));
    margin: 0 auto;
    padding: clamp(24px, 3.5vw, 52px);
    background: rgba(255, 255, 255, 0.91);
    border: 1px solid rgba(216, 227, 243, 0.95);
    border-radius: clamp(24px, 3vw, 36px);
    box-shadow:
        0 26px 70px rgba(23, 52, 111, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* =========================
   HOSPITAL IMAGE
========================= */

.about_set > div:first-child {
    position: relative;
    min-width: 0;
    border-radius: clamp(20px, 2.2vw, 28px);
}

.about_set > div:first-child::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -14px;
    right: 18px;
    bottom: 18px;
    left: -14px;
    background: linear-gradient(
        145deg,
        var(--brand-700, #2f57ad),
        var(--accent, #20a7a0)
    );
    border-radius: inherit;
    opacity: 0.9;
    transform: rotate(-2deg);
}

.about_set > div:first-child::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        transparent 56%,
        rgba(8, 27, 65, 0.19) 100%
    );
    pointer-events: none;
}

.about_set > div:first-child img {
    width: 100%;
    height: clamp(380px, 38vw, 570px);
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    box-shadow: 0 20px 46px rgba(16, 45, 97, 0.22);
    transition: transform 450ms ease, filter 450ms ease;
}

/* =========================
   ABOUT CONTENT
========================= */

.about_set > div:last-child {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.about_set p {
    position: relative;
    margin: 0;
    padding-left: 24px;
    color: var(--text-700, #42516a);
    font-size: clamp(15.5px, 1.12vw, 17.5px);
    font-weight: 430;
    line-height: 1.86;
    text-align: justify;
    text-wrap: pretty;
}

.about_set p::before {
    content: "";
    position: absolute;
    top: 0.78em;
    left: 2px;
    width: 8px;
    height: 8px;
    background: linear-gradient(
        135deg,
        var(--accent, #20a7a0),
        var(--brand-600, #3c69c7)
    );
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(32, 167, 160, 0.09);
}

.about_set p:first-child {
    padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.5vw, 32px)
        clamp(22px, 2.4vw, 30px) clamp(30px, 3vw, 40px);
    color: var(--brand-900, #17346f);
    background:
        linear-gradient(
            135deg,
            rgba(234, 241, 255, 0.92),
            rgba(238, 251, 249, 0.9)
        );
    border: 1px solid rgba(60, 105, 199, 0.16);
    border-radius: 20px;
    box-shadow: 0 13px 30px rgba(24, 52, 111, 0.07);
    font-size: clamp(16px, 1.22vw, 18px);
    font-weight: 570;
    line-height: 1.8;
}

.about_set p:first-child::before {
    top: 22px;
    bottom: 22px;
    left: 0;
    width: 5px;
    height: auto;
    background: linear-gradient(
        180deg,
        var(--accent, #20a7a0),
        var(--brand-600, #3c69c7)
    );
    border-radius: 0 999px 999px 0;
    box-shadow: none;
}

.about_set p:not(:first-child) + p:not(:first-child) {
    padding-top: 18px;
    border-top: 1px solid rgba(223, 231, 242, 0.9);
}

.about_set p:not(:first-child) + p:not(:first-child)::before {
    top: calc(18px + 0.78em);
}

/* Subtle desktop interaction */
@media (hover: hover) and (pointer: fine) {
    .about_set:hover > div:first-child img {
        filter: saturate(1.04) contrast(1.02);
        transform: scale(1.018);
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1020px) {
    .about {
        padding-top: clamp(56px, 8vw, 84px);
        padding-bottom: clamp(60px, 8vw, 88px);
    }

    .about_set {
        grid-template-columns: 1fr;
        gap: 46px;
        width: min(100%, 900px);
    }

    .about_set > div:first-child {
        width: 100%;
    }

    .about_set > div:first-child img {
        height: clamp(320px, 58vw, 520px);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 680px) {
    .about {
        padding: 50px 14px 64px;
    }

    .about > h2 {
        margin-bottom: 36px;
        padding-bottom: 14px;
        font-size: clamp(34px, 11vw, 46px);
    }

    .about > h2::before {
        display: none;
    }

    .about > h2::after {
        right: 24%;
        left: 24%;
        height: 3px;
    }

    .about_set {
        gap: 34px;
        padding: 16px;
        border-radius: 24px;
    }

    .about_set > div:first-child {
        border-radius: 19px;
    }

    .about_set > div:first-child::before {
        top: -8px;
        right: 10px;
        bottom: 10px;
        left: -8px;
    }

    .about_set > div:first-child img {
        height: clamp(250px, 70vw, 390px);
    }

    .about_set > div:last-child {
        gap: 16px;
    }

    .about_set p,
    .about_set p:first-child {
        font-size: 15.5px;
        line-height: 1.76;
        text-align: left;
    }

    .about_set p {
        padding-left: 22px;
    }

    .about_set p:first-child {
        padding: 21px 19px 21px 27px;
        border-radius: 16px;
    }
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 420px) {
    .about {
        padding-right: 10px;
        padding-left: 10px;
    }

    .about_set {
        padding: 12px;
        border-radius: 20px;
    }

    .about_set > div:first-child img {
        height: 235px;
    }

    .about_set p,
    .about_set p:first-child {
        font-size: 15px;
    }
}

/* Accessibility: reduce animation when requested */
@media (prefers-reduced-motion: reduce) {
    .about_set > div:first-child img {
        transition: none;
    }
}