
.home {
    position: relative;
    display: block;
    min-height: 0;
    padding: clamp(18px, 2.2vw, 34px) clamp(14px, 2.6vw, 42px) 82px;
    overflow: hidden;

    background:
        radial-gradient(circle at 10% 15%, rgba(60, 105, 199, 0.16), transparent 28%),
        radial-gradient(circle at 90% 5%, rgba(32, 167, 160, 0.13), transparent 24%),
        linear-gradient(180deg, #edf4ff 0%, #f8fbff 74%, #ffffff 100%);
}

.slideshow-container {
    position: relative;
    width: min(100%, 1600px);
    aspect-ratio: 16 / 7;
    min-height: 480px;
    margin: 0 auto;
    overflow: hidden;

    background: var(--brand-900);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 70px rgba(23, 52, 111, 0.22);
}

.slide {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
}

.slide::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(10, 28, 66, 0.58) 0%,
        rgba(10, 28, 66, 0.22) 43%,
        rgba(10, 28, 66, 0.02) 72%
    );
}

.slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fade {
    animation: heroFade 650ms ease;
}

@keyframes heroFade {
    from {
        opacity: 0.35;
    }
    to {
        opacity: 1;
    }
}

.txtcontent {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(34px, 6vw, 104px);
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;

    width: min(510px, 43%);
    max-height: calc(100% - 70px);
    padding: clamp(24px, 3.2vw, 48px);
    overflow: auto;

    color: var(--brand-900);
    background: rgba(255, 255, 255, 0.91);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(14, 32, 67, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: left;
}

.hero-logo,
.txtcontent > img {
    width: clamp(82px, 8vw, 124px);
    height: clamp(82px, 8vw, 124px);
    margin-bottom: 2px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(23, 52, 111, 0.14);
}

.txtcontent h1 {
    font-size: clamp(30px, 3.1vw, 53px);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.txtcontent h2 {
    color: var(--brand-800);
    font-size: clamp(28px, 3vw, 49px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.txtcontent h3 {
    color: var(--accent-dark);
    font-size: clamp(15px, 1.35vw, 21px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.txtcontent p {
    max-width: 44ch;
    color: var(--text-700);
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 540;
    line-height: 1.6;
}

.set1 {
    width: 100%;
    text-align: left;
}

.set1 > * + * {
    margin-top: 7px;
}

/* Previous and next controls */
.prev,
.next {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);

    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;

    color: #ffffff;
    background: rgba(16, 37, 79, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    cursor: pointer;
    user-select: none;

    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;

    transition: background-color 180ms ease, transform 180ms ease,
        box-shadow 180ms ease;
}

.prev {
    left: 18px;
}

.next {
    right: 18px;
}

.prev:hover,
.next:hover {
    background: var(--brand-700);
    box-shadow: 0 14px 32px rgba(23, 52, 111, 0.36);
    transform: translateY(-50%) scale(1.06);
}

/* Slider dots */
.dot-container {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 20px;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.dot {
    width: 11px;
    height: 11px;
    padding: 0;

    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    box-shadow: 0 4px 11px rgba(0, 0, 0, 0.12);
    cursor: pointer;

    transition: width 180ms ease, background-color 180ms ease,
        transform 180ms ease;
}

.dot:hover {
    background: #ffffff;
    transform: scale(1.12);
}

.dot.active {
    width: 32px;
    background: #ffffff;
}

/* =========================
   CONTACT / STATS STRIP
========================= */

.info {
    position: relative;
    display: block;
    min-height: 0;
    padding: 0 20px 92px;
    background: #ffffff;
}

.info_container {
    position: relative;
    z-index: 8;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 1180px);
    margin: -54px auto 0;
    overflow: hidden;

    color: var(--text-900);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    min-height: 158px;
    padding: 28px clamp(20px, 3vw, 38px);
    text-align: center;
}

.stat:not(:last-child) {
    border-right: 1px solid var(--border);
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-700), var(--accent));
    opacity: 0.9;
}

.stat h4 {
    color: var(--brand-800);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.stat p,
.stat a {
    color: var(--text-700);
    font-size: 15px;
    line-height: 1.65;
}

.stat a {
    color: var(--brand-700);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.stat a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================
   WELCOME CONTENT
========================= */

.info_container_set2 {
    width: min(100%, 1050px);
    margin: 0 auto;
    padding: clamp(64px, 8vw, 104px) 0 46px;
    text-align: center;
}

.info_container_set2 h2 {
    color: var(--brand-900);
    font-size: clamp(29px, 4vw, 46px);
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.info_container_set2 h2::after,
.doct > h2::after,
.stet > h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, var(--brand-700), var(--accent));
    border-radius: 999px;
}

.info_container_set2 h3 {
    margin-top: 20px;
    color: var(--brand-700);
    font-size: clamp(19px, 2.2vw, 27px);
    font-weight: 780;
    line-height: 1.35;
}

.info_container_set2 p {
    max-width: 900px;
    margin: 22px auto 0;
    color: var(--text-700);
    font-size: clamp(16px, 1.35vw, 18px);
    line-height: 1.9;
    text-align: left;
}

.info_container_set2 h5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 9px 16px;

    color: var(--accent-dark);
    background: rgba(32, 167, 160, 0.1);
    border: 1px solid rgba(32, 167, 160, 0.2);
    border-radius: 999px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.info_container_set2 h3:last-child {
    margin-top: 50px;
    color: var(--brand-900);
    font-size: clamp(27px, 3.4vw, 40px);
}

/* =========================
   SERVICES
========================= */

.serv {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 17px;
    width: min(100%, 1280px);
    margin: 0 auto;
}

.serv_panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 0;
    min-height: 228px;
    padding: 28px 18px;
    overflow: hidden;

    color: #ffffff;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.18), transparent 29%),
        linear-gradient(145deg, var(--brand-800), var(--brand-600));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(35, 69, 143, 0.17);

    text-align: center;
    text-decoration: none;

    transition: transform 220ms ease, box-shadow 220ms ease,
        filter 220ms ease;
}

.serv_panel::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -55px;
    width: 132px;
    height: 132px;
    border: 20px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.serv_panel svg {
    position: relative;
    z-index: 1;
    width: 62px;
    height: 62px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
}

.serv_panel p {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.025em;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.learn {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.learn::after {
    content: "  →";
}

.serv_panel:hover {
    filter: saturate(1.08);
    box-shadow: 0 24px 48px rgba(35, 69, 143, 0.27);
    transform: translateY(-8px);
}

.serv_panel:hover .learn {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================
   DOCTORS
========================= */

.doct {
    display: block;
    min-height: 0;
    padding: clamp(70px, 8vw, 105px) 20px 0;
    background: linear-gradient(180deg, #f2f7fd 0%, #eaf1f9 100%);
}

.doct > h2 {
    color: var(--brand-900);
    font-size: clamp(31px, 4vw, 47px);
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: -0.035em;
    text-align: center;
}

.doctor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: min(100%, 12400px);
    margin: 46px auto clamp(72px, 8vw, 104px);
}

.doc {
    display: grid;
    grid-template-columns: minmax(190px, 38%) minmax(0, 1fr);
    min-width: 0;
    min-height: 390px;
    overflow: hidden;

    color: var(--text-900);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);

    transition: transform 220ms ease, box-shadow 220ms ease;
}

.doc:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.doc > div:first-child {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.42), transparent 35%),
        linear-gradient(160deg, #dfeaff, #c7d8f7);
}

.doc > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 3vw, 38px);
    text-align: left;
}

.doc div img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(35, 69, 143, 0.14);
}

.doc div h2 {
    width: 100%;
    margin: 0;
    color: var(--brand-900);
    background: transparent;
    font-size: clamp(19px, 1.7vw, 24px);
    font-weight: 840;
    line-height: 1.32;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-transform: none;
}

.doc div h3 {
    margin-top: 13px;
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.doc div h3 + h3 {
    margin-top: 4px;
}

.doc div p {
    width: 100%;
    margin: 20px 0 0;
    color: var(--text-700);
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
}

/* =========================
   DIFFERENCE / FEATURE AREA
========================= */

.grey_tab {
    width: calc(100% + 40px);
    min-height: 0;
    margin-left: -20px;
    padding: clamp(74px, 8vw, 108px) 20px;

    background:
        linear-gradient(rgba(13, 35, 76, 0.88), rgba(13, 35, 76, 0.92)),
        url("/src/img/grey_background.jpg") center / cover no-repeat;
}

.stet {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0;
    color: #ffffff;
    text-align: center;
}

.stet > h2 {
    color: #ffffff;
    font-size: clamp(31px, 4vw, 47px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.stet > p {
    max-width: 760px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.75;
}

.graydata {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.graydata:first-of-type {
    margin-top: 42px;
}

.graydata div {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 105px;
    padding: 23px 20px 23px 62px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 17px;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);

    font-size: 15px;
    font-weight: 720;
    line-height: 1.5;
    text-align: left;
}

.graydata div::before {
    content: "✓";
    position: absolute;
    left: 20px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;

    color: #ffffff;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.17);

    font-size: 15px;
    font-weight: 900;
}

/* =========================
   RESPONSIVE LAYOUT
========================= */

@media (max-width: 1180px) {
    .slideshow-container {
        aspect-ratio: 16 / 8;
        min-height: 450px;
    }

    .txtcontent {
        left: clamp(28px, 4vw, 54px);
        width: min(520px, 50%);
    }

    .serv {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .doctor {
        grid-template-columns: 1fr;
        max-width: 920px;
    }

    .doc {
        grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .slideshow-container {
        aspect-ratio: 16 / 9;
        min-height: 430px;
    }

    .txtcontent {
        width: min(520px, 57%);
        padding: 28px;
    }

    .info_container {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .stat {
        min-height: 132px;
    }

    .stat:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .graydata {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .home {
        padding: 14px 12px 46px;
    }

    .slideshow-container {
        aspect-ratio: auto;
        min-height: 0;
        border-radius: 20px;
    }

    .slide {
        height: auto;
        min-height: 0;
        background: #ffffff;
    }

    .slide::after {
        display: none;
    }

    .slide > img {
        height: clamp(245px, 58vw, 420px);
        object-position: center;
    }

    .txtcontent {
        position: static;
        width: 100%;
        max-height: none;
        padding: 27px 23px 23px;
        overflow: visible;

        background: #ffffff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: none;
    }

    .txtcontent h1 {
        font-size: clamp(29px, 8vw, 42px);
    }

    .txtcontent h2 {
        font-size: clamp(27px, 7vw, 39px);
    }

    .txtcontent h3 {
        font-size: 15px;
    }

    .hero-logo,
    .txtcontent > img {
        width: 82px;
        height: 82px;
    }

    .prev,
    .next {
        top: clamp(122px, 29vw, 210px);
        width: 43px;
        height: 43px;
        font-size: 20px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .dot-container {
        position: static;
        padding: 3px 0 22px;
        background: #ffffff;
    }

    .dot {
        background: #c8d4e8;
        border-color: #c8d4e8;
        box-shadow: none;
    }

    .dot:hover,
    .dot.active {
        background: var(--brand-700);
        border-color: var(--brand-700);
    }

    .info {
        padding: 0 14px 72px;
    }

    .info_container {
        margin-top: 24px;
    }

    .info_container_set2 {
        padding-top: 64px;
    }

    .info_container_set2 p {
        line-height: 1.78;
    }

    .serv {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doct {
        padding-top: 70px;
    }

    .doctor {
        margin-top: 38px;
    }

    .doc {
        grid-template-columns: 1fr;
    }

    .doc > div:first-child {
        padding: 20px;
    }

    .doc div img {
        height: min(420px, 75vw);
        min-height: 280px;
    }
}

@media (max-width: 540px) {
    .home {
        padding-right: 8px;
        padding-left: 8px;
    }

    .slideshow-container {
        border-radius: 16px;
    }

    .slide > img {
        height: 235px;
    }

    .prev,
    .next {
        top: 117px;
        width: 39px;
        height: 39px;
        font-size: 18px;
    }

    .txtcontent {
        padding: 23px 18px 20px;
    }

    .info {
        padding-right: 10px;
        padding-left: 10px;
    }

    .stat {
        padding: 25px 18px;
    }

    .info_container_set2 {
        padding-right: 8px;
        padding-left: 8px;
    }

    .info_container_set2 h2 {
        font-size: 30px;
    }

    .info_container_set2 h3 {
        font-size: 20px;
    }

    .info_container_set2 p {
        font-size: 16px;
    }

    .serv {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .serv_panel {
        min-height: 205px;
    }

    .doctor {
        gap: 20px;
    }

    .doc > div:last-child {
        padding: 25px 21px 29px;
    }

    .graydata {
        grid-template-columns: 1fr;
    }

    .graydata div {
        min-height: 88px;
    }
}