/* =========================================================
   Devay Hospital - Main Stylesheet
   Clean, responsive and SEO-friendly presentation layer
   ========================================================= */

:root {
    --primary: #13c5dd;
    --primary-dark: #0d9fb5;
    --secondary: #354f8e;
    --light: #eff5f9;
    --dark: #1d2a4d;
    --text: #4b5563;
    --white: #ffffff;
    --border: #e5edf2;
    --shadow: 0 10px 30px rgba(29, 42, 77, 0.08);
    --radius: 12px;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
}

p {
    line-height: 1.8;
}

/* ---------- Theme helpers ---------- */
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary li {
    color: var(--white);
}

.bg-primary .text-primary {
    color: var(--white) !important;
}

.bg-primary .border-secondary {
    border-color: rgba(255, 255, 255, .35) !important;
}

.btn {
    font-weight: 700;
    transition: .3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(29, 42, 77, .15);
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--white);
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
}

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

.back-to-top {
    position: fixed;
    display: none;
    right: 24px;
    bottom: 24px;
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* ---------- Topbar ---------- */
.topbar-link {
    color: var(--text);
}

.topbar-link:hover {
    color: var(--primary);
}

.lang-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 5px;
    display: inline-block;
}

.lang-link:hover,
.lang-link:focus {
    background-color: var(--primary);
    color: var(--white) !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ---------- Navbar ---------- */
.navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 30px 14px;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--dark);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 3px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .3s ease;
    }

    .navbar-nav .nav-link:hover::before,
    .navbar-nav .nav-link.active::before {
        width: calc(100% - 28px);
        left: 14px;
    }
}

.navbar-brand img {
    width: 180px;
    height: auto;
    display: block;
}

/* ---------- Hero / Owl Carousel ---------- */
.hero-carousel .slide {
    min-height: 680px;
    height: 78vh;
    max-height: 820px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-carousel .slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 24, 48, .82) 0%, rgba(10, 24, 48, .62) 42%, rgba(10, 24, 48, .18) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    color: var(--white);
    padding: 60px 0 60px 8%;
}

.slide-content .title,
.slide-content .hero-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(2.15rem, 4vw, 4rem);
    line-height: 1.12;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.slide-content .subtitle {
    max-width: 680px;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    margin-bottom: 28px;
    padding: 0;
    color: var(--white);
    background: transparent;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 6px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.hero-button:hover,
.hero-button:focus {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-button-outline {
    background: transparent;
    border: 2px solid var(--white);
}

.hero-button-outline:hover,
.hero-button-outline:focus {
    background: var(--white);
    color: var(--dark);
}

.hero-carousel .owl-dots {
    position: absolute;
    bottom: 25px;
    left: 8%;
    z-index: 5;
}

.hero-carousel .owl-dot span {
    width: 10px;
    height: 10px;
}

/* ---------- Content sections ---------- */
.section-label {
    letter-spacing: .5px;
}

.service-item {
    position: relative;
    min-height: 300px;
    height: auto;
    padding: 42px 34px;
    border: 1px solid rgba(19, 197, 221, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
}

.service-item .service-icon i {
    transform: none;
}

.service-sub {
    color: var(--text) !important;
}

.drjaychaudhary li {
    text-align: left;
    padding-top: 10px;
}

/* ---------- Pricing / packages ---------- */
.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--white);
    font-size: 22px;
    border-radius: 45px;
    transition: .3s ease;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.package-card {
    height: 100%;
    border: 1px solid var(--border);
    box-shadow: 0 5px 18px rgba(29, 42, 77, .05);
}

/* ---------- Testimonial ---------- */
/********** TESTIMONIAL SECTION **********/

/* Main testimonial item */
.testimonial-carousel .testimonial-item {
    padding: 20px 15px 30px;
}

/* Quote icon container */
.testimonial-quote {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
}

/* Quote icon */
.testimonial-quote i {
    font-size: 26px;
    color: var(--primary);
}

/* Review text */
.testimonial-item p.fs-4 {
    font-size: 19px !important;
    line-height: 1.7;
    font-weight: 400 !important;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Divider above patient name */
.testimonial-divider {
    width: 55px;
    height: 3px;
    background: #ffffff;
    margin: 25px auto 18px;
    border-radius: 10px;
}

/* Patient name */
.testimonial-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px !important;
}

/* Review source */
.testimonial-item .text-white-50 {
    font-size: 14px;
    opacity: 0.85;
}


/********** TESTIMONIAL CAROUSEL NAVIGATION **********/

.testimonial-carousel .owl-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.testimonial-carousel .owl-nav button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #ffffff !important;
    color: var(--primary) !important;
    font-size: 20px !important;
    transition: all 0.3s ease;
}

.testimonial-carousel .owl-nav button:hover {
    background: var(--dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}


/********** TESTIMONIAL DOTS **********/

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

.testimonial-carousel .owl-dot {
    width: 9px !important;
    height: 9px !important;
    margin: 0 5px !important;
    padding: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.testimonial-carousel .owl-dot.active {
    width: 24px !important;
    border-radius: 10px;
    background: #ffffff !important;
}


/********** TESTIMONIAL BACKGROUND **********/

.testimonial-section {
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    top: -150px;
    left: -150px;
}

.testimonial-section::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    bottom: -125px;
    right: -125px;
}


/********** MOBILE RESPONSIVE **********/

@media (max-width: 767.98px) {

    .testimonial-carousel .testimonial-item {
        padding: 10px 15px 25px;
    }

    .testimonial-quote {
        width: 55px;
        height: 55px;
        margin-bottom: 20px !important;
    }

    .testimonial-quote i {
        font-size: 22px;
    }

    .testimonial-item p.fs-4 {
        font-size: 16px !important;
        line-height: 1.65;
    }

    .testimonial-item h3 {
        font-size: 19px;
    }

    .testimonial-divider {
        margin: 20px auto 14px;
    }

    .testimonial-carousel .owl-nav {
        margin-top: 15px;
    }

    .testimonial-carousel .owl-nav button {
        width: 38px;
        height: 38px;
        font-size: 17px !important;
    }

}


/********** SMALL MOBILE **********/

@media (max-width: 480px) {

    .testimonial-item p.fs-4 {
        font-size: 15px !important;
        line-height: 1.6;
    }

    .testimonial-quote {
        width: 50px;
        height: 50px;
    }

    .testimonial-item h3 {
        font-size: 18px;
    }

    .testimonial-item .text-white-50 {
        font-size: 13px;
    }

}

/* ---------- Animation helpers ---------- */
.animation-container .col-lg-6,
.animation-container .col-lg-4,
.animation-container .col-lg-7,
.animation-container .col-lg-5,
.animation-container.your-health {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease-out, transform .7s ease-out;
}

.animation-container .col-lg-7,
.animation-container .col-lg-5 {
    transform: translateX(-35px);
}

.animation-container .col-lg-6.visible,
.animation-container .col-lg-4.visible,
.animation-container .col-lg-7.visible,
.animation-container .col-lg-5.visible,
.animation-container.your-health.visible {
    opacity: 1;
    transform: translate(0);
}

/* ---------- Footer ---------- */
.footer-map {
    width: 100%;
    min-height: 250px;
    border: 0;
    border-radius: 10px;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--primary);
}

/* ---------- Accessibility / reduced motion ---------- */
:focus-visible {
    outline: 3px solid rgba(19, 197, 221, .45);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 14px;
    }

    .navbar-brand img {
        width: 165px;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 10px 0 15px;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 10px 0;
        white-space: normal;
    }

    .navbar-nav .nav-link::before {
        display: none;
    }

    .hero-carousel .slide {
        min-height: 600px;
        height: 72vh;
    }

    .slide-content {
        padding: 50px 30px;
    }

    .hero-carousel .owl-dots {
        left: 30px;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .slide {
        min-height: 560px;
        height: auto;
    }

    .slide-content {
        max-width: 100%;
        padding: 55px 20px 70px;
    }

    .slide-content .title,
    .slide-content .hero-title {
        font-size: 2rem;
    }

    .slide-content .subtitle {
        font-size: 1rem;
    }

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

    .hero-button {
        width: 100%;
    }

    .service-item {
        min-height: 0;
        padding: 32px 24px;
    }

    .price-carousel {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .price-carousel::after {
        display: none;
    }

    .footer-map {
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        width: 145px;
    }

    .slide-content .title,
    .slide-content .hero-title {
        font-size: 1.8rem;
    }

    .container-fluid.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}


/* ---------- Media Coverage / Newspaper ---------- */
.media-coverage {
    background: var(--white);
}

.media-coverage .media-kicker,
.media-coverage .media-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.82rem;
}

.media-coverage h2 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.media-coverage .news-card {
    background: var(--white);
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.media-coverage .news-card a {
    display: block;
}

.media-coverage .news-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform .35s ease;
}

.media-coverage .news-card:hover .news-image {
    transform: scale(1.015);
}

.media-copy {
    padding: 10px 0 10px 15px;
}

.media-copy h3 {
    margin: 8px 0 18px;
    font-weight: 700;
    color: var(--dark);
}

.media-copy p {
    color: var(--text);
    line-height: 1.8;
}

.media-copy .btn {
    margin-top: 8px;
}

@media (max-width: 991.98px) {
    .media-copy {
        padding: 5px 0;
    }

    .media-coverage h2 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .media-coverage h2 {
        font-size: 1.7rem;
    }

    .media-copy h3 {
        font-size: 1.35rem;
    }
}
