/* ============================================
   St. Vincent De Paul Hospitals — Home Specific Styles
   ============================================ */
/* ============ VALUES (DARK BLUE) ============ */
.values {
  background: var(--color-navy);
  color: #fff;
  padding: 60px 0;
}
.values-grid {
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.value-card {
  text-align: left;
}
.value-icon {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 18px;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.value-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ============ DEPARTMENTS ============ */
.departments { padding: 80px 0; background: #fff; }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
.dept-card {
  padding: 26px 20px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
  cursor: pointer;
  background: #fff;
}
.dept-card i {
  font-size: 1.8rem;
  color: var(--color-red);
}
.dept-card h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}
.dept-card a,
.dept-card span {
  font-size: 0.78rem;
  color: var(--color-text);
  transition: color 0.2s;
}
.dept-card:hover {
  background: var(--color-light);
}
.dept-card.active {
  background: var(--color-red);
  border-color: var(--color-red);
}
.dept-card.active i,
.dept-card.active h4,
.dept-card.active a,
.dept-card.active span {
  color: #fff;
}

/* ============ DOCTORS ============ */
.doctors { padding: 60px 0 80px; background: #fff; }
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.doctor-card {
  background: var(--color-light);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s;
}
.doctor-card:hover { transform: translateY(-4px); }
.doctor-photo {
  width: 100%;
  height: 260px;
  background: #e5e7eb;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-info { padding: 16px; }
.doctor-info h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}
.doctor-info p {
  font-size: 0.8rem;
  color: var(--color-red);
}
.doctors-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.slider-arrows {
  display: flex;
  gap: 8px;
}
.slider-arrows button {
  width: 44px; height: 44px;
  background: var(--color-light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-text);
  transition: all 0.2s;
}
.slider-arrows button:hover {
  background: var(--color-red);
  color: #fff;
}

/* ============ NURSING ============ */
.nursing {
  background: linear-gradient(180deg, #cfe3f3 0%, #b8d6ec 100%);
  padding: 60px 0;
}
.nursing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.nursing-text h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 18px;
  color: var(--color-text);
}
.nursing-text p {
  color: var(--color-text);
  margin-bottom: 26px;
  font-size: 0.95rem;
}
.nursing-image {
  width: 100%;
  height: 360px;
  border-radius: 4px;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

/* ============ ABOUT ============ */
.about { padding: 80px 0; background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--color-light);
}
.about-image {
  width: 100%;
  height: 100%;
}
.about-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.about-text {
  padding: 50px 40px;
}
.about-text .section-eyebrow,
.about-text .section-title {
  text-align: left;
}
.about-text .section-title { margin-bottom: 20px; }
.about-body {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ============ STATS ============ */
.stats { padding: 60px 0; background: #fff; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.stat {
  border-right: 1px solid var(--color-border);
  padding: 10px 20px;
}
.stat:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number span {
  font-size: 1.4rem;
  color: var(--color-text);
}
.stat p {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* ============ PATIENT STORIES ============ */
.stories-section {
  padding: 6rem 0;
  background-color: #f8fafc;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stories-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stories-visual {
  position: relative;
}

.stories-image-frame {
  position: relative;
  aspect-ratio: 1.1; /* Slightly landscape */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.stories-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.stories-section:hover .stories-image-frame img {
  transform: scale(1.05);
}

.stories-content .section-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.stories-content .section-eyebrow {
  color: var(--color-red) !important;
  font-weight: 800;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.stories-content .section-title {
  color: var(--color-navy);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 0;
}

.stories-quote-carousel {
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(14, 42, 85, 0.05);
}

.stories-quote {
  grid-area: 1 / 1;
  width: 100%;
  padding: 3.5rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.stories-quote.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.big-quote {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 500;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f8fafc;
  box-shadow: var(--shadow-sm);
}

.quote-author span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
}

.quote-dots {
  grid-row: 2;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0 3rem 3rem;
}

.dot {
  width: 8px;
  height: 8px;
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 28px;
  background: var(--color-gold);
  border-radius: 10px;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS (Home Specific)
   =================================================== */

@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }

  .about-inner { grid-template-columns: 1fr; }
  .about-text { padding: 40px 30px; }

  /* Stories Responsive */
  .stories-section {
    min-height: auto;
    padding: 0;
    align-items: stretch;
    flex-direction: column;
  }
  .stories-section::before {
    background: linear-gradient(
      180deg,
      rgba(243, 244, 246, 0) 0%,
      rgba(243, 244, 246, 0.6) 40%,
      var(--color-light) 75%
    );
  }
  .stories-container {
    justify-content: center;
    padding-top: 300px; /* Space for the top half of background image */
    padding-bottom: 50px;
  }
  .stories-content {
    max-width: none;
    text-align: center;
  }
  .stories-content .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .stories-quote { padding: 40px 32px 12px; }
  .quote-dots { padding: 0 32px 32px; }
}

@media (max-width: 768px) {
  .nursing-inner { grid-template-columns: 1fr; gap: 24px; }
  .nursing-image { height: 280px; }

  .stats-inner { grid-template-columns: 1fr; gap: 24px; }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
    text-align: center;
  }
  .stat:last-child { border-bottom: none; }
}

@media (max-width: 540px) {
  .values { padding: 50px 0; }
  .values-grid { grid-template-columns: 1fr; gap: 28px; }
  .value-card { text-align: center; }

  .departments, .doctors, .about { padding: 50px 0; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: 1fr; gap: 16px; }
  .doctor-photo { height: 280px; }

  .doctors-actions { justify-content: space-between; }

  .about-text { padding: 30px 20px; }
  .about-image img { min-height: 240px; max-height: 280px; }

  .stories-heading-wrap {
    margin-top: -56px;
    margin-bottom: 20px;
  }
  .stories-quote { padding: 32px 24px 10px; }
  .quote-dots { padding: 0 24px 28px; }
  .quote-text { font-size: 1rem; }
  .big-quote { font-size: 3.5rem; }

  .nursing-text p br { display: none; }
}

@media (max-width: 380px) {
  .dept-grid { grid-template-columns: 1fr; }
}

