/* =============================================
   Sarkari Online Form - Main Stylesheet
   SILO Structure | SEO Optimized
   ============================================= */

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

:root {
  --primary: #1a3c6e;
  --secondary: #f57c00;
  --accent: #e8f0fe;
  --text: #2d2d2d;
  --muted: #666;
  --light-bg: #f8f9fa;
  --border: #dee2e6;
  --white: #ffffff;
  --success: #28a745;
  --link: #1565c0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ---- Header ---- */
header {
  background: linear-gradient(135deg, #1a3c6e 0%, #0d2c57 100%);
  color: var(--white);
  padding: 18px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, #ff8f00 0%, #f57c00 50%, #e65100 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(245,124,0,0.45);
  position: relative;
  overflow: hidden;
  gap: 2px;
}

/* Document lines inside logo icon */
.logo-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 9px;
  right: 9px;
  height: 3px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  box-shadow:
    0 6px 0 rgba(255,255,255,0.75),
    0 12px 0 rgba(255,255,255,0.6),
    0 18px 0 rgba(255,255,255,0.45),
    0 24px 0 rgba(255,255,255,0.3);
}

/* Ashoka Chakra circle accent */
.logo-icon::after {
  content: '✦';
  position: absolute;
  bottom: 5px;
  right: 7px;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

.logo-text h1 {
  font-size: 21px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.logo-text span {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ---- Navigation ---- */
nav {
  background: var(--secondary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}

nav a:hover,
nav a.active {
  background: rgba(0,0,0,0.2);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  min-width: 220px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 200;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

/* ---- Hero / Banner ---- */
.hero {
  background: linear-gradient(135deg, #1a3c6e 0%, #1565c0 60%, #0d47a1 100%);
  color: var(--white);
  padding: 70px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--white);
}

.hero p {
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,0.9);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
}

.btn-primary:hover {
  background: #e65100;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 12px;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 48px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-wrap.full-width {
  grid-template-columns: 1fr;
}

/* ---- Sections ---- */
section {
  margin-bottom: 40px;
}

h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.3;
}

h2 {
  font-size: 26px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--secondary);
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
  margin-top: 24px;
}

h4 {
  font-size: 17px;
  margin-bottom: 8px;
  margin-top: 20px;
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 28px 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 17px;
  color: var(--primary);
  margin: 0 0 8px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ---- Info Box ---- */
.info-box {
  background: var(--accent);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.info-box.warning {
  background: #fff3e0;
  border-color: var(--secondary);
}

.info-box.success {
  background: #e8f5e9;
  border-color: var(--success);
}

.info-box h4 {
  margin-top: 0;
  font-size: 15px;
  color: var(--primary);
}

/* ---- Steps List ---- */
.steps-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px;
  background: var(--light-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.steps-list li::before {
  content: counter(steps);
  background: var(--primary);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

/* ---- Feature List ---- */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

/* ---- Table ---- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.styled-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}

.styled-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.styled-table tr:nth-child(even) td {
  background: var(--light-bg);
}

.styled-table tr:hover td {
  background: var(--accent);
}

/* ---- Sidebar ---- */
.sidebar { /* right column */ }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 26px;
  overflow: hidden;
}

.widget-title {
  background: var(--primary);
  color: var(--white);
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.widget-body {
  padding: 16px 18px;
}

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

.widget-links li {
  border-bottom: 1px solid var(--border);
}

.widget-links li:last-child { border-bottom: none; }

.widget-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: auto;
}

/* ---- Author Box (EEAT) ---- */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--accent);
  border: 1px solid #c5d8f5;
  border-radius: 12px;
  padding: 24px;
  margin: 36px 0;
}

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

.author-info h4 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--primary);
}

.author-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.author-bio {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* ---- Trust Badges (EEAT) ---- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  background: var(--light-bg);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  cursor: pointer;
  border-left: 4px solid var(--secondary);
}

.faq-answer {
  padding: 14px 18px 14px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  border-left: 4px solid transparent;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary), #1565c0);
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  margin: 0 auto;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--light-bg);
  padding: 10px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--link);
  text-decoration: none;
}

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

.breadcrumb span { color: var(--muted); padding: 0 6px; }

/* ---- Blog Card ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--primary), #1565c0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-card-body {
  padding: 20px;
}

.blog-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 16px;
  margin: 6px 0 10px;
  color: var(--primary);
}

.blog-card-body p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---- Highlight Strip ---- */
.highlight-strip {
  background: var(--primary);
  color: var(--white);
  padding: 36px 20px;
  text-align: center;
  margin: 40px 0;
}

.highlight-strip h2 {
  color: var(--white);
  border-bottom-color: var(--secondary);
  font-size: 28px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 38px;
  font-weight: 800;
  color: var(--secondary);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* ---- Footer ---- */
footer {
  background: #111827;
  color: rgba(255,255,255,0.8);
  padding: 48px 20px 20px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

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

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--secondary); }

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 12px;
  color: #ffffff;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero h1 { font-size: 28px; }
}

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

  .header-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  nav a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero h1 { font-size: 22px; }

  .stats-row { gap: 28px; }

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

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
