/* Max Healthcare Style Slanted Hero Component - Cyan Blue & Fresh Green Theme */
.max-hero-section {
  position: relative;
  width: 100%;
  min-height: 540px;
  background-color: #003B63;
  display: flex;
  overflow: hidden;
}

/* Vertical Emergency Tab (Far Left) */
.vertical-emergency-tab {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(180deg, #D32F2F 0%, #B71C1C 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 20;
  transition: background-color 0.25s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.vertical-emergency-tab:hover {
  background: #B71C1C;
}

.vertical-emergency-tab span {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 6px;
  transform: rotate(180deg);
}

/* Slanted Left Content Panel - Vibrant Blue Gradient Base */
.hero-left-panel {
  position: relative;
  width: 54%;
  min-height: 540px;
  background: linear-gradient(135deg, #00385F 0%, #005F9E 50%, #0088CC 100%);
  padding: 50px 60px 50px 90px;
  color: #FFFFFF;
  z-index: 10;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  display: flex;
  align-items: center;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

/* Subtle Glowing Green Border Accent along the slant */
.hero-left-panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--secondary-green) 0%, var(--primary-blue) 100%);
  box-shadow: 0 0 15px var(--secondary-green);
}

.hero-left-content {
  max-width: 560px;
}

/* Breadcrumbs */
.hero-breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

.hero-breadcrumbs a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
}

.hero-breadcrumbs a:hover {
  color: var(--secondary-green);
}

.hero-breadcrumbs span {
  color: var(--secondary-green);
  font-weight: 700;
}

/* Hospital Title */
.hero-hospital-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Google Rating Badge */
.google-rating-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: fit-content;
  flex-wrap: wrap;
}

.google-g-icon {
  width: 22px;
  height: 22px;
}

.stars-group {
  color: #FFC107;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.stars-group span {
  color: rgba(255, 255, 255, 0.4);
}

.rating-score {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 1.1rem;
}

.rating-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* Info Lines */
.hero-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.info-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(120, 192, 67, 0.2);
  border: 1px solid rgba(120, 192, 67, 0.4);
  color: var(--secondary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row-icon .icon {
  width: 16px;
  height: 16px;
}

.info-row-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
}

.info-row-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.phone-link {
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--secondary-green);
}

/* Buttons Row */
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.max-outline-btn {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.max-outline-btn:hover {
  background: #FFFFFF;
  color: var(--primary-blue);
  border-color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.arrow-icon {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

/* Slanted Right Image Panel */
.hero-right-image-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  z-index: 1;
}

.hospital-exterior-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Enhanced Responsive Breakpoints for Mobile & Tablet */
@media (max-width: 1024px) {
  .max-hero-section { flex-direction: column; min-height: auto; }
  .hero-left-panel {
    width: 100%;
    clip-path: none;
    padding: 40px 30px 40px 70px;
    min-height: auto;
  }
  .hero-left-panel::after { display: none; }
  .hero-right-image-panel {
    position: relative;
    width: 100%;
    height: 320px;
  }
  .hero-hospital-title { font-size: 1.9rem; }
}

@media (max-width: 768px) {
  .max-hero-section {
    margin-top: 72px; /* Push hero section beneath fixed mobile navbar */
  }
  .vertical-emergency-tab {
    position: relative;
    width: 100%;
    height: 38px;
    top: auto;
    left: auto;
    bottom: auto;
    box-shadow: none;
  }
  .vertical-emergency-tab span {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 2px;
    font-size: 0.8rem;
  }
  .hero-left-panel {
    padding: 28px 20px;
  }
  .hero-hospital-title {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }
  .hero-actions-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions-row .btn, .hero-actions-row .max-outline-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-right-image-panel {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .max-hero-section {
    margin-top: 68px;
  }
  .hero-hospital-title { font-size: 1.35rem; }
  .google-rating-badge { font-size: 0.8rem; padding: 6px 12px; }
  .hero-info-row { gap: 10px; margin-bottom: 14px; }
  .info-row-title { font-size: 0.92rem; }
  .info-row-sub { font-size: 0.82rem; }
}
