/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap'); */

/* Root variables for colors and font sizes */
:root {
    --marian-blue: #102B96;
    --true-blue: #476fb5;
    --jordy-blue: #a5b0db;
    --erie-black: #1d1d1d;
    --white: #ffffff;
    --bg-white: #E2E5F5;
    --gray: #858585;
    --h1-size: 5.25rem;
    --h2-size: 4.5rem;
    --h3-size: 3.5rem;
    --sub-heading-size: 4rem;
    --body-copy1-size: 3rem;
    --body-copy2-size: 1.5rem;
    --body-copy3-size: 1.75rem;
    --body-copy4-size: 1.55rem;
    --animation-delay: 0.5s;
    --t1: 0s;
    --t2: 0.1s;
    --t3: 3s;
    --dur: 2s;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --gap-start: 1rem;
    --gap-end: 0.8rem;
}

.playfair-display {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.inter {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg-white) !important;
    line-height: 1.2;
    font-family: "Roboto Serif", serif;
}

@font-face {
    font-family: "MyCustomFont";
    src: url("../fonts/fonnts.com-Mrs-Eaves-Petite-Caps-OT-.otf") format("otf");
    font-weight: normal;
    font-style: normal;
}




/* Hero Section 1*/

.btn-primary-header {
    padding: 0.20rem 1rem;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--white);
    background-color: transparent;
    border: 2px solid var(--white);
    border-radius: 0px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.btn-primary-header:hover {
    background-color: var(--white);
    color: var(--marian-blue);
}

.btn-primary-header .app-arrow {
    font-size: 1.2rem;
    font-weight: 200;
}

.btn-primary-header:hover svg {
    fill: var(--marian-blue);
}

.menu-bar {
    display: flex;
    flex-direction: column;
    width: 25.14px;
    height: 16.83px;
    top: 68.66px;
    left: 25px;
    justify-content: space-between;
}

.bar {
    width: 25.14px;
    height: 2px;
    background-color: var(--white);
    border-radius: 1px;
}

.hidden {
    display: none;
}

.main-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-menu {
    position: absolute;
    top: 63px;
    left: 0;
    width: 100%;
    background-color: #3C54B1;
    color: #ffffff;
    padding: 2rem 4rem;
    border-radius: 0 0 50px 50px;
    z-index: 100;
    transition: all 0.3s ease-in-out;
    height: 300px;

}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.nav-menu ul {
    list-style: none;
    padding-right: 20px;
}

.nav-menu li {
    margin: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.nav-menu li a:hover {
    color: #ffffff;
    transform: scale(1.05);

}

.hero-section {
    padding-top: 61px;
    background-color: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    position: relative;
    overflow: hidden;
}

@keyframes fillBlueUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0%);
    }
}

.hero-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--marian-blue);
    z-index: 0;
    transform: translateY(100%);
    animation: fillBlueUp 1.1s ease-out forwards;
    animation-delay: 1s;
}

.hero-header {
    transform: translateY(-20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.hero-header.visible {
    opacity: 1;
    transform: translateY(0);
}


.hero-header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

.hero-header.visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-section:after {
    bottom: 100%;
    top: auto;
}

.header-btn {
    margin-left: auto;
}

.hero-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.1rem 4rem;
    z-index: 1000;

    background-color: transparent;
    color: var(--white);
    gap: 25px;
    background-color: rgba(60, 84, 177, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

}

.menu-icon {
    font-size: 2rem;
    cursor: pointer;
    font-weight: 300;
}

.doctor-subtitle {
    margin: 0.5rem 15px;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.1;
    max-width: 400px;
    font-family: "MyCustomFont";
}

.hero-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    gap: 2rem;
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
    min-height: 107vh;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}


.hero-text {
    flex: 1;
    color: var(--white);
    text-align: left;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    animation: slideInImage 1s ease-out forwards;
    animation-delay: 1.8s;
}

.hero-text h3 {
    font-size: clamp(2rem, 4vw, var(--h3-size));
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.body-copy3 {
    font-size: var(--body-copy3-size);
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 2.375 rem;
    font-weight: 400;
    text-align: left;
}

.btn-primary {
    padding: 0.75rem 1.125rem;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--white);
    background-color: transparent;
    border: 2px solid var(--white);
    border-radius: 0px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--marian-blue);
}

.btn-primary .app-arrow {
    font-size: 1.2rem;
    font-weight: 200;
}

.btn-primary:hover svg {
    fill: var(--marian-blue);
}

.image-color-overlay {
    position: absolute;
    top: 0;
    left: 57px;
    width: 100%;
    height: 100%;
    background-color: #3C54B166;

    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 50px;
    z-index: 99;

}

.hero-image {
    flex: 0 0 50%;
    position: absolute;
    top: 0;
    right: 0;
    height: 80vh;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transform: translateY(-100%);
    opacity: 0;
    animation: slideInImage 1s ease-out forwards;
    animation-delay: 1.8s;
}

@keyframes slideInImage {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

.hero-image img {
    width: 93%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
    display: block;
}

.btn-primary:focus,
#mybuttonid:focus {
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }

    .image-color-overlay {
        left: 0;
        height: 457px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        padding: 0;
        min-height: 50vh;
    }

    .hero-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 4px 0px 0px 25px;
    }

    .menu-bar {
        order: 1;
        align-self: center;
    }

    .main-logo {
        order: 2;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .header-btn {
        display: none;
    }

    .nav-menu {
        padding: 1rem 1.4rem;
        border-radius: 0 0 30px 30px;
        height: auto;
        top: 60px;
    }

    .nav-grid {
        grid-template-columns: 1fr;
        gap: 0rem;
        height: 500px;
    }

    .nav-menu ul {
        padding: 0;
    }

    .hero-image {
        position: relative;
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .hero-image img {
        width: 100%;
        height: 50vh;
        object-fit: cover;
        border-bottom-left-radius: 35px;
        border-bottom-right-radius: 35px;
        display: block;
        margin-bottom: 1rem;
    }

    .hero-text {
        order: 3;
        text-align: center;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

    .body-copy3 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    .btn-primary {
        padding: 5px 10px;
        font-size: 1rem;
        width: auto;
        margin-bottom: 2rem;
        align-self: center;
        margin-top: 1rem;
    }

    .main-logo {
        height: auto;
        max-width: auto;
        /* background-position: center; */
    }

    .main-logo {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.25rem;
    }

    .main-logo img {
        width: 80%;
        max-width: 400px;
        height: auto;
        display: flex;
    }

    .doctor-subtitle {
        font-size: 0.8rem;
        font-weight: 300;
        text-transform: uppercase;
        margin-top: 0.25rem;
        line-height: 1.2;
    }

    .menu-icon {
        font-size: 1.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        padding: 0;
        flex-direction: column;
        align-items: center;
    }

    .hero-header {
        margin: 1rem 0;
        justify-content: center;
    }

    .hero-image {
        position: relative;
        order: 2;
        width: 100%;
        height: 60vh;
        justify-content: center;
    }

    .hero-image img {
        border-radius: 0 0 50px 50px;
    }

    .hero-text {
        order: 3;
        text-align: center;
        padding: 0 2rem;
    }

    .hero-text h3 {
        font-size: 2rem;
    }

    .body-copy3 {
        font-size: 1.1rem;
        text-align: justify;
    }

    .btn-primary {
        font-size: 1.1rem;
        padding: 8px 16px;
    }
}

/* Small laptops - between 1025px and 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
    .hero-content {
        padding: 1rem 4rem;
    }

    .hero-text h3 {
        font-size: 1rem;
    }

    .body-copy3 {
        font-size: 1.1rem;
        text-align: justify;
        letter-spacing: -1px;
        word-spacing: 1px;
    }

    .hero-image {
        height: 70vh;
    }

    .btn-primary {
        font-size: 1.1rem;
    }
}

/* Large desktops - 1281px and up */
@media (min-width: 1281px) {
    .hero-text h3 {
        padding-top: 70px;
        font-size: 2.6rem;
    }

    .body-copy3 {
        font-size: 1.4rem;
        text-align: justify;
        letter-spacing: -1px;
        word-spacing: 1px;
        font-weight: 300;
    }

    .hero-image {
        height: 98vh;
    }
}

/* Section 1 css ends */

.intro {
    margin-top: 8.8rem;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: left;
    min-height: 100vh;
    overflow: hidden;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--marian-blue);
    padding: 0;
    /* background-color: var(--bg-white); */
}

.part,
.photo {
    pointer-events: none;
    white-space: nowrap;
}

.about {
    color: var(--jordy-blue);
    font-size: 3rem;
    font-weight: 500;
    margin-top: -317px;
    /* padding-right: 20px; */
}

.part.name {
    padding-top: 290px;
    position: static;
    font-size: 3rem;
    font-weight: 500;
    margin-top: -290px;
    flex-shrink: 0 !important;
    margin-left: -16px;
}

.h2-and-para {
    display: flex;
    flex-direction: column;
    transition: padding-top 0.6s ease;
}

.part.name.expanded {
    margin-top: -2.5rem;
}

.photo {
    position: relative;
    width: 0;
    height: 0;
    overflow: visible;
    border-radius: 30px;
    transform: translateY(10px);
}

.photo img {
    width: 820px;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

@keyframes timeline {
    0% {
        gap: var(--gap-start);
    }

    45% {
        gap: var(--gap-start);
    }

    65% {
        gap: var(--gap-end);
    }

    100% {
        gap: var(--gap-end);
    }
}

@keyframes slidePhoto {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
        transform: translateY(10px);
    }

    60% {
        width: 0;
        height: 0;
        opacity: 0;
        transform: translateY(10px);
    }

    80% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translateY(10px);
        border-radius: 30px;
    }

    100% {
        width: 520px;
        height: 790px;
        opacity: 1;
    }
}

.intro {
    display: flex;
    gap: var(--gap-start);
    animation: timeline calc(var(--t3)+var(--dur)) var(--ease) forwards;
}

.photo {
    /* animation: slidePhoto calc(var(--t3)+var(--dur)) var(--ease) forwards; */
    animation: slidePhoto 3s var(--ease) forwards;
    border-radius: 30px !important;
}

.img-caption,
.bio,
#mybuttonid {
    animation: slideUp 2.5s var(--t3) forwards;
}

.intro {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--gap-start);
    animation: timeline calc(var(--t3) + var(--dur)) var(--ease) forwards;
    animation-play-state: paused;
}

.intro.animate {
    animation-play-state: running;
}

.photo {
    /* animation: slidePhoto calc(var(--t3) + var(--dur)) var(--ease) forwards; */
    animation: slidePhoto 3.5s var(--ease) forwards;
    animation-play-state: paused;

    overflow: hidden;
}

.intro.animate .photo {
    animation-play-state: running;
}

:root {
    --dur: 1s;
}

.photo-wrapper {
    width: 663px;
    height: 800px;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-wrapper img {
    flex: 0 0 552px;
    width: 78%;
    height: 600px;
    object-fit: cover;
    border-radius: 0 0 30px 30px;
    display: block;
}

.img-caption {
    flex: 1 1 auto;
    margin-top: 5px;
    font-size: 1.1rem;
    color: var(--marian-blue) !important;
    opacity: 1;
    width: 100%;
    transform: none;
    animation: slideUp var(--dur) var(--t3) forwards;
    text-align: left;
    padding: 22px 0 0 0;
    font-weight: 300;
}

.bio {
    max-width: 32rem;
    font-size: var(--body-copy2-size);
    color: var(--gray);
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp var(--dur) var(--t3) forwards;
    line-height: 1.5;
    text-align: left;
    /* margin: 0 15px; */
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-wrapper {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
}

.mybox1 {
    max-width: 26rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: block;
    transition: max-height 0.6s ease, opacity 0.6s ease;
}

.mybox1.visible {
    display: block;
    opacity: 1;
    max-height: 2000px;
    min-width: 35rem;
}

#mybuttonid {
    background-color: var(--marian-blue);
    color: white;
    font-weight: 300;
    padding: 0.625rem 1.25rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: flex-end;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    margin-left: auto;
    margin-right: 1rem;
    transform: translateY(-8px);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp var(--dur) var(--t3) forwards;
}

#mybuttonid:hover {
    background-color: var(--marian-blue);
}

@media (max-width: 768px) {
    .intro::before {
        content: "About";
        display: block;
        font-size: 2rem;
        font-weight: 700;
        color: var(--jordy-blue);
        text-align: left !important;
        white-space: pre-wrap;
        padding: 0px;
        gap: 0px;
        order: 1;
        transform: none;
        animation: none;
    }

    br {
        display: none;
    }

    .intro::after {
        content: "Dr. Jehaan Wadia";
        display: block;
        font-size: 2rem;
        font-weight: 700;
        color: var(--marian-blue);
        text-align: left;
        padding: 0;
        order: 2;
        transform: none;
        animation: none;
    }

    .intro {
        margin-top: 5rem;
        padding: 1.5rem 1.2rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        animation: none;
        gap: 1rem;
    }

    .part.about,
    .name-label {
        display: none;
    }

    .photo {
        width: 100%;
        height: auto;
        margin: -64px auto -64px;
        order: 3;
        animation: none;
    }

    .photo-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .photo-wrapper img {
        width: 184%;
        height: 153px;
        object-fit: contain;
        border-radius: 30px;
        margin-top: -64px;
    }

    .img-caption {
        display: none;
    }

    .h2-and-para {
        order: 4;
        width: 100%;
    }

    .intro-text-container {
        margin-top: -60px;
    }

    .part.name {
        font-size: 1.8rem;
        font-weight: 600;
        margin: 0.5rem 0;
        color: var(--marian-blue);
        padding: 0;
    }

    .bio {
        font-size: 1rem;
        font-weight: 300;
        line-height: 1.6;
        color: var(--erie-black);
        text-align: left;
        opacity: 1 !important;
        animation: none !important;
        margin-bottom: 0.5rem;
    }

    .button-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        order: 6;
        opacity: 1;
    }

    #mybuttonid {
        font-size: 0.9rem;
        font-weight: 500;
        padding: 0.5rem 1.2rem;
        border: none;
        background-color: var(--marian-blue);
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin: 0 auto;
    }

    .mybox1 {
        display: block;
        max-height: 0;
        opacity: 0;
        font-size: 1rem;
        line-height: 1.6;
        padding-top: 0.5rem;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
        white-space: normal;
        box-sizing: border-box;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }

    .mybox1.visible {
        max-height: 1000px;
        opacity: 1;
    }
}

@media (max-width: 360px) {
    .intro {
        padding: 1rem 1rem;
        gap: 1rem;
    }

    .photo-wrapper img {
        width: 160%;
        height: auto;
        margin-top: -48px;
    }

    .bio,
    .mybox1 {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.4rem;
    }

    #mybuttonid {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        margin: 0 auto;
    }
}

@media (min-width: 361px) and (max-width: 414px) {
    .intro {
        padding: 1.2rem 1rem;
        gap: 1.2rem;
    }

    .photo-wrapper img {
        width: 170%;
        margin-top: -56px;
        height: auto;
    }

    .bio,
    .mybox1 {
        font-size: 1rem;
        line-height: 1.6;
    }

    #mybuttonid {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
        margin: 0 auto;
    }
}

@media (min-width: 415px) and (max-width: 480px) {
    .intro {
        padding: 1.4rem 1.5rem;
        gap: 1.5rem;
    }

    .photo-wrapper img {
        width: 140%;
        margin-top: -60px;
        height: auto;
    }

    .bio,
    .mybox1 {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    #mybuttonid {
        font-size: 1rem;
        padding: 0.6rem 1.3rem;
        margin: 0 auto;
    }
}

/* section 2 css ends */

.qualify-section {
    margin-top: -3.1rem;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
    margin-bottom: 4rem;
}

.qualify-section.visible {
    opacity: 1;
    transform: translateY(-1);
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 136%;
    height: 75%;
    object-fit: contain;
    z-index: 1;
}

.qualifications-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 75%;
    background-color: var(--marian-blue);
    color: var(--white);
    padding: 40px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 76px;
    padding-top: 2px;
}

.qualify-content {
    margin-top: 2px;
}

.title {
font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.line-item {
    font-size: 1.2rem;
    margin: 8px 0;
    font-weight: 300;
}

.qualify-hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 1);
}

.mobile-break {
    display: inline;
}

@media (max-width: 768px) {
    .qualify-section {
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        position: relative;
        margin-bottom: 1rem;
        min-height: 50vh;
        top: -64px;
    }

    .mobile-break {
        display: inline;
    }

    .background-image {
        width: 100%;
        aspect-ratio: 3 / 3;
        object-fit: cover;
        border-radius: 30px;
        padding: 1rem;
        align-self: center;
        top: 5px;
        bottom: 25px;
        position: relative;
        z-index: 0;
        order: 2;
        margin: 20px;
    }

    .qualifications-card {
        position: relative;
        order: 1;
        width: 100%;
        padding: 75px 20px;
        background-color: var(--marian-blue);
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
        color: var(--white);
        z-index: 1;
    }

    .title {
        font-size: 2rem;
        justify-content: start;
    }

    .line-item {
        font-size: 1rem;
        margin: 16px 4px;
        font-weight: 200;
    }

    .image-box {
        width: 100%;
        padding: 1.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-box img {
        width: 100%;
        height: auto;
        border-radius: 16px;
        object-fit: cover;
    }
}

@media (max-width: 400px) {
    .title {
        font-size: 2rem;
        text-align: center;
    }

    .qualifications-card {
        padding: 1.5rem 1rem;
    }

    .line-item {
        font-size: 0.95rem;
    }

    .background-image {
        aspect-ratio: 1 / 1;
    }
}

/* section 3 css end  */

.testimonial {
    /* -3.7rem */
    margin-top: -10.8rem;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 4rem;
    height: 65vh;
    overflow: hidden;
}

.testimonial-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    /* background: rgba(217, 217, 217, 0.34); */
    color: var(--marian-blue);
    padding: 96px;
    border-radius: 10px;
    align-items: center;
    gap: 40px;
    margin-top: 16px;
}

.testimonial-author {
    flex: 1;
    max-width: 180px;
    margin-top: -66px;
}

.author-label {
    font-size: 1.5rem;
    color: rgba(119, 119, 119, 1);
    margin: 0;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--marian-blue);
    margin-top: 5px;
}

.testimonial-content {
    flex: 3;
    position: relative;
    vertical-align: top;
    display: inline-block;
    font-family: "Playfair Display", serif;
    margin-top: 23px;
}

.quote-icon {
    font-size: 5rem;
    margin-top: -161px;
    margin-right: 10px;
    font-family: "Playfair Display";
    font-weight: 700;
}

.testimonial-text {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--marian-blue);
    margin: 40px 0 30px 0;
    max-width: auto;
    text-align: left;
    font-family: "Playfair Display", serif;
}

.pagination-container {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10;
}

.pagination-track {
    height: 2px;
    width: 220px;
    background: #c9c9c9;
    margin-bottom: 6px;
    position: relative;
    font-size: var(--body-copy2-size);
}

.pagination-fill {
    height: 2px;
    width: 56px;
    background: var(--marian-blue);
    position: absolute;
    left: 0;
}

.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--marian-blue);
    font-weight: 400;
    font-family: "Playfair Display", serif;
    width: 100%;
}

.pagination-arrows .pagarrow {
    color: var(--marian-blue);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 2.3rem;
    font-weight: 300;
    cursor: pointer;
    margin: 20px;
    background-color: var(--bg-white);
}

.testimonial-text {
    transition: opacity 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .testimonial {
        margin-bottom: 1rem;
        min-height: 105vh;
        margin-top: -4rem;
    }

    .testimonial-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 0px;
        align-items: stretch;
        position: relative;
        top: 145px;
        margin-bottom: 10rem;
    }

    .testimonial-author {
        order: 1;
        align-self: flex-end;
        text-align: right;
        max-width: none;
        margin-bottom: -102px;
        margin-top: auto;
    }

    .quote-icon {
        order: 2;
        margin: -25px 0;
        font-size: var(--h2-size);
        top: 0;
        flex-shrink: 0;
    }

    .testimonial-content {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .author-label {
        font-size: 1rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .testimonial-text {
        top: 0;
        margin: 0;
        font-size: 1.2rem;
    }

    .pagination-container {
        order: 4;
        position: static;
        align-items: flex-end;
    }

    .pagination-track {
        width: 100%;
    }

    .pagination-info {
        justify-content: flex-start;
    }

    .pagination-arrows {
        margin-bottom: 4px;
    }
}

@media (max-width: 400px) {
    .testimonial-wrapper {
        padding: 1rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .quote-icon img {
        width: 50px;
        height: 50px;
    }

    .pagination-info {
        font-size: 0.85rem;
    }

    .author-label,
    .author-name {
        font-size: 0.9rem;
    }

    .pagination-arrows .pagarrow {
        width: 36px;
        height: 36px;
    }

    .pagination-arrows .pagarrow img {
        width: 20px;
        height: 20px;
    }
}

/* section 4 css ends */

.services-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    top: 12rem;
    /* background-color: rgba(255, 255, 255, 1); */
}

.section-title {
    font-size: var(--h3-size);
    font-weight: 700;
    color: var(--marian-blue);
    margin: 0 106px 45px;
}

.services-container {
    display: flex;
    flex-wrap: nowrap;
    height: 96vh;
    position: relative;
    margin-bottom: -82px;
}

.services-sidebar {
    background-color: var(--marian-blue);
    color: var(--white);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    padding: 5rem 3rem 4rem 5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 56%;
    height: 70%;
    overflow: hidden;
}

.services-list {
    list-style: none;
    /* margin-bottom: -2px; */
}

.service-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--jordy-blue);
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1.25rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: rgb(255, 255, 255);
    font-weight: 200;
    white-space: nowrap;
}

.service-item ul {
    padding: 0 !important;
}

.service-item:hover,
.service-item.active {
    color: var(--white);
    font-weight: 400;
    font-size: 1.25rem;
}

.service-item.active .arrow {
    font-size: 1.5rem;
}

.carousel-controls {
    display: flex;
    /* gap: 1rem; */
    margin-top: 1.8rem;
    justify-content: flex-end;
}

.carousel-btn {
    background: transparent;
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 46px;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
}

.services-detail {
    position: relative;
    width: 60%;
    height: 50vh;
    padding-left: 5.5rem;
    display: flex;
    flex-direction: column;
  justify-content: flex-start;
    align-items: flex-start;
    font-size: var(--body-copy3-size);
    margin-top: 5rem;
}

.detail-title {
    font-size: 1.8rem;
    color: var(--marian-blue);
    font-weight: 800;
    margin-bottom: 2.5rem;
    max-width: 450px;
    min-height: 4.2rem; /* Reserve height for 2 lines */
    line-height: 1.2; /* Control spacing between lines */
}
.detail-content {
    margin-top: 1rem;
       position: absolute;
}
 .detail-text {
        word-spacing: normal;
        letter-spacing: normal;
        height: 350px; 
        margin-top: -5px;
        margin-bottom: 0;
        transition: none;
        max-width: 400px;
        font-size: 1.1rem;
        color: var(--gray);
    }


/* .detail-text {
    font-size: 1rem;
    margin-top: 0;
    color: var(--gray);
     margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 400px;
    position:fixed
} */

.detail-text.expanded {
    margin-top: 220px;
}

.appointment-btn {
    padding: 0.59rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--marian-blue);
    background-color: transparent;
    border: 1px solid var(--marian-blue);
    border-radius: 0px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    margin-top: 1.6rem;
}

.appointment-btn:hover {
    background: var(--marian-blue);
    color: var(--white);
}

.appointment-btn:hover svg {
    fill: var(--white);
}

@media (max-width: 768px) {
    .services-section {
        min-height: 50vh;
        top: 25px;
        height: auto;
        margin-bottom: 2rem;
    }

    .services-container {
        flex-direction: column;
        height: auto;
        gap: 2rem;
    }

    .services-sidebar {
        width: 100%;
        height: auto;
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
        padding: 1rem;
    }

    .services-detail {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 1.5rem 1rem;
        height: auto;
        font-size: 1rem;
    }

    .detail-title {
        font-size: 1.5rem;
        position: static;
        max-width: 100%;
         margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .detail-text {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
        text-align: left;
          margin-top: 0;

    }

    .appointment-btn {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .carousel-controls {
        padding-right: 10px;
        justify-content: flex-end;
    }

    .services-list {
        padding: 0;
    }

    .carousel-btn {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin: 0 20px 16px;
    }

    .service-item {
        font-size: 1rem;
    }

    .service-item:hover,
    .service-item.active {
        color: var(--white);
        font-weight: 300;
        font-size: 1rem;
    }

}

.pagination-number {
    text-align: right;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .service-item {
        font-size: 0.95rem;
    }

    .carousel-btn {
        width: 30px;
        height: 36px;
        font-size: 1.2rem;
    }

    .appointment-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (min-width: 481px) and (max-width: 600px) {
    .section-title {
        font-size: 1.6rem;
    }

    .service-item {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 34px;
        height: 40px;
        font-size: 1.4rem;
    }

    .appointment-btn {
        font-size: 0.95rem;
        padding: 0.55rem 1rem;
    }
}

@media (min-width: 601px) and (max-width: 767px) {
    .section-title {
        font-size: 1.8rem;
    }

    .service-item {
        font-size: 1.05rem;
    }

    .carousel-btn {
        font-size: 1.5rem;
        width: 36px;
        height: 44px;
    }

    .appointment-btn {
        font-size: 1rem;
        padding: 0.6rem 1.1rem;
    }
}

/* Section 6 --end */

.awards-section {
    /* background-color: #F5F6FB; */
    margin-top: 14.5rem;
    padding: 20px 20px;
    width: 100%;
    min-height: 90vh;
    text-align: left;
}

.cards-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 0 38px;
    scroll-snap-type: x mandatory;
}

.award-title {
    font-size: var(--h3-size);
    font-weight: 700;
    color: var(--marian-blue);
    margin: 60px 86px 60px;
}

.award-card {
    flex: 0 0 auto;
    width: calc(25% - 18px);
    height: 420px;
    object-fit: cover;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--marian-blue);
    transition: transform 0.3s ease;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.award-card:hover {
    transform: translateY(-5px);
}

.award-card img {
    width: 100%;
    height: 63%;
    object-fit: cover;
    object-position: center;
}

.card-caption {
    background-color: var(--marian-blue);
    color: var(--white);
    padding: 20px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    text-decoration: none;
}

.card-caption h2 {
    font-size: 1rem;
    text-decoration: none;
}

.card-caption h3 {
    font-size: 0.9rem;
}

.card-caption .top-pub {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    font-weight: 200;
    color: #ffffff;
    display: block;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-caption h3 a {
    font-size: 0.9rem;
    color: var(--white);
}

.card-caption .top-pub p {
    font-size: 1rem;
    margin-bottom: -50px;
}

.card-caption p {
    font-size: 0.9rem;
    color: rgba(192, 192, 192, 0.7);
    font-weight: 200;
}

.award-card .card-caption h3,
.award-card .card-caption p {
    color: var(--white) !important;
    text-decoration: none;
}

.award-card,
.award-card:link,
.award-card:visited,
.award-card:hover,
.award-card:active {
    color: inherit;
    text-decoration: none;
}

.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.btn-award-primary {
    padding: 0.59rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--marian-blue);
    background-color: transparent;
    border: 1px solid var(--marian-blue);
    border-radius: 0px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.btn-award-primary:hover {
    background: var(--marian-blue);
    color: var(--white);
}

.btn-award-primary:hover svg {
    fill: var(--white);
}

/* .card-nav {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
} */
.card-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    position: static !important;
}

.awardcard-nav-left,
.awardcard-nav-right {
    position: static !important;
}

.cta-button {
    margin: 0;
    padding: 0;
}

.card-nav button {
    background-color: #E2E5F5 !important;
    color: var(--marian-blue);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 46px;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;


}

.cards-container::-webkit-scrollbar {
    display: none;
}

.cards-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    .awards-section {
        margin-bottom: 1rem;
        min-height: 50vh;
        margin-top: -6rem;
    }

    .cards-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-behavior: smooth;
        padding: 0;
        gap: 20px;
        margin: 25px 0;
        padding: 0 5px;
    }

    .award-card {
        flex: 0 0 100%;
        width: 90%;
        height: inherit;
        scroll-snap-align: start;
        margin: 0;
        border-radius: 30px;
        box-sizing: border-box;
        margin-top: 10px;
    }

    .award-title {
        margin: 0 0 1rem;
        font-size: 2rem;
        text-align: left;
    }

    .card-nav {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
        position: static !important;
    }

    .awardcard-nav-left,
    .awardcard-nav-right {
        position: static !important;
    }

    .cta-button {
        margin: 0;
        padding: 0;
        display: none;
    }

    .card-nav button {
        /* background-color: var(--white); */
        color: var(--marian-blue);
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 46px;
        font-size: 2rem;
        font-weight: 300;
        cursor: pointer;
    }

    .cards-container::-webkit-scrollbar {
        display: none;
    }

    .cards-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Section 7 --end */
.hospital-section {
    text-align: center;
    margin: 5.8rem auto 2rem;
    min-height: 80vh;
}

.hosp-light {
    color: var(--jordy-blue);
}

.hosp-fill {
    height: 0.2px;
    background: #b4b4b4;
    width: 100%;
    margin-top: 1rem;
}

.hosp-title {
    font-size: var(--h3-size);
    font-weight: 700;
    color: var(--marian-blue);
}

.hospital-cards {
    padding: 30px;
}

.hospital-cards-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 35px;
    scroll-snap-type: x mandatory;
}

.hospital-card {
    background: var(--white);
    flex: 0 0 auto;
    width: 310px;
    height: 250px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 2px solid #e6e6e6;
    padding: 15px;
    transition: transform 0.3s ease;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
    text-align: left;

}

.hospital-card:hover {
    transform: translateY(-5px);
}

.hospital-card h3 {
    font-size: 1.2rem;
    color: var(--marian-blue);
    display: flex;
    gap: 6px;
    align-items: center;
}

.hospital-card p {
    font-size: 0.9rem;
    color: #777;
    margin: 0.2rem 0 0;
    font-weight: 300;
}

.opd {
    margin-top: auto;
}

.opd p:first-child {
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 4px;
}

.appointment-btn-wrapper {
    margin-top: 20px;
}

.appointment-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--marian-blue);
    background: transparent;
    border: 1px solid var(--marian-blue);
    text-decoration: none;
    transition: 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.appointment-btn:hover {
    background: var(--marian-blue);
    color: #fff;
}

.hospital-card-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    position: static !important;
    display: block;
}

.hospital-card-nav button {
    background-color: #E2E5F5;
    color: var(--marian-blue);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 46px;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
}

.hospital-cards-container::-webkit-scrollbar {
    display: none;
}

.hospital-cards-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hospital-section {
        margin-top: 6rem;
        min-height: 50vh;
    }

    .hospital-cards-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-behavior: smooth;
        gap: 20px;
        padding: 0 5px;
        margin: 25px 0;
    }

    .hospital-card {
        flex: 0 0 100%;
        width: 90%;
        scroll-snap-align: start;
        margin: 0;
        border-radius: 30px;
        box-sizing: border-box;
        margin-top: 10px;
        translate: none;
    }

.hospital-cards {
    padding: 10px;
}
    
    .hosp-bold {
        font-size: 2rem !important;
        font-weight: 700;
        color: var(--marian-blue);
        text-align: center;
        margin-left: 0;
        padding: 0;
    }

    .hosp-light {
       font-size: 2rem !important;
        font-weight: 700;
        color: var(--jordy-blue) !important;
        text-align: center;
        white-space: pre-wrap;
        margin-left: 0;
        padding: 0;
        overflow: hidden;
    }

    .hospital-card-nav {
        display: block;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hospital-card-nav button {
        background-color: #E2E5F5;
        color: var(--marian-blue);
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 46px;
        font-size: 2rem;
        font-weight: 300;
        cursor: pointer;
    }
}

/* section 10 css end */

.main-footer {
    min-height: 30vh;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 52px 20px;
    flex-wrap: wrap;
    border-top: 1px solid #e0e0e0;
    position: relative;
    top: -2.5rem;
}

.footer-left {
    margin-top: 6px;
    max-width: 300px;
}

.footer-middle {
    display: flex;
    gap: 60px;
    margin-top: 6px;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-middle li {
    margin-bottom: 10px;
}

.footer-middle a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 14px;
    transition: color 0.2s ease;
    display: flex;
    gap: 60px;
    margin-left: 20px;
}

.footer-middle .nav-left li:first-child a {
    color: #2b3e94;
    font-weight: 500;
}

.footer-middle a:hover {
    color: #2b3e94;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.social-icons {
    padding-left: 20px;
}

.social-icons a {
    margin-right: 8px;
    background-color: var(--marian-blue);
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 50%;
    gap: 0;
}

.footer-divide {
    width: 2px;
    height: 100px;
    background-color: #d9d9d9;
    margin: 0 2rem;
}

.footer-logo {
    width: 100%;
    height: auto;
    max-width: 270px;
    height: auto;
    display: block;
}

.footer-credit {
    position: absolute;
    right: 60px;
    bottom: 10px;
    font-size: 15px;
    color: #777;
    top: 220px;
}

.footer-credit a {
    color: #777;
    text-decoration: underline;
    cursor: pointer;
    text-decoration: none;
}

.footer-credit a:hover {
    color: var(--marian-blue);
    text-decoration: underline;
    cursor: pointer;
}

.footer-divide-mobile {
    display: none;
}

@media (max-width: 768px) {
    .main-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 20px;
        margin-top: 2.5rem;
        /* min-height: 50vh; */
    }

    .footer-left {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-logo {
        max-width: 160px;
        height: auto;
        margin-right: auto;
    }

    .footer-right {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: auto;
        margin-bottom: 20px;
    }

    .social-icons {
        display: flex;
        gap: 12px;
        margin-top: -88px;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        padding: 10px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-middle {
        order: 3;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-divide {
        display: none;
    }

    .footer-divide-mobile {
        display: block;
        width: 2px;
        height: 100px;
        background-color: #d9d9d9;
        margin: 10px auto;
        top: 25px;
    }

    .footer-middle ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .footer-middle li {
        margin-bottom: 10px;
    }

    .footer-middle a {
        color: #4a4a4a;
        font-size: 14px;
        text-decoration: none;
    }

    .footer-credit {
        order: 4;
        position: static;
        text-align: center;
        font-size: 12px;
        color: #777;
        margin-top: 10px;
    }
}

/* footer css ends */

.contact-section {
    min-height: 90vh;
    width: 100%;
    margin-top: 5.8rem;
}

.contact-title {
    font-size: var(--h3-size);
    font-weight: 700;
    color: var(--marian-blue);
    margin: 0 106px 50px;
    text-align: left;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 260px;
    padding: 0 109px 50px;
    min-height: 100vh;
}

.map-box,
.info-box {
    width: 400px;
    height: 425px;
    border: 1px solid rgba(189, 189, 189, 1);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.map-box iframe {
    width: 155%;
    height: 130%;
    border: 0;
    border-radius: 20px;
    border: 1px solid rgba(189, 189, 189, 1);
}

.info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.info-box {
    height: 302px;
    width: 105%;
    background-color: #fefefe;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info {
    padding-left: 2rem;
}

.info .label {
    font-size: 1.2rem;
    color: var(--marian-blue);
    margin: 10px 0 5px;
    font-weight: 400;
}

.info .label-addresss {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.5;
    color: rgba(119, 119, 119, 1);
    font-weight: 300;
    padding-left: 33px;
}

.info .label-addresss:hover,
.info .label-phone a:hover {
    color: var(--marian-blue);
    text-decoration: underline;
}

.info .label-phone {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.5;
    color: rgba(119, 119, 119, 1);
    font-weight: 300;
    padding-left: 33px;
}

.info .label-phone a {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.5;
    color: rgba(119, 119, 119, 1);
    font-weight: 300;
    /* padding-left: 33px; */
}

.info a {
    text-decoration: none;
}

.directions-button {
    margin-top: 20px;
    /* Push to bottom */
    text-decoration: none;
    background-color: var(--marian-blue);
    color: #fff;
    padding: 0.75rem 1.125rem;
    border-radius: 0;
    transition: background 0.3s;
    align-self: flex-start;
    font-family: "Montserrat", sans-serif;
}

.directions-button:hover {
    background-color: var(--true-blue);
}

@media (max-width: 768px) {
    .contact-section {
        min-height: 50vh;
        margin-top: 4rem;
    }

    .contact-container {
        flex-direction: column;
        padding: 0 20px 40px;
        gap: 30px;
    }

    .map-box iframe {
        width: 100%;
        height: 315px;
        object-fit: cover;
        border: 0;
        border-radius: 20px;
    }

    .info-box {
        flex: 1 1 100%;
        width: auto;
        height: auto;
    }

    .map-box {
        width: auto;
        height: auto;
    }

    .info-box {
        height: auto;
        padding: 20px;
    }

    .directions-button {
        width: auto;
        text-align: center;
        margin: 0 auto;
    }

    .contact-title {
        font-size: 2rem;
        font-weight: 700;
        color: var(--marian-blue);
        margin: 0 26px 10px;
    }
}

/* conatct css ends */

.gallery-section {
    /* background-color: #F5F6FB; */
    /* margin-top: 7.6rem; */
    padding: 60px;
    width: 100%;
    min-height: 100vh;
    /* margin: 0 auto; */
    text-align: left;
}

.gallery-title {
    font-size: var(--h3-size);
    font-weight: 700;
    color: var(--marian-blue);
    margin: 0 47px 50px;
    text-align: left;
}

.gallery {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    flex-wrap: nowrap;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    width: 600px;
    height: 470px;
    position: relative;
    flex-shrink: 0;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    will-change: transform;
    transform: translateZ(0); /* force hardware acceleration */
    backface-visibility: hidden;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.15) 85%,
            rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    text-align: left;
    padding: 22px;
    font-size: 1.1rem;
    font-weight: 400;
    z-index: 2;
}

.gallery-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3.6rem;
    position: static !important;
}

.gallery {
    scroll-behavior: smooth;
}

.gallery-item {
    will-change: transform;
}

.gallery-buttons button {
    background-color: #E2E5F5;
    color: var(--marian-blue);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 46px;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-section {
        min-height: 50vh;
        padding: 5px;
        margin-top: 2rem;
    }

    .gallery-item {
        width: 380px;
        height: 360px;
    }

    .image-caption {
        font-size: var(--body-copy4-size);
        padding: 15px;
    }

    .gallery-title {
        font-size: 2rem;
        margin: 0 20px 16px;
    }

    .gallery-buttons {
        gap: 0.5rem;
    }

    .gallery-buttons button {
        width: 32px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 380px;
        height: 360px;
    }

    .image-caption {
        font-size: 1rem;
        padding: 10px;
        /* Dark → transparent fade upward */
        background: linear-gradient(to top,
                rgba(0, 0, 0, 1) 0%,
                /* solid black */
                rgba(0, 0, 0, 0.95) 10%,
                rgba(0, 0, 0, 0.85) 25%,
                rgba(0, 0, 0, 0.65) 45%,
                rgba(0, 0, 0, 0.45) 65%,
                rgba(0, 0, 0, 0.25) 85%,
                rgba(0, 0, 0, 0) 100%
                /* fully transparent */
            );
    }
}

/* gallery css ends */
.symptoms-section {
    /* background-color: rgba(255, 255, 255, 1); */
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    margin-top: 8.5rem;
}

.symptoms-title {
    font-size: var(--h3-size);
    font-weight: 700;
    color: var(--marian-blue);
    margin: 0 106px 60px;
    text-align: left;
}

.container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    position: relative;
}

.symptom-section {
    position: relative;
    flex: 1;
    overflow-y: visible;
}

.symptom-section,
.container {
    max-width: unset;
    width: auto;
    display: flex;
    padding: 0 !important;
}

.circle-wrapper {
    position: relative;
    width: 325px;
    height: 325px;
    margin: 50px auto;
    min-width: 325px;
    min-height: 325px;
    max-width: 325px;
    max-height: 325px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-outer,
.circle-inner,
.circle-innermost {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%);
    animation: zoom 4s linear infinite;
}

.circle-outer {
    width: 635px;
    height: 635px;
    background: rgba(60, 84, 177, 0.04);
    z-index: 1;
    animation-delay: 0.75s;
}

.circle-inner {
    width: 525px;
    height: 525px;
    background: rgba(60, 84, 177, 0.28);
    z-index: 2;
    animation-delay: 1.25s;
}

.circle-innermost {
    width: 397px;
    height: 397px;
    z-index: 4;
    background: radial-gradient(circle,
            rgba(60, 84, 177, 0.8) 0%,
            rgba(60, 84, 177, 0.5) 40%,
            rgba(60, 84, 177, 0) 100%);
    animation-delay: 1.75s;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(60, 84, 177, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(60, 84, 177, 0.8);
    }
}

@keyframes zoom {
    0% {
        transform: translate(-50%, -50%) scale(0.2);

    }

    50% {}

    100% {
        transform: translate(-50%, -50%) scale(1.3);

    }
}

.circle-blank {
    transition: opacity 0.5s ease;
    opacity: 1;
    width: 325px;
    height: 325px;
    position: absolute;
    background: transparent;
    z-index: 5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: pulseGlow 4s ease-in-out infinite;
}

.ear-image {
    background-image: url("../images/symptoms/ear.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
}

.circle-blank.fade-out {
    opacity: 0;
}


.info-panel {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-left: 40px;
    min-width: 150px;
    perspective: 800px;
    margin-top: 54px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: #555;
    font-size: 1rem;
    margin-bottom: 12px;
    gap: 0.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
    position: relative;
    transition: transform 0.6s ease, z-index 0.6s ease, opacity 0.6s ease;
}

.category-list .label {
    flex: 1;
    text-align: left;
}

.category-list li.active-category {
    color: var(--marian-blue);
    transform: scale(1.9);
    z-index: 3;
    transform: scale(1.8) translateZ(0);
}

.category-list li.active-category span {
    color: var(--marian-blue);
    transform: scale(1.9);
    z-index: 3;
    transform: scale(0.59) translateZ(0);
}

.category-list li.inactive-category {
    opacity: 0.6;
    transform: scale(1.2);
    z-index: 1;
}

.category-list li.inactive-category span {
    opacity: 0.6;
    transform: scale(0.75);
    z-index: 1;
}

.category-list li.behind {
    transform: scale(0.85);
    z-index: 1;
    opacity: 0.6;
}

.category-list li.middle {
    transform: scale(1);
    z-index: 2;
    opacity: 0.8;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.blue-dot {
    background-color: var(--marian-blue);
}

.gray-dot {
    background-color: #ccc;
}

.marker {
    width: 26px;
    height: 26px;
    background-color: var(--marian-blue);
    border-radius: 50%;
    position: absolute;
    z-index: 5;
    border: 1px solid var(--marian-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    font-weight: 300;
    opacity: 1;
    transition: top 2s ease, left 2s ease;
}

.marker {
    transition: top 1.2s ease, left 1.2s ease, opacity 1.2s ease;
}

.marker::before {
    content: "+";
    font-size: 1.5rem;
    text-align: center;
    width: 18px;
    height: 38px;
}

.marker-tooltip {
    position: absolute;
    background-color: white;
    color: var(--marian-blue);
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: normal;
    bottom: -10px;
    left: 150%;
    transform: translate(-50%, 30px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    font-weight: 500;
    width: 600px;
    max-width: 250px;
    height: auto;
    word-break: break-word;

    transition: opacity 0.3s ease;
}

.marker:hover .marker-tooltip {
    transition: top 0.5s ease, left 0.5s ease;
    opacity: 1;
    z-index: 20;
}

.marker-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.marker-description {
    font-size: 0.85rem;
    color: #777777;
    line-height: 1.3;
}

.mobile-carousel-controls {
    display: none;
}

@media (max-width: 768px) {
    .symptoms-section {
        margin-top: 5rem;
    }

    .container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 0 !important;
        overflow: hidden;
        height: 700px;
    }

    .symptom-section {
        padding: 0 !important;
        align-items: center;
        justify-content: center;
    }

    .circle-wrapper {
        margin: 20px auto;
        max-width: 325px;
        max-height: 325px;
        transform: scale(0.9);
    }

    .info-panel {
        display: none;
        padding-left: 0;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .category-list {
        flex-direction: row;
        gap: 16px;
    }

    .category-list li {
        font-size: 14px;
        transform: scale(1);
        margin: 0;
    }

    .category-list li.active-category {
        transform: scale(1.2);
    }

    .marker-tooltip {
        position: absolute;
        bottom: -120% !important;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        background: white;
        color: var(--marian-blue);
        border-radius: 16px;
        padding: 16px;
        width: 200px;
        max-width: 90vw;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        z-index: 1111;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .marker:hover .marker-tooltip {
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-carousel-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 25px;
        gap: 20px;
    }

    .arrow {
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--marian-blue);
        transition: transform 0.2s ease;
    }

    .arrow:hover {
        transform: scale(1.2);
    }

    .carousel-dots {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .carousel-dots .dot {
        width: 12px;
        height: 12px;
        background-color: #ccc;
        border-radius: 50%;
        transition: background-color 0.3s;
        cursor: pointer;
    }

    .carousel-dots .dot.active {
        background-color: var(--marian-blue);
    }

    .symptoms-title {
        margin: 0 1.3rem 1rem;
        font-size: 2rem;
        text-align: left;
    }
}

@media (max-width: 400px) {
    .circle-wrapper {
        transform: scale(0.75);
    }
}