/* styles.css */
:root {
  --primary: #1E3A8A; /* Deeper blue for administrative trust */
  --primary-hover: #1E40AF;
  --secondary: #047857; /* Deeper green for success/trust */
  --bg-color: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #4B5563;
  --border: #E2E8F0;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(30,58,138,0.03) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* Content Area */
main {
  background: var(--surface);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

main h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #0F172A;
}

main h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

main p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

main li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Table of Contents */
.toc {
  background: #F1F5F9;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}

.toc h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #0F172A;
}

.toc ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc a {
  text-decoration: none;
  color: var(--primary);
}

.toc a:hover {
  text-decoration: underline;
}

/* Sidebar */
aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: var(--surface);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.widget h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #0F172A;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.widget ul {
  list-style: none;
}

.widget li {
  margin-bottom: 0.75rem;
}

.widget a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}

.widget a:hover {
  color: var(--primary);
}

/* Footer & Trust Elements */
footer {
  background: #0F172A;
  color: #F8FAFC;
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-grid h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

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

.footer-grid a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: white;
}

.disclaimer {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: #CBD5E1;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Silo Grid (Homepage) */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.silo-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.silo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.silo-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 0;
}

.silo-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-question {
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--text-muted);
}

/* =========================================
   NEW E-E-A-T & TRUST SIGNALS CLASSES
========================================= */

/* Author Box */
.author-box {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.author-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
  color: #0F172A;
}

.author-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.author-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Update Signal */
.update-signal {
  font-size: 0.85rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.update-signal svg {
  width: 16px;
  height: 16px;
}

/* References Section */
.references-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border);
}

.references-section h3 {
  font-size: 1.25rem;
  margin-top: 0;
  color: #0F172A;
}

.references-list {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.references-list li {
  margin-bottom: 0.5rem;
}

.references-list a {
  color: var(--primary);
  text-decoration: underline;
}

/* Badges for authority */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #E2E8F0;
  color: #334155;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.badge-independent {
  background: #DEF7EC;
  color: #03543F;
}
