﻿:root {
    /* Rangam Hospital logo palette. */
    --body-background: #e7eeec;
    --primary-color: #183650;
    --text-color: #415965;
    --accent-color: #18a99b;
    --secondry-color: #fffdf8;
    --transparent-color: #fffffff0;
    --transparent-secondry-color: #243b4dcc;
    --light-Background: #244b63;
    --light-accent-color: #dcece8;
    --rangam-red: #e33c4f;
    --rangam-green: #087d45;
    --rangam-navy: #183650;
    --rangam-sky: #35bbae;
}

/* Hospital service imagery for the home-page contact section. */
.home-contact-form {
    background-image: url('../images/home-emergency-v3.jpg');
    background-position: center center;
}

/* Red is reserved for the primary phone action from the logo palette. */
.main-menu ul li.highlighted-menu a {
    color: #fff;
    border-color: var(--rangam-red);
    background-color: var(--rangam-red);
}

.main-menu ul li.highlighted-menu a::after {
    background-color: #fff;
}

.main-menu ul li.highlighted-menu a:hover,
.main-menu ul li.highlighted-menu a:focus {
    color: #ffffff !important;
}

.main-menu ul li.highlighted-menu a:hover i,
.main-menu ul li.highlighted-menu a:focus i {
    color: #ffffff !important;
}

/* Contrast corrections only; the template's original styling is preserved. */
.main-menu ul li a:hover,
.main-menu ul li a:focus,
.hero-content .section-title h1,
.subpage-header-box h1 {
    color: #2cc4b5;
}

.hero-content .section-title h3 {
    color: #ffffff;
}

.hero-body p,
.home-contact-item .contact-content p,
.main-footer p,
.main-footer li,
.main-footer a {
    color: #e3edf5;
}

.hero-footer .btn-default,
.hero-footer .btn-default::before {
    color: #39d0c1;
    border-color: #39d0c1;
}

.hero-footer .btn-default:hover,
.hero-footer .btn-default:hover::before {
    color: var(--primary-color);
}

.cta-btn a.appointment-btn {
    color: #39d0c1;
    border-color: #39d0c1;
}

.cta-btn a.appointment-btn:hover {
    color: var(--primary-color);
}

.medical-service-item:hover .medical-content h3,
.medical-service-item:hover .medical-content p {
    color: #ffffff;
}

.subpage-header-box ol li,
.subpage-header-box ol li a {
    color: #f5f9fc;
}

.home-contact-item .contact-content h3,
.cta-content h3,
.main-footer h2,
.main-footer h3,
.footer-logo .rangam-brand strong {
    color: #ffffff;
}

.main-footer .footer-social-links a,
.main-footer .footer-copyright-text p span {
    color: #59d9cd;
}

/* Keep opening hours fully readable against the dark footer. */
.footer-timing-list li,
.footer-timing-list li span,
.footer-timing-list li span:last-child {
    color: #ffffff;
}

.footer-contact-details .footer-info-box p,
.footer-contact-details .footer-info-box p a,
.footer-contact-details .footer-info-box a {
    color: #ffffff;
}

.contact-information .contact-info-content p,
.contact-information .contact-info-content p a,
.contact-information .footer-timing-list li,
.contact-information .footer-timing-list li span,
.contact-information .footer-timing-list li span:last-child {
    color: #ffffff;
}

/* Logo presentation only; the template's original layout remains unchanged. */
.rangam-logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rangam-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.rangam-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
}

.rangam-brand strong { color: #fff; }
.rangam-brand small {
    color: #77e0d6;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .28em;
}

.footer-logo .rangam-logo { width: 72px; height: 72px; }
.footer-logo .rangam-brand strong { color: #fff; }

/* Doctor directory: specialty artwork replaces unrelated portrait placeholders. */
.doctor-department {
    padding-bottom: 55px;
    margin-bottom: 55px;
    border-bottom: 1px solid #d8eaf1;
}

.doctor-department:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.doctor-department .section-title {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.doctor-department .team-member-item {
    height: calc(100% - 30px);
    padding: 18px;
    border: 1px solid #d8eaf1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(18, 59, 86, 0.08);
}

.doctor-department .team-image img {
    width: 100%;
}

.doctor-department .doctor-photo {
    cursor: zoom-in;
}

.doctor-department .team-content p {
    margin-bottom: 5px;
}

.doctor-department .team-content p:last-child {
    margin-bottom: 0;
}

.doctor-photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px;
    background: rgba(8, 22, 43, 0.96);
    cursor: zoom-out;
}

.doctor-photo-viewer.is-open {
    display: flex;
}

.doctor-photo-viewer img {
    width: auto;
    height: auto;
    max-width: min(94vw, 1200px);
    max-height: 86vh;
    object-fit: contain;
    border: 3px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
}

.doctor-photo-viewer p {
    margin: 12px 0 0;
    color: #ffffff;
    font-size: 14px;
}

.doctor-photo-viewer-close {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 46px;
    height: 46px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--rangam-red);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

body.doctor-photo-viewer-open {
    overflow: hidden;
}

.doctor-department .team-content h3 {
    min-height: 2.6em;
}

/* Facilities directory and detail pages. */
.rangam-departments,
.rangam-facilities,
.rangam-facility-detail,
.rangam-related-services {
    padding: 90px 0 60px;
}

.rangam-departments {
    padding-bottom: 35px;
}

.rangam-department-card {
    display: flex;
    align-items: center;
    gap: 18px;
    height: calc(100% - 24px);
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid #d7e7ee;
    border-radius: 14px;
    background: #fff;
}

.rangam-department-icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent-color);
    background: var(--light-accent-color);
    font-size: 23px;
}

.rangam-department-card h3 {
    font-size: 21px;
}

.rangam-facilities {
    background: #fff;
}

.rangam-section-intro {
    margin-bottom: 40px;
    color: var(--text-color);
}

.rangam-facility-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #d7e4e9;
    border-radius: 14px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.rangam-facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(18, 59, 86, .12);
}

.rangam-facility-image {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: var(--light-accent-color);
}

.rangam-facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.rangam-facility-card:hover .rangam-facility-image img {
    transform: scale(1.045);
}

.rangam-view-label {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 59, 86, .94);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .25s ease, transform .25s ease;
}

.rangam-facility-card:hover .rangam-view-label,
.rangam-facility-image:focus .rangam-view-label {
    opacity: 1;
    transform: scale(1);
}

.rangam-facility-body {
    position: relative;
    min-height: 126px;
    padding: 26px 70px 24px 52px;
}

.rangam-service-number {
    position: absolute;
    top: 28px;
    left: 20px;
    color: #087d45;
    font-size: 12px;
}

.rangam-facility-body h3 {
    font-size: 20px;
    line-height: 1.35;
}

.rangam-facility-body h3 a {
    color: var(--primary-color);
}

.rangam-card-arrow {
    position: absolute;
    right: 20px;
    bottom: 24px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d3e0e6;
    border-radius: 50%;
    color: var(--primary-color);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.rangam-card-arrow:hover {
    color: #fff;
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.rangam-detail-image {
    overflow: hidden;
    margin: 0;
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(18, 59, 86, .13);
}

.rangam-detail-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.rangam-detail-content {
    padding-left: 45px;
}

.rangam-detail-content .section-title {
    margin-bottom: 24px;
}

.rangam-detail-content p {
    margin-bottom: 20px;
}

.rangam-detail-lead {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
}

.rangam-detail-highlights {
    margin: 28px 0 34px;
    padding: 0;
    list-style: none;
}

.rangam-detail-highlights li {
    position: relative;
    margin-bottom: 13px;
    padding-left: 30px;
    color: var(--primary-color);
    font-weight: 600;
}

.rangam-detail-highlights li::before {
    content: '\f058';
    position: absolute;
    top: 1px;
    left: 0;
    color: var(--rangam-green);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.rangam-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.rangam-text-link {
    color: var(--primary-color);
    font-weight: 700;
}

.rangam-related-services {
    background: #fff;
}

.rangam-related-card {
    overflow: hidden;
    border: 1px solid #d7e4e9;
    border-radius: 14px;
    background: var(--body-background);
}

.rangam-related-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.rangam-related-card span {
    display: block;
    padding: 20px;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

/* Rangam Hospital footer. */
.rangam-footer {
    position: relative;
    overflow: hidden;
    padding: 76px 0 0;
    color: #dce8f2;
    background: var(--primary-color);
}

.rangam-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -120px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(104, 214, 247, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(104, 214, 247, .025), 0 0 0 110px rgba(104, 214, 247, .018);
    pointer-events: none;
}

.rangam-footer-main {
    position: relative;
    z-index: 1;
    padding-bottom: 58px;
}

.rangam-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.rangam-footer-logo img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.rangam-footer-logo span {
    display: flex;
    flex-direction: column;
    color: #fff;
    line-height: 1;
}

.rangam-footer-logo strong {
    font-size: 25px;
    letter-spacing: .05em;
}

.rangam-footer-logo small {
    margin-top: 5px;
    color: #59d9cd;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .32em;
}

.rangam-footer-brand > p {
    max-width: 390px;
    margin-bottom: 25px;
    color: #c9d8e5;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
}

.rangam-footer-call {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
}

.rangam-footer-call > i {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--rangam-red);
}

.rangam-footer-call span {
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.rangam-footer-call small {
    margin-bottom: 3px;
    color: #aebfd0;
    font-size: 12px;
    font-weight: 500;
}

.rangam-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.rangam-footer-socials a,
.rangam-footer-socials span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    font-size: 17px;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.rangam-footer-socials a:hover {
    color: #fff;
    border-color: var(--rangam-sky);
    background: var(--rangam-sky);
    transform: translateY(-3px);
}

.rangam-footer-socials span {
    color: #aebfd0;
    cursor: default;
}

.rangam-footer-column h2 {
    position: relative;
    margin: 8px 0 25px;
    padding-bottom: 13px;
    color: #fff;
    font-size: 19px;
}

.rangam-footer-column h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2px;
    background: #2cc4b5;
}

.rangam-footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rangam-footer-column li { margin-bottom: 11px; }

.rangam-footer-column li a {
    color: #c9d8e5;
    font-size: 15px;
    transition: color .25s ease, padding-left .25s ease;
}

.rangam-footer-column li a:hover {
    padding-left: 5px;
    color: #59d9cd;
}

.rangam-footer-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.rangam-footer-detail > i {
    width: 18px;
    margin-top: 4px;
    color: #59d9cd;
    text-align: center;
}

.rangam-footer-detail p {
    margin: 0;
    color: #dce8f2;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.rangam-footer-detail p strong,
.rangam-footer-detail p span {
    display: block;
    color: #fff;
}

.rangam-footer-detail p span { margin-top: 2px; font-weight: 400; }

.rangam-footer-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #59d9cd;
    font-size: 14px;
    font-weight: 700;
}

.rangam-footer-directions:hover { color: #fff; }

.rangam-footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.rangam-footer-bottom p {
    margin: 0;
    color: #aebfd0;
    font-size: 14px;
    text-align: left;
}

.rangam-footer-bottom a { color: #fff; }
.rangam-footer-bottom a:hover { color: #59d9cd; }

@media (max-width: 991px) {
    .rangam-logo { width: 52px; height: 52px; }
    .rangam-brand { font-size: 20px; }
    .navbar-toggle { margin-left: auto; }
    .slicknav_btn { background: var(--rangam-red); }
    .slicknav_icon .slicknav_icon-bar { background-color: #fff; }
    .rangam-departments,
    .rangam-facilities,
    .rangam-facility-detail,
    .rangam-related-services { padding: 60px 0 35px; }
    .rangam-detail-content { padding: 35px 0 0; }
    .rangam-footer { padding-top: 58px; }
    .rangam-footer-brand { margin-bottom: 20px; }
}

@media (max-width: 575px) {
    .rangam-logo { width: 46px; height: 46px; }
    .rangam-brand { font-size: 18px; }
    .rangam-brand small { font-size: 8px; }
    .doctor-department { padding-bottom: 30px; margin-bottom: 35px; }
    .doctor-department .team-content h3 { min-height: 0; }
    .rangam-facility-image { height: 245px; }
    .rangam-facility-body { min-height: 112px; padding: 22px 60px 20px 48px; }
    .rangam-facility-body h3 { font-size: 18px; }
    .rangam-service-number { top: 24px; left: 18px; }
    .rangam-card-arrow { right: 16px; bottom: 20px; }
    .rangam-footer { padding-top: 48px; }
    .rangam-footer-main { padding-bottom: 38px; }
    .rangam-footer-logo img { width: 62px; height: 62px; }
    .rangam-footer-logo strong { font-size: 22px; }
    .rangam-footer-column h2 { margin-top: 18px; }
    .rangam-footer-bottom { flex-direction: column; gap: 7px; }
}

/* Refined Rangam palette: soft hospital tones with clear logo-inspired accents. */
body {
    background: #edf5f6;
    color: #405b69;
}

header.main-header,
header.main-header .header-sticky.active {
    background: linear-gradient(110deg, #153b58 0%, #1b4965 58%, #176477 100%);
}

.main-menu ul li.highlighted-menu a {
    color: #ffffff !important;
    border-color: #17a99b;
    background: linear-gradient(135deg, #17a99b, #087f96);
    box-shadow: 0 10px 24px rgba(8, 127, 150, .24);
}

.main-menu ul li.highlighted-menu a::after {
    background: #e33c4f;
}

.main-menu ul li.highlighted-menu a:hover,
.main-menu ul li.highlighted-menu a:focus,
.main-menu ul li.highlighted-menu a:hover i,
.main-menu ul li.highlighted-menu a:focus i {
    color: #ffffff !important;
}

.home-contact-us {
    background: linear-gradient(135deg, #dff1ef 0%, #e9f1f5 52%, #f5e9ea 100%);
}

.about-us {
    background: linear-gradient(135deg, #fff9f0 0%, #edf6f3 58%, #e2f0f3 100%);
}

.medical-services {
    background-image: url('../images/half-circle-3.png'), linear-gradient(135deg, #dceff2 0%, #edf2f5 52%, #f6e9eb 100%);
}

.how-we-work {
    background: linear-gradient(135deg, #f8f0e5 0%, #e5f2ef 55%, #e3eef5 100%);
}

.our-faqs,
.meet-our-team,
.page-contact-form {
    background: linear-gradient(135deg, #e3f0f3 0%, #eef3f2 52%, #f7eaeb 100%);
}

.medical-service-item,
.services-item,
.team-member-item,
.rangam-department-card,
.rangam-facility-card,
.faq-accordion .accordion-item {
    background: linear-gradient(145deg, #fffdf8 0%, #f0f8f6 100%);
    border: 1px solid rgba(21, 59, 88, .08);
    box-shadow: 0 14px 34px rgba(21, 59, 88, .09);
}

/* Final homepage form color overrides; structure remains the template original. */
.home-contact-form {
    background-image: url('../images/home-emergency-v3.jpg');
    background-position: center;
    background-size: cover;
}
.home-contact-form::after { background: linear-gradient(110deg, rgba(238,248,247,.93), rgba(230,241,245,.9), rgba(255,242,240,.9)); }
.home-contact-form .section-title h3 { color: #109c91; }
.home-contact-form .section-title h2 { color: #153b58; }
.contact-appointment { background: linear-gradient(150deg, #17a99b 0%, #087f96 100%); }
.contact-appointment .appointment-content h3 { color: #ffffff; }
.contact-form { background: linear-gradient(145deg, #fffdf8 0%, #eef7f6 100%); }
.contact-form input,
.contact-form textarea,
.contact-form .form-control { color: #153b58; background: rgba(255,255,255,.86); border-color: #c9dde1; }
.contact-form textarea::placeholder,
.contact-form .form-control::placeholder { color: #6d8490; }
.contact-form .form-control:focus { color: #153b58; background: #ffffff; border-color: #17a99b; box-shadow: 0 0 0 4px rgba(23,169,155,.1); }
.contact-form .btn-default { color: #ffffff; border-color: #087f96; background: #087f96; }
.contact-form .btn-default::before { color: #ffffff; }
.contact-form .btn-default::after { background: #153b58 !important; }

/* Final contact-section theme and footer spacing; HTML structure is unchanged. */
.home-contact-form {
    padding: 105px 0 115px;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(23,169,155,.15), transparent 28%),
        radial-gradient(circle at 90% 88%, rgba(227,60,79,.08), transparent 24%),
        linear-gradient(135deg, #e7f3f2 0%, #edf3f7 55%, #fff3ef 100%);
}

.home-contact-form::after {
    display: none;
}

.home-contact-form .section-title {
    margin-bottom: 48px;
}

.home-contact-form .section-title h3 {
    color: #0f9189;
}

.home-contact-form .section-title h2 {
    color: #153b58;
}

.home-contact-form .row.no-gutters {
    overflow: hidden;
    border: 1px solid rgba(21,59,88,.09);
    border-radius: 24px;
    box-shadow: 0 26px 65px rgba(21,59,88,.14);
}

.contact-appointment {
    background:
        radial-gradient(circle at 85% 12%, rgba(109,225,214,.2), transparent 30%),
        linear-gradient(145deg, #153b58 0%, #176477 100%);
}

.contact-appointment .appointment-img img {
    filter: brightness(0) invert(1);
    opacity: .92;
}

.contact-appointment .appointment-content h3 {
    color: #ffffff;
}

.contact-appointment .appointment-content h3 strong {
    color: #6de1d6;
}

.contact-form {
    background: linear-gradient(145deg, #fffdf8 0%, #f1f8f7 100%);
}

.contact-form input,
.contact-form textarea,
.contact-form .form-control {
    color: #153b58;
    background: #ffffff;
    border-color: #cfdee2;
    box-shadow: 0 5px 14px rgba(21,59,88,.035);
}

.contact-form textarea::placeholder,
.contact-form .form-control::placeholder {
    color: #738a95;
}

.contact-form .btn-default {
    color: #ffffff;
    border-color: #109c91;
    background: linear-gradient(135deg, #17a99b, #087f96);
    box-shadow: 0 10px 24px rgba(8,127,150,.2);
}

@media (max-width: 991px) {
    .home-contact-form { padding: 80px 0 90px; }
    .home-contact-form .section-title { margin-bottom: 36px; }
}

@media (max-width: 575px) {
    .home-contact-form { padding: 60px 0 72px; }
    .home-contact-form .row.no-gutters { border-radius: 18px; }
}

/* Homepage form: original template structure with a lighter Rangam palette. */
.home-contact-form {
    background-image: url('../images/home-emergency-v3.jpg');
    background-position: center;
    background-size: cover;
}

.home-contact-form::after {
    background: linear-gradient(110deg, rgba(238, 248, 247, .93), rgba(230, 241, 245, .9), rgba(255, 242, 240, .9));
}

.home-contact-form .section-title h3 {
    color: #109c91;
}

.home-contact-form .section-title h2 {
    color: #153b58;
}

.contact-appointment {
    background: linear-gradient(150deg, #17a99b 0%, #087f96 100%);
}

.contact-appointment .appointment-content h3 {
    color: #ffffff;
}

.contact-form {
    background: linear-gradient(145deg, #fffdf8 0%, #eef7f6 100%);
}

.contact-form input,
.contact-form textarea,
.contact-form .form-control {
    color: #153b58;
    background: rgba(255,255,255,.86);
    border-color: #c9dde1;
}

.contact-form textarea::placeholder,
.contact-form .form-control::placeholder {
    color: #6d8490;
}

.contact-form .form-control:focus {
    color: #153b58;
    background: #ffffff;
    border-color: #17a99b;
    box-shadow: 0 0 0 4px rgba(23,169,155,.1);
}

.contact-form .btn-default {
    color: #ffffff;
    border-color: #087f96;
    background: #087f96;
}

.contact-form .btn-default::before {
    color: #ffffff;
}

.contact-form .btn-default::after {
    background: #153b58 !important;
}

/* Shared floating contact widget shown across the entire website. */
.floating-social-widget {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-social-widget .widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(21, 59, 88, .26);
    transition: transform .25s ease, box-shadow .25s ease;
}

.floating-social-widget .widget-btn:hover,
.floating-social-widget .widget-btn:focus {
    color: #ffffff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 9px 24px rgba(21, 59, 88, .34);
}

.floating-social-widget .widget-btn i { color: #ffffff; font-size: 22px; }
.floating-social-widget .call-btn { background: #e33c4f; }
.floating-social-widget .google-btn { background: #08a9e6; }
.floating-social-widget .whatsapp-btn { background: #087d45; }
.floating-social-widget .whatsapp-btn i { font-size: 25px; }
.floating-social-widget .instagram-btn { background: linear-gradient(145deg, #08a9e6, #293a98); }
.floating-social-widget .facebook-btn { background: #243f70; }

@media (max-width: 575px) {
    .floating-social-widget { right: 14px; bottom: 72px; gap: 8px; }
    .floating-social-widget .widget-btn { width: 44px; height: 44px; }
    .floating-social-widget .widget-btn i { font-size: 19px; }
    .floating-social-widget .whatsapp-btn i { font-size: 22px; }
}

/* Professional typography across all public pages. */
:root {
    --default-font: "Manrope", sans-serif;
    --accent-font: "Manrope", sans-serif;
    --secondry-font: "Manrope", sans-serif;
}

body,
button,
input,
select,
textarea {
    font-family: "Manrope", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-nav,
.btn-default,
.appointment-btn {
    font-family: "Manrope", sans-serif;
    letter-spacing: -.025em;
}

p { text-align: left; }

/* Premium homepage hero. */
.rangam-hero {
    position: relative;
    min-height: 720px;
    padding: 90px 0 96px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 10%, rgba(8, 169, 230, .17), transparent 27%),
        radial-gradient(circle at 6% 90%, rgba(23, 169, 155, .16), transparent 30%),
        linear-gradient(128deg, #edf9f8 0%, #f4f8fb 54%, #fff1ef 100%);
}

.rangam-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.22), transparent 48%);
    pointer-events: none;
}

.rangam-hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.rangam-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #176477;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rangam-hero-eyebrow span {
    width: 32px;
    height: 2px;
    background: #e33c4f;
}

.rangam-hero .rangam-hero-content h1 {
    margin: 0;
    color: #153b58;
    font-size: clamp(52px, 5vw, 76px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.045em;
}

.rangam-nowrap {
    display: inline-block;
    white-space: nowrap;
}

.rangam-hero .rangam-hero-content h1 em {
    color: #109c91;
    font-family: "Manrope", sans-serif;
    font-size: .92em;
    font-style: normal;
    font-weight: 800;
    letter-spacing: -.045em;
}

.rangam-hero-content > p {
    max-width: 590px;
    margin: 28px 0 30px;
    color: #496575;
    font-size: 18px;
    line-height: 1.7;
}

.rangam-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.rangam-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: #fff;
    background: linear-gradient(135deg, #109c91, #087f96);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(8, 127, 150, .23);
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}

.rangam-primary-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(8, 127, 150, .3);
}

.rangam-call-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #153b58;
}

.rangam-call-link > i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: #e33c4f;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(227, 60, 79, .22);
}

.rangam-call-link span { display: flex; flex-direction: column; font-weight: 700; line-height: 1.2; }
.rangam-call-link small { margin-bottom: 4px; color: #6d8490; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rangam-call-link:hover { color: #109c91; }

.rangam-hero-trust {
    display: flex;
    gap: 28px;
    margin-top: 42px;
    padding-top: 25px;
    border-top: 1px solid rgba(21, 59, 88, .12);
}

.rangam-hero-trust > div { display: flex; align-items: center; gap: 10px; }
.rangam-hero-trust i { color: #109c91; font-size: 21px; }
.rangam-hero-trust span { display: flex; flex-direction: column; color: #718691; font-size: 12px; line-height: 1.35; }
.rangam-hero-trust strong { color: #153b58; font-size: 14px; }

.rangam-hero-visual {
    position: relative;
    min-height: 555px;
    margin-left: 20px;
}

.rangam-hero-dots {
    position: absolute;
    top: 38px;
    left: 4px;
    width: 58%;
    height: 62%;
    background: url('../images/white-dots-img.png') no-repeat center / contain;
    filter: brightness(0) saturate(100%) invert(31%) sepia(28%) saturate(1290%) hue-rotate(146deg);
    opacity: .34;
}

.rangam-hero-main,
.rangam-hero-secondary {
    position: absolute;
    overflow: hidden;
    margin: 0;
    background: #fff;
    border: 8px solid rgba(255,255,255,.94);
    box-shadow: 0 28px 65px rgba(21, 59, 88, .18);
}

.rangam-hero-main {
    left: 5%;
    bottom: 0;
    z-index: 1;
    width: 53%;
    height: 83%;
    border-radius: 140px 140px 38px 38px;
}

.rangam-hero-secondary {
    top: 0;
    right: 0;
    z-index: 2;
    width: 47%;
    height: 69%;
    border-radius: 36px 140px 140px 36px;
}

.rangam-hero-main img,
.rangam-hero-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.96) contrast(1.01);
}

.rangam-open-card {
    position: absolute;
    right: 6%;
    bottom: 37px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(21,59,88,.18);
    backdrop-filter: blur(10px);
}

.rangam-open-card > i { color: #e33c4f; font-size: 25px; }
.rangam-open-card span { display: flex; flex-direction: column; color: #718691; font-size: 12px; }
.rangam-open-card strong { color: #153b58; font-size: 17px; }

@media (max-width: 1199px) {
    .rangam-hero { min-height: 650px; padding: 74px 0 82px; }
    .rangam-hero .rangam-hero-content h1 { font-size: clamp(47px, 5vw, 64px); }
    .rangam-hero-visual { min-height: 490px; margin-left: 0; }
    .rangam-hero-trust { gap: 18px; }
}

@media (max-width: 991px) {
    .rangam-hero { padding: 68px 0 76px; }
    .rangam-hero-content { max-width: 760px; margin: 0 auto; text-align: center; }
    .rangam-hero-eyebrow, .rangam-hero-actions, .rangam-hero-trust { justify-content: center; }
    .rangam-hero-content > p { margin-left: auto; margin-right: auto; }
    .rangam-hero-visual { max-width: 650px; min-height: 530px; margin: 30px auto 0; }
}

@media (max-width: 575px) {
    .rangam-hero { min-height: auto; padding: 52px 0 60px; }
    .rangam-hero-eyebrow { font-size: 10px; letter-spacing: .09em; }
    .rangam-hero .rangam-hero-content h1 { font-size: clamp(34px, 10.5vw, 48px); line-height: 1.04; }
    .rangam-hero-content > p { margin: 22px 0 25px; font-size: 16px; }
    .rangam-hero-actions { flex-direction: column; gap: 18px; }
    .rangam-primary-btn { width: 100%; justify-content: center; }
    .rangam-hero-trust { gap: 10px; margin-top: 32px; padding-top: 20px; }
    .rangam-hero-trust > div { flex: 1; flex-direction: column; gap: 6px; text-align: center; }
    .rangam-hero-trust strong { font-size: 12px; }
    .rangam-hero-trust span { font-size: 10px; }
    .rangam-hero-visual { min-height: 390px; margin-top: 34px; }
    .rangam-hero-main { left: 0; width: 58%; height: 82%; border-width: 5px; border-radius: 90px 90px 24px 24px; }
    .rangam-hero-secondary { right: 0; width: 50%; height: 67%; border-width: 5px; border-radius: 22px 90px 90px 22px; }
    .rangam-open-card { right: 3%; bottom: 18px; padding: 11px 13px; }
    .rangam-open-card strong { font-size: 14px; }
}

/* Refined homepage enquiry section. */
.rangam-contact-section {
    position: relative;
    padding: 105px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 12%, rgba(23, 169, 155, .13), transparent 26%),
        radial-gradient(circle at 92% 90%, rgba(227, 60, 79, .08), transparent 24%),
        linear-gradient(135deg, #e8f4f3 0%, #eff5f7 52%, #fff5f1 100%);
}

.rangam-contact-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -90px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(8, 127, 150, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 58px rgba(8, 169, 230, .035);
}

.rangam-contact-section::after {
    background: none;
}

.rangam-contact-shell {
    position: relative;
    z-index: 2;
    overflow: hidden;
    max-width: 1240px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(21, 59, 88, .08);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(21, 59, 88, .13);
}

.rangam-contact-panel {
    position: relative;
    height: 100%;
    min-height: 610px;
    padding: 66px 56px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 8%, rgba(53, 187, 174, .28), transparent 28%),
        linear-gradient(145deg, #153b58 0%, #176477 100%);
}

.rangam-contact-panel::after {
    content: '';
    position: absolute;
    right: -95px;
    bottom: -105px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(255,255,255,.035);
}

.rangam-contact-kicker {
    display: inline-flex;
    margin-bottom: 22px;
    color: #6de1d6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rangam-contact-panel h2 {
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin-bottom: 22px;
    color: #ffffff;
    font-size: clamp(38px, 3vw, 52px);
    font-weight: 700;
    line-height: 1.08;
}

.rangam-contact-panel > p {
    position: relative;
    z-index: 1;
    max-width: 420px;
    color: rgba(255,255,255,.76);
    font-size: 16px;
    line-height: 1.7;
}

.rangam-contact-details {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: 42px;
}

.rangam-contact-details > a,
.rangam-contact-details > div {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    color: #ffffff;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
}

.rangam-contact-details i {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: #17a99b;
    border-radius: 10px;
}

.rangam-contact-details span { display: flex; flex-direction: column; color: #ffffff; font-size: 14px; line-height: 1.5; }
.rangam-contact-details small { margin-bottom: 3px; color: #7de6dd; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.rangam-contact-form {
    height: 100%;
    padding: 62px 64px;
    color: #153b58;
    background: #ffffff;
}

.rangam-form-heading { margin-bottom: 34px; }
.rangam-form-heading span { color: #109c91; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.rangam-form-heading h3 { margin: 8px 0 0; color: #153b58; font-size: clamp(30px, 2.3vw, 40px); font-weight: 700; }

.rangam-contact-form label {
    display: block;
    margin-bottom: 9px;
    color: #244b63;
    font-size: 13px;
    font-weight: 700;
}

.rangam-contact-form input,
.rangam-contact-form textarea,
.rangam-contact-form .form-control {
    padding: 14px 16px;
    color: #153b58;
    background: #f5f9fa;
    border: 1px solid #d7e4e8;
    border-radius: 10px;
}

.rangam-contact-form textarea { min-height: 125px; resize: vertical; }
.rangam-contact-form .form-control::placeholder { color: #91a3ac; font-weight: 500; }
.rangam-contact-form .form-control:focus { color: #153b58; background: #ffffff; border-color: #17a99b; box-shadow: 0 0 0 4px rgba(23,169,155,.1); }

.rangam-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 170px;
    padding: 15px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #17a99b, #087f96);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 12px 25px rgba(8,127,150,.2);
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}

.rangam-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(8,127,150,.28); }

@media (max-width: 991px) {
    .rangam-contact-section { padding: 78px 0; }
    .rangam-contact-panel { min-height: auto; padding: 52px 44px; }
    .rangam-contact-form { padding: 52px 44px; }
}

@media (max-width: 575px) {
    .rangam-contact-section { padding: 58px 0; }
    .rangam-contact-shell { border-radius: 20px; }
    .rangam-contact-panel, .rangam-contact-form { padding: 38px 22px; }
    .rangam-contact-panel h2 { font-size: 34px; }
    .rangam-contact-details { margin-top: 30px; }
    .rangam-submit-btn { width: 100%; }
}

/* Aesthetic color layer only; original template layout and styling stay intact. */
.home-contact-us {
    background-color: #e1eae7;
}

.about-us {
    background-color: #f0ebe1;
}

.medical-services {
    background-color: #dce7e5;
}

.how-we-work {
    background-color: #ebe6dc;
}

.our-faqs,
.meet-our-team,
.page-contact-form {
    background-color: #e1e9e8;
}

.medical-service-item,
.services-item,
.team-member-item,
.rangam-department-card,
.rangam-facility-card,
.faq-accordion .accordion-item {
    background-color: #faf6ed;
}

.rangam-facilities,
.rangam-related-services {
    background-color: #dce6e5;
}

.rangam-related-card {
    background-color: #f2ede3;
}

.subpage-header {
    background-color: var(--primary-color);
}

/* Soft shaded palette; color treatment only. */
body {
    background: linear-gradient(180deg, #edf5f5 0%, #e6eeee 100%);
}

header.main-header {
    background: linear-gradient(105deg, #173650 0%, #214d68 100%);
}

header.main-header .header-sticky.active {
    background: linear-gradient(105deg, rgba(23, 54, 80, .97), rgba(33, 77, 104, .97));
}

.hero {
    background: radial-gradient(circle at 82% 22%, rgba(68, 204, 193, .17), transparent 30%),
                linear-gradient(120deg, #173650 0%, #214d68 64%, #285d72 100%);
}

.home-contact-us {
    background: linear-gradient(135deg, #dceceb 0%, #e9f1ef 52%, #e6e1ec 100%);
}

.about-us {
    background: linear-gradient(135deg, #f1e9dc 0%, #e9efea 58%, #dcebea 100%);
}

.medical-services {
    background-color: transparent;
    background-image: url('../images/half-circle-3.png'), linear-gradient(135deg, #d7e8eb 0%, #e6e4ef 52%, #e8eee8 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: left top 60px, center;
    background-size: auto, cover;
}

.how-we-work {
    background: linear-gradient(135deg, #e9e1d4 0%, #dce9e5 55%, #dce6ee 100%);
}

.our-faqs {
    background: linear-gradient(135deg, #dbe7ed 0%, #e8e3ec 55%, #e7eee9 100%);
}

.meet-our-team,
.page-contact-form {
    background: linear-gradient(135deg, #dce8e9 0%, #e8e5ee 52%, #eee9df 100%);
}

.medical-service-item,
.services-item,
.team-member-item,
.rangam-department-card,
.rangam-facility-card,
.faq-accordion .accordion-item {
    background: linear-gradient(145deg, #fffaf0 0%, #eef7f5 100%);
    box-shadow: 0 12px 32px rgba(23, 68, 84, .09);
}

.medical-service-content .icon-box {
    background: linear-gradient(145deg, #e3f1ef, #e9e3ee) !important;
}

.rangam-facilities,
.rangam-related-services {
    background: linear-gradient(135deg, #d4e3e7 0%, #e3e8ef 50%, #e8e2d8 100%);
}

.rangam-related-card {
    background: linear-gradient(145deg, #f5eddf, #e8f1ef);
}

.subpage-header {
    background: radial-gradient(circle at 84% 24%, rgba(70, 211, 198, .2), transparent 28%),
                linear-gradient(115deg, #173650 0%, #24536d 100%);
}

.cta-box {
    background: linear-gradient(110deg, #173650 0%, #24566e 100%);
}

.contact-appointment {
    background: linear-gradient(145deg, #16a99b, #278fa0);
}

.contact-form,
.contact-us-form {
    background: linear-gradient(145deg, #173650, #214c68);
}

.home-contact-form::after {
    background: linear-gradient(105deg, rgba(18, 48, 72, .86), rgba(30, 91, 103, .7));
}

.rangam-footer {
    background: linear-gradient(120deg, #132e48 0%, #1d4a64 100%);
}

/* Brighter shaded hero while preserving the original hero layout. */
.hero {
    background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .72), transparent 27%),
                radial-gradient(circle at 12% 86%, rgba(115, 205, 193, .2), transparent 30%),
                linear-gradient(120deg, #d5eaec 0%, #e3edf3 52%, #f0e3e8 100%);
}

.hero::before {
    opacity: .1;
}

.hero-content .section-title h3 {
    color: #147f7a;
}

.hero-content .section-title h1 {
    color: #183650;
}

.hero-body p {
    color: #455f6e;
}

.hero-footer .btn-default,
.hero-footer .btn-default::before {
    color: #147f7a;
    border-color: #147f7a;
}

.hero-footer .btn-default::after {
    background: #147f7a;
}

.hero-footer .btn-default:hover,
.hero-footer .btn-default:hover::before {
    color: #ffffff;
}

.hero-images {
    filter: drop-shadow(0 18px 28px rgba(28, 70, 88, .13));
}

/* Rangam logo-inspired hero shading and service imagery. */
.hero {
    background: radial-gradient(circle at 84% 16%, rgba(8, 169, 230, .2), transparent 28%),
                radial-gradient(circle at 12% 88%, rgba(8, 125, 69, .13), transparent 29%),
                radial-gradient(circle at 52% 105%, rgba(227, 60, 79, .08), transparent 25%),
                linear-gradient(120deg, #e3f4f7 0%, #edf7f5 52%, #e5eef7 100%);
}

.hero-images .hero-image-1 figure,
.hero-images .hero-image-2 figure {
    border: 6px solid rgba(255, 255, 255, .92);
    border-radius: 999px;
    box-shadow: 0 20px 45px rgba(24, 54, 80, .18);
}

.hero-images .hero-image-1 img,
.hero-images .hero-image-2 img {
    filter: saturate(.88) contrast(1.03);
}

.hero-images {
    filter: none;
}

/* Responsive refinements for desktop, tablet, mobile and narrow phones. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
iframe {
    max-width: 100%;
}

@media (max-width: 1199px) {
    .hero-content {
        padding-right: 70px;
    }

    .hero-content .section-title h1 {
        font-size: 44px;
    }

    .rangam-brand {
        font-size: 20px;
    }

    .rangam-logo {
        width: 56px;
        height: 56px;
    }

    .medical-service-content {
        padding-right: 28px;
        padding-left: 28px;
    }
}

@media (max-width: 991px) {
    .hero-content {
        max-width: 720px;
        margin-right: auto;
        margin-left: auto;
        padding-right: 0;
    }

    .hero-images {
        width: 100%;
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
    }

    .home-contact-us .row {
        margin-right: 0;
        margin-left: 0;
    }

    .about-content,
    .faqs-content {
        padding-left: 0;
    }

    .rangam-footer-column {
        margin-top: 24px;
    }

    .doctor-photo-viewer img {
        max-width: 92vw;
        max-height: 80vh;
    }
}

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

    .hero {
        padding: 52px 0;
    }

    .hero-content .section-title h1 {
        font-size: clamp(32px, 8vw, 42px);
        line-height: 1.12;
    }

    .hero-body p {
        font-size: 16px;
    }

    .hero-images {
        max-width: 500px;
    }

    .hero-images .hero-image-1 figure,
    .hero-images .hero-image-2 figure {
        border-width: 4px;
    }

    .home-contact-us {
        padding-right: 12px;
        padding-left: 12px;
    }

    .home-contact-item {
        min-height: 0;
    }

    .medical-service-content {
        padding: 28px 24px 78px;
    }

    .medical-service-content .icon-box {
        height: 150px !important;
    }

    .rangam-facility-image {
        height: 230px;
    }

    .contact-form,
    .contact-us-form,
    .contact-appointment {
        padding: 32px 24px;
    }

    .rangam-footer-bottom {
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .hero {
        padding: 44px 0 50px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .section-title,
    .hero-content .section-title h3 {
        text-align: center;
    }

    .hero-footer {
        justify-content: center;
    }

    .hero-footer .btn-default {
        margin-right: 0;
    }

    .hero-images {
        gap: 4%;
        justify-content: center;
        margin-top: 10px;
    }

    .hero-images .hero-image-1,
    .hero-images .hero-image-2 {
        width: 46%;
    }

    .hero-images .hero-image-2 {
        margin-bottom: 52px;
    }

    .section-title h1,
    .section-title h2 {
        overflow-wrap: anywhere;
    }

    .rangam-logo-lockup {
        gap: 7px;
    }

    .rangam-logo {
        width: 44px;
        height: 44px;
    }

    .rangam-brand {
        font-size: 17px;
    }

    .rangam-brand small {
        font-size: 7px;
        letter-spacing: .2em;
    }

    .rangam-facility-image {
        height: 210px;
    }

    .rangam-facility-body {
        padding-right: 55px;
    }

    .doctor-photo-viewer {
        padding: 16px;
    }

    .doctor-photo-viewer-close {
        top: 10px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 380px) {
    .hero-content .section-title h1 {
        font-size: 29px;
    }

    .rangam-brand {
        font-size: 15px;
    }

    .rangam-logo {
        width: 40px;
        height: 40px;
    }

    .contact-form,
    .contact-us-form,
    .contact-appointment {
        padding: 24px 16px;
    }

    .rangam-footer-logo strong {
        font-size: 19px;
    }
}

/* Final hero polish: presentation only, with the existing structure and images. */
.hero {
    overflow: hidden;
    background: radial-gradient(circle at 86% 18%, rgba(8, 169, 230, .18), transparent 25%),
                radial-gradient(circle at 8% 88%, rgba(8, 125, 69, .11), transparent 28%),
                radial-gradient(circle at 58% 110%, rgba(227, 60, 79, .09), transparent 24%),
                linear-gradient(128deg, #e8f7f8 0%, #f3f7fb 54%, #fff0ef 100%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 9%;
    right: -90px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(8, 143, 166, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 52px rgba(8, 169, 230, .035), 0 0 0 104px rgba(8, 125, 69, .025);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 620px;
}

.hero-content .section-title h3 {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 8px 15px;
    border: 1px solid rgba(20, 127, 122, .2);
    border-radius: 999px;
    color: #116f72;
    background: rgba(255, 255, 255, .58);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .16em;
    backdrop-filter: blur(8px);
}

.hero-content .section-title h1 {
    max-width: 610px;
    color: #153b58;
    font-size: clamp(44px, 4.25vw, 64px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.hero-body {
    max-width: 570px;
}

.hero-body p {
    color: #496575;
    line-height: 1.75;
}

.hero-footer .btn-default {
    color: #ffffff;
    border-color: #087f96;
    background: #087f96;
    box-shadow: 0 12px 28px rgba(8, 127, 150, .2);
}

.hero-footer .btn-default::before {
    color: #ffffff;
}

.hero-footer .btn-default::after {
    background: #153b58;
}

.hero-images {
    max-width: 590px;
    padding: 24px 10px;
    background: none;
    background-size: 68% auto;
}

/* Keep the template's original dotted artwork visible on the light hero. */
.hero-images::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/white-dots-img.png') no-repeat center center;
    background-size: 68% auto;
    filter: brightness(0) saturate(100%) invert(19%) sepia(28%) saturate(1515%) hue-rotate(159deg) brightness(91%);
    opacity: .38;
    pointer-events: none;
}

.hero-images .hero-image-1,
.hero-images .hero-image-2 {
    position: relative;
    z-index: 1;
}

.hero-images .hero-image-1,
.hero-images .hero-image-2 {
    width: 46%;
    max-width: 285px;
}

.hero-images .hero-image-2 {
    margin-bottom: 82px;
}

.hero-images .hero-image-1 figure,
.hero-images .hero-image-2 figure {
    border: 7px solid rgba(255, 255, 255, .94);
    box-shadow: 0 24px 55px rgba(21, 59, 88, .18);
}

@media (max-width: 991px) {
    .hero-content {
        max-width: 760px;
    }

    .hero-content .section-title h1 {
        max-width: 720px;
        font-size: clamp(40px, 6vw, 56px);
    }
}

@media (max-width: 575px) {
    .hero::after {
        width: 190px;
        height: 190px;
        right: -100px;
    }

    .hero-content .section-title h3 {
        justify-content: center;
        font-size: 11px;
        letter-spacing: .1em;
    }

    .hero-content .section-title h1 {
        font-size: clamp(31px, 9vw, 40px);
        line-height: 1.1;
    }

    .hero-images {
        padding: 18px 4px 0;
    }

    .hero-images .hero-image-1 figure,
    .hero-images .hero-image-2 figure {
        border-width: 4px;
    }
}

/* Final palette overrides are last so every page uses the same Rangam theme. */
body {
    background: #edf5f6;
    color: #405b69;
}

header.main-header,
header.main-header .header-sticky.active {
    background: linear-gradient(110deg, #153b58 0%, #1b4965 58%, #176477 100%);
}

.main-menu ul li.highlighted-menu a {
    color: #ffffff !important;
    border-color: #17a99b;
    background: linear-gradient(135deg, #17a99b, #087f96);
    box-shadow: 0 10px 24px rgba(8, 127, 150, .24);
}

.main-menu ul li.highlighted-menu a::after {
    background: #e33c4f;
}

.main-menu ul li.highlighted-menu a:hover,
.main-menu ul li.highlighted-menu a:focus,
.main-menu ul li.highlighted-menu a:hover i,
.main-menu ul li.highlighted-menu a:focus i {
    color: #ffffff !important;
}

.home-contact-us {
    background: linear-gradient(135deg, #dff1ef 0%, #e9f1f5 52%, #f5e9ea 100%);
}

.about-us {
    background: linear-gradient(135deg, #fff9f0 0%, #edf6f3 58%, #e2f0f3 100%);
}

.medical-services {
    background-image: url('../images/half-circle-3.png'), linear-gradient(135deg, #dceff2 0%, #edf2f5 52%, #f6e9eb 100%);
}

.how-we-work {
    background: linear-gradient(135deg, #f8f0e5 0%, #e5f2ef 55%, #e3eef5 100%);
}

.our-faqs,
.meet-our-team,
.page-contact-form {
    background: linear-gradient(135deg, #e3f0f3 0%, #eef3f2 52%, #f7eaeb 100%);
}

.medical-service-item,
.services-item,
.team-member-item,
.rangam-department-card,
.rangam-facility-card,
.faq-accordion .accordion-item {
    background: linear-gradient(145deg, #fffdf8 0%, #f0f8f6 100%);
    border: 1px solid rgba(21, 59, 88, .08);
    box-shadow: 0 14px 34px rgba(21, 59, 88, .09);
}

/* Original homepage form structure with final spacing and Rangam theme. */
.home-contact-form {
    padding: 105px 0 115px;
    background-image: url('../images/home-emergency-v3.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
.home-contact-form::after {
    display: block;
    background: linear-gradient(110deg, rgba(13,48,70,.82), rgba(16,91,100,.72), rgba(21,59,88,.76));
}
.home-contact-form .section-title { margin-bottom: 48px; }
.home-contact-form .section-title h3 { color: #72e4d9; }
.home-contact-form .section-title h2 { color: #ffffff; }
.home-contact-form .row.no-gutters { overflow: hidden; border: 1px solid rgba(21,59,88,.09); border-radius: 24px; box-shadow: 0 26px 65px rgba(21,59,88,.14); }
.contact-appointment { background: radial-gradient(circle at 85% 12%, rgba(109,225,214,.2), transparent 30%), linear-gradient(145deg, #153b58 0%, #176477 100%); }
.contact-appointment .appointment-img img { filter: brightness(0) invert(1); opacity: .92; }
.contact-appointment .appointment-content h3 { color: #ffffff; }
.contact-appointment .appointment-content h3 strong { color: #6de1d6; }
.contact-form { background: linear-gradient(145deg, #fffdf8 0%, #f1f8f7 100%); }
.contact-form input,
.contact-form textarea,
.contact-form .form-control { color: #153b58; background: #ffffff; border-color: #cfdee2; box-shadow: 0 5px 14px rgba(21,59,88,.035); }
.contact-form textarea::placeholder,
.contact-form .form-control::placeholder { color: #738a95; }
.contact-form .form-control:focus { color: #153b58; background: #ffffff; border-color: #17a99b; box-shadow: 0 0 0 4px rgba(23,169,155,.1); }
.contact-form .btn-default { color: #ffffff; border-color: #109c91; background: linear-gradient(135deg, #17a99b, #087f96); box-shadow: 0 10px 24px rgba(8,127,150,.2); }
.contact-form .btn-default::before { color: #ffffff; }
.contact-form .btn-default::after { background: #153b58 !important; }
@media (max-width: 991px) { .home-contact-form { padding: 80px 0 90px; background-attachment: scroll; } .home-contact-form .section-title { margin-bottom: 36px; } }
@media (max-width: 575px) { .home-contact-form { padding: 60px 0 72px; } .home-contact-form .row.no-gutters { border-radius: 18px; } }

/* About page theme: existing structure with richer branded surfaces. */
.page-about {
    background: radial-gradient(circle at 88% 14%, rgba(8,169,230,.11), transparent 25%), linear-gradient(135deg, #fffaf3 0%, #edf6f4 56%, #e5f1f5 100%);
}

.page-about .page-about-body p {
    color: #496575;
    line-height: 1.75;
}

.page-about-image figure {
    overflow: hidden;
    border: 7px solid rgba(255,255,255,.92);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(21,59,88,.16);
}

.page-about-image figure img {
    min-height: 500px;
    object-fit: cover !important;
}

.we-improving {
    position: relative;
    background: radial-gradient(circle at 92% 15%, rgba(53,187,174,.2), transparent 25%), linear-gradient(120deg, #153b58 0%, #176477 100%);
}

.we-improving .improving-img figure {
    overflow: hidden;
    border: 6px solid rgba(255,255,255,.12);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(7,30,45,.25);
}

.we-improving .improving-img img {
    width: 100%;
    min-height: 440px;
    object-fit: cover;
}

.improving-content .section-title h3 { color: #72e4d9; }
.improving-content .section-title h2 { color: #ffffff; }
.improving-body p { color: rgba(255,255,255,.78); line-height: 1.75; }

.top-services {
    background: linear-gradient(135deg, #e8f3f4 0%, #f5f1e9 54%, #f5e9ec 100%);
}

.top-services .services-item {
    overflow: hidden;
    background: linear-gradient(145deg, #fffdf8 0%, #f0f8f6 100%);
    border: 1px solid rgba(21,59,88,.08);
    border-radius: 18px;
    box-shadow: 0 15px 36px rgba(21,59,88,.09);
}

.top-services .services-item::before {
    background: linear-gradient(145deg, #109c91, #087f96);
}

.health-services {
    background: radial-gradient(circle at 10% 85%, rgba(23,169,155,.12), transparent 28%), linear-gradient(135deg, #fffaf4 0%, #edf5f3 100%);
}

.health-service-item {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(21,59,88,.08);
    box-shadow: 0 12px 30px rgba(21,59,88,.07);
}

@media (max-width: 991px) {
    .page-about-image figure img,
    .we-improving .improving-img img { min-height: 380px; }
}

@media (max-width: 575px) {
    .page-about-image figure img,
    .we-improving .improving-img img { min-height: 280px; }
}

/* Hero image composition matched to the About-page pill artwork. */
.rangam-hero-visual::before {
    content: '';
    position: absolute;
    left: 12%;
    bottom: 2%;
    width: 76%;
    height: 82%;
    z-index: 0;
    background: rgba(247, 235, 222, .72);
    border-radius: 48% 52% 45% 55% / 58% 42% 58% 42%;
    transform: rotate(-8deg);
}

.rangam-hero-dots {
    top: 27%;
    left: 25%;
    z-index: 1;
    width: 50%;
    height: 54%;
    opacity: .52;
}

.rangam-hero-main,
.rangam-hero-secondary {
    border: 7px solid rgba(255,255,255,.95);
    border-radius: 999px;
}

.rangam-hero-main {
    left: 2%;
    bottom: 0;
    z-index: 2;
    width: 44%;
    height: 72%;
    border-radius: 999px;
}

.rangam-hero-secondary {
    top: 0;
    right: 7%;
    z-index: 3;
    width: 44%;
    height: 82%;
    border-radius: 999px;
}

.rangam-open-card {
    right: 0;
    bottom: 25px;
    z-index: 5;
}

@media (max-width: 575px) {
    .rangam-hero-visual::before { left: 10%; width: 80%; height: 78%; }
    .rangam-hero-dots { top: 25%; left: 24%; width: 54%; height: 53%; }
    .rangam-hero-main { left: 0; width: 47%; height: 70%; border-radius: 999px; }
    .rangam-hero-secondary { right: 3%; width: 47%; height: 80%; border-radius: 999px; }
    .rangam-open-card { right: 0; bottom: 8px; }
}

