/* ==========================================================================
   Tosamaganga Regional Referral Hospital (TRRH)
   Production Style Sheet - Bootstrap 5.0 Customizations & Design Tokens
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Color Palette */
  --trrh-primary: #0c2b58;       /* Deep Medical Blue */
  --trrh-primary-light: #184482; /* Lighter Navy */
  --trrh-secondary: #0056b3;     /* Clinical Blue */
  --trrh-accent: #d92525;        /* Tanzania Healthcare Red */
  --trrh-accent-hover: #b81c1c;  /* Darker Red */
  --trrh-success: #198754;       /* Medical Green */
  --trrh-gold: #f39c12;          /* Warning/Highlight Gold */
  --trrh-light-bg: #f4f7fc;      /* Soft Healthcare Light Blue Gray */
  --trrh-card-bg: #ffffff;
  --trrh-dark: #0a192f;          /* Footer Deep Navy */
  --trrh-text-main: #2d3748;
  --trrh-text-muted: #64748b;
  --trrh-border-color: #e2e8f0;

  /* Typography Sizes */
  --trrh-font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Box Shadows & Glassmorphism */
  --trrh-shadow-sm: 0 2px 8px rgba(12, 43, 88, 0.06);
  --trrh-shadow-md: 0 8px 24px rgba(12, 43, 88, 0.08);
  --trrh-shadow-lg: 0 16px 36px rgba(12, 43, 88, 0.12);
  --trrh-glass-bg: rgba(255, 255, 255, 0.85);
  --trrh-glass-border: rgba(255, 255, 255, 0.3);
  --trrh-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Reset & Base Styles --- */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--trrh-font-family);
  color: var(--trrh-text-main);
  background-color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--trrh-primary);
  letter-spacing: -0.3px;
}

h1 { font-size: 3rem; }      /* 48px - 60px */
h2 { font-size: 2.25rem; }   /* ~36px - 40px */
h3 { font-size: 1.5rem; }    /* 24px */
h4 { font-size: 1.25rem; }   /* 20px */
h5 { font-size: 1.1rem; }    /* 18px */
h6 { font-size: 0.95rem; }   /* 15px */

a {
  text-decoration: none;
  transition: var(--trrh-transition);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--trrh-primary-light);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--trrh-accent);
}

/* ===================================================
   MNH-INSPIRED HEADER SYSTEM (3-layer structure)
   Layer 1: Government Branding Bar (white)
   Layer 2: Main Navigation Bar (white, navy text)
   Layer 3: Emergency Strip (dark navy)
   =================================================== */

/* --- Layer 1: Government Branding Bar --- */
.top-gov-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle medical background image overlay */
.top-gov-bar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: url('../image/about-us-image1.jpg') center/cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

.gov-emblem {
  max-height: 60px;
  object-fit: contain;
}

.gov-subtitle {
  color: var(--trrh-accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.hospital-title-main {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--trrh-primary);
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* --- Layer 2: Main Navbar (WHITE background, navy text) --- */
.main-navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: var(--trrh-transition);
  padding: 0;
  border-bottom: 2px solid var(--trrh-primary);
}

.main-navbar.scrolled {
  box-shadow: var(--trrh-shadow-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.navbar-brand-logo {
  height: 42px;
  transition: var(--trrh-transition);
}

.main-navbar.scrolled .navbar-brand-logo {
  height: 36px;
}

/* Brand text next to logo */
.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--trrh-primary);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--trrh-text-muted);
  font-style: italic;
}

/* Nav Links: Navy text on white, active = red */
.main-navbar .nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--trrh-primary) !important;
  padding: 14px 13px !important;
  position: relative;
  transition: var(--trrh-transition);
}

/* No bottom-bar pseudo-element for dropdown-toggle (conflicts with caret) */
.main-navbar .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--trrh-accent);
  transition: var(--trrh-transition);
  border-radius: 2px 2px 0 0;
}

.main-navbar .nav-link:not(.dropdown-toggle):hover::after,
.main-navbar .nav-link.active:not(.dropdown-toggle)::after {
  width: 80%;
}

.main-navbar .nav-link:hover {
  color: var(--trrh-accent) !important;
}

.main-navbar .nav-link.active {
  color: var(--trrh-accent) !important;
}

/* Appointments Button (filled navy, matching MNH reference) */
.btn-appointments {
  background-color: var(--trrh-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 22px;
  border-radius: 4px;
  border: none;
  transition: var(--trrh-transition);
  letter-spacing: 0.3px;
}

.btn-appointments:hover {
  background-color: var(--trrh-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 37, 37, 0.3);
}

/* Dropdown Menus */
.main-navbar .dropdown-menu {
  border: none;
  border-top: 3px solid var(--trrh-accent);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  margin-top: 0;
  background: #ffffff;
  animation: fadeInDown 0.2s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-navbar .dropdown-item {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--trrh-primary);
  padding: 9px 20px;
  transition: var(--trrh-transition);
}

.main-navbar .dropdown-item i {
  color: var(--trrh-accent);
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
}

.main-navbar .dropdown-item:hover {
  background-color: var(--trrh-light-bg);
  color: var(--trrh-accent);
  padding-left: 24px;
}

/* --- Layer 3: Emergency Strip (Dark Navy) --- */
.emergency-strip {
  background-color: var(--trrh-primary);
  padding: 6px 0;
}

.emergency-phone-link {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--trrh-transition);
}

.emergency-phone-link i {
  color: var(--trrh-gold);
  font-size: 1rem;
}

.emergency-phone-link:hover {
  color: var(--trrh-gold);
}

/* Social Circle Buttons (matching MNH reference) */
.social-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: var(--trrh-transition);
  text-decoration: none;
}

.social-icon-circle:hover {
  background: var(--trrh-accent);
  color: #ffffff;
  transform: scale(1.1);
}

/* Language Toggle Button */
.btn-lang-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.75rem;
  font-family: monospace;
  padding: 3px 12px;
  border-radius: 4px;
  transition: var(--trrh-transition);
}

.btn-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-trrh-accent {
  background-color: var(--trrh-accent);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  border: 2px solid var(--trrh-accent);
  transition: var(--trrh-transition);
  box-shadow: 0 4px 12px rgba(217, 37, 37, 0.3);
}

.btn-trrh-accent:hover {
  background-color: var(--trrh-accent-hover);
  border-color: var(--trrh-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 37, 37, 0.4);
}

.btn-trrh-outline-primary {
  border: 2px solid var(--trrh-primary);
  color: var(--trrh-primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  transition: var(--trrh-transition);
}

.btn-trrh-outline-primary:hover {
  background-color: var(--trrh-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-trrh-white {
  background-color: #ffffff;
  color: var(--trrh-primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  border: 2px solid #ffffff;
  transition: var(--trrh-transition);
}

.btn-trrh-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--trrh-accent);
  transform: translateY(-2px);
}

/* --- Hero Section Slider --- */
.hero-slider-section {
  position: relative;
}

.hero-slide-item {
  height: 82vh;
  min-height: 560px;
  max-height: 720px;
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(12, 43, 88, 0.92) 0%, rgba(12, 43, 88, 0.75) 50%, rgba(12, 43, 88, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 780px;
}

.hero-badge {
  background: rgba(217, 37, 37, 0.9);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-motto {
  font-size: 1.35rem;
  font-weight: 400;
  color: #e2e8f0;
  margin-bottom: 30px;
}

/* Hero Carousel Controls */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  margin: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
  background: var(--trrh-accent);
  border-color: var(--trrh-accent);
}

/* --- Quick Action Services Cards --- */
.quick-action-bar {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.quick-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--trrh-shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--trrh-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--trrh-shadow-lg);
  border-color: var(--trrh-secondary);
}

.quick-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--trrh-light-bg);
  color: var(--trrh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 16px;
  transition: var(--trrh-transition);
}

.quick-card:hover .quick-icon-wrapper {
  background: var(--trrh-primary);
  color: #ffffff;
}

.quick-card.accent-card {
  background: var(--trrh-primary);
  color: #ffffff;
}

.quick-card.accent-card h5,
.quick-card.accent-card p {
  color: #ffffff;
}

.quick-card.accent-card .quick-icon-wrapper {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* --- Section Title Styling --- */
.section-tag {
  color: var(--trrh-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 3px;
  background-color: var(--trrh-accent);
  border-radius: 2px;
}

.section-title {
  color: var(--trrh-primary);
  font-weight: 800;
  font-size: 2.35rem;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--trrh-text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 36px auto;
}

/* --- Highlights / News Ticker Bar --- */
.news-ticker-bar {
  background-color: var(--trrh-primary);
  color: #ffffff;
  padding: 10px 0;
  border-top: 3px solid var(--trrh-accent);
}

.ticker-badge {
  background: var(--trrh-accent);
  color: #ffffff;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-content-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  animation: ticker 35s linear infinite;
  font-size: 0.92rem;
}

.ticker-text span {
  margin-right: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --- Executive Director Message Section (Inspired by reference.png) --- */
.director-section {
  background: #ffffff;
  padding: 80px 0;
}

.director-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--trrh-shadow-md);
  border: 1px solid var(--trrh-border-color);
  transition: var(--trrh-transition);
}

.director-card:hover {
  box-shadow: var(--trrh-shadow-lg);
}

.director-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.director-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
}

.director-badge-info {
  background: var(--trrh-primary);
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

.director-badge-info h5 {
  color: #ffffff;
  margin-bottom: 2px;
  font-weight: 700;
}

.director-badge-info p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.director-quote-icon {
  font-size: 3rem;
  color: rgba(217, 37, 37, 0.15);
  line-height: 1;
}

.director-statement-box {
  background: var(--trrh-light-bg);
  border-left: 5px solid var(--trrh-accent);
  padding: 24px 28px;
  border-radius: 0 16px 16px 0;
  margin-bottom: 24px;
}

/* Media Video Card (Reference style) */
.media-preview-card {
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--trrh-shadow-md);
}

.media-preview-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  opacity: 0.85;
}

.media-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: var(--trrh-accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 25px rgba(217, 37, 37, 0.6);
  transition: var(--trrh-transition);
  cursor: pointer;
}

.media-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffffff;
  color: var(--trrh-accent);
}

/* --- About Section --- */
.about-section {
  padding: 80px 0;
  background-color: var(--trrh-light-bg);
}

.about-img-frame {
  position: relative;
}

.about-img-main {
  border-radius: 20px;
  box-shadow: var(--trrh-shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--trrh-primary);
  color: #ffffff;
  padding: 24px 30px;
  border-radius: 20px;
  box-shadow: var(--trrh-shadow-md);
  border: 4px solid #ffffff;
}

.about-experience-badge h3 {
  color: var(--trrh-gold);
  font-size: 2.5rem;
  margin: 0;
  line-height: 1;
}

.about-experience-badge p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Clinical Services / Departments (Reference Style) --- */
.services-section {
  padding: 80px 0;
  background: #ffffff;
}

.dept-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  padding: 30px 24px;
  box-shadow: var(--trrh-shadow-sm);
  transition: var(--trrh-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--trrh-shadow-md);
  border-color: var(--trrh-secondary);
}

.dept-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(12, 43, 88, 0.06);
  color: var(--trrh-primary);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--trrh-transition);
}

.dept-card:hover .dept-icon-box {
  background: var(--trrh-accent);
  color: #ffffff;
}

.dept-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--trrh-primary);
}

.dept-text {
  color: var(--trrh-text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.dept-link {
  color: var(--trrh-accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dept-link:hover {
  color: var(--trrh-primary);
  gap: 10px;
}

/* --- Medical Specialists / Doctors --- */
.doctors-section {
  padding: 80px 0;
  background: var(--trrh-light-bg);
}

.doctor-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--trrh-shadow-sm);
  border: 1px solid var(--trrh-border-color);
  transition: var(--trrh-transition);
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--trrh-shadow-lg);
}

.doctor-img-box {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #f1f5f9;
}

.doctor-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--trrh-transition);
}

.doctor-card:hover .doctor-img-box img {
  transform: scale(1.05);
}

.doctor-badge-specialty {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--trrh-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.doctor-info-body {
  padding: 24px;
}

.doctor-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--trrh-primary);
  margin-bottom: 4px;
}

.doctor-title {
  color: var(--trrh-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.clinic-schedule-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.clinic-schedule-box strong {
  color: var(--trrh-primary);
  display: block;
  margin-bottom: 4px;
}

/* --- Multi-Grid Section (How Do I? / Core Values / Announcements - Reference Style) --- */
.info-multigrid-section {
  padding: 80px 0;
  background: #ffffff;
}

.accordion-trrh .accordion-item {
  border: 1px solid var(--trrh-border-color);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-trrh .accordion-button {
  font-weight: 600;
  color: var(--trrh-primary);
  background-color: #ffffff;
  padding: 16px 20px;
  font-size: 0.95rem;
}

.accordion-trrh .accordion-button:not(.collapsed) {
  background-color: var(--trrh-light-bg);
  color: var(--trrh-accent);
  box-shadow: none;
}

.accordion-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
  margin-right: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.accordion-badge.badge-service {
  background: #e0f2fe;
  color: #0369a1;
}

.accordion-badge.badge-general {
  background: #fef3c7;
  color: #b45309;
}

/* Core Values Cards */
.value-mini-card {
  background: var(--trrh-light-bg);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  transition: var(--trrh-transition);
}

.value-mini-card:hover {
  border-color: var(--trrh-accent);
  background: #ffffff;
  box-shadow: var(--trrh-shadow-sm);
}

/* --- Statistics Banner (Deep Navy Counter) --- */
.stats-banner {
  background: linear-gradient(135deg, var(--trrh-primary) 0%, var(--trrh-dark) 100%);
  color: #ffffff;
  padding: 70px 0;
  position: relative;
}

.stat-box {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  color: var(--trrh-accent);
}

.stat-label {
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- News & Announcements Section --- */
.news-section {
  padding: 80px 0;
  background: var(--trrh-light-bg);
}

.news-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--trrh-border-color);
  box-shadow: var(--trrh-shadow-sm);
  transition: var(--trrh-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--trrh-shadow-md);
}

.news-img-box {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trrh-transition);
}

.news-card:hover .news-img-box img {
  transform: scale(1.08);
}

.news-date-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(12, 43, 88, 0.85);
  backdrop-filter: blur(5px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--trrh-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--trrh-text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* --- Testimonials Carousel --- */
.testimonials-section {
  padding: 80px 0;
  background: #ffffff;
}

.testimonial-card {
  background: var(--trrh-light-bg);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--trrh-shadow-sm);
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--trrh-text-main);
  margin-bottom: 24px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--trrh-accent);
}

/* --- Insurance Partners Section --- */
.insurance-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 1px solid var(--trrh-border-color);
  border-bottom: 1px solid var(--trrh-border-color);
}

.insurance-logo-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  box-shadow: var(--trrh-shadow-sm);
  transition: var(--trrh-transition);
}

.insurance-logo-box:hover {
  border-color: var(--trrh-accent);
  box-shadow: var(--trrh-shadow-md);
  transform: translateY(-4px);
}

.insurance-logo-box img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--trrh-transition);
}

.insurance-logo-box:hover img {
  filter: grayscale(0%);
}

/* --- Gallery Grid --- */
.gallery-section {
  padding: 80px 0;
  background: var(--trrh-light-bg);
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 260px;
  box-shadow: var(--trrh-shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trrh-transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 43, 88, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--trrh-transition);
  color: #ffffff;
  font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* --- Contact & Emergency Section --- */
.contact-section {
  padding: 80px 0;
  background: #ffffff;
}

.contact-info-card {
  background: var(--trrh-primary);
  color: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  height: 100%;
  box-shadow: var(--trrh-shadow-md);
}

.contact-info-card h4 {
  color: #ffffff;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--trrh-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.form-control-trrh {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
}

.form-control-trrh:focus {
  border-color: var(--trrh-secondary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

/* --- Footer Section (Inspired by reference.png) --- */
.main-footer {
  background-color: var(--trrh-dark);
  color: #cbd5e1;
  padding-top: 70px;
  font-size: 0.92rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--trrh-accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-map-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  height: 180px;
}

.bottom-footer {
  background-color: #050d1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: var(--trrh-transition);
}

.social-circle-btn:hover {
  background: var(--trrh-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Back To Top Floating Button --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--trrh-accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--trrh-shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--trrh-transition);
  border: none;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--trrh-primary);
  transform: translateY(-4px);
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .quick-action-bar {
    margin-top: 20px;
  }
  .about-img-main {
    height: 340px;
  }
  .about-experience-badge {
    right: 10px;
    bottom: -15px;
    padding: 16px 20px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-slide-item {
    height: 70vh;
    min-height: 460px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
}
