/* 
 * DR. MANJUNATH G — WEBSITE ENHANCEMENT SYSTEM
 * Locked Brand Palette & Institutional Styling Specification
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
  /* Locked 5-Color Brand Palette */
  --deep-navy: #16223B;
  --brass-gold: #9C7A2E;
  --stone-paper: #ECE9DF;
  --ink: #1C1B17;
  --reserved-maroon: #7A2A2A;

  /* Accent & Utility Variations derived strictly from palette */
  --navy-dark: #0f182a;
  --navy-light: #243555;
  --stone-light: #f6f5f0;
  --stone-border: #d8d3c5;
  --gold-light: #cfa853;
  --gold-bg: rgba(156, 122, 46, 0.08);
  --maroon-bg: rgba(122, 42, 42, 0.08);
  --shadow-sm: 0 2px 8px rgba(22, 34, 59, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 34, 59, 0.1);
  --shadow-lg: 0 16px 40px rgba(22, 34, 59, 0.15);

  /* Typography Rules */
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'IBM Plex Sans', Arial, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--stone-paper);
  background-image: 
    radial-gradient(rgba(156, 122, 46, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(22, 34, 59, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .serif-heading {
  font-family: var(--font-serif);
  color: var(--deep-navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.15rem; letter-spacing: -0.02em; }
h2 { font-size: 1.65rem; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.92rem; }

p { margin-bottom: 0.85rem; font-size: 0.95rem; line-height: 1.65; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--deep-navy);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brass-gold);
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 3.5rem 0;
}

.bg-stone-light { background-color: var(--stone-light); }
.bg-navy { 
  background: linear-gradient(135deg, #0f182a 0%, #16223B 60%, #1c2b4a 100%);
  color: var(--stone-paper); 
  position: relative;
  overflow: hidden;
}
.bg-navy::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(156, 122, 46, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #ffffff; }

/* Header & Top Bar */
.top-gov-bar {
  background-color: var(--navy-dark);
  color: rgba(236, 233, 223, 0.9);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(156, 122, 46, 0.35);
}

.top-gov-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gov-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brass-gold);
}

.header-main {
  background-color: rgba(236, 233, 223, 0.96);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(22, 34, 59, 0.08);
  border-bottom: 2px solid var(--stone-border);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-decoration: none;
}

.brand-signature-box {
  background-color: var(--deep-navy);
  border: 1px solid var(--brass-gold);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-signature-box:hover {
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(156, 122, 46, 0.4);
}

.brand-signature-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.2) contrast(1.1);
  display: block;
}

.footer-signature-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.2);
  display: block;
}

.brand-text .title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.1;
}

.brand-text .subtitle {
  font-size: 0.72rem;
  color: var(--deep-navy);
  opacity: 0.88;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav-link {
  padding: 0.5rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--deep-navy);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(22, 34, 59, 0.08);
  color: var(--deep-navy);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.8rem;
  right: 0.8rem;
  height: 2.5px;
  background-color: var(--brass-gold);
  border-radius: 2px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stone-border);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--deep-navy);
  cursor: pointer;
}

/* Page Section Wrappers & Animated Entrance */
.page-view {
  display: none;
}

.page-view.active-page {
  display: block;
  animation: pageSlideEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Dynamic Animated Page Header Banner */
.page-banner {
  background: linear-gradient(135deg, #0f182a 0%, #16223B 50%, #1c2b4a 100%);
  background-size: 200% 200%;
  animation: gradientGlow 12s ease infinite;
  color: var(--stone-paper);
  padding: 2.75rem 0;
  border-bottom: 3px solid var(--brass-gold);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(156, 122, 46, 0.15) 0%, transparent 50%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes gradientGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0% { opacity: 0.4; transform: scale(0.98); }
  100% { opacity: 0.9; transform: scale(1.04); }
}

.page-banner h1 {
  color: #ffffff;
  margin-bottom: 0.4rem;
  font-size: 2.15rem;
}

.page-banner p {
  color: rgba(236, 233, 223, 0.9);
  font-size: 1.05rem;
  max-width: 800px;
}

.badge-maroon {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  background: linear-gradient(135deg, #7A2A2A 0%, #903030 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 6px rgba(122, 42, 42, 0.25);
  transition: var(--transition);
}

.badge-maroon:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(122, 42, 42, 0.4);
}

/* Buttons & UI Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--deep-navy);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 34, 59, 0.15);
}

.btn-primary:hover {
  background-color: var(--navy-dark);
  border-color: var(--brass-gold);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 34, 59, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--deep-navy);
  border-color: var(--deep-navy);
}

.btn-secondary:hover {
  background-color: var(--deep-navy);
  color: #ffffff;
}

.btn-gold {
  background-color: var(--brass-gold);
  color: #ffffff;
}

.btn-gold:hover {
  background-color: #856725;
  color: #ffffff;
}

.btn-sm {
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .grid-4-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-4-col {
    grid-template-columns: 1fr;
  }
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* About Page 40% Left Image, 60% Right Content Grid */
.about-40-60-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(22, 34, 59, 0.12);
  border: 3px solid #ffffff;
  background-color: var(--stone-border);
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.about-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-text .hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.hero-text .hero-subtitle {
  font-size: 1.1rem;
  color: var(--brass-gold);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.hero-text .hero-desc {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  opacity: 0.92;
}

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

.hero-image-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(22, 34, 59, 0.12);
  border: 3px solid #ffffff;
  background-color: var(--stone-border);
}

.hero-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-image-caption {
  background: rgba(22, 34, 59, 0.95);
  color: var(--stone-paper);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  border-top: 2px solid var(--brass-gold);
}

/* Snapshot Stats Bar — Elegant 5-Column Grid with NoWrap */
.stats-bar {
  background: linear-gradient(180deg, #ffffff 0%, var(--stone-light) 100%);
  border-top: 3px solid var(--brass-gold);
  border-bottom: 1px solid var(--stone-border);
  padding: 2.25rem 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), var(--brass-gold), transparent);
  animation: shimmerSweep 4.5s ease-in-out infinite;
}

@keyframes shimmerSweep {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  align-items: flex-start;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 0.85rem;
  border-right: 1px solid var(--stone-border);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brass-gold);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(156, 122, 46, 0.15);
}

.stat-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.stat-note {
  font-size: 0.76rem;
  color: var(--ink);
  opacity: 0.8;
  line-height: 1.3;
}

/* Cards & Content Modules */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brass-gold);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--brass-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;

  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stone-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Dossier Style (Global Engagement) */
.dossier-header {
  background: var(--gold-bg);
  border-left: 4px solid var(--brass-gold);
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.route-map-box {
  background-color: var(--deep-navy);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 2px solid var(--brass-gold);
  margin-bottom: 3rem;
}

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

.route-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(156, 122, 46, 0.4);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
}

.route-card .city {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--brass-gold);
  font-weight: 700;
}

.route-card .institution {
  font-size: 0.88rem;
  color: var(--stone-paper);
  margin-top: 0.4rem;
}

/* Tabs & Filters */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--stone-border);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--deep-navy);
}

.tab-btn.active {
  color: var(--deep-navy);
  border-bottom-color: var(--brass-gold);
  background-color: rgba(22, 34, 59, 0.05);
}

/* Search Bar */
.search-box {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--ink);
}

.form-control:focus {
  outline: none;
  border-color: var(--deep-navy);
  box-shadow: 0 0 0 3px rgba(22, 34, 59, 0.1);
}

/* Form Styles */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--deep-navy);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--reserved-maroon);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.form-checkbox input {
  margin-top: 0.25rem;
}

/* Gallery & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--stone-border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-overlay {
  padding: 1rem;
  background: #ffffff;
  border-top: 1px solid var(--stone-border);
}

.gallery-caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--deep-navy);
}

/* Lightbox Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 24, 42, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-backdrop.show {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 750px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-content.lightbox-fullview {
  max-width: 94vw;
  max-height: 94vh;
  width: auto;
  background: #0f172a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--brass-gold);
}

.modal-header {
  background: var(--deep-navy);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.75rem;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--deep-navy);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brass-gold);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: none;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Institutional Footer */
.footer-main {
  background-color: var(--navy-dark);
  color: var(--stone-paper);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--brass-gold);
}

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

.footer-col h4 {
  color: var(--brass-gold);
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
}

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

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

.footer-links a {
  color: rgba(236, 233, 223, 0.8);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(236, 233, 223, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(236, 233, 223, 0.65);
}

.social-icons {
  display: flex;
  gap: 0.85rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(156, 122, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-paper);
  font-size: 1.15rem;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--brass-gold);
  color: #ffffff;
  border-color: var(--brass-gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(156, 122, 46, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid,
  .about-40-60-grid,
  .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 100% !important;
  }

  /* Force Image container at TOP */
  .hero-grid > .hero-image-card,
  .hero-grid > .about-image-card,
  .about-40-60-grid > .hero-image-card,
  .about-40-60-grid > .about-image-card,
  .about-grid > .hero-image-card,
  .about-grid > .about-image-card,
  .about-40-60-grid > :nth-child(1),
  .about-grid > :nth-child(1) {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  /* Force Text content container at BOTTOM */
  .hero-grid > .hero-text,
  .about-40-60-grid > :nth-child(2),
  .about-grid > :nth-child(2) {
    order: 2 !important;
    width: 100% !important;
    height: auto !important;
  }

  .hero-image-card img,
  .about-image-card img {
    width: 100% !important;
    height: 380px !important;
    max-height: 420px !important;
    object-fit: cover !important;
    object-position: top center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .top-gov-bar {
    padding: 0.35rem 0;
    font-size: 0.72rem;
  }

  .top-gov-bar .container {
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
    justify-content: center;
  }

  .gov-badge {
    justify-content: center;
  }

  .nav-wrapper {
    padding: 0.5rem 0;
  }

  .brand-logo {
    max-width: calc(100% - 50px);
  }

  .brand-signature-box {
    padding: 0.25rem 0.5rem;
  }

  .brand-signature-logo {
    height: 26px;
  }

  .brand-text .title {
    font-size: 1.05rem;
  }

  .brand-text .subtitle {
    font-size: 0.68rem;
    white-space: normal;
    line-height: 1.2;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--stone-paper);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--stone-border);
    z-index: 999;
  }

  .main-nav.show {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dossier-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--stone-border);
    padding: 0.5rem 0.25rem 1.25rem;
  }

  .stat-number {
    font-size: 1.5rem;
    white-space: normal;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-note {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--stone-border);
    padding-bottom: 1.25rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-image-card img,
  .about-image-card img {
    height: 280px !important;
  }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }
}
