.clinic-hero {
    position: relative;
    overflow: hidden;
    padding: 85px 0 95px;
    background-color: var(--off-white);
}

.clinic-hero-container {
    position: relative;
    z-index: 2;
    width: min(90%, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 75px;
    align-items: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.clinic-hero-content h1 {
    margin-bottom: 22px;
    color: var(--primary);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.12;
}

.clinic-hero-content>p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.clinic-features {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.clinic-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
}

.blue-dot {
    background-color: var(--blue);
}

.orange-dot {
    background-color: var(--orange);
}

.violet-dot {
    background-color: var(--violet);
}

.clinic-hero-images {
    position: relative;
    min-height: 470px;
}

.hero-image {
    position: absolute;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(6, 68, 131, 0.14);
}

.hero-image-main {
    top: 0;
    right: 0;
    width: 88%;
    height: 390px;
}

.hero-image-small {
    left: 0;
    bottom: 0;
    width: 46%;
    height: 210px;
    border: 7px solid var(--off-white);
}

.clinic-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.decoration-blue {
    width: 210px;
    height: 210px;
    top: -90px;
    left: -80px;
    background-color: var(--blue);
}

.decoration-orange {
    width: 130px;
    height: 130px;
    right: -55px;
    bottom: 30px;
    background-color: var(--orange);
}

.clinic-gallery-section {
    padding: 95px 0;
    background-color: var(--white);
}

.clinic-container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

.gallery-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.gallery-heading h2 {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.gallery-heading p {
    color: var(--text-light);
    line-height: 1.8;
}

.gallery-category {
    margin-bottom: 70px;
}

.gallery-category:last-child {
    margin-bottom: 0;
}

.gallery-category-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.gallery-category-heading>div {
    max-width: 650px;
}

.gallery-category-heading h3 {
    color: var(--primary);
    font-size: 1.25rem;
}

.gallery-category-heading p {
    margin-top: 7px;
    color: var(--text-light);
    font-size: 0.84rem;
    line-height: 1.6;
}

.gallery-category-heading>span {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 0.78rem;
}

.photo-grid img,
.bailey-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-grid img:hover,
.bailey-gallery img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 68, 131, 0.13);
}

.waiting-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 230px;
    gap: 14px;
}

.waiting-gallery img:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.office-gallery {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr 0.8fr;
    grid-template-rows: 230px 230px;
    gap: 14px;
}

.office-gallery img:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

.office-gallery img:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1;
}

.office-gallery img:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.office-gallery img:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

.gallery-small-label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--violet) !important;
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bailey-category {
    position: relative;
    padding: 38px;
    background-color: var(--off-white);
    border-radius: 20px;
    overflow: hidden;
}

.bailey-category::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -60px;
    bottom: -60px;
    border-radius: 50%;
    background-color: var(--violet);
    opacity: 0.06;
}

.bailey-gallery {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 12px;
}

.bailey-gallery img {
    height: 260px;
}

.bailey-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.bailey-link span {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.bailey-link:hover span {
    transform: translateX(4px);
}

.bath-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 350px;
    gap: 14px;
}

.pediatric-gallery-category {
    margin-top: 20px;
}

.pediatric-office-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pediatric-office-image img {
    width: auto;
    max-width: 75%;
    max-height: 380px;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
}

.clinic-location {
    padding: 90px 0;
    background-color: var(--off-white);
}

.clinic-location-container {
    width: min(90%, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.location-content h2 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.location-content p {
    margin-bottom: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

.maps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 13px 24px;
    border-radius: 50px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.maps-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.location-map {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(6, 68, 131, 0.1);
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 390px;
    border: 0;
}

@media screen and (max-width: 900px) {
    .clinic-hero {
        padding: 65px 0 75px;
    }

    .clinic-hero-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .clinic-hero-images {
        min-height: 430px;
    }

    .clinic-gallery-section {
        padding: 70px 0;
    }

    .waiting-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 210px;
    }

    .office-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 320px 190px 190px;
    }

    .office-gallery img:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .office-gallery img:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .office-gallery img:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .office-gallery img:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .bailey-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .bailey-gallery img:first-child {
        grid-column: 1 / 3;
        height: 320px;
    }

    .bailey-gallery img:nth-child(2),
    .bailey-gallery img:nth-child(3) {
        height: 220px;
    }

    .clinic-location {
        padding: 70px 0;
    }

    .clinic-location-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 600px) {
    .clinic-hero {
        padding: 45px 0 60px;
    }

    .clinic-hero-container,
    .clinic-container,
    .clinic-location-container {
        width: 88%;
    }

    .clinic-hero-images {
        min-height: 330px;
    }

    .hero-image-main {
        width: 92%;
        height: 275px;
    }

    .hero-image-small {
        width: 48%;
        height: 145px;
        border-width: 5px;
        border-radius: 14px;
    }

    .clinic-gallery-section {
        padding: 60px 0;
    }

    .gallery-heading {
        margin-bottom: 40px;
    }

    .gallery-category {
        margin-bottom: 50px;
    }

    .gallery-category-heading {
        align-items: flex-start;
    }

    .gallery-category-heading>span {
        padding-top: 4px;
    }

    .photo-grid img,
    .bailey-gallery img {
        border-radius: 10px;
    }

    .waiting-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 9px;
    }

    .waiting-gallery img:first-child {
        grid-column: 1 / 3;
        grid-row: span 2;
    }

    .office-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 145px 180px;
        gap: 9px;
    }

    .office-gallery img:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .office-gallery img:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .office-gallery img:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .office-gallery img:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .bailey-category {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .bailey-gallery {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .bailey-gallery img:first-child,
    .bailey-gallery img:nth-child(2),
    .bailey-gallery img:nth-child(3) {
        grid-column: auto;
        height: 230px;
    }

    .bailey-link {
        margin-top: 18px;
    }

    .bath-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 280px);
        gap: 9px;
    }

    .clinic-location {
        padding: 60px 0;
    }

    .location-map iframe {
        height: 300px;
    }

    .maps-button {
        width: 100%;
    }

    .pediatric-office-image img {
        max-width: 100%;
        max-height: none;
    }
}