/* 
   Project: Hospital Landing Page
   Colors: Dark Green (#0d3b2e), Peach (#f4a481), Light Peach/Off-white (#fdf8f5), White (#ffffff)
*/

:root {
  --primary: #0d3b2e;
  /* Dark Green */
  --secondary: #f4a481;
  /* Peach */
  --bg-light: #fdf8f5;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --white: #ffffff;

  --font-main: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Typography Utility */
.text-peach {
  color: var(--secondary) !important;
}

.text-dark-green {
  color: var(--primary) !important;
}

.bg-peach {
  background-color: var(--secondary) !important;
}

.bg-dark-green {
  background-color: var(--primary) !important;
}

.tracking-wider {
  letter-spacing: 2px;
}

/* Buttons */
.btn-outline-custom {
  border: 1px solid var(--secondary);
  color: var(--secondary);
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

.btn-primary-custom {
  background-color: var(--secondary);
  color: var(--primary);
  border-radius: 30px;
  border: 1px solid var(--secondary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--secondary);
}

.btn-dark-custom {
  background-color: #111111;
  color: var(--white);
  border-radius: 30px;
  border: 1px solid #111111;
  transition: all 0.3s ease;
}

.btn-dark-custom:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Navbar */
.header {
  background-color: var(--primary);
  position: relative;
  z-index: 10;
}

.navbar-brand {
  color: var(--white);
}

.navbar-brand .logo-icon {
  color: var(--secondary);
  font-size: 2rem;
}

.navbar-brand:hover {
  color: var(--white);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary) !important;
}

/* Hero Section */
.hero-section {
  background-color: var(--primary);
  min-height: 85vh;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* subtle pattern if needed */
  opacity: 0.05;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 20px 20px;
}

.relative-z {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  color: var(--secondary);
}

.hero-title {
  line-height: 1.1;
}

.play-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-link-custom:hover .play-btn {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Hero Images */
.hero-image-wrapper {
  height: 550px;
  display: flex;
  justify-content: center;
  /* Centered to fill space instead of flex-end */
  align-items: center;
  position: relative;
}

.hero-img-container {
  width: 520px;
  height: 420px;
  border-radius: 30px !important;
  /* Changed from pill to rounded rectangle to better suit horizontal room photos */
  border: 8px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-img-secondary {
  width: 220px;
  height: 220px;
  bottom: 0;
  left: 20px;
  border-radius: 50% !important;
  /* Circle */
  border: 6px solid var(--primary);
}

.hero-blob {
  width: 480px;
  height: 400px;
  border-radius: 30px;
  right: auto;
  left: 20px;
  /* Offset to the left to balance the container */
  top: 95px;
  opacity: 0.8;
  z-index: 1;
}

/* Info Cards */
.info-cards-section {
  margin-top: -60px;
  /* Overlap hero */
}

.info-cards-container {
  border-radius: 20px !important;
}

.info-card {
  min-height: 280px;
}

.peach-card {
  background-color: var(--secondary);
}

.dark-green-card {
  background-color: #0c3127;
  /* slightly darker than primary to differentiate or just primary */
}

/* General Layout Utilities */
.z-index-2 {
  z-index: 2;
}

.z-index-3 {
  z-index: 3;
}

/* Services Section */
.service-card {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.btn-service {
  color: var(--secondary);
  transition: all 0.3s;
}

.service-card:hover .btn-service {
  color: var(--primary);
  padding-left: 10px !important;
}

.transition-all {
  transition: all 0.3s ease;
}

/* Team Section */
.team-card {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 35rem;
}

.team-card:hover {
  transform: translateY(0px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.team-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}

.team-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(13, 59, 46, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover .team-image-wrapper::after {
  opacity: 1;
}

.team-image-wrapper img {
  transition: transform 0.6s ease;
  transform-origin: top center;
}

.team-card:hover .team-image-wrapper img {
  transform: scale(1.08);
}

.team-socials {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover .team-socials {
  bottom: 0;
}

.team-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.team-social-icon:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

/* CTA Banner */
.cta-banner {
  border-top: 5px solid var(--secondary);
  border-bottom: 5px solid var(--secondary);
}

.bg-light-peach {
  background-color: var(--bg-light);
}

.hover-transform:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Testimonial Section */
.testimonial-card {
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

/* Utilities */
.hover-opacity-100:hover {
  opacity: 1 !important;
  color: var(--secondary) !important;
}

.hover-peach:hover {
  color: var(--secondary) !important;
  padding-left: 5px;
}

/* Contact Form Overrides */
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus,
.form-control:focus {
  background-color: transparent !important;
  color: white !important;
  border-color: var(--secondary) !important;
  box-shadow: none !important;
}

.form-control:focus::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding-bottom: 120px;
  }

  .hero-image-wrapper {
    height: auto;
    margin-top: 50px;
    justify-content: center;
  }

  .hero-img-container {
    width: 100%;
    max-width: 500px;
    height: 350px;
  }

  .hero-blob {
    right: auto;
    left: 10px;
    width: 90%;
    max-width: 450px;
    height: 320px;
    top: 50px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .info-cards-section {
    margin-top: 0;
    padding-top: 50px;
  }

  /* Navbar: keep logo and toggle on the same row, never wrap to next line */
  .navbar .container {
    flex-wrap: wrap;
    align-items: center;
  }

  .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-brand .logo-text {
    font-size: 1.1rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-toggler {
    flex-shrink: 0;
    order: 2;
  }

  /* Collapse menu always drops below the logo+toggle row */
  .navbar-collapse {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  /* Carousel cards: JS rebuilds slides, but ensure cards fill width */
  #doctorsCarousel .carousel-item .row > [class*="col-"],
  #testimonialsCarousel .carousel-item .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  /* Tablet: JS sets 2 cards per slide, each takes 50% */
  #doctorsCarousel .carousel-item .row > [class*="col-"],
  #testimonialsCarousel .carousel-item .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.testimonialDec-card{
  height: 22rem;
}

/* ── Doctor Cards ─────────────────────────────────────────── */

/* Image height — moved out of inline style */
.team-image-wrapper img {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

/* Description block — fixed height keeps all cards the same on every screen */
.doctor-description {
  height: 10.5rem;
  overflow: hidden;
}

/* Card layout — flex column so the info panel fills remaining space */
#doctorsCarousel .team-card {
  display: flex;
  flex-direction: column;
}

#doctorsCarousel .team-card .p-4 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 575px) {
  /* Testimonial card: remove fixed min-height on mobile */
  .testimonial-card {
    min-height: unset;
  }

  /* Doctor image height on mobile */
  .team-image-wrapper img {
    height: 29rem;
  }

.team-card {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
} 

}