/* Cardiology website visual system */
:root {
    --clinic-blue: #125f91;
    --clinic-blue-dark: #0b3d64;
    --clinic-blue-soft: #eaf7ff;
    --clinic-cyan: #3cb9c9;
    --clinic-pink: #d83a75;
    --clinic-ink: #17324a;
    --clinic-muted: #60758a;
    --clinic-bg: #f5fbff;
    --clinic-line: rgba(18, 95, 145, .13);
    --clinic-shadow: 0 18px 55px rgba(26, 84, 146, .12);
    --clinic-shadow-lg: 0 28px 80px rgba(26, 84, 146, .17);
}

body {
    color: var(--clinic-ink);
    background: var(--clinic-bg);
    overflow-x: hidden;
}

body p {
    color: var(--clinic-muted);
    line-height: 1.75;
}

body a {
    text-decoration: none;
}

.topbar {
    background: linear-gradient(90deg, var(--clinic-blue-dark), var(--clinic-blue));
    padding: 10px 0;
    font-size: 13px;
    letter-spacing: .1px;
}

.topbar,
.topbar a {
    color: #fff !important;
}

.topbar a:hover {
    color: #c9f7ff !important;
}

.site-navbar {
    background: rgba(255, 255, 255, .96) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(18, 95, 145, .08);
    padding: 10px 0;
}

.site-logo {
    width: 62px;
    height: 62px;
    border: 0;
    box-shadow: 0 10px 28px rgba(18, 95, 145, .15);
}

.brand-text {
    color: var(--clinic-blue-dark) !important;
    font-size: 16px;
    letter-spacing: -.2px;
}

.brand-text small {
    color: var(--clinic-pink) !important;
    margin-top: 4px;
}

.navbar .nav-link {
    color: var(--clinic-blue-dark) !important;
    font-size: 14px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--clinic-pink) !important;
}

.navbar .nav-link:after {
    background: var(--clinic-pink);
}

.dropdown-menu {
    border: 1px solid rgba(18, 95, 145, .14);
    border-top: 4px solid var(--clinic-cyan);
    box-shadow: 0 22px 55px rgba(18, 95, 145, .16);
}

.dropdown-item {
    color: var(--clinic-ink) !important;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--clinic-blue-soft);
    color: var(--clinic-blue) !important;
}

.btn-appointment,
.btn-custom,
.btn-send {
    background: linear-gradient(135deg, var(--clinic-pink), #ef5c91) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 28px rgba(216, 58, 117, .22);
}

.btn-appointment:hover,
.btn-custom:hover,
.btn-send:hover {
    background: linear-gradient(135deg, var(--clinic-blue), var(--clinic-blue-dark)) !important;
    transform: translateY(-2px);
}

/* Hero */
.hero-modern {
    min-height: 690px;
    display: flex;
    align-items: center;
    padding: 85px 0 110px;
    background:
        radial-gradient(circle at 10% 16%, rgba(60, 185, 201, .18), transparent 25%),
        radial-gradient(circle at 90% 12%, rgba(216, 58, 117, .10), transparent 23%),
        linear-gradient(135deg, #f9fdff 0%, #edf9ff 53%, #ffffff 100%);
    overflow: hidden;
    border-bottom: 0;
}

.hero-modern:after {
    content: '';
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -82px;
    height: 150px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-modern .container {
    z-index: 2;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-shape-one {
    width: 280px;
    height: 280px;
    right: -90px;
    top: 40px;
    border: 35px solid rgba(60, 185, 201, .10);
    animation: floatShape 7s ease-in-out infinite;
}

.hero-shape-two {
    width: 90px;
    height: 90px;
    left: 7%;
    bottom: 95px;
    background: rgba(216, 58, 117, .08);
    animation: floatShape 5s ease-in-out infinite reverse;
}

.hero-shape-three {
    width: 18px;
    height: 18px;
    left: 46%;
    top: 18%;
    background: var(--clinic-cyan);
    box-shadow: 0 0 0 12px rgba(60, 185, 201, .10);
    animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid rgba(18, 95, 145, .13);
    background: rgba(255, 255, 255, .85);
    color: var(--clinic-blue);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(18, 95, 145, .08);
    margin-bottom: 22px;
}

.hero-badge i {
    color: var(--clinic-cyan);
    font-size: 17px;
}

.hero-copy h1 {
    color: var(--clinic-blue-dark);
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 800;
    max-width: 690px;
    margin-bottom: 22px;
}

.hero-copy h1 span {
    color: var(--clinic-pink);
    position: relative;
    white-space: nowrap;
}

.hero-copy h1 span:after {
    content: '';
    position: absolute;
    height: 8px;
    left: 4px;
    right: 4px;
    bottom: 2px;
    background: rgba(60, 185, 201, .28);
    border-radius: 10px;
    z-index: -1;
}

.hero-lead {
    font-size: 17px;
    max-width: 650px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-height: 53px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 50px;
    font-weight: 700;
    padding: 13px 24px;
    transition: .3s ease;
}

.hero-primary-btn {
    background: linear-gradient(135deg, var(--clinic-blue), var(--clinic-blue-dark));
    color: #fff !important;
    box-shadow: 0 15px 32px rgba(18, 95, 145, .22);
}

.hero-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(18, 95, 145, .28);
}

.hero-outline-btn {
    border: 2px solid rgba(18, 95, 145, .22);
    color: var(--clinic-blue-dark) !important;
    background: rgba(255, 255, 255, .84);
}

.hero-outline-btn:hover {
    border-color: var(--clinic-pink);
    color: var(--clinic-pink) !important;
    transform: translateY(-3px);
}

.hero-trust-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-trust-row>div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-trust-row i {
    color: var(--clinic-cyan);
    font-size: 26px;
}

.hero-trust-row span {
    display: flex;
    flex-direction: column;
}

.hero-trust-row strong {
    color: var(--clinic-blue-dark);
    font-size: 13px;
}

.hero-trust-row small {
    color: var(--clinic-muted);
    font-size: 11px;
}

.hero-visual-wrap {
    position: relative;
    width: min(100%, 575px);
    min-height: 535px;
    margin-left: auto;
}

.hero-image-card {
    position: absolute;
    inset: 18px 28px 18px 55px;
    border-radius: 42% 58% 48% 52% / 54% 40% 60% 46%;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, .92);
    box-shadow: var(--clinic-shadow-lg);
    background: var(--clinic-blue-soft);
    animation: morphRadius 9s ease-in-out infinite;
}

.hero-image-card:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(11, 61, 100, .18));
}

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

.floating-care-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    padding: 14px 17px;
    min-width: 225px;
    border-radius: 18px;
    border: 1px solid rgba(18, 95, 145, .10);
    box-shadow: 0 18px 45px rgba(18, 95, 145, .16);
    animation: floatCard 4.2s ease-in-out infinite;
}

.floating-care-card-one {
    left: 0;
    top: 65px;
}

.floating-care-card-two {
    right: -8px;
    bottom: 56px;
    animation-delay: -1.8s;
}

.floating-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--clinic-blue-soft);
    color: var(--clinic-blue);
    font-size: 21px;
}

.floating-care-card-two .floating-icon {
    background: rgba(216, 58, 117, .10);
    color: var(--clinic-pink);
}

.floating-care-card strong {
    display: block;
    color: var(--clinic-blue-dark);
    font-size: 13px;
}

.floating-care-card small {
    display: block;
    color: var(--clinic-muted);
    font-size: 11px;
    margin-top: 2px;
}

.hero-tooth-mark {
    position: absolute;
    right: 28px;
    top: 15px;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--clinic-cyan), var(--clinic-blue));
    box-shadow: 0 18px 40px rgba(60, 185, 201, .28);
    font-size: 33px;
    transform: rotate(8deg);
}

.quick-info-section {
    z-index: 4;
    background: transparent;
    margin-top: -74px;
    padding-bottom: 38px;
}

.quick-info-card {
    height: 100%;
    display: flex;
    gap: 17px;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--clinic-line);
    box-shadow: var(--clinic-shadow);
    transition: .35s ease;
}

.quick-info-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--clinic-shadow-lg);
}

.quick-info-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--clinic-blue-soft), #fff);
    color: var(--clinic-blue);
    border: 1px solid rgba(18, 95, 145, .11);
    font-size: 23px;
}

.quick-info-card h5 {
    color: var(--clinic-blue-dark);
    font-weight: 800;
    margin: 2px 0 6px;
}

.quick-info-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

/* Shared homepage sections */
/* .home-page section:not(.hero-modern):not(.quick-info-section) {
    background: transparent;
} */

.section-heading span,
.section-subtitle {
    color: var(--clinic-pink) !important;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    color: var(--clinic-blue-dark);
    margin: 8px 0 12px;
}

.section-heading p {
    max-width: 700px;
    margin: 0 auto;
}

.home-about-section {
    background: #fff !important;
}

.home-about-section .row {
    gap: 10px 0;
}

.home-about-section .content-img {
    width: 100%;
    min-height: 460px;
    object-fit: cover;
    border: 0 !important;
    border-radius: 28px;
    box-shadow: var(--clinic-shadow-lg);
}

.home-about-section h4 {
    font-size: 15px;
    letter-spacing: 1.3px;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-feature-grid div {
    padding: 12px 14px;
    border-radius: 13px;
    background: var(--clinic-blue-soft);
    color: var(--clinic-blue-dark);
    font-weight: 700;
    font-size: 13px;
}

.about-feature-grid i {
    color: var(--clinic-cyan);
    margin-right: 7px;
}

.doctors-section {
    background: linear-gradient(180deg, #f7fcff, #fff) !important;
}

.doctor-card {
    padding: 18px 18px 24px;
    border: 1px solid var(--clinic-line) !important;
    border-top: 0 !important;
    border-radius: 26px !important;
    box-shadow: var(--clinic-shadow) !important;
    text-align: center;
}

.doctor-card:before {
    content: '';
    position: absolute;
    left: 25%;
    right: 25%;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clinic-cyan), var(--clinic-pink));
    border-radius: 0 0 8px 8px;
}

.doctor-img {
    height: 470px;
    border: 0 !important;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--clinic-blue-soft), #fff);
    box-shadow: none;
}

.doctor-card:nth-child(2) .doctor-img {
    object-position: top center;
}

.doctor-card h3 {
    color: var(--clinic-blue-dark);
    font-size: 23px;
    font-weight: 800;
}

.doctor-card p {
    max-width: 520px;
    margin: 0 auto;
}

.stats-section {
    background: linear-gradient(135deg, var(--clinic-blue-dark), var(--clinic-blue)) !important;
    overflow: hidden;
}

.stats-section:before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border: 45px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
    left: -140px;
    top: -160px;
}

.stats-section .col-6 {
    border-color: rgba(255, 255, 255, .22) !important;
}

.stats-section h2 {
    color: #fff !important;
    font-size: 40px;
}

.stats-section p {
    color: rgba(255, 255, 255, .82) !important;
}

.services-section {
    background: #fff !important;
}

.services-section-alt {
    background: var(--clinic-bg) !important;
}

.service-card {
    border: 1px solid var(--clinic-line) !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 42px rgba(18, 95, 145, .09) !important;
}

.service-card .card-img-top {
    height: 220px;
}

.service-card .card-body {
    padding: 22px;
}

.service-card .card-title {
    color: var(--clinic-blue-dark) !important;
    font-size: 18px;
}

.service-card .btn-custom {
    align-self: flex-start;
    padding: 9px 18px;
    font-size: 13px;
}

.service-card:hover {
    transform: translateY(-9px);
    border-color: rgba(60, 185, 201, .45) !important;
}

.appointment-section {
    background:
        radial-gradient(circle at 90% 20%, rgba(60, 185, 201, .20), transparent 26%),
        linear-gradient(135deg, #eef9ff, #fff) !important;
}

.appointment-section h3 {
    color: var(--clinic-blue-dark);
}

.appointment-section .contact-card {
    padding: 21px;
    border: 1px solid var(--clinic-line) !important;
    border-left: 4px solid var(--clinic-cyan) !important;
    box-shadow: 0 12px 32px rgba(18, 95, 145, .08) !important;
}

.appointment-section form {
    border: 1px solid var(--clinic-line) !important;
    box-shadow: var(--clinic-shadow-lg) !important;
    border-radius: 26px !important;
}

.appointment-section .form-control {
    border: 1px solid rgba(18, 95, 145, .18) !important;
    background: #f9fcff !important;
}

.faq-section {
    background: #fff !important;
}

.faq-section .accordion-item {
    border: 1px solid var(--clinic-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(18, 95, 145, .07);
}

.faq-section .accordion-button {
    background: #fff !important;
    color: var(--clinic-blue-dark) !important;
    border-radius: 16px !important;
    padding: 18px 20px;
}

.faq-section .accordion-button::after {
    filter: none;
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--clinic-blue-soft) !important;
    color: var(--clinic-blue) !important;
}

.testimonial-section {
    background: var(--clinic-bg) !important;
    padding-bottom: 35px;
}

.testimonial-section .swiper-slide {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: inherit !important;
}

.testimonial-section .testimonial-card {
    background: #fff !important;
    color: var(--clinic-ink) !important;
    border: 1px solid var(--clinic-line) !important;
    box-shadow: var(--clinic-shadow) !important;
    min-height: 305px;
}

.testimonial-section .testimonial-card p,
.testimonial-section .testimonial-card h5,
.testimonial-section .testimonial-card span {
    color: inherit !important;
}

.testimonial-section .testimonial-card p {
    color: var(--clinic-muted) !important;
}

.testimonial-section .testimonial-card h5 {
    color: var(--clinic-blue-dark) !important;
}

.testimonial-section .testimonial-card span,
.testimonial-section .rating {
    color: var(--clinic-pink) !important;
}

/* Inner pages */
.inner-page .site-main {
    padding: 20px 0 45px;
}

.page-container {
    background: #fff;
    border: 1px solid var(--clinic-line);
    border-radius: 28px;
    box-shadow: var(--clinic-shadow);
}

.page-container h1 {
    color: var(--clinic-blue-dark) !important;
    letter-spacing: -1px;
}

.page-container h3 {
    color: var(--clinic-pink) !important;
}

.page-container img {
    border: 0 !important;
    box-shadow: 0 15px 38px rgba(18, 95, 145, .13);
}

.gallery-img {
    border: 0;
    box-shadow: var(--clinic-shadow);
}

.site-footer {
    background:
        radial-gradient(circle at 15% 0%, rgba(60, 185, 201, .18), transparent 25%),
        linear-gradient(135deg, #082f50, #125f91);
    border-top: 0;
}

.site-footer:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--clinic-cyan), var(--clinic-pink));
}

.footer-logo {
    border: 3px solid rgba(255, 255, 255, .9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.footer-links a:hover,
.site-footer a:hover {
    color: #a9f3ff !important;
}

.social-icon {
    background: rgba(255, 255, 255, .12) !important;
    border-color: rgba(255, 255, 255, .22) !important;
}

.floating-whatsapp {
    background: #25d366 !important;
    border-color: #25d366 !important;
}

.scroll-top {
    background: var(--clinic-pink) !important;
    border-color: var(--clinic-pink) !important;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-18px) rotate(8deg);
    }
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: .75;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes morphRadius {

    0%,
    100% {
        border-radius: 42% 58% 48% 52% / 54% 40% 60% 46%;
    }

    50% {
        border-radius: 58% 42% 56% 44% / 43% 57% 43% 57%;
    }
}

@media (max-width: 1199px) {
    .navbar-collapse {
        margin-top: 12px;
        padding: 16px;
        border-radius: 18px;
        background: #fff;
        border: 1px solid var(--clinic-line);
        box-shadow: var(--clinic-shadow);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .navbar .nav-link {
        padding: 11px 10px !important;
    }

    .mega-menu-wide {
        columns: 1;
    }
}

@media (max-width: 991px) {
    .hero-modern {
        padding: 70px 0 125px;
        min-height: auto;
        text-align: center;
    }

    .hero-copy h1,
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-trust-row {
        justify-content: center;
    }

    .hero-visual-wrap {
        margin: 25px auto 0;
        min-height: 520px;
    }

    .quick-info-section {
        margin-top: -72px;
    }

    .home-about-section .content-img {
        min-height: 380px;
        margin-bottom: 28px;
    }

    .doctor-img {
        height: 410px;
    }

    .stats-section .col-6:nth-child(2) {
        border-right: 0 !important;
    }
}

@media (max-width: 767px) {
    .site-navbar {
        padding: 7px 0;
    }

    .site-logo {
        width: 50px;
        height: 50px;
    }

    .brand-text {
        font-size: 12px;
        max-width: 190px;
    }

    .brand-text small {
        font-size: 10px;
    }

    .navbar-toggler {
        padding: 6px 9px;
    }

    .hero-modern {
        padding: 52px 0 105px;
    }

    .hero-copy h1 {
        font-size: 38px;
        letter-spacing: -1.3px;
    }

    .hero-copy h1 span {
        white-space: normal;
    }

    .hero-lead {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust-row {
        gap: 14px;
    }

    .hero-trust-row>div {
        width: calc(50% - 8px);
        text-align: left;
    }

    .hero-visual-wrap {
        min-height: 410px;
        width: 100%;
    }

    .hero-image-card {
        inset: 20px 18px 20px 35px;
        border-width: 7px;
    }

    .floating-care-card {
        min-width: 190px;
        padding: 11px 13px;
    }

    .floating-care-card-one {
        left: 0;
        top: 45px;
    }

    .floating-care-card-two {
        right: 0;
        bottom: 25px;
    }

    .hero-tooth-mark {
        width: 58px;
        height: 58px;
        font-size: 25px;
        right: 10px;
    }

    .quick-info-section {
        margin-top: -50px;
        padding-bottom: 15px;
    }

    .quick-info-card {
        padding: 19px;
    }

    .home-about-section .content-img {
        min-height: 300px;
    }

    .about-feature-grid {
        grid-template-columns: 1fr;
    }

    .doctor-img {
        height: 340px;
    }

    .stats-section h2 {
        font-size: 32px;
    }

    .services-section .row {
        --bs-gutter-y: 1.25rem;
    }

    .service-card .card-img-top {
        height: 205px;
    }

    .appointment-section .row .col-6 {
        width: 100%;
    }

    .py-5 {
        padding-top: 3.25rem !important;
        padding-bottom: 3.25rem !important;
    }
}

@media (max-width: 420px) {
    .brand-text {
        max-width: 165px;
    }

    .hero-copy h1 {
        font-size: 33px;
    }

    .hero-badge {
        font-size: 11px;
    }

    .hero-trust-row>div {
        width: 100%;
        justify-content: center;
        text-align: left;
    }

    .hero-visual-wrap {
        min-height: 360px;
    }

    .floating-care-card {
        min-width: 170px;
    }

    .floating-care-card strong {
        font-size: 11px;
    }

    .floating-care-card small {
        font-size: 9px;
    }

    .floating-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* Defensive mobile gutter fix for narrow screens */
@media (max-width: 767px) {

    .home-page .hero-modern .row,
    .home-page .appointment-section>.container>.row {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 420px) {
    .hero-trust-row {
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 25px;
    }

    .hero-trust-row>div {
        width: 33.333%;
        flex-direction: column;
        justify-content: flex-start;
        gap: 3px;
        text-align: center;
    }

    .hero-trust-row i {
        font-size: 21px;
    }

    .hero-trust-row strong {
        font-size: 10px;
        line-height: 1.25;
    }

    .hero-trust-row small {
        display: none;
    }

    .hero-visual-wrap {
        margin-top: 8px;
    }
}


/* Cardiology content additions — follows the original Core theme */
.single-doctor-wrap {
    max-width: 760px;
    margin-inline: auto;
}

.single-doctor-wrap .doctor-img {
    height: 520px;
    object-position: center 34%;
}

.service-card .card-body {
    min-height: 225px;
}

.service-card .card-text {
    min-height: 48px;
}

.service-card .btn-custom {
    align-self: flex-start;
}

.page-container .service-detail-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.page-container .service-side-card {
    border-left: 6px solid var(--clinic-pink) !important;
}

.page-container .service-side-card p {
    margin-bottom: .35rem;
}

.inner-hero-strip {
    background: linear-gradient(135deg, var(--clinic-blue-dark), var(--clinic-blue));
    padding: 54px 0;
    overflow: hidden;
}

.inner-hero-strip:before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border: 38px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
    right: -90px;
    top: -125px;
}

.inner-hero-strip h1,
.inner-hero-strip p,
.inner-hero-strip span {
    color: #fff !important;
}

.inner-hero-strip .breadcrumb a {
    color: rgba(255, 255, 255, .82) !important;
}

.services-page-grid .service-card .card-img-top {
    height: 235px;
}

.gallery-img.gallery-tall {
    height: 330px;
}

.camp-feature-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    border: 3px solid var(--clinic-blue);
    box-shadow: var(--clinic-shadow-lg);
}

.hospital-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid var(--clinic-blue);
}

.appointment-form-note {
    font-size: 13px;
    margin-top: 12px;
}

.footer-logo {
    background: #fff;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .single-doctor-wrap .doctor-img {
        height: 390px;
    }

    .page-container .service-detail-image {
        height: 260px;
    }

    .camp-feature-img {
        height: 300px;
    }

    .services-page-grid .service-card .card-img-top {
        height: 220px;
    }
}

/* ===== Full-cover hospital hero refresh ===== */
.hero-modern.hero-cover {
    position: relative;
    min-height: 720px;
    padding: 0;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background-image: url('img/hospitalimg.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-modern.hero-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 30, 51, .92) 0%, rgba(8, 43, 70, .82) 34%, rgba(9, 50, 80, .42) 58%, rgba(9, 36, 59, .14) 100%),
        linear-gradient(0deg, rgba(6, 31, 50, .34), rgba(6, 31, 50, .02) 52%);
}

.hero-modern.hero-cover::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 190px;
    background: linear-gradient(180deg, transparent, rgba(5, 29, 48, .28));
    border-radius: 0;
}

.hero-cover-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 73% 19%, rgba(60, 185, 201, .14), transparent 23%);
    pointer-events: none;
}

.hero-cover-container {
    width: 100%;
    z-index: 2;
}

.min-vh-hero {
    min-height: 720px;
    padding: 78px 0 135px;
}

.hero-cover-copy {
    max-width: 810px;
    padding: 34px 0 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .14);
}

.hero-cover .hero-cover-badge {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

.hero-cover .hero-cover-badge i {
    color: #82eff2;
}

.hero-cover .hero-copy h1 {
    color: #fff;
    max-width: 790px;
    font-size: clamp(48px, 5.3vw, 74px);
    line-height: 1.03;
    letter-spacing: -2.6px;
    text-shadow: 0 7px 30px rgba(0, 0, 0, .28);
}

.hero-cover .hero-copy h1 span {
    color: #ff7baa;
    white-space: normal;
}

.hero-cover .hero-copy h1 span::after {
    background: rgba(111, 236, 241, .28);
    z-index: -1;
}

.hero-cover .hero-lead {
    color: rgba(255, 255, 255, .9);
    max-width: 720px;
    font-size: 17px;
    line-height: 1.8;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .2);
}

.hero-cover .hero-primary-btn {
    background: linear-gradient(135deg, var(--clinic-pink), #f46d9e);
    box-shadow: 0 16px 34px rgba(216, 58, 117, .34);
}

.hero-cover .hero-primary-btn:hover {
    box-shadow: 0 20px 42px rgba(216, 58, 117, .42);
}

.hero-cover .hero-outline-btn {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
}

.hero-cover .hero-outline-btn:hover {
    color: #fff !important;
    border-color: #fff;
    background: rgba(255, 255, 255, .2);
}

.hero-cover-trust {
    display: inline-flex;
    padding: 14px 18px;
    margin-top: 32px;
    gap: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(5, 36, 59, .34);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .12);
}

.hero-cover .hero-trust-row i {
    color: #7fe3ea;
}

.hero-cover .hero-trust-row strong {
    color: #fff;
}

.hero-cover .hero-trust-row small {
    color: rgba(255, 255, 255, .68);
}

.hero-hospital-chip {
    position: absolute;
    right: 0;
    bottom: 112px;
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 360px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    color: #fff;
    background: rgba(6, 33, 53, .62);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

.hero-hospital-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--clinic-cyan), var(--clinic-blue));
    font-size: 22px;
}

.hero-hospital-chip strong,
.hero-hospital-chip small {
    display: block;
    color: #fff;
}

.hero-hospital-chip strong {
    font-size: 14px;
    line-height: 1.35;
}

.hero-hospital-chip small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.hero-cover-accent {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}

.hero-cover-accent-one {
    width: 260px;
    height: 260px;
    right: -120px;
    top: 65px;
}

.hero-cover-accent-two {
    width: 85px;
    height: 85px;
    right: 12%;
    top: 19%;
    border-width: 16px;
    border-color: rgba(60, 185, 201, .15);
}

/* Slightly richer page polish while preserving the original content/layout */
.home-page .service-card,
.home-page .doctor-card,
.home-page .quick-info-card {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.home-page .service-card:hover,
.home-page .doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(18, 95, 145, .18);
    border-color: rgba(60, 185, 201, .36);
}

.home-page .section-heading span {
    letter-spacing: 1.8px;
}

.home-page .content-img,
.home-page .doctor-img {
    box-shadow: 0 22px 55px rgba(19, 70, 105, .16) !important;
}

@media (max-width: 1199px) {
    .hero-hospital-chip {
        right: 16px;
    }
}

@media (max-width: 991px) {
    .hero-modern.hero-cover {
        min-height: 690px;
        text-align: left;
        background-position: 62% center;
    }

    .min-vh-hero {
        min-height: 690px;
        padding: 76px 0 145px;
    }

    .hero-modern.hero-cover::before {
        background: linear-gradient(90deg, rgba(5, 30, 51, .94) 0%, rgba(7, 40, 66, .82) 52%, rgba(7, 40, 66, .36) 100%);
    }

    .hero-cover .hero-copy h1,
    .hero-cover .hero-lead {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-cover .hero-actions,
    .hero-cover .hero-trust-row {
        justify-content: flex-start;
    }

    .hero-hospital-chip {
        right: 24px;
        bottom: 100px;
    }
}

@media (max-width: 767px) {
    .hero-modern.hero-cover {
        min-height: 700px;
        background-position: 64% center;
    }

    .hero-modern.hero-cover::before {
        background:
            linear-gradient(180deg, rgba(5, 28, 47, .78) 0%, rgba(5, 28, 47, .66) 38%, rgba(5, 28, 47, .82) 100%),
            linear-gradient(90deg, rgba(5, 28, 47, .72), rgba(5, 28, 47, .18));
    }

    .min-vh-hero {
        min-height: 700px;
        padding: 58px 0 180px;
        align-items: flex-start !important;
    }

    .hero-cover-copy {
        padding-top: 18px;
    }

    .hero-cover .hero-copy h1 {
        font-size: 42px;
        letter-spacing: -1.7px;
        line-height: 1.06;
    }

    .hero-cover .hero-lead {
        font-size: 15px;
        line-height: 1.72;
    }

    .hero-cover .hero-actions {
        flex-direction: row;
        align-items: center;
    }

    .hero-cover .hero-actions .btn {
        width: auto;
        flex: 1 1 210px;
    }

    .hero-cover-trust {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px 9px;
    }

    .hero-cover .hero-trust-row>div {
        width: auto;
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        gap: 4px;
    }

    .hero-cover .hero-trust-row i {
        font-size: 21px;
    }

    .hero-cover .hero-trust-row strong {
        font-size: 10px;
    }

    .hero-cover .hero-trust-row small {
        display: none;
    }

    .hero-hospital-chip {
        left: 12px;
        right: 12px;
        bottom: 92px;
        max-width: none;
    }

    .quick-info-section {
        position: relative;
        z-index: 5;
    }
}

@media (max-width: 480px) {
    .hero-modern.hero-cover {
        min-height: 725px;
        background-position: 67% center;
    }

    .min-vh-hero {
        min-height: 725px;
        padding: 46px 0 182px;
    }

    .hero-cover .hero-copy h1 {
        font-size: 36px;
    }

    .hero-cover .hero-cover-badge {
        font-size: 10px;
        padding: 8px 11px;
    }

    .hero-cover .hero-actions {
        gap: 10px;
    }

    .hero-cover .hero-actions .btn {
        flex-basis: 100%;
        min-height: 49px;
    }

    .hero-hospital-chip {
        bottom: 84px;
        padding: 12px 14px;
    }

    .hero-hospital-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}