:root {
    --obsidian: #0f1114;
    --gold: linear-gradient(135deg, #1e3c72, #2a5298);
    --transition: all 0.4s ease;
}

/* ================= BODY & TYPOGRAPHY ================= */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #111;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5 {
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* ================= NAVBAR ================= */
.navbar,
.custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* REMOVE rounded navbar */
.navbar {
    border-radius: 0;
}

/* FLEX ALIGNMENT FIX */
.custom-navbar .container,
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BRAND */
.navbar-brand,
.hospital-brand {
    font-weight: 800;
    text-decoration: none;
}

/* TITLE */
.hospital-title {
    font-family: 'Lexend', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hospital-subtitle {
    font-size: 13px;
    color: #555;
}

/* NAV LINKS */
.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 1.2rem;
}

/* ================= EMERGENCY BUTTON ================= */
.btn-emergency {
    background: linear-gradient(135deg,#ff416c,#ff4b2b);
    color: #fff;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    margin-top: 0 !important;
    display: inline-block;
    transition: 0.3s ease;
    animation: pulseEmergency 1.6s infinite;
}

.btn-emergency:hover {
    transform: scale(1.05);
    color: #fff;
}

/* ================= ANIMATION ================= */
@keyframes pulseEmergency {
    0% { box-shadow: 0 0 0 0 rgba(255,75,43,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255,75,43,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,75,43,0); }
}

/* ================= MOBILE ================= */
@media(max-width:768px){

    .hospital-title {
        font-size: 1.2rem;
    }

    .navbar-nav {
        margin-top: 15px;
    }

    .btn-emergency {
        margin-top: 10px !important;
    }
}

/* ================= HERO ================= */
.carousel-inner,
.carousel-item img {
    height: 90vh;
}

.carousel-item {
    position: relative;
}

.carousel-item img {
    width: 100%;
    object-fit: cover;
    animation: zoom 18s infinite alternate ease-in-out;
}

.carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 25%;
    left: 8%;
    text-align: left;
    max-width: 600px;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* ================= CARDS ================= */
.special-card {
    padding: 40px;
    border-radius: 25px;
    color: #fff;
    height: 100%;
    background: var(--gold);
    text-align: center;
    transition: var(--transition);
}

.special-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto;
    transition: var(--transition);
}

.special-card:hover .icon-wrap {
    transform: rotate(15deg) scale(1.1);
}

.doctor-card {
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: var(--transition);
    cursor: pointer;
}

.doctor-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s;
}

.doctor-card:hover img {
    transform: scale(1.05);
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* ================= CONTACT SECTION ================= */
.contact-highlight,
.contact-opd-section {
    background: var(--gold);
    color: #fff;
}

.contact-opd-section {
    border-radius: 25px;
    padding: 60px 20px;
    margin-bottom: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.working-hours,
.emergency-hours {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin-bottom: 15px;
}

.contact-btn {
    background: #fff;
    color: #1e3c72;
    font-weight: 600;
    padding: 15px;
    border-radius: 50px;
    transition: 0.3s ease;
    animation: pulseGlow 1.8s infinite;
}

.contact-btn:hover {
    transform: scale(1.05);
}

/* ================= FOOTER ================= */
footer {
    background: var(--obsidian);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

/* ================= ANIMATIONS (ONLY ONCE NOW) ================= */
@keyframes zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes pulseEmergency {
    0% { box-shadow: 0 0 0 0 rgba(255,75,43,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255,75,43,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,75,43,0); }
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){
    .carousel-caption { left: 5%; max-width: 90%; }
    .doctor-card img { height: 280px; }
    .hospital-title { font-size: 1.1rem; }
    .hospital-subtitle { font-size: 11px; }
}
/* ================= GLOBAL SECTION SPACING ================= */

/* Add spacing to all main sections */
section {
    padding: 100px 0;
}

/* Extra top spacing if navbar is fixed */
section:first-of-type {
    padding-top: 140px;
}

/* Remove gap between OPD and Main Doctor section */
.opd-section + .main-doctor-section {
    margin-top: 0 !important;
}

/* Improve container spacing */
.container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Mobile spacing adjustment */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    section + section {
        margin-top: 25px;
    }
}
.hospital-logo {
    width: 60px;
    height: 60px;
    padding: 2px;
}
.navbar-toggler {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba%280,0,0,0.8%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-link i {
    font-size: 1rem;
    transition: 0.3s;
}

.nav-link:hover i {
    transform: translateY(-2px);
}

@media(max-width:992px){
    .nav-link {
        padding: 12px 0;
        font-size: 1.05rem;
    }
}
/* ================= OPD SECTION ANIMATION ================= */

.opd-section {
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    background-size: 200% 200%;
    animation: gradientMove 6s ease infinite;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Fade Up Animation */
.opd-section .container {
    animation: fadeUp 1.2s ease forwards;
    opacity: 0;
}

/* Button Glow Pulse */
.opd-call {
    transition: 0.3s ease;
    animation: pulseCall 1.8s infinite;
}

.opd-call:hover {
    transform: scale(1.08);
}

/* Keyframes */
@keyframes fadeUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulseCall {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
    70% { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* ===== DOCTOR PROFILE HEADER STYLE ===== */

.doctor-heading {
    position: relative;
}

.doctor-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2a5298;
    margin-bottom: 8px;
}

.doctor-name {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.doctor-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    border-radius: 10px;
}

.doctor-details p {
    font-size: 16px;
    line-height: 1.8;
}

/* Mobile */
@media(max-width:768px){
    .doctor-name {
        font-size: 1.6rem;
    }
}
.section-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #2a5298;
}

.section-title {
    font-weight: 800;
    margin: 10px 0;
}

.section-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    border-radius: 10px;
}

.doctor-profile {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.doctor-profile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.doctor-role {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #666;
}
/* Doctor Image Styling */
.doctor-image-wrapper {
    position: relative;
    display: inline-block;
}

.doctor-img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: 0.4s ease;
}

.doctor-img:hover {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    color: #fff;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Content */
.doctor-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Mobile */
@media(max-width:768px){
    .experience-badge {
        right: 10px;
        bottom: 10px;
        font-size: 12px;
        padding: 8px 12px;
    }
}
/* Doctor Content Box */
.doctor-content-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.doctor-content-box:hover {
    transform: translateY(-5px);
}

.doctor-role {
    font-weight: 700;
    font-size: 18px;
    color: #2a5298;
}

/* Grid Layout */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
}

.info-item i {
    font-size: 22px;
    color: #1e3c72;
    background: rgba(30,60,114,0.1);
    padding: 12px;
    border-radius: 12px;
}

.info-item h6 {
    font-weight: 700;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 14px;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Mobile */
@media(max-width:768px){
    .info-grid {
        grid-template-columns: 1fr;
    }
}
/* ================= GLOBAL SCROLL REVEAL EFFECT ================= */

.section-padding,
.opd-section,
.contact-opd-section,
.special-card,
.doctor-content-box,
.doctor-img,
.testimonial,
.accordion-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.section-padding.show,
.opd-section.show,
.contact-opd-section.show,
.special-card.show,
.doctor-content-box.show,
.doctor-img.show,
.testimonial.show,
.accordion-item.show {
    opacity: 1;
    transform: translateY(0);
}
/* ===== MAIN DOCTOR PREMIUM SECTION ===== */

.main-doctor-section {
    background: linear-gradient(135deg, #eef5ff, #ffffff);
    position: relative;
    overflow: hidden;
}

/* Soft Background Glow */
.main-doctor-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30,60,114,0.15), transparent);
    top: -100px;
    right: -100px;
    z-index: 0;
}

/* Image */
.doctor-image-wrapper {
    position: relative;
    z-index: 1;
}

.main-doctor-img {
    transition: 0.5s ease;
}

.main-doctor-img:hover {
    transform: scale(1.04);
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 20px;
    border-radius: 20px;
    max-width: 220px;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { box-shadow: 0 0 0 0 rgba(30,60,114,0.5); }
    70% { box-shadow: 0 0 0 20px rgba(30,60,114,0); }
    100% { box-shadow: 0 0 0 0 rgba(30,60,114,0); }
}

/* Doctor Label */
.doctor-label {
    display: inline-block;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Doctor Name */
.doctor-name {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Accent Line */
.doctor-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    border-radius: 5px;
}

/* Highlight Box */
.highlight-box {
    background: rgba(30,60,114,0.07);
    border-left: 5px solid #1e3c72;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
}

/* Responsive */
@media(max-width:768px){
    .doctor-name {
        font-size: 1.8rem;
    }
    .experience-badge {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 20px;
    }
}
.doctor-qualification {
    background: #ffffff;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
/* ================= MOBILE HEADER IMPROVEMENT ================= */

@media (max-width: 768px) {

  /* Reduce navbar height */
  .navbar {
    padding: 10px 0;
  }

  /* Logo size */
  .hospital-logo {
    width: 45px;
    height: 45px;
  }

  /* Brand container alignment */
  .navbar-brand {
    gap: 10px !important;
    align-items: center;
  }

  /* Hospital title */
  .navbar-brand .fw-bold {
    font-size: 20px;
    line-height: 1.2;
  }

  /* Address text */
  .navbar-brand div div {
    font-size: 15px !important;
    line-height: 1.2;
  }

  /* Toggler alignment */
  .navbar-toggler {
    padding: 4px 8px;
  }

  /* Collapsed menu styling */
  .navbar-collapse {
    background: #ffffff;
    padding: 15px 0;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  }

  /* Nav links spacing */
  .navbar-nav .nav-link {
    font-size: 15px;
    padding: 10px 0;
  }

  /* Emergency button full width */
  .btn-emergency {
    width: 100%;
    margin-top: 10px !important;
  }
}
/* ================= XRAY MOVING GALLERY ================= */
#xrayGallery {;
  justify-content: center; /* center all divs horizontally */
              /* spacing between items */
}
.xray-section {
    background:#e2edfe;
    overflow: hidden;
}

.xray-slider {
    overflow: hidden;
    position: relative;
}

.xray-track {
    display: flex;
    animation: scrollXray 60s linear infinite;
}

.xray-track img {
    width: 260px;
    height: 340px;
    object-fit: contain;   /* CHANGE THIS */
    padding: 10px;
    margin: 0 15px;
    border-radius: 20px;
	border:1px #000000 solid;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: 0.4s ease;
}

.xray-track img:hover {
    transform: scale(1.05);
}

/* Smooth infinite animation */
@keyframes scrollXray {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.xray-slider:hover .xray-track {
    animation-play-state: paused;
}

/* Mobile */
@media(max-width:768px){
    .xray-track img {
        width: 180px;
        height: 240px;
    }
}
/* Pulsing badge animation for years of experience */
@keyframes pulseBadge {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}
.stat-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: 0.4s ease;
}

.stat-box:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.2);
}

.stat-icon {
  font-size: 35px;
}

.counter {
  font-size: 2.2rem;
  margin-bottom: 5px;
}
.xray-item {
  width: 100%;
  height: 250px;              /* same size box */
  border: 3px solid #234682;     /* border on div */
  border-radius: 10px;
  background: #f8f8f8;        /* light background for empty space */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.xray-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;        /* FULL image visible */
  cursor: pointer;
  transition: 0.3s ease;
}

.xray-item img:hover {
  transform: scale(1.05);
}
/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  text-align: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  margin-top: 5%;
  border-radius: 10px;
}