/* ===================================================================
   NAMASTE ROHTAK - OFFICIAL SADAHAQ THEME STYLESHEET
   Strict Compliance: Warm Cream, Gold, Warm Brown, Terracotta, Deep Green
   Zero cool greys, Zero rgba(0,0,0,...), Zero pure black, Zero blue links
=================================================================== */

:root {
  --bg-cream: #FFF8F0;
  --bg-cream-alt: #F5EDE0;
  --bg-card: #FFFDF9;
  --border-gold: #D4AF37;
  --border-gold-soft: #E8D39E;
  --gold-primary: #D4AF37;
  --gold-dark: #B8941F;
  --text-brown-dark: #2C1810;
  --text-brown-muted: #5C4033;
  --terracotta: #C85A32;
  --terracotta-dark: #A3411D;
  --green-primary: #197D09;
  --green-dark: #146307;
  --green-soft: #EBF7E7;
  --terracotta-soft: #FDEEE9;
  --gold-soft: #FCF6E5;
  --shadow-warm: 0 4px 16px rgba(44, 24, 16, 0.08);
  --shadow-hover: 0 8px 24px rgba(44, 24, 16, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

html {
  background-color: #EDE4D8;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #EDE4D8;
  color: var(--text-brown-dark);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* STRICT MOBILE BROWSER VIEWPORT SHELL (MAX-WIDTH 480PX CENTRED ON DESKTOP, 100% ON MOBILE) */
.mobile-app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-cream);
  box-shadow: 0 0 35px rgba(44, 24, 16, 0.16);
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto;
  overflow-x: hidden;
}

@media (max-width: 480px) {
  body {
    background-color: var(--bg-cream);
  }
  .mobile-app-shell {
    box-shadow: none;
    max-width: 100%;
  }
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

/* Header & Top Bar */
.gov-top-strip {
  background-color: var(--text-brown-dark);
  color: var(--bg-cream);
  padding: 6px 16px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold-primary);
}

.gov-top-strip .emblem-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-gold-soft);
  box-shadow: var(--shadow-warm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  width: 100%;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-badge {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold-primary), var(--terracotta));
  color: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid var(--border-gold);
  box-shadow: 0 2px 8px rgba(200, 90, 50, 0.2);
}

.brand-titles h1 {
  font-size: 1.2rem;
  color: var(--text-brown-dark);
  font-weight: 700;
  line-height: 1.2;
}

.brand-titles p {
  font-size: 0.78rem;
  color: var(--text-brown-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Toggle Button (Rule 4 & language.md) */
.lang-toggle-btn {
  background-color: var(--gold-soft);
  color: var(--text-brown-dark);
  border: 1px solid var(--border-gold);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  background-color: var(--gold-primary);
  color: var(--bg-card);
}

.whatsapp-top-link {
  background-color: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--green-primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.whatsapp-top-link:hover {
  background-color: var(--green-primary);
  color: var(--bg-card);
  text-decoration: none;
}

/* Hero / Initiative Announcement */
.hero-banner {
  background: linear-gradient(135deg, var(--bg-cream-alt) 0%, var(--bg-card) 100%);
  border-bottom: 2px solid var(--border-gold-soft);
  padding: 24px 16px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pehal-badge {
  display: inline-block;
  background-color: var(--terracotta-soft);
  color: var(--terracotta-dark);
  border: 1px solid var(--terracotta);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 1.8rem;
  color: var(--text-brown-dark);
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-brown-muted);
  max-width: 750px;
  margin: 0 auto 16px;
}

.initiative-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-brown-dark);
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold-soft);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.initiative-credits strong {
  color: var(--terracotta-dark);
}

/* Main Container & App Layout - Mobile First Column Stack */
.app-container {
  width: 100%;
  margin: 0 auto;
  padding: 10px 10px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card Components */
.app-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-gold-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-cream-alt);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--gold-soft);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.card-header h2 {
  font-size: 1.1rem;
  color: var(--text-brown-dark);
  font-weight: 700;
}

/* AI Chat Window */
.chat-window {
  height: 520px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: var(--bg-card);
}

.message-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.message-bubble.bot {
  align-self: flex-start;
  background-color: var(--bg-cream-alt);
  border: 1px solid var(--border-gold-soft);
  color: var(--text-brown-dark);
  border-bottom-left-radius: 2px;
}

.message-bubble.user {
  align-self: flex-end;
  background-color: var(--terracotta);
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-top: 6px;
  opacity: 0.85;
}

.tts-speaker-btn {
  background: none;
  border: none;
  color: var(--gold-dark);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tts-speaker-btn:hover {
  background-color: var(--gold-soft);
}

.message-bubble.user .tts-speaker-btn {
  display: none;
}

/* Ticket Badge inside chat */
.ticket-badge-card {
  background-color: var(--green-soft);
  border: 1px solid var(--green-primary);
  color: var(--green-dark);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-top: 8px;
  font-weight: 600;
}

.ticket-id-tag {
  background-color: var(--green-primary);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.95rem;
}

/* Quick prompt chips */
.chat-chips-bar {
  padding: 8px 16px;
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-gold-soft);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.chip-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-brown-dark);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chip-btn:hover {
  background-color: var(--gold-primary);
  color: var(--bg-card);
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border-gold-soft);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: var(--text-brown-dark);
  font-size: 0.92rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--terracotta);
  background-color: #FFFFFF;
}

.action-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  background-color: var(--bg-cream-alt);
  color: var(--text-brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.action-icon-btn:hover {
  background-color: var(--gold-soft);
  color: var(--terracotta-dark);
}

.action-icon-btn.primary {
  background-color: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta-dark);
}

.action-icon-btn.primary:hover {
  background-color: var(--terracotta-dark);
}

.action-icon-btn.recording {
  background-color: #B22222;
  color: #FFFFFF;
  border-color: #8B0000;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(178, 34, 34, 0.4); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(178, 34, 34, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(178, 34, 34, 0); }
}

/* Sidebar Sections */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Quick Grievance Form */
.form-card-body {
  padding: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-brown-dark);
  margin-bottom: 4px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 8px 12px;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--text-brown-dark);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--terracotta);
  background-color: #FFFFFF;
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.location-detector-row {
  display: flex;
  gap: 6px;
}

.location-detect-btn {
  background-color: var(--gold-soft);
  color: var(--text-brown-dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.location-detect-btn:hover {
  background-color: var(--gold-primary);
  color: var(--bg-card);
}

.photo-upload-zone {
  border: 2px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  background-color: var(--bg-cream);
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-upload-zone:hover {
  background-color: var(--gold-soft);
}

.photo-preview-grid {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.preview-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
}

.btn-submit {
  width: 100%;
  background-color: var(--terracotta);
  color: #FFFFFF;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background-color: var(--terracotta-dark);
}

/* Status Tracker Box */
.tracker-box {
  padding: 16px;
}

.tracker-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tracker-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-left: 8px;
  border-left: 2px solid var(--border-gold);
}

.timeline-step {
  position: relative;
  padding-left: 14px;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-cream-alt);
  border: 2px solid var(--border-gold);
}

.timeline-step.active::before {
  background-color: var(--green-primary);
  border-color: var(--green-dark);
}

.timeline-step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-brown-dark);
}

.timeline-step-desc {
  font-size: 0.78rem;
  color: var(--text-brown-muted);
}

/* WhatsApp Simulation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(44, 24, 16, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.modal-header {
  padding: 14px 18px;
  background-color: var(--green-dark);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-body {
  padding: 18px;
}

/* Footer */
.site-footer {
  background-color: var(--text-brown-dark);
  color: var(--bg-cream);
  padding: 24px 16px 16px;
  margin-top: 30px;
  border-top: 3px solid var(--gold-primary);
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-col h4 {
  color: var(--gold-primary);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.footer-bottom {
  width: 100%;
  margin: 16px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  text-align: center;
  font-size: 0.75rem;
  color: var(--border-gold-soft);
}

/* Running Public Launch Images Banner */
.launch-gallery-strip {
  background-color: var(--bg-cream-alt);
  border-top: 1px solid var(--border-gold-soft);
  border-bottom: 2px solid var(--gold-primary);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gallery-strip-header {
  width: 100%;
  margin: 0 auto 8px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-strip-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-brown-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-strip-title span.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terracotta);
  display: inline-block;
  animation: pulse-ring 2s infinite;
}

.marquee-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 42s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

.gallery-card {
  width: 250px;
  height: 175px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-primary);
}

.gallery-img-box {
  width: 100%;
  height: 110px;
  background-color: var(--bg-cream);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-gold-soft);
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-img-box img.contain-fit {
  object-fit: contain;
  padding: 8px;
}

.gallery-card-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-brown-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-sub {
  font-size: 0.68rem;
  color: var(--text-brown-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ===================================================================
   HERO BANNER SLIDESHOW COMPONENT
   =================================================================== */
.banner-slideshow-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--border-gold);
}

.slideshow-wrapper {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.slide-item {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.slide-image-box {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #EADBC8, #F5EDE0);
  overflow: hidden;
}

.slide-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.slide-image-box img.contain-logo {
  object-fit: contain;
  padding: 24px;
}

.slide-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: #FFFDF9;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.25);
  display: flex;
  align-items: center;
  gap: 4px;
}

.slide-date-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--text-brown-dark);
  color: var(--gold-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--gold-primary);
}

.slide-content-box {
  padding: 12px 14px 6px;
  background: var(--bg-card);
}

.slide-title {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text-brown-dark);
  line-height: 1.25;
  margin-bottom: 4px;
}

.slide-desc {
  font-size: 11.5px;
  color: var(--text-brown-muted);
  line-height: 1.45;
}

.slide-btn {
  position: absolute;
  top: 95px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(44, 24, 16, 0.75);
  color: #FFFDF9;
  border: 1.5px solid var(--gold-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  z-index: 10;
  transition: all 0.2s ease;
}

.slide-btn:hover {
  background: var(--terracotta);
}

.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }

.slideshow-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 0 10px;
  background: var(--bg-card);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-gold-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* ===================================================================
   LAUNCH KEY FACTS & STATS 4-COL STRIP
   =================================================================== */
.facts-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0;
  width: 100%;
}

.fact-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-soft);
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-warm);
}

.fact-badge .fact-icon {
  font-size: 16px;
  margin-bottom: 2px;
}

.fact-badge .fact-val {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-brown-dark);
  line-height: 1.1;
}

.fact-badge .fact-lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--terracotta);
  margin-top: 2px;
  line-height: 1.15;
}

/* ===================================================================
   PUBLISHED NEWS & MEDIA COVERAGE CARDS
   =================================================================== */
.news-section-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold-soft);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-warm);
  margin-bottom: 14px;
}

.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-gold-soft);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.news-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text-brown-dark);
}

.news-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card {
  background: #FFFDF9;
  border: 1.5px solid var(--border-gold-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-warm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 6px;
}

.news-source-badge {
  background: var(--bg-cream-alt);
  color: var(--terracotta-dark);
  font-weight: 800;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-gold-soft);
}

.news-date-badge {
  font-size: 9.5px;
  color: var(--text-brown-muted);
  font-weight: 700;
}

.news-headline {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-brown-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}

.news-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--text-brown-muted);
  line-height: 1.4;
}

.news-summary-list li {
  position: relative;
  padding-left: 14px;
}

.news-summary-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
}

.news-source-ref {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-gold-soft);
  font-size: 10px;
  color: var(--text-brown-muted);
}

/* ===================================================================
   STEP-BY-STEP WHATSAPP FLOW GUIDE
   =================================================================== */
.workflow-section-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold-soft);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-warm);
  margin-bottom: 14px;
}

.workflow-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.workflow-step-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #FFFDF9;
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-md);
  align-items: flex-start;
}

.workflow-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: var(--text-brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11.5px;
  flex-shrink: 0;
}

.workflow-step-content {
  flex: 1;
}

.workflow-step-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-brown-dark);
}

.workflow-step-desc {
  font-size: 10.5px;
  color: var(--text-brown-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* ===================================================================
   DISTRICT QR FEEDBACK SIMULATOR
   =================================================================== */
.qr-feedback-box {
  background: var(--bg-card);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-warm);
  margin-bottom: 14px;
}

.qr-star-rating {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}

.qr-star-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.15s;
  color: var(--border-gold-soft);
}

.qr-star-btn.active {
  color: var(--gold-primary);
  transform: scale(1.15);
}


/* ===================================================================
   APP NAVIGATION TAB BAR & MULTI-VIEW SPA PANE SYSTEM
   Strict Sadahaq Theme: Warm Cream, Gold, Warm Brown, Terracotta
   =================================================================== */
.app-nav-bar {
  display: flex;
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--border-gold-soft);
  position: sticky;
  top: 56px;
  z-index: 95;
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  flex: 1;
  min-width: 68px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: var(--text-brown-muted);
}

.nav-tab-btn:hover {
  background-color: var(--bg-cream-alt);
}

.nav-tab-btn.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
  background-color: var(--terracotta-soft);
  font-weight: 700;
}

.nav-tab-btn .nav-icon {
  font-size: 16px;
  line-height: 1;
}

.nav-tab-btn .nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Views display management */
.app-view {
  display: block;
  animation: fadeInView 0.25s ease-in-out;
}

.app-view.hidden {
  display: none !important;
}

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

/* News Teaser Card on Home View */
.news-teaser-card {
  margin: 10px 10px 14px;
  background-color: var(--gold-soft);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-warm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-teaser-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  background-color: #f7ecd2;
}

.news-teaser-badge {
  background-color: var(--terracotta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.news-teaser-content {
  flex: 1;
  min-width: 0;
}

.news-teaser-headline {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-brown-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-teaser-action {
  font-size: 10px;
  font-weight: 700;
  color: var(--terracotta-dark);
  margin-top: 2px;
}

/* News Feed Filter Chips */
.news-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 10px 10px;
  scrollbar-width: none;
}

.news-filter-chips::-webkit-scrollbar {
  display: none;
}

.news-filter-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-brown-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.news-filter-chip:hover {
  border-color: var(--gold-primary);
}

.news-filter-chip.active {
  background-color: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

/* Ask AI button inside news cards */
.btn-ask-ai-news {
  margin-top: 10px;
  padding: 6px 12px;
  background-color: var(--green-soft);
  border: 1px solid var(--green-primary);
  border-radius: var(--radius-sm);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.btn-ask-ai-news:hover {
  background-color: #d6f2ce;
}
