/* ==========================================================
   MANGULKAR HOSPITAL - CORE DESIGN SYSTEM
   Palette Inspired by Mangulkar Hospital Brochures
   Deep Navy: #003B63 | Medical Blue: #006699
   Turquoise: #16B8B3 | Red CTA: #E52D32
   Background: #F5F8FA | Dark Text: #1B2630
========================================================== */

:root {
  --primary-color: #003B63;
  --primary-dark: #002742;
  --secondary-color: #006699;
  --accent-color: #16B8B3;
  --accent-hover: #129a96;
  --cta-color: #E52D32;
  --cta-hover: #c42025;
  --bg-light: #F5F8FA;
  --bg-white: #FFFFFF;
  --text-dark: #1B2630;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 2px 6px rgba(0, 59, 99, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 59, 99, 0.09);
  --shadow-lg: 0 12px 30px rgba(0, 59, 99, 0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1280px;
}

/* Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-navy {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.section-navy h1,
.section-navy h2,
.section-navy h3 {
  color: #FFFFFF;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-navy .section-desc {
  color: #CBD5E1;
}

/* Divider Lines */
.divider-accent {
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
  margin: 1rem 0;
}

.text-center .divider-accent {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.3;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: #004d73;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-cta {
  background-color: var(--cta-color);
  color: #FFFFFF;
}

.btn-cta:hover {
  background-color: var(--cta-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 45, 50, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-outline-white {
  background-color: transparent;
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--primary-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-cta {
  background-color: #FEE2E2;
  color: var(--cta-color);
  border: 1px solid #FECACA;
}

.badge-accent {
  background-color: #E6FFFA;
  color: #0D9488;
  border: 1px solid #B2F5EA;
}

.badge-primary {
  background-color: #EBF8FF;
  color: var(--primary-color);
  border: 1px solid #BEE3F8;
}

/* Grids */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Standard Clinical Cards */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: #CBD5E1;
}

.card-body {
  padding: 1.75rem;
}

/* ==========================================================
   ROOT GATEWAY HOMEPAGE SPECIFIC STYLING (No Top Nav)
========================================================== */
.root-gateway {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #001F35;
  color: #FFFFFF;
  position: relative;
}

.root-header-strip {
  padding: 0.85rem 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 100;
  width: 100%;
}

.root-header-inner {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
}

/* 2-Part Logo & Branding Identity (Left: Icon Added by Admin, Right: Stylized Typography) */
.root-brand-container,
.brand-identity-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  background: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.root-brand-container:hover,
.brand-identity-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 0 1.5px rgba(22, 184, 179, 0.5);
}

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.brand-logo-icon img,
.root-logo-img {
  max-width: 50px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1.5px;
  height: 44px;
  background-color: #CBD5E1;
  flex-shrink: 0;
  border-radius: 1px;
  margin: 0 0.1rem;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  line-height: 1;
  flex-shrink: 0;
}

.brand-name-red {
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #E52D32;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.05;
  display: block;
  white-space: nowrap;
}

.brand-name-blue {
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #003B63;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 2px;
  display: block;
  white-space: nowrap;
}

.brand-tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #16B8B3;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 3px;
  display: block;
  white-space: nowrap;
}

/* Department Navbar Specific Logo Link */
.site-logo-link.brand-split-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  padding: 4px 0;
  flex-shrink: 0;
}

.site-logo-link.brand-split-nav .brand-logo-icon {
  width: 50px;
  height: 50px;
}

.site-logo-link.brand-split-nav .brand-divider {
  height: 44px;
}

@media (max-width: 991px) {
  .brand-name-red {
    font-size: 1.12rem;
  }

  .brand-name-blue {
    font-size: 0.80rem;
    letter-spacing: 1.5px;
  }

  .brand-tagline {
    font-size: 0.58rem;
  }

  .brand-logo-icon {
    width: 44px;
    height: 44px;
  }

  .brand-logo-icon img,
  .root-logo-img,
  .site-logo-img {
    max-height: 42px;
    max-width: 44px;
  }

  .brand-divider {
    height: 38px;
  }
}

@media (max-width: 576px) {
  .brand-tagline {
    display: none;
  }

  .brand-name-red {
    font-size: 1.02rem;
  }

  .brand-name-blue {
    font-size: 0.74rem;
    letter-spacing: 1px;
  }

  .brand-logo-icon {
    width: 38px;
    height: 38px;
  }

  .brand-logo-icon img,
  .root-logo-img,
  .site-logo-img {
    max-height: 36px;
    max-width: 38px;
  }

  .brand-divider {
    height: 32px;
  }

  .root-brand-container {
    padding: 6px 12px;
    gap: 0.65rem;
  }

  .site-logo-link.brand-split-nav {
    gap: 0.65rem;
  }
}

.root-contact-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Service Card Media Styles */
.service-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.service-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  background: #F1F5F9;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-media .service-icon-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  color: var(--secondary-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid #FFFFFF;
}

.service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.root-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0 1.5rem 0;
}

.root-title-box {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 1.25rem auto;
}

.root-hero-eyebrow {
  display: inline-block;
  background: rgba(22, 184, 179, 0.15);
  color: #16B8B3;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(22, 184, 179, 0.35);
}

.root-hero-title {
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.25;
}

.root-hero-lead {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: #E2E8F0;
  line-height: 1.45;
  max-width: 780px;
  margin: 0 auto;
}

/* 3 Interactive Department Gateway Cards */
.root-dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.gateway-card {
  position: relative;
  min-height: 490px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--text-dark);
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  background: #001F35;
}

.gateway-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  border-color: rgba(22, 184, 179, 0.6);
}

/* Full-bleed background media */
.gateway-card-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background-color: var(--primary-color);
}

.gateway-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gateway-card:hover .gateway-card-media img {
  transform: scale(1.08);
}

.gateway-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 40, 0.45) 0%, rgba(0, 20, 40, 0) 30%);
  pointer-events: none;
}

/* Top floating indicators */
.gateway-card-topbar {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.gateway-card-badge {
  background-color: var(--cta-color);
  color: #FFFFFF;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(229, 45, 50, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.2px;
}

.gateway-card-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-color);
  border: 2px solid #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Bottom Cloud Overlay */
.gateway-cloud-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

/* Cloud Wave Silhouette Header */
.cloud-wave-top {
  position: relative;
  width: 100%;
  height: 52px;
  margin-bottom: -2px;
  pointer-events: none;
  overflow: visible;
}

.cloud-wave-top svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 -4px 8px rgba(0, 24, 44, 0.08));
}

.cloud-path-back {
  fill: rgba(255, 255, 255, 0.55);
}

.cloud-path-front {
  fill: #FFFFFF;
}

/* Cloud Body Content */
.gateway-cloud-body {
  background: #FFFFFF;
  padding: 0.25rem 1.75rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.08);
}

.gateway-card-subtitle {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.35rem;
}

.gateway-card-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.gateway-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gateway-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #F1F5F9;
}

/* Explore Hospital Button (Only button kept) */
.gateway-explore-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.05vw, 0.9rem);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 59, 99, 0.2);
  transition: all 0.3s ease;
}

.gateway-explore-text {
  flex: 1;
  text-align: left;
  line-height: 1.25;
}

.gateway-card:hover .gateway-explore-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--cta-color) 100%);
  box-shadow: 0 6px 18px rgba(229, 45, 50, 0.35);
}

.explore-btn-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.gateway-card:hover .explore-btn-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.35);
}

/* Root Emergency Strip */
.root-emergency-strip {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 0;
  font-size: 0.88rem;
}

.root-emergency-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.root-emergency-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.root-emergency-phone {
  color: #F87171;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.root-emergency-address {
  color: #94A3B8;
  margin-left: 0.75rem;
  font-size: 0.82rem;
}

.root-emergency-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.root-copyright {
  color: #94A3B8;
  font-size: 0.82rem;
}

.root-footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  line-height: 1.1;
}

.root-footer-admin-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.root-footer-admin-link i {
  font-size: 0.62rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.breadcrumb-item.active {
  color: var(--text-muted);
  font-weight: 600;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(22, 184, 179, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-error,
.alert-danger {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* Contact & Appointment Layout Helpers */
.contact-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: start;
}

.contact-form-card,
.appointment-card-body {
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
}

.appointment-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .root-header-inner {
    gap: 1rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .root-dept-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
  }

  .gateway-card {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .root-header-inner {
    flex-direction: column !important;
    gap: 0.85rem;
    text-align: center;
    padding: 0.25rem 0;
  }

  .root-brand-container {
    max-width: 100%;
    justify-content: center;
  }

  .root-contact-badges {
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .root-title-box {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .root-hero-title {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .root-hero-lead {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .root-dept-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto 1.5rem auto;
    gap: 1.25rem;
  }

  .gateway-card {
    min-height: 380px;
  }

  .gateway-cloud-body {
    padding: 0.25rem 1.25rem 1.35rem 1.25rem;
  }

  .gateway-card-name {
    font-size: 1.25rem;
  }

  .gateway-card-desc {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    -webkit-line-clamp: 3;
  }

  .grid {
    gap: 1.25rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .card-body {
    padding: 1.25rem;
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 0.75rem 0.85rem;
  }

  .btn {
    padding: 0.7rem 1.3rem;
  }

  .btn-lg {
    padding: 0.85rem 1.6rem;
    font-size: 0.98rem;
  }

  .contact-main-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }

  .contact-form-card,
  .appointment-card-body {
    padding: 1.5rem 1.15rem !important;
  }

  .appointment-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .breadcrumbs {
    padding: 0.75rem 0;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .root-brand-container {
    padding: 6px 10px;
    gap: 0.5rem;
  }

  .brand-logo-icon {
    width: 36px;
    height: 36px;
  }

  .brand-divider {
    height: 28px;
  }

  .brand-name-red {
    font-size: 0.95rem;
    letter-spacing: 0.8px;
  }

  .brand-name-blue {
    font-size: 0.70rem;
    letter-spacing: 0.8px;
  }

  .root-contact-badges .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .root-hero-title {
    font-size: 1.45rem;
  }

  .gateway-card {
    min-height: 360px;
  }
}