/**
 * Army Welfare Trust Hospital (AWTH), Jahanabad
 * Ultra-Fast, Responsive, Military-Grade Modern CSS
 * Zero External Dependencies • Optimized for Light-Speed Rendering
 */

@font-face {
  font-family: 'SolaimanLipi';
  src: url('../fonts/SolaimanLipi.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --army-primary: #0b3b24;
  --army-primary-dark: #072517;
  --army-secondary: #134e32;
  --army-accent: #c8963e;
  --army-accent-light: #dfb059;
  --army-red: #c5221f;
  --army-navy: #0f172a;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "SolaimanLipi", Helvetica, Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bengali, .bangla, .bangla-title, [lang="bn"], .font-bangla {
  font-family: 'SolaimanLipi', sans-serif !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--army-secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--army-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =====================================================================
   TOP ALERT & HELPLINE BAR
   ===================================================================== */
.top-bar {
  background-color: var(--army-primary-dark);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.top-bar-inner {
  max-width: 1440px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.25rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.top-utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  padding: 0;
  border: none;
}

a.top-utility-item:hover {
  color: #e2e8f0;
}

.utility-label {
  color: #ffffff;
  font-weight: 800;
}

.top-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  white-space: nowrap;
}

.portal-outline-btn {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  padding: 0.26rem 0.85rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  text-decoration: none;
  transition: var(--transition);
}

.portal-outline-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.emergency-pill {
  background-color: var(--army-red);
  color: #ffffff;
  border: 1.5px solid var(--army-red);
  padding: 0.26rem 0.85rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  text-decoration: none;
}

.emergency-pill:hover {
  background-color: #9b1916;
  border-color: #9b1916;
  color: #ffffff;
}

.hms-login-link {
  background-color: var(--army-accent);
  color: #000;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hms-login-link:hover {
  background-color: #e5b967;
  color: #000;
}

/* =====================================================================
   MAIN HEADER & NAVIGATION
   ===================================================================== */
.main-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(11, 59, 36, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.5rem;
  max-width: 1440px;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logos img.logo-awt,
.brand-logo-right img.logo-asc {
  height: 62px;
  width: 62px;
  object-fit: contain;
  display: block;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-logo-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--army-primary);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.brand-text .sub-title {
  font-size: 0.96rem;
  color: #9a6b1f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.18rem;
  padding-bottom: 0.16rem;
  border-bottom: 1px solid rgba(154, 107, 31, 0.32);
}

.brand-text .address-sub {
  font-size: 0.88rem;
  color: #334155;
  font-weight: 800;
  margin-top: 0.16rem;
}

.blink-open-all {
  color: #334155;
  font-weight: 900;
  animation: blinkOneSec 1.5s infinite;
}

@keyframes blinkOneSec {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--army-primary-dark);
  padding: 0.55rem 0.35rem;
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--army-primary);
}

.nav-link.active {
  color: var(--army-primary);
  font-weight: 800;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--army-accent);
  border-radius: 2px;
}

.btn-header-cta {
  background-color: var(--army-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-header-cta:hover {
  background-color: var(--army-secondary);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--army-primary);
}

/* =====================================================================
   TV-STYLE SCROLLING TICKER UNDER HEADER
   ===================================================================== */
.header-ticker-bar {
  background: linear-gradient(90deg, #072517 0%, #0b3b24 50%, #072517 100%);
  color: #ffffff;
  border-bottom: 2px solid var(--army-accent);
  overflow: hidden;
  padding: 0.42rem 0;
  position: relative;
  z-index: 95;
}

.ticker-viewport {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 26s linear infinite;
}

.header-ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  white-space: nowrap;
}

.ticker-item {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.ticker-highlight {
  color: var(--army-accent-light);
  text-transform: uppercase;
}

.ticker-emergency {
  background-color: var(--army-red);
  color: #ffffff;
  padding: 0.12rem 0.65rem;
  border-radius: 4px;
  font-weight: 800;
}

.ticker-emergency:hover {
  color: #ffffff;
  background-color: #9b1916;
}

.ticker-sep {
  color: var(--army-accent);
  font-size: 0.85rem;
}

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

/* =====================================================================
   HERO BANNER
   ===================================================================== */
.hero-section {
  position: relative;
  background-color: var(--army-navy);
  color: #fff;
  overflow: hidden;
  padding: 4.5rem 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 59, 36, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%),
              url('../images/hospital-main.jpg') center/cover no-repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.military-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 150, 62, 0.2);
  border: 1px solid var(--army-accent);
  color: var(--army-accent-light);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--army-accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--army-accent);
  color: #0f172a;
}

.btn-primary:hover {
  background-color: var(--army-accent-light);
  color: #000;
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-red {
  background-color: var(--army-red);
  color: #fff;
}

.btn-red:hover {
  background-color: #a71b18;
  color: #fff;
}

/* =====================================================================
   QUICK HIGHLIGHTS & STATS BAR
   ===================================================================== */
.stats-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(11, 59, 36, 0.08);
  color: var(--army-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.stat-info .stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--army-primary);
  line-height: 1.2;
}

.stat-info .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* =====================================================================
   SECTION HEADINGS & LAYOUT
   ===================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-bg-light {
  background-color: #f1f5f9;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--army-accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--army-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* =====================================================================
   DEPARTMENT CARDS
   ===================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--army-accent);
}

.card-body {
  padding: 1.75rem;
  flex: 1;
}

.dept-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background-color: var(--army-primary);
  color: var(--army-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.dept-icon-box.has-image {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  padding: 4px;
}

.dept-icon-box.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--army-primary);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* =====================================================================
   DOCTOR CARDS
   ===================================================================== */
.doctor-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--army-accent);
}

.doctor-header {
  background: linear-gradient(135deg, var(--army-primary) 0%, var(--army-secondary) 100%);
  color: #fff;
  padding: 1.25rem;
  position: relative;
}

.military-rank-tag {
  background: var(--army-accent);
  color: #0f172a;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.doctor-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.doctor-army-id {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.doctor-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doc-meta-row {
  margin-bottom: 0.75rem;
}

.doc-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
}

.doc-meta-val {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 600;
}

.doc-chamber-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: auto;
  font-size: 0.85rem;
}

.chamber-time {
  color: var(--army-primary);
  font-weight: 700;
}

/* =====================================================================
   DIAGNOSTIC & TEST TABLE
   ===================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th {
  background-color: var(--army-primary);
  color: #fff;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.data-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.data-table tr:hover {
  background-color: #f8fafc;
}

.badge-analyzer {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.price-text {
  font-weight: 800;
  color: var(--army-primary);
}

/* =====================================================================
   NOTICES & ANNOUNCEMENTS
   ===================================================================== */
.notice-item {
  background: #fff;
  border-left: 4px solid var(--army-accent);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.notice-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.notice-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--army-primary);
  margin-bottom: 0.5rem;
}

.notice-snippet {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.main-footer {
  background-color: var(--army-primary-dark);
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
  border-top: 4px solid var(--army-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #94a3b8;
}

.footer-col h4 {
  color: var(--army-accent);
  font-size: 1rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--army-accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* =====================================================================
   RESPONSIVENESS (MULTI-ROW WITHOUT SHRINKING HEADER FONTS)
   ===================================================================== */
/* Default State (Desktop) */
.top-bar-mobile {
  display: none;
}
.mobile-drawer-footer {
  display: none;
}

@media (max-width: 1260px) {
  .top-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }
}

@media (max-width: 991px) {
  /* 1. COMPACT 1-ROW MOBILE TOPBAR */
  .desktop-only {
    display: none !important;
  }
  .top-bar {
    padding: 0.4rem 0;
    background: #062617;
  }
  .top-bar-mobile {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }
  .mobile-hotline-pill {
    background: #dc2626;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    border: 1px solid #ef4444;
  }
  .mobile-hotline-pill strong {
    color: #fef08a;
  }
  .mobile-pulse-dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulseDot 1.4s infinite;
  }
  @keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
  }
  .mobile-top-btns {
    display: flex;
    gap: 0.35rem;
  }
  .mobile-top-action-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #dfb059 !important;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(223, 176, 89, 0.5);
    white-space: nowrap;
  }

  /* 2. SLIM UNIFIED 1-ROW HEADER */
  .header-inner {
    padding: 0.4rem 0.6rem !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .brand-wrapper {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    gap: 0.45rem !important;
    align-items: center !important;
    display: flex !important;
    text-decoration: none !important;
  }
  .brand-logos {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .brand-logos img.logo-awt {
    height: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    object-fit: contain !important;
    display: block !important;
  }
  .brand-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .brand-text h1 {
    font-size: clamp(0.78rem, 3.2vw, 0.94rem) !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    font-weight: 800 !important;
    color: var(--army-primary) !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
  }
  .brand-text .sub-title {
    font-size: clamp(0.58rem, 2.3vw, 0.68rem) !important;
    margin-top: 1px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    color: #9a6b1f !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    line-height: 1.15 !important;
  }
  .brand-text .address-sub {
    font-size: clamp(0.53rem, 2.0vw, 0.62rem) !important;
    margin-top: 1px !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    color: #334155 !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
  }

  /* CRITICAL: Collapse desktop main-nav on mobile so it takes 0px flex space */
  .main-nav {
    position: static !important;
    flex: 0 0 0px !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: visible !important;
  }

  .header-right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    flex-shrink: 0 !important;
    width: auto !important;
    border: none !important;
    padding: 0 !important;
    margin-left: auto !important;
  }
  .brand-logo-right {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  .brand-logo-right img.logo-asc {
    height: 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    object-fit: contain !important;
    display: block !important;
  }
  .mobile-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 6px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: var(--army-primary) !important;
    font-size: 1.15rem !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  /* 3. PREMIUM MOBILE NAV DRAWER */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    border-top: 2px solid var(--army-primary);
    display: none;
    align-items: stretch;
    gap: 0.2rem;
    z-index: 99999;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .nav-menu.open {
    display: flex !important;
  }
  .nav-link {
    width: 100%;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--army-primary);
    background: #f0fdf4;
    border-radius: 6px;
  }
  .mobile-drawer-footer {
    display: flex !important;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
    list-style: none;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
  }
  .mobile-drawer-btn-primary {
    background: #0b3b24;
    color: #dfb059 !important;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid #dfb059;
    display: block;
  }
  .mobile-drawer-btn-secondary {
    background: #f8fafc;
    color: #0b3b24 !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    font-size: 0.92rem;
    border: 1px solid #cbd5e1;
    display: block;
  }
  .mobile-drawer-helpline {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
    margin-top: 0.25rem;
  }
  .mobile-drawer-helpline a {
    color: #0b3b24;
    font-weight: 700;
    text-decoration: none;
  }

  /* 4. TICKER BAR */
  .header-ticker-bar {
    padding: 0.25rem 0;
    font-size: 0.78rem;
  }
}

/* =====================================================================
   5. MOBILE DIAGNOSTICS INVESTIGATION CARDS (< 768px)
   ===================================================================== */
@media (max-width: 768px) {
  .table-responsive {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .data-table {
    display: block !important;
    width: 100% !important;
    border: none !important;
  }
  .data-table thead {
    display: none !important;
  }
  .data-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }
  .data-table tr {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid var(--army-primary) !important;
    border-radius: 10px !important;
    padding: 0.95rem 1rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
    position: relative !important;
  }
  .data-table td {
    display: block !important;
    border: none !important;
    padding: 0 !important;
  }
  
  /* Test Title & Price */
  .data-table td.col-name {
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    padding-right: 95px !important; /* reserve space for price tag */
    margin-bottom: 0.35rem !important;
  }
  .data-table td.col-price {
    position: absolute !important;
    top: 0.95rem !important;
    right: 1rem !important;
  }
  .data-table td.col-price .price-text {
    background: #f0fdf4 !important;
    color: #0b3b24 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    display: inline-block !important;
  }

  /* Code & Category Badges */
  .data-table td.col-code {
    display: inline-block !important;
    font-family: monospace !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #0b3b24 !important;
    background: #ecfdf5 !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 4px !important;
    border: 1px solid #a7f3d0 !important;
    margin-right: 0.4rem !important;
    margin-bottom: 0.35rem !important;
  }
  .data-table td.col-cat {
    display: inline-block !important;
    margin-bottom: 0.35rem !important;
  }
  .data-table td.col-cat .badge-cat {
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.15rem 0.5rem !important;
    border-radius: 4px !important;
  }

  /* Specimen & Technical Details */
  .data-table td.col-specimen {
    font-size: 0.82rem !important;
    color: #475569 !important;
    border-top: 1px dashed #e2e8f0 !important;
    padding-top: 0.45rem !important;
    margin-top: 0.35rem !important;
    line-height: 1.4 !important;
  }
  .data-table td.col-specimen::before {
    content: "🧪 Sample: ";
    font-weight: 700;
    color: #64748b;
  }
  .data-table td.col-analyzer {
    display: inline-block !important;
    margin-top: 0.35rem !important;
    margin-right: 0.5rem !important;
  }
  .data-table td.col-analyzer .badge-analyzer {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-size: 0.72rem !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 4px !important;
  }
  .data-table td.col-tat {
    display: inline-block !important;
    font-size: 0.78rem !important;
    color: #334155 !important;
    font-weight: 700 !important;
    margin-top: 0.35rem !important;
  }
  .data-table td.col-tat::before {
    content: "⏱ TAT: ";
    color: #64748b;
  }
}

/* Small Smartphone Screen Adjustments (< 480px) */
@media (max-width: 480px) {
  .header-inner {
    padding: 0.35rem 0.5rem !important;
    gap: 0.25rem !important;
  }
  .brand-wrapper {
    gap: 0.38rem !important;
  }
  .brand-logos img.logo-awt {
    height: 35px !important;
    width: 35px !important;
    min-width: 35px !important;
  }
  .brand-text h1 {
    font-size: clamp(0.74rem, 3.1vw, 0.85rem) !important;
    line-height: 1.15 !important;
  }
  .brand-text .sub-title {
    font-size: clamp(0.55rem, 2.2vw, 0.62rem) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.1px !important;
  }
  .brand-text .address-sub {
    font-size: clamp(0.48rem, 1.9vw, 0.56rem) !important;
    line-height: 1.15 !important;
  }
  .brand-logo-right img.logo-asc {
    height: 32px !important;
    width: 32px !important;
    min-width: 32px !important;
  }
  .mobile-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 1.05rem !important;
  }
  .hero-title {
    font-size: 1.6rem !important;
  }
  .section-title {
    font-size: 1.5rem !important;
  }
  .btn {
    width: 100% !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .mobile-top-btns {
    display: none !important;
  }
  .top-bar-mobile {
    justify-content: center !important;
  }
  .mobile-hotline-pill {
    width: 100% !important;
    justify-content: center !important;
  }
}

