* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
}

/* ================= NAVBAR ================= */
.navbar {
    background: #fff;
    /* border-bottom: 1px solid #eee; */
    position: relative;
    z-index: 100;
}

/* Scoped to the navbar only — this was leaking into every other
   section's .container before, causing the side-by-side/broken layouts */
.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 60px 0px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 55px;
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #222;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-links li {
    position: relative;
}

.nav-links>li>a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-links li.active>a {
    color: #ee2f3d;
    border-bottom: 2.5px solid #ee2f3d;
}

.nav-links>li>a:hover {
    color: #ee2f3d;
}

.caret {
    font-size: 11px;
    margin-left: 2px;
    color: #444;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-links li.active .caret,
.nav-links>li>a:hover .caret {
    color: #ee2f3d;
}

.dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    min-width: 200px;
    padding: 10px 0;
    z-index: 10;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown a {
    padding: 10px 22px;
    font-weight: 500;
    font-size: 14px;
    display: block;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown a:hover {
    background: #fdf1f1;
    color: #ee2f3d;
}

@media (hover: hover) and (pointer: fine) {
    .nav-links li:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li:hover .caret {
        transform: rotate(180deg);
    }
}

@media (max-width: 950px) {
    .navbar .container {
        padding: 14px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links>li>a {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid #f1f1f1;
    }

    .nav-links li.active>a {
        border-bottom: 1px solid #f1f1f1;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        min-width: 100%;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.25s ease;
    }

    .has-dropdown.open .dropdown {
        max-height: 300px;
        padding: 6px 0 6px 12px;
    }

    .has-dropdown.open .caret {
        transform: rotate(180deg);
    }

    .dropdown a {
        padding: 10px 0;
    }
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 90;
}

.nav-overlay.show {
    display: block;
}


/* ================= FOOTER SECTION ================= */
.footer-section {
    background: #1a1a1a;
    color: #eaeaea;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    padding: 50px 80px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr 1.2fr;
    gap: 40px;
    
    margin: 0 auto;
}

.footer-heading {
    color: #ee2f3d;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.4;
}

.footer-logo {
    height: 45px;
    margin-bottom: 20px;
}

.about-text {
    font-size: 15px;
    line-height: 1.7;
    color: #d8d8d8;
    margin-bottom: 22px;
}

.read-more-btn {
    display: inline-block;
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 2px;
    transition: background 0.25s ease, color 0.25s ease;
}

.read-more-btn:hover {
    background: #ee2f3d;
    color: #fff;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.badge img {
    height: 70px;
}

.badge span {
    font-size: 14px;
    font-weight: 500;
    color: #eaeaea;
    line-height: 1.3;
}

.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #eaeaea;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #333;
    transition: color 0.25s ease;
}

.contact-line .icon {
    flex-shrink: 0;
    font-size: 20px;
}

a.contact-line:hover {
    color: #ee2f3d;
}

.contact-line.address {
    border-bottom: none;
    align-items: flex-start;
    font-weight: 500;
    cursor: default;
}

.contact-line.hours {
    border-bottom: 1px solid #333;
    font-weight: 500;
    cursor: default;
}

.contact-line.hours:last-child {
    border-bottom: none;
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits-list li {
    font-size: 15px;
    font-weight: 400;
    padding: 14px 0;
    border-bottom: 1px solid #333;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.map-embed {
    border-radius: 6px;
    overflow: hidden;
}

.map-embed iframe {
    display: block;
    width: 100%;
}

.footer-bottom {
  
    margin-top: 5px;
    font-family: 'Raleway';
    padding: 22px 60px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
    background: #000;
}

.footer-bottom strong {
    color: #fff;
}
.omxbtm{
    color: #aaa;
}
a.omxbtm:hover{
    color: red;
}

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 23px;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: #046BD2;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

#scrollTopBtn:hover {
    background: #0356a8;
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .footer-section {
        padding: 40px 24px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        padding: 20px;
    }

    .map-embed iframe {
        height: 220px;
    }
}


/* ================= HOME HERO SLIDER ================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 25px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.18);
}

.slide.active .slide-bg {
    animation: kenburns-zoom-out 6s ease-in-out forwards;
}

@keyframes kenburns-zoom-out {
    from {
        transform: scale(1.18);
    }

    to {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 380px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 280px;
    }
}


/* ================= HOME IMAGE + INFO SECTION ================= */
.home-img-info-section {
    padding: 25px 0;
}

.home-img-info-section.bg-pink {
    background: url('../img/homeback1.png');
    background-size: cover;
    background-position: center;
    min-height: 330px;
    margin-bottom: 25px;
    padding: 15px;
}

.home-img-info-section.bg-blue {
    background: url('../img/homeback2.png');
    background-size: cover;
    background-position: center;
    min-height: 330px;
    margin-bottom: 25px;
    padding: 15px;
}

.home-img-info-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-img-info-section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.home-img-info-section .col-img,
.home-img-info-section .col-text {
    flex: 1 1 320px;
    min-width: 280px;
}

.home-img-info-section img {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 5 / 3;
    display: block;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    margin: 0 auto;
}

.home-img-info-section h2 {
    font-size: 34px;
    font-weight: 600;
    color: #ec1e6b;
    text-align: center;
}

.home-img-info-section p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
    text-align: justify;
}

.home-img-info-section p:last-child {
    margin-bottom: 0;
}

.home-img-info-section a {
    color: #2f6fed;
    text-decoration: none;
    font-weight: 600;
}

.home-img-info-section a:hover {
    text-decoration: underline;
}

.col-img-clinic img {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4 / 3;
    display: block;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .home-img-info-section .row {
        gap: 24px;
    }

    .home-img-info-section {
        padding: 40px 0;
    }

    .home-img-info-section.bg-pink,
    .home-img-info-section.bg-blue {
        min-height: auto;
    }

    .home-img-info-section h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .home-img-info-section p {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
    }
}


/* ================= BOOK APPOINTMENT BUTTON ================= */
.book-appointment-btn {
    display: inline-block;
    background: #d9d9d9;
    color: #000 !important;
    font-family: 'Raleway', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    padding: 14px 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.book-appointment-btn:hover {
    background: #ec1e6b;
    color: #fff !important;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .book-appointment-btn {
        width: 100%;
        padding: 14px 0;
        font-size: 16px;
    }
}


/* ================= STATS SECTION ================= */
.stats-section {
    position: relative;
    padding: 40px 0;
    background: url(../img/homeback1.png);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.stats-section .container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
    width: 100%;
}

.stat-item {
    flex: 1 1 160px;
}

.stat-number {
    font-size: 44px;
    font-weight: 800;
    color: #ec1e6b;
    margin: 0 0 8px;
    font-family: 'Raleway', sans-serif;
}

.stat-label {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    margin: 0;
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
        gap: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 16px;
    }
}


/* ================= PATIENT TESTIMONIALS ================= */
.testimonials-section {
    padding: 10px 0;
    background: #fff;
    font-family: 'Raleway', 'Segoe UI', Arial, sans-serif;
}

.testimonials-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #ec1e6b;
    margin: 0 0 40px;
}

.testimonials-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rating-summary {
    flex: 0 0 305px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.doctor-photo-wrap-home {
    flex-shrink: 0;
}

.doctor-photo-home {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.doctor-name {
    font-size: 16px;
    line-height: 1.3;
}

.doctor-info {
    flex: 1;
    min-width: 0;
}

.stars {
    color: #F6BB06;
    font-size: 20px;
    font-weight: 600;
}

.write-review-btn {
    display: inline-block;
    border: 1px solid #ccc;
    color: #1a1a1a;
    background-color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.write-review-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.reviews-carousel {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}

.reviews-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex: 1;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 calc((100% - 40px) / 3);
    background: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    scroll-snap-align: start;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reviewer-meta {
    flex: 1;
    min-width: 0;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.google-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #4285F4;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 10px;
    margin-left: 4px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 10px 0;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp 0.2s ease;
}

.review-card.expanded .review-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.read-more-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.read-more-link:hover {
    text-decoration: underline;
}

.carousel-arrow {
    flex-shrink: 0;
    align-self: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.carousel-arrow:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.trustindex-badge-wrap {
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
}

.trustindex-tooltip-container {
    position: relative;
    display: inline-block;
}

.trustindex-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a7a4a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: default;
}

.info-icon {
    font-size: 13px;
    opacity: 0.85;
    cursor: pointer;
}

/* The tooltip card */
.trustindex-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    width: 340px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    text-align: left;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 20;
}

.trustindex-tooltip strong {
    display: block;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.tooltip-readmore {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}

/* Little triangle pointer at the bottom, pointing to the badge */
.trustindex-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 24px;
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* Show tooltip on hover (desktop) */
.trustindex-tooltip-container:hover .trustindex-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Also show it on keyboard focus / tap for accessibility & touch devices */
.trustindex-tooltip-container:focus-within .trustindex-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .trustindex-badge-wrap {
        justify-content: center;
    }

    .trustindex-tooltip {
        width: 260px;
        right: 50%;
        transform: translate(50%, 8px);
    }

    .trustindex-tooltip-container:hover .trustindex-tooltip,
    .trustindex-tooltip-container:focus-within .trustindex-tooltip {
        transform: translate(50%, 0);
    }

    .trustindex-tooltip::after {
        right: 50%;
        transform: translateX(50%);
    }
}


@media (max-width: 900px) {
    .testimonials-layout {
        flex-direction: column;
    }

    .rating-summary {
        flex: 1 1 auto;
        width: 100%;
    }

    .reviews-carousel {
        width: 100%;
    }

    .review-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 26px;
    }

    .review-card {
        flex: 0 0 100%;
    }

    .trustindex-badge-wrap {
        text-align: center;
    }
}


/* ================= KNOW YOUR CLINIC ================= */
.know-clinic-section {
    position: relative;
    margin-top: 20px;
    padding: 20px 0;
    background: url('../img/homeback1.png');
    text-align: center;
    overflow: hidden;
    font-family: 'Raleway', 'Segoe UI', Arial, sans-serif;
}

.know-clinic-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.know-clinic-section .section-title {
    font-size: 36px;
    font-weight: 800;
    color: #ec1e6b;
    margin: 0 0 24px;
    text-align: center;
}

.know-clinic-section .section-text {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .know-clinic-section {
        padding: 50px 0;
    }

    .know-clinic-section .section-title {
        font-size: 26px;
    }

    .know-clinic-section .section-text {
        font-size: 16px;
    }
}


/* all head section */
.allheadback {
    background-image: url('../img/allheadback.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    width: 100%;
    margin-bottom: 20px;
}

.allheadback h1 {
    color: red;
    text-align: center;
    padding: 120px 200px;
    font-size: 40px;
    font-weight: 600;
}

@media(max-width: 480px) {
    .allheadback h1 {
        text-align: center;
        font-weight: 500;
        font-size: 30px;
        padding: 130px 0;
    }
}

/* about page css */

/* About Nirmiti Clinic Section */
.about-nirmiticlinic {
    padding: 30px 0;
    background: url('../img/homeback1.png');
}

.about-nirmiticlinic .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-nirmiticlinic .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Image column */
.about-image-col {
    flex: 1 1 300px;
    max-width: 380px;
}

.about-img-wrap {
    margin: 0 0 20px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-img-wrap img {
    width: 100%;
    height: 260px;
    display: block;
    object-fit: cover;
    border: 1px solid black;
    border-radius: 8px;
}

.book-appointment-btn-about {
    display: block;
    text-align: center;
    background-color: #656565;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.book-appointment-btn-about:hover,
.book-appointment-btn-about:focus {
    background-color: #2f2f2f;
    color: #fff;
}

/* Content column */
.about-content-col {
    flex: 2 1 400px;
}

.about-title {
    color: #FA036B;
    font-size: 33px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content-col p {
    color: black;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: justify;
}

/* Tablet */
@media (max-width: 992px) {
    .about-title {
        font-size: 2rem;
    }

    .about-image-col {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .about-content-col {
        flex: 1 1 100%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .about-nirmiticlinic {
        padding: 40px 0;
    }

    .about-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .about-content-col p {
        font-size: 1rem;
        text-align: left;
    }

    .book-appointment-btn {
        font-size: 16px;
        padding: 14px 16px;
    }
}



/* Doctors Section */
.about-page-doctor {
    padding: 20px 0;
    background: url('../img/homeback2.png');
}

.about-page-doctor .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-page-doctor .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.about-page-doctor .col-md-6 {
    flex: 1 1 65%;
    max-width: 550px;
}

/* Card */
.doctor-card {
    background: transparent;
    border: 2px solid black;
    border-radius: 12px;
    padding: 10px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.doctor-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Image */
.doctor-img-wrap {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.doctor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card body */
.doctor-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.doctor-name {
    color: black;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.doctor-desc {
    color: black;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 480px;
}

.doctor-btn {
    display: inline-block;
    background-color: #b3b0b0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.doctor-btn:hover,
.doctor-btn:focus {
    background-color: #2f2f2f;
    color: #fff;
}

/* Tablet */
@media (max-width: 992px) {
    .about-page-doctor .col-md-6 {
        flex: 1 1 100%;
        max-width: 500px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .about-page-doctor {
        padding: 40px 0;
    }

    .doctor-card {
        padding: 30px 20px;
    }

    .doctor-img-wrap {
        width: 200px;
        height: 200px;
    }

    .doctor-name {
        font-size: 1.4rem;
    }

    .doctor-desc {
        font-size: 0.95rem;
    }
}

/* Team Section */
.about-dr-team {
    padding: 60px 0;

}

.about-dr-team .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-img-wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
}

.team-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile */
@media (max-width: 576px) {
    .about-dr-team {
        padding: 40px 0;
    }
}

/* Doctor Profile Section */
.doctor-profile {
    padding: 35px 0;
    background: url('../img/homeback1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fdf2f8;
    /* fallback while bg loads */
    margin-bottom: 20px;
}

.doctor-profile .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.doctor-profile-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Photo column */
.doctor-photo-col {
    flex: 1 1 300px;
    max-width: 470px;
}

.doctor-photo-wrap {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.doctor-photo-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Info column */
.doctor-info-col {
    flex: 1 1 350px;
    max-width: 500px;
}

.doctor-profile-name {
    color: #e6007e;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 25px 0;
}

.doctor-profile-subhead {
    color: #e6007e;
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0 10px 0;
}

.doctor-info-col .doctor-profile-subhead:first-of-type {
    margin-top: 0;
}

.doctor-qualification-text {
    color: black;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.doctor-details-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: black;
    font-size: 15px;
    line-height: 1.5;
}

.doctor-details-list strong {
    color: black;
}

/* Membership column */
.doctor-membership-col {
    flex: 1 1 350px;
    max-width: 500px;
}

.doctor-membership-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: black;
    font-size: 15px;
    line-height: 1.5;
}

.doctor-membership-list li {
    margin-bottom: 12px;
}

/* Tablet */
@media (max-width: 992px) {
    .doctor-profile-name {
        font-size: 2rem;
    }

    .doctor-photo-col {
        flex: 1 1 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .doctor-info-col,
    .doctor-membership-col {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .doctor-profile-name {
        font-size: 2rem;
    }

    .doctor-profile-row {
        display: flex;
        flex-direction: column;
    }

    .doctor-photo-col {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    .doctor-info-col {
        order: 2;
        max-width: 100%;
    }

    .doctor-membership-col {
        order: 3;
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .doctor-profile {
        padding: 40px 0;
    }

    .doctor-profile-row {
        display: flex;
        flex-direction: column;
    }

    .doctor-photo-col {
        order: 1;
    }

    .doctor-info-col {
        order: 2;
    }

    .doctor-membership-col {
        order: 3;
    }

    .doctor-profile-name {
        font-size: 1.6rem;
        text-align: center;
    }

    .doctor-profile-subhead {
        font-size: 1.1rem;
    }

    .doctor-qualification-text,
    .doctor-details-list,
    .doctor-membership-list {
        font-size: 0.95rem;
    }
}



/* gallery */

/* Gallery Section */
.clinic-gallery {
    padding: 20px 0;
    background: url(../img/homeback2.png);
}

.clinic-gallery .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 50px;
    gap: 20px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}



/* Tablet */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-item img {
        height: 280px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .clinic-gallery {
        padding: 40px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-item img {
        height: 240px;
    }
}


/* career page css */

/* Career Section */
.career-section {
    padding: 10px 0;
    margin-bottom: 25px;
    background: url('../img/homeback1.png');
}

.career-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.career-title {
    color: #e6007e;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.career-subhead {
    color: #e6007e;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.career-text {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 1600px;
}

.career-divider {
    border: none;
    border-top: 1px solid #d9a8c2;
    margin: 20px 0;
}

.career-list {
    list-style: disc;
    padding-left: 22px;
    margin: 0;
}

.career-list li {
    color: #333;
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* Tablet */
@media (max-width: 768px) {
    .career-title {
        font-size: 1.8rem;
    }

    .career-subhead {
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .career-section {
        padding: 40px 0;
    }

    .career-title {
        font-size: 1.6rem;
    }

    .career-subhead {
        font-size: 1.1rem;
    }

    .career-text,
    .career-list li {
        font-size: 0.95rem;
    }
}


/* contact page css */

/* Contact Info Section */
.contact-info-section {
    background: url('../img/homeback2.png');
}

.contact-info-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

.contact-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info-col {
    flex: 1 1 350px;
}

.contact-heading {
    color: #e6002d;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Contact items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.contact-icon {
    flex-shrink: 0;
    color: #1a1a1a;
    margin-top: 3px;
}

.contact-item p {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    margin: 0;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Clinic timings */
.clinic-timings-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.clinic-timings-list li {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Map */
.contact-map-wrap {
    width: 100%;
    line-height: 0;
}

.contact-map-wrap iframe {
    width: 100%;
    height: 450px;
    display: block;
}

/* Tablet */
@media (max-width: 768px) {
    .contact-info-row {
        gap: 35px;
    }

    .contact-heading {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .contact-info-section .container {
        padding: 40px 20px;
    }

    .contact-heading {
        font-size: 1.3rem;
    }

    .contact-item p,
    .clinic-timings-list li {
        font-size: 0.95rem;
    }

    .contact-map-wrap iframe {
        height: 300px;
    }
}


/* treatment  pages css */

/* Banner */
.iui-banner {
    position: relative;
    background-image: url("../img/IUIbanner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    display: flex;
    align-items: center;
}

.iui-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
}

.iui-banner .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-title {
    color: #ff3b3b;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* Intro Section */
.iui-intro-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 60%);
    background: url('../img/homeback1.png');
}

.iui-intro-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.iui-intro-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.iui-intro-img-col {
    flex: 1 1 350px;
    max-width: 450px;
}

.iui-intro-img-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.iui-intro-text-col {
    flex: 1 1 500px;
}

.iui-intro-title {
    color: #e6007e;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.iui-intro-text {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Sidebar Toggle Section */
.iui-sidebar-section {
    padding: 50px 80px;
    background-color: #f0f3f7;
    background: url('../img/homeback2.png');
}

.iui-sidebar-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.iui-sidebar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.iui-sidebar-buttons {
    flex: 0 1 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iui-sidebar-btn {
    display: block;
    width: 100%;
    background-color: #e05a4e;
    background-image: none;
    color: #fff;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.iui-sidebar-btn:hover {
    background-color: #c8493f;
}



.iui-sidebar-content-col {
    flex: 1 1 600px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 200px;
}

.iui-panel {
    display: none;
}

.iui-panel-lead {
    color: #e05a4e;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.iui-panel-subhead {
    color: #e05a4e;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.iui-panel.active {
    display: block;
}

.iui-panel-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.iui-bullet-list {
    flex: 1 1 250px;
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.iui-bullet-list li {
    color: #333;
    font-size: 15px;
    line-height: 1.5;

}

.iui-panel-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* Tablet */
@media (max-width: 992px) {
    .iui-sidebar-row {
        flex-direction: column;
    }

    .iui-sidebar-buttons {
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .iui-sidebar-btn {
        flex: 1 1 45%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .banner-title {
        font-size: 1.6rem;
    }

    .iui-intro-title {
        font-size: 1.4rem;
    }

    .iui-sidebar-btn {
        flex: 1 1 100%;
    }

    .iui-panel-cols {
        flex-direction: column;
        gap: 20px;
    }
}

/* Intro Treatment Section (reused from earlier) */
.treatment-detail-section {
    padding: 10px 0;
    background: url('../img/homeback1.png');
}

.treatment-detail-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.treatment-main-title {
    color: #e6007e;
    font-size: 2rem;
    font-weight: 700;

}

.treatment-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.treatment-text-col {
    flex: 1 1 500px;
}

.treatment-img-col {
    flex: 0 1 350px;
}

.treatment-img-col img {
    width: 300px;
    height: 220px;
    display: block;
    border: 2px solid #0b0a0a;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.treatment-subhead {
    color: #e6007e;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.treatment-text {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.treatment-divider {
    border: none;
    border-top: 1px solid #d9a8c2;
    margin: 0 0 40px 0;
}

/* Sidebar Section */
.icsi-sidebar-section {
    padding: 40px 0;
    background: url('../img/homeback2.png');
}


.icsi-sidebar-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.icsi-sidebar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: stretch;
}

.icsi-sidebar-buttons {
    flex: 0 1 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.icsi-sidebar-btn {
    display: block;
    width: 100%;
    background-color: #e05a4e;
    background-image: none;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 20px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.icsi-sidebar-btn:hover {
    background-color: #c8493f;
}


.icsi-sidebar-list-col {
    flex: 1 1 400px;
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.icsi-panel {
    display: none;
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.icsi-panel.active {
    display: block;
}

.icsi-panel li {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.9;
}

/* Tablet */
@media (max-width: 768px) {
    .icsi-sidebar-row {
        flex-direction: column;
    }

    .icsi-sidebar-buttons {
        flex-direction: row;
        flex: 1 1 auto;
    }

    .icsi-sidebar-btn {
        flex: 1;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .icsi-sidebar-buttons {
        flex-direction: column;
    }
}

/* Content Blocks (protocol sections) */
.icsi-content-block {
    padding: 50px 0;
}

.icsi-content-block .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.icsi-content-block.bg-pink {
    background: url('../img/homeback1.png');
}

.icsi-content-block.bg-purple {
    background: url('../img/homeback1.png');
}

.icsi-block-title {
    color: #e6007e;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.icsi-block-subtext {
    color: #e6007e;
    font-size: 1rem;
    margin: 0 0 10px 0;
}

.icsi-block-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 14px 0;
}

.icsi-content-block .icsi-bullet-list {
    margin-bottom: 14px;
}

.icsi-content-block .icsi-bullet-list li {
    color: #333;
}

/* Tablet */
@media (max-width: 768px) {
    .treatment-main-title {
        font-size: 1.7rem;
    }

    .treatment-subhead {
        font-size: 1.3rem;
    }

    .treatment-img-col {
        flex: 0 1 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .icsi-sidebar-row {
        flex-direction: column;
    }

    .icsi-sidebar-buttons {
        flex-direction: row;
        flex: 1 1 auto;
    }

    .icsi-sidebar-btn {
        flex: 1;
    }
}

/* Mobile */
@media (max-width: 576px) {

    .treatment-detail-section,
    .icsi-sidebar-section,
    .icsi-content-block {
        padding: 30px 0;
    }

    .treatment-main-title {
        font-size: 1.5rem;
    }

    .icsi-sidebar-buttons {
        flex-direction: column;
    }

    .icsi-block-title {
        font-size: 1.25rem;
    }

    .icsi-block-text,
    .icsi-bullet-list li {
        font-size: 0.9rem;
    }
}


/* gamate treatment */

/* Intro Section */
.gamete-intro-section {
    padding: 20px 0;
    background: url('../img/homeback1.png');
}

.gamete-intro-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gamete-intro-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.gamete-intro-text-col {
    flex: 2 1 500px;
}

.gamete-intro-img-col {
    flex: 1 1 300px;
    max-width: 400px;
    align-self: flex-start;
}

.gamete-intro-img-col img {
    width: 100%;
    height: 200px;
    display: block;
    border: 3px solid black;
    border-radius: 6px;
}

.gamete-intro-title {
    color: #e6007e;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.gamete-intro-text {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.gamete-divider {
    border: none;
    border-top: 1px solid #d9a8c2;
    margin: 30px 0;
}

/* Sidebar Toggle Section */
.gamete-sidebar-section {
    padding: 50px 0;
    background: url('../img/homeback2.png');
}

.gamete-sidebar-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.gamete-sidebar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.gamete-sidebar-buttons {
    flex: 0 1 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gamete-sidebar-btn {
    display: block;
    width: 100%;
    background-color: #e05a4e;
    background-image: none;
    color: #fff;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gamete-sidebar-btn:hover {
    background-color: #c8493f;
}



.gamete-sidebar-content-col {
    flex: 1 1 600px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 150px;
}

.gamete-panel {
    display: none;
}

.gamete-panel.active {
    display: block;
}

.gamete-bullet-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 15px 0;
}

.gamete-bullet-list li {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.gamete-panel-text {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* Sperm Donation Section */
.sperm-donation-section {
    padding: 60px 0;
    background: url('../img/homeback1.png');
}

.sperm-donation-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.sperm-title {
    color: #e6007e;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.sperm-subhead {
    color: #e6007e;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Tablet */
@media (max-width: 992px) {
    .gamete-sidebar-row {
        flex-direction: column;
    }

    .gamete-sidebar-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .gamete-sidebar-btn {
        flex: 1 1 45%;
    }

    .gamete-intro-img-col {
        flex: 1 1 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .banner-title {
        font-size: 1.6rem;
    }

    .gamete-intro-title,
    .sperm-title {
        font-size: 1.4rem;
    }

    .gamete-sidebar-btn {
        flex: 1 1 100%;
    }
}



/* fertility treatment */

/* Intro Section */
.fertility-intro-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 60%);
    background: url('../img/homeback1.png');
}

.fertility-intro-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fertility-intro-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.fertility-intro-text-col {
    flex: 2 1 500px;
}

.fertility-intro-img-col {
    flex: 1 1 300px;
    max-width: 380px;
    align-self: flex-start;
}

.fertility-intro-img-col img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid black;
    border-radius: 6px;
}

.fertility-intro-title {
    color: #e6007e;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.fertility-intro-text {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

/* Sidebar Toggle Section */
.fertility-sidebar-section {
    padding: 50px 0;
    background-color: #eef1f5;
    background: url('../img/homeback2.png');
}

.fertility-sidebar-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.fertility-sidebar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.fertility-sidebar-buttons {
    flex: 0 1 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fertility-sidebar-btn {
    display: block;
    width: 100%;
    background-color: #e05a4e;
    background-image: none;
    color: #fff;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fertility-sidebar-btn:hover {
    background-color: #c8493f;
}


.fertility-sidebar-content-col {
    flex: 1 1 600px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 150px;
}

.fertility-panel {
    display: none;
}

.fertility-panel.active {
    display: block;
}

.fertility-bullet-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.fertility-bullet-list li {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}


.fertility-panel-subhead {
    color: #e6007e;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.fertility-panel-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Office Hysteroscopy & Complications Section */
.office-hysteroscopy-section {
    padding: 60px 0;
    background: url('../img/homeback1.png');
}

.office-hysteroscopy-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.office-title {
    color: #e6007e;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.office-text {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.office-lead {
    color: #e6007e;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.fertility-divider {
    border: none;
    border-top: 1px solid #d9a8c2;
    margin: 30px 0;
}

/* Tablet */
@media (max-width: 992px) {
    .fertility-sidebar-row {
        flex-direction: column;
    }

    .fertility-sidebar-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fertility-sidebar-btn {
        flex: 1 1 45%;
    }

    .fertility-intro-img-col {
        flex: 1 1 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 576px) {

    .fertility-intro-title,
    .office-title {
        font-size: 1.4rem;
    }

    .fertility-sidebar-btn {
        flex: 1 1 100%;
    }
}


/* blog page css */

.blog-section {
    background-image: url('../img/homeback2.png');
    padding: 50px 0 70px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3 cards in each row */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.blog-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    transform: translateY(-3px);
}

.blog-card__img {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #cfe3f5, #f1d9d9);
    /* shows if image is missing */
}

.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__body {
    padding: 5px 12px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: #e0161b;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover {
    text-decoration: underline;
}

.blog-card__meta {
    font-size: 13px;
    color: #777;
    margin: 0px 0 5px;
}

/* Clickable Read More button */
.read-more {
    margin-top: auto;
    /* pushes button to the bottom so all cards align */
    align-self: flex-start;
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1c;
    text-decoration: none;
    cursor: pointer;
}

.read-more:hover {
    color: #e0161b;
}

.read-more span {
    display: inline-block;
    transition: transform .2s;
}

.read-more:hover span {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}


.post-section {
    background: #F0F5FA;
    padding: 60px 300px;

}

.post-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-card {
    background: #fff;
    padding: 30px 28px 34px;
    box-shadow: 0 0 0 1px #f0f0f0;
}

.post-title {

    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: #1e293b;
    margin-bottom: 8px;
}

.post-meta {
    font-size: 12px;
    color: #1e73be;
    margin-bottom: 10px;
}

.post-meta a {
    color: inherit;
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

/* Light blue content box */
.post-content {
    background-image: url('../img/homeback2.png');
    padding: 8px 12px 18px;
}

.post-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #e0161b;
    margin: 26px 0 16px;
    line-height: 1.3;
}

.post-content h2:first-child {
    margin-top: 10px;
}

.post-content p {
    font-size: 14.5px;
    line-height: 1.85;
    color: #222;
    text-align: justify;
}

.post-content p a {
    color: #1e73be;
    text-decoration: underline;
}

.post-content p a:hover {
    color: #e0161b;
}

/* Previous / Next */
.post-nav-section {
    background: #eff4f8;
    /* light blue-grey page background */
    padding: 20px 0 0px;
}

.post-container {
    max-width: 887px;
    /* same width as the white post card */
    margin: 0 auto;
    padding: 0 0px;
}

/* Two equal halves with a divider line in the middle */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.post-nav::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    height: 38px;
    width: 1px;
    background: #d9e0e7;
}

.post-nav a {
    display: block;
    padding: 0 24px;
    text-decoration: none;
    color: #334155;

}

.post-nav__prev {
    text-align: left;
    padding-left: 0;
}

.post-nav__next {
    text-align: right;
    padding-right: 0;
}

.post-nav__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .6px;
}

.post-nav__arrow {
    flex-shrink: 0;
}

.post-nav__title {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.post-nav a:hover {
    color: rgb(123, 173, 216);
}

/* Mobile: stack, no divider */
@media (max-width: 600px) {
    .post-nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-nav::after {
        display: none;
    }

    .post-nav a {
        padding: 0;
    }

    .post-nav__next {
        text-align: left;
    }

    .post-nav__title {
        font-size: 16px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .post-section {
        padding: 30px 0 60px;
    }

    .post-title {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .post-card {
        padding: 20px 14px 24px;
    }

    .post-content p {
        text-align: left;
    }
}

/* Bullet list inside the 5th post */
.post-content ul {
    margin: 4px 0 0 22px;
    padding: 0;
}

.post-content li {
    font-size: 14.5px;
    line-height: 1.85;
    color: #222;
    text-align: justify;
    margin-bottom: 10px;
}

.post-content li::marker {
    color: black;
}



/* Numbered list inside the post */
.post-content ol {
    margin: 4px 0 0 22px;
    padding: 0;
}

.post-content ol li {
    font-size: 14.5px;
    line-height: 1.85;
    color: #222;
    text-align: justify;
    margin-bottom: 10px;
}

.post-content ol li::marker {
    color: black;
    font-weight: 700;
}

.post-content li strong {
    color: #1e293b;
}

/* Paragraph after a list */
.post-content ol+p,
.post-content ul+p {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .post-content ol li {
        text-align: left;
    }
}


/* vdo page css */

.vid-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 cards per row */
  gap: 28px;
}

.insta-card {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  overflow: hidden;
}

.insta-card iframe {
  display: block;
  width: 100%;
  height: 680px;   /* change this if the card looks cut off or has extra space */
  border: 0;
}

@media (max-width: 992px) {
  .vid-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .vid-grid { grid-template-columns: 1fr; }
  .insta-card iframe { height: 700px; }
}