/* 
  SamarthWB.com - Clean, High-Performance Editorial CSS
  Color Palette: Deep Navy Blue (#0b3d91), Warm Saffron/Amber (#d97706 / #f59e0b), Light Slate (#f8fafc)
*/

:root {
  --primary-navy: #0b3d91;
  --primary-dark: #062154;
  --primary-light: #1e58c8;
  --accent-saffron: #d97706;
  --accent-saffron-hover: #b45309;
  --accent-bg: #fffbe5;
  --accent-border: #f59e0b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #93c5fd;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --container-max: 1200px;
}

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

html {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

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

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Top Disclaimer Banner */
.disclaimer-top-bar {
  background-color: var(--accent-bg);
  border-bottom: 1px solid var(--accent-border);
  color: #78350f;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disclaimer-top-bar strong {
  color: #92400e;
}

.disclaimer-top-bar a {
  color: #92400e;
  font-weight: 700;
  text-decoration: underline;
}

/* Header & Sticky Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background-color: var(--primary-navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo .logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
}

.brand-logo .logo-text span {
  color: var(--accent-saffron);
}

.brand-badge {
  font-size: 0.7rem;
  background-color: #eff6ff;
  color: var(--primary-navy);
  border: 1px solid #bfdbfe;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 0.3rem;
  text-transform: uppercase;
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--primary-navy);
  background-color: #f1f5f9;
}

.btn-official-portal {
  background-color: var(--primary-navy);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(11, 61, 145, 0.2);
}

.btn-official-portal:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-main);
}

/* Layout Grid */
.main-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
  width: 100%;
  flex: 1;
}

/* Hero Section */
.hero-card {
  background: linear-gradient(135deg, #0b3d91 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(245, 158, 11, 0.25);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 900px;
  margin-bottom: 1.75rem;
}

/* Hero Quick Links Grid */
.hero-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-quick-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.hero-quick-card:hover {
  background-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  color: #ffffff;
}

.hero-quick-card .card-icon {
  font-size: 1.5rem;
}

.hero-quick-card .card-text {
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-official-banner {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background-color: rgba(245, 158, 11, 0.9);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #1e293b;
}

.hero-official-banner p {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-hero-official {
  background-color: #0b3d91;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-hero-official:hover {
  background-color: #062154;
}

/* Main Content & Sidebar Layout */
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .content-layout {
    grid-template-columns: 3fr 1fr;
  }
}

/* Article Styling */
.article-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  line-height: 1.3;
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-content p {
  margin-bottom: 1.25rem;
  color: #334155;
  font-size: 1.03rem;
}

.article-content strong {
  color: var(--text-main);
}

/* Callout Box / Warning Box */
.callout-box {
  background-color: #f0f9ff;
  border-left: 4px solid var(--primary-navy);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.callout-box.warning {
  background-color: #fffbe5;
  border-left-color: var(--accent-border);
}

.callout-box.danger {
  background-color: #fef2f2;
  border-left-color: #ef4444;
}

.callout-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary-navy);
}

.callout-box.warning h4 {
  color: #92400e;
}

.callout-box.danger h4 {
  color: #991b1b;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* Official Action Banner inside article */
.official-action-card {
  background: linear-gradient(to right, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .official-action-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.official-action-card .info-text {
  font-size: 0.95rem;
  color: #1e3a8a;
}

.official-action-card .info-text strong {
  color: #1e3a8a;
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

/* Sticky Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget.sticky-widget {
  position: sticky;
  top: 90px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-navy);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 70vh;
  overflow-y: auto;
}

.toc-item {
  margin-bottom: 0.4rem;
}

.toc-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  line-height: 1.35;
}

.toc-link:hover, .toc-link.active {
  color: var(--primary-navy);
  background-color: #eff6ff;
  font-weight: 600;
}

/* FAQ Accordion Styling */
.faq-section {
  margin-top: 2.5rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background-color: #fafafa;
  transition: background-color 0.15s ease;
}

.faq-summary:hover {
  background-color: #f1f5f9;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-saffron);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  background-color: #ffffff;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Footer Styling */
.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  margin-top: auto;
  border-top: 4px solid var(--accent-saffron);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

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

.footer-disclaimer-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.footer-disclaimer-box strong {
  color: #fef08a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-navy);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--accent-saffron);
  transform: translateY(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .disclaimer-top-bar {
    font-size: 0.78rem;
    padding: 0.4rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.65rem 0.85rem;
  }

  .brand-logo {
    flex-shrink: 0;
  }

  .mobile-menu-btn {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-card {
    padding: 1.75rem 1.25rem;
  }

  .article-content {
    padding: 1.5rem 1.1rem;
  }

  .brand-badge {
    display: none;
  }

  .sidebar-widget.sticky-widget {
    position: static;
  }
}
