/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary-red: #B70000;
    --secondary-grey: #808080;
    --light-grey: #f8f9fa;
    --dark-grey: #333333;
    --white: #ffffff;
    --bs-body-font-size: 0.95rem; 
}

html, body {
    width: 100%;
    overflow-x: hidden; /* CRITICAL: Prevents white space on right side on mobile */
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-grey);
    font-size: var(--bs-body-font-size);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. NAVBAR STYLES
   ========================================= */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: var(--white);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
/* --- Force brand + toggler in one line --- */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Prevent brand text from wrapping */
.navbar-brand {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}

/* Keep logo size controlled on small screens */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 0.95rem;
  }

  .navbar-brand img {
    height: 36px;
    margin-right: 6px;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 430px) {
  .navbar-brand {
    font-size: 0.82rem;   /* slightly smaller */
  }

  .navbar-brand img {
    height: 32px;        /* slightly smaller logo */
    margin-right: 5px;
  }

  .navbar-toggler {
    padding: 0.2rem 0.45rem;
  }
}

.navbar-brand img {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

.nav-link {
    color: var(--dark-grey) !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red) !important;
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn-custom-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary-custom {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--primary-red);
}

.btn-secondary-custom {
    background-color: var(--secondary-grey);
    color: var(--white);
    border: 2px solid var(--secondary-grey);
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: transparent;
    color: var(--secondary-grey);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://www.shalby.org/wp-content/uploads/2020/11/Laparoscopic-Surgeries-A-Boon-1024x581.jpg');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
}

.section-title {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    font-size: 1.8rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-grey);
    margin-top: 8px;
}
/* --- NEW IMAGE-BASED TREATMENT CARDS --- */
.treatment-card-img {
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.treatment-card-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(183, 0, 0, 0.15);
    border-color: var(--primary-red);
}

.treatment-img-container {
    height: 220px; /* Fixed height for consistency */
    width: 100%;
    overflow: hidden;
    position: relative;
}

.treatment-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.treatment-card-img:hover .treatment-img-container img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.treatment-body {
    padding: 25px;
    background: #fff;
    position: relative;
}

/* Small Red Line Decoration */
.treatment-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    width: 50px;
    height: 4px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.treatment-card-img:hover .treatment-body::before {
    transform: scaleX(1);
}

.treatment-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-grey);
}
/* =========================================
   5. CONDITIONS WE CURE CAROUSEL (New)
   ========================================= */
.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    gap: 20px;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
    
    /* Hide Scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}

.scrolling-wrapper::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

.condition-card {
    flex: 0 0 auto;
    width: 300px; /* Desktop Width */
    scroll-snap-align: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

/* Mobile specific card width */
@media (max-width: 576px) {
    .condition-card {
        width: 85vw; /* Almost full width on phones */
    }
}

.condition-card:hover {
    transform: translateY(-5px);
}

.condition-img-box {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.condition-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.condition-card:hover .condition-img-box img {
    transform: scale(1.1);
}

.condition-content {
    padding: 20px;
    text-align: center;
}

.condition-title {
    font-weight: 700;
    color: var(--dark-grey);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.condition-tag {
    background: #ffebee;
    color: var(--primary-red);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* =========================================
   6. TREATMENT CARDS (Index & Services)
   ========================================= */
/* Style used in Services Page */
.treatment-box {
    transition: all 0.3s ease;
    background: #fff;
}

.treatment-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin: 0 auto 20px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.treatment-box:hover {
    transform: translateY(-5px);
}

.treatment-box:hover .treatment-icon-circle {
    border-color: var(--primary-red);
    background: #fff;
    transform: rotateY(180deg);
}

/* Style used in Index Page (Grid) */
.treatment-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px 20px;
    transition: all 0.4s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.treatment-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-red);
    z-index: -1;
    transition: all 0.4s ease;
    opacity: 0.05;
}

.treatment-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 15px 30px rgba(183, 0, 0, 0.1);
}

.treatment-card:hover::after {
    height: 100%;
}

.treatment-icon-box {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-red);
    font-size: 2rem;
    transition: all 0.4s;
    border: 2px solid transparent;
}

.treatment-card:hover .treatment-icon-box {
    background: var(--white);
    border-color: var(--primary-red);
    transform: rotateY(180deg);
}

/* =========================================
   7. OTHER COMPONENTS
   ========================================= */
/* Doctor Image */
.doctor-img-container {
    border-bottom: 5px solid var(--primary-red);
    overflow: hidden;
    border-radius: 10px;
}

.doctor-img-container img {
    transition: transform 0.5s ease;
}

.doctor-img-container:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-top: 4px solid var(--secondary-grey);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card::before {
    content: '\201C'; 
    font-family: serif;
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 100px;
    color: var(--primary-red);
    opacity: 0.2;
    line-height: 1;
}

/* Cure Box (List style) */
.cure-box {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    border-left: 5px solid var(--secondary-grey);
    transition: all 0.3s ease;
}

.cure-box:hover {
    border-left-color: var(--primary-red);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cure-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #eee;
    margin-right: 15px;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: #1a1a1a;
    color: #bbb;
    padding-top: 60px;
    font-size: 0.9rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* Makes logo white on dark bg */
}

footer h5 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #111;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}



/* --- PAGE HEADER BACKGROUNDS (Hero Sections) --- */
.page-header {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0; /* Increase height */
    color: var(--white);
    margin-top: 60px; /* Offset for fixed navbar */
}

/* Dark Overlay to make text readable */
.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 60% Black Overlay */
}

/* Ensure text sits on top of overlay */
.page-header .container {
    position: relative;
    z-index: 1;
}

/* Specific Background Images */
.hero-about {
    background-image: url('https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

.hero-services {
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQbHQaP1S4-m-FRZ9MsYHu7gfRVHSKJHv2d9A&s');
}

.hero-contact {
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS4l9ap_WGpA5eOHbW3nR0pT1qF1HHjmX9mLw&s');
}

/* Updated Service Page Card (With Bullets) */
.service-page-card {
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-red);
}

.service-page-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.service-page-body {
    padding: 25px;
}

.gallery-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.4s ease;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

/* Mobile optimization */
@media (max-width: 576px) {
  .gallery-card img {
    height: 200px;
  }
}

.designer-text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.company-link {
  /*color: #ffc107;*/
  text-decoration: none;
  margin-left: 5px;
  white-space: nowrap;
}

.company-link:hover {
  text-decoration: underline;
}

/* Mobile friendly spacing */
@media (max-width: 576px) {
  .designer-text {
    font-size: 13px;
  }
}

