/* ============================================================
   RTPS Bihar 2026 – Page Specific Styles
   Amu Digital World & Cyber Cafe | amudigitalworld.com
   Works with existing Bootstrap 5.3.3 + style.css
   ============================================================ */

/* ============================================================
   CSS VARIABLES (RTPS Theme)
   ============================================================ */
:root {
  --rtps-primary:   #1a56db;
  --rtps-secondary: #0ea5e9;
  --rtps-accent:    #f59e0b;
  --rtps-success:   #059669;
  --rtps-danger:    #dc2626;
  --rtps-purple:    #7c3aed;
  --rtps-dark:      #0f172a;
  --rtps-card-bg:   #ffffff;
  --rtps-border:    #e2e8f0;
  --rtps-muted:     #64748b;
  --rtps-light:     #f8fafc;
  --rtps-gradient:  linear-gradient(135deg, #1a56db 0%, #0ea5e9 60%, #059669 100%);
  --rtps-radius:    14px;
  --rtps-shadow:    0 4px 24px rgba(26,86,219,0.10);
  --rtps-shadow-hover: 0 12px 40px rgba(26,86,219,0.18);
}

[data-theme="dark"] {
  --rtps-card-bg:   #1e293b;
  --rtps-border:    #334155;
  --rtps-muted:     #94a3b8;
  --rtps-light:     #0f172a;
}

/* ============================================================
   RTPS HERO SECTION
   ============================================================ */
.rtps-hero {
  background: var(--rtps-gradient);
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
}

.rtps-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.rtps-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -120px; right: -80px;
  pointer-events: none;
}

.rtps-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.3px;
}

.rtps-hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.rtps-hero-title span {
  color: #fde68a;
}

.rtps-hero-subtitle {
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 580px;
}

.rtps-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rtps-btn-primary {
  background: #fff;
  color: var(--rtps-primary);
  border: none;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.rtps-btn-primary:hover {
  background: var(--rtps-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.rtps-btn-outline {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.rtps-btn-outline:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Stats */
.rtps-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.rtps-stat-pill {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  backdrop-filter: blur(10px);
  min-width: 90px;
  flex: 1;
}

.rtps-stat-pill .sv { display: block; font-size: 1.3rem; font-weight: 800; color: #fde68a; line-height: 1; }
.rtps-stat-pill .sl { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.8); margin-top: 3px; white-space: nowrap; }

/* ============================================================
   RTPS BREADCRUMB
   ============================================================ */
.rtps-breadcrumb {
  background: var(--rtps-light);
  padding: 10px 0;
  border-bottom: 1px solid var(--rtps-border);
  font-size: 0.82rem;
}

.rtps-breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rtps-breadcrumb li { display: flex; align-items: center; gap: 4px; color: var(--rtps-muted); }
.rtps-breadcrumb li a { color: var(--rtps-primary); text-decoration: none; font-weight: 500; }
.rtps-breadcrumb li a:hover { text-decoration: underline; }
.rtps-breadcrumb li + li::before { content: '›'; color: var(--rtps-muted); }
.rtps-breadcrumb li:last-child { color: var(--rtps-dark); font-weight: 600; }
[data-theme="dark"] .rtps-breadcrumb li:last-child { color: #e2e8f0; }

/* ============================================================
   SECTION COMMON STYLES
   ============================================================ */
.rtps-section { padding: 60px 0; }
.rtps-section-alt { background: var(--rtps-light); }

.rtps-section-header { text-align: center; margin-bottom: 40px; }
.rtps-section-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--rtps-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid #bfdbfe;
}
[data-theme="dark"] .rtps-section-badge { background: #1e3a5f; border-color: #1d4ed8; }

.rtps-section-title {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--rtps-dark);
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}
[data-theme="dark"] .rtps-section-title { color: #f1f5f9; }

.rtps-section-desc {
  font-size: 0.96rem;
  color: var(--rtps-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.rtps-service-card {
  background: var(--rtps-card-bg);
  border: 1px solid var(--rtps-border);
  border-radius: var(--rtps-radius);
  padding: 24px 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rtps-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rtps-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.rtps-service-card:hover {
  border-color: transparent;
  box-shadow: var(--rtps-shadow-hover);
  transform: translateY(-5px);
}

.rtps-service-card:hover::before {
  transform: scaleX(1);
}

.rtps-service-icon {
  width: 62px; height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--rtps-primary);
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.rtps-service-card:hover .rtps-service-icon {
  background: var(--rtps-gradient);
  color: #fff;
  transform: scale(1.08) rotate(-3deg);
}

.rtps-service-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rtps-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
[data-theme="dark"] .rtps-service-title { color: #e2e8f0; }

.rtps-service-desc {
  font-size: 0.82rem;
  color: var(--rtps-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.rtps-service-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--rtps-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: auto;
}

.rtps-service-btn:hover {
  background: var(--rtps-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   IMPORTANT LINKS
   ============================================================ */
.rtps-link-card {
  background: var(--rtps-card-bg);
  border: 1px solid var(--rtps-border);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.rtps-link-card:hover {
  border-color: var(--rtps-primary);
  box-shadow: 0 6px 24px rgba(26,86,219,0.12);
  transform: translateY(-3px);
}

.rtps-link-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--rtps-primary);
  transition: all 0.25s ease;
}

.rtps-link-card:hover .rtps-link-icon {
  background: var(--rtps-primary);
  color: #fff;
}

.rtps-link-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rtps-dark);
  margin-bottom: 2px;
}
[data-theme="dark"] .rtps-link-title { color: #e2e8f0; }

.rtps-link-sub { font-size: 0.75rem; color: var(--rtps-muted); }

.rtps-link-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: #dbeafe;
  color: var(--rtps-primary);
  letter-spacing: 0.3px;
}

/* ============================================================
   UPDATES / NOTICES
   ============================================================ */
.rtps-update-card {
  background: var(--rtps-card-bg);
  border: 1px solid var(--rtps-border);
  border-left: 4px solid var(--rtps-primary);
  border-radius: 10px;
  padding: 16px 18px;
  transition: all 0.25s ease;
}

.rtps-update-card:hover {
  box-shadow: var(--rtps-shadow);
  transform: translateX(3px);
}

.rtps-update-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.rtps-update-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rtps-dark);
  margin-bottom: 5px;
  line-height: 1.4;
}
[data-theme="dark"] .rtps-update-title { color: #e2e8f0; }

.rtps-update-desc { font-size: 0.8rem; color: var(--rtps-muted); line-height: 1.6; }
.rtps-update-link { font-size: 0.78rem; font-weight: 600; color: var(--rtps-primary); text-decoration: none; margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
.rtps-update-link:hover { text-decoration: underline; }

/* ============================================================
   SERVICES TABLE
   ============================================================ */
.rtps-table-wrapper {
  border-radius: 14px;
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rtps-border);
  box-shadow: var(--rtps-shadow);
}

.rtps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--rtps-card-bg);
}

.rtps-table thead tr {
  background: var(--rtps-gradient);
  color: #fff;
}

.rtps-table th {
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-align: left;
  white-space: nowrap;
}

.rtps-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--rtps-border);
  color: var(--rtps-dark);
  vertical-align: middle;
}
[data-theme="dark"] .rtps-table td { color: #e2e8f0; }

.rtps-table tbody tr:last-child td { border-bottom: none; }

.rtps-table tbody tr:hover td {
  background: #f0f6ff;
}
[data-theme="dark"] .rtps-table tbody tr:hover td { background: #1e3a5f; }

.rtps-table .apply-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--rtps-primary);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rtps-table .apply-btn:hover { background: var(--rtps-dark); color: #fff; }

.rtps-mode-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  background: #d1fae5;
  color: #059669;
}

/* ============================================================
   DOCUMENTS ACCORDION
   ============================================================ */
.rtps-accordion { border-radius: 12px; overflow: hidden; border: 1px solid var(--rtps-border); }

.rtps-acc-item { border-bottom: 1px solid var(--rtps-border); }
.rtps-acc-item:last-child { border-bottom: none; }

.rtps-acc-btn {
  width: 100%;
  background: var(--rtps-card-bg);
  border: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', 'Poppins', sans-serif;
  transition: background 0.2s ease;
}

.rtps-acc-btn:hover { background: var(--rtps-light); }
.rtps-acc-btn.active { background: #eff6ff; }
[data-theme="dark"] .rtps-acc-btn.active { background: #1e3a5f; }

.rtps-acc-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--rtps-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
}

.rtps-acc-label {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rtps-dark);
}
[data-theme="dark"] .rtps-acc-label { color: #e2e8f0; }

.rtps-acc-arrow {
  color: var(--rtps-muted);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.rtps-acc-btn.active .rtps-acc-arrow { transform: rotate(180deg); }

.rtps-acc-body {
  display: none;
  padding: 4px 20px 20px 68px;
  background: var(--rtps-card-bg);
}

.rtps-acc-body.show { display: block; }

.rtps-doc-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rtps-doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--rtps-muted);
  line-height: 1.5;
}

.rtps-doc-list li::before {
  content: '✓';
  color: var(--rtps-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  width: 16px;
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.rtps-timeline {
  position: relative;
  padding-left: 0;
}

.rtps-timeline-item {
  display: flex;
  gap: 20px;
  position: relative;
  margin-bottom: 28px;
}

.rtps-timeline-item:last-child { margin-bottom: 0; }

.rtps-tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.rtps-tl-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--rtps-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26,86,219,0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.rtps-tl-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--rtps-primary), transparent);
  min-height: 30px;
  margin-top: 4px;
}

.rtps-timeline-item:last-child .rtps-tl-line { display: none; }

.rtps-tl-body {
  padding-top: 10px;
  flex: 1;
}

.rtps-tl-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--rtps-dark);
  margin-bottom: 6px;
}
[data-theme="dark"] .rtps-tl-title { color: #e2e8f0; }

.rtps-tl-desc {
  font-size: 0.84rem;
  color: var(--rtps-muted);
  line-height: 1.65;
}

/* ============================================================
   BENEFITS CARDS
   ============================================================ */
.rtps-benefit-card {
  background: var(--rtps-card-bg);
  border: 1px solid var(--rtps-border);
  border-radius: 14px;
  padding: 24px 20px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rtps-benefit-card:hover {
  box-shadow: var(--rtps-shadow-hover);
  transform: translateY(-4px);
  border-color: #bfdbfe;
}

.rtps-benefit-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.rtps-benefit-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rtps-dark);
  margin-bottom: 8px;
}
[data-theme="dark"] .rtps-benefit-title { color: #e2e8f0; }

.rtps-benefit-desc {
  font-size: 0.82rem;
  color: var(--rtps-muted);
  line-height: 1.65;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.rtps-faq-item {
  border: 1px solid var(--rtps-border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.rtps-faq-item:hover { border-color: #93c5fd; }

.rtps-faq-btn {
  width: 100%;
  background: var(--rtps-card-bg);
  border: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', 'Poppins', sans-serif;
}

.rtps-faq-q {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rtps-dark);
  line-height: 1.5;
  flex: 1;
}
[data-theme="dark"] .rtps-faq-q { color: #e2e8f0; }

.rtps-faq-arrow {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rtps-primary);
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.rtps-faq-btn.active .rtps-faq-arrow {
  transform: rotate(180deg);
  background: var(--rtps-primary);
  color: #fff;
}

.rtps-faq-body {
  display: none;
  padding: 0 20px 16px;
  background: var(--rtps-card-bg);
  font-size: 0.86rem;
  color: var(--rtps-muted);
  line-height: 1.75;
}

.rtps-faq-body.show { display: block; }

/* ============================================================
   RELATED PAGES SECTION
   ============================================================ */
.rtps-related-card {
  background: var(--rtps-card-bg);
  border: 1px solid var(--rtps-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  height: 100%;
}

.rtps-related-card:hover {
  border-color: var(--rtps-primary);
  box-shadow: var(--rtps-shadow-hover);
  transform: translateY(-4px);
  color: inherit;
}

.rtps-related-card .ri {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--rtps-primary);
  margin: 0 auto 12px;
  transition: all 0.3s ease;
}

.rtps-related-card:hover .ri {
  background: var(--rtps-primary);
  color: #fff;
}

.rtps-related-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rtps-dark);
  margin-bottom: 6px;
}
[data-theme="dark"] .rtps-related-title { color: #e2e8f0; }

.rtps-related-sub { font-size: 0.76rem; color: var(--rtps-muted); }

/* ============================================================
   ADSENSE PLACEMENT
   ============================================================ */
.rtps-ad-slot {
  text-align: center;
  padding: 16px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   INFO / ELIGIBILITY SECTION
   ============================================================ */
.rtps-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.rtps-info-card {
  background: var(--rtps-card-bg);
  border: 1px solid var(--rtps-border);
  border-radius: 12px;
  padding: 22px 20px;
  border-left: 4px solid var(--rtps-primary);
}

.rtps-info-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rtps-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-theme="dark"] .rtps-info-card h4 { color: #e2e8f0; }

.rtps-info-card p {
  font-size: 0.84rem;
  color: var(--rtps-muted);
  line-height: 1.7;
  margin: 0;
}

/* Highlight box */
.rtps-highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid var(--rtps-primary);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}
[data-theme="dark"] .rtps-highlight { background: linear-gradient(135deg, #1e3a5f, #1e40af22); }

.rtps-highlight p { margin: 0; font-size: 0.88rem; color: var(--rtps-dark); line-height: 1.7; }
[data-theme="dark"] .rtps-highlight p { color: #e2e8f0; }

/* Step guide (status/download) */
.rtps-step-guide {
  background: var(--rtps-card-bg);
  border: 1px solid var(--rtps-border);
  border-radius: 14px;
  overflow: hidden;
}

.rtps-step-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rtps-border);
}

.rtps-step-row:last-child { border-bottom: none; }

.rtps-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--rtps-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rtps-step-content h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rtps-dark);
  margin-bottom: 4px;
}
[data-theme="dark"] .rtps-step-content h5 { color: #e2e8f0; }

.rtps-step-content p {
  font-size: 0.82rem;
  color: var(--rtps-muted);
  margin: 0;
  line-height: 1.6;
}

/* Sub-page back button */
.rtps-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rtps-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  background: #eff6ff;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.rtps-back-btn:hover {
  background: var(--rtps-primary);
  color: #fff;
  border-color: var(--rtps-primary);
}

/* Content prose */
.rtps-prose {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--rtps-dark);
}
[data-theme="dark"] .rtps-prose { color: #e2e8f0; }

.rtps-prose h2 { font-size: 1.35rem; font-weight: 800; margin-top: 32px; margin-bottom: 12px; color: var(--rtps-dark); font-family: 'Poppins', sans-serif; }
[data-theme="dark"] .rtps-prose h2 { color: #f1f5f9; }
.rtps-prose h3 { font-size: 1.1rem; font-weight: 700; margin-top: 24px; margin-bottom: 10px; color: var(--rtps-dark); }
[data-theme="dark"] .rtps-prose h3 { color: #e2e8f0; }
.rtps-prose p { margin-bottom: 14px; color: var(--rtps-muted); }
.rtps-prose ul { padding-left: 20px; margin-bottom: 16px; }
.rtps-prose ul li { margin-bottom: 6px; color: var(--rtps-muted); }
.rtps-prose strong { color: var(--rtps-dark); font-weight: 700; }
[data-theme="dark"] .rtps-prose strong { color: #e2e8f0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .rtps-hero { padding: 48px 0 40px; }
  .rtps-section { padding: 44px 0; }
}

@media (max-width: 767px) {
  .rtps-hero { padding: 36px 0 32px; }
  .rtps-hero-stats { gap: 8px; }
  .rtps-stat-pill { min-width: 70px; padding: 10px 12px; }
  .rtps-stat-pill .sv { font-size: 1.1rem; }
  .rtps-hero-buttons .rtps-btn-primary,
  .rtps-hero-buttons .rtps-btn-outline { font-size: 0.82rem; padding: 9px 14px; }
  .rtps-section { padding: 36px 0; }
  .rtps-table-wrapper { border-radius: 10px; }
  .rtps-table { font-size: 0.8rem; min-width: 580px; }
  .rtps-table th, .rtps-table td { padding: 9px 10px; }
  .rtps-acc-body { padding-left: 20px; }
  .rtps-tl-num { width: 38px; height: 38px; font-size: 0.9rem; }
}

@media (max-width: 575px) {
  .rtps-hero-title { font-size: 1.35rem; }
  .rtps-hero-subtitle { font-size: 0.86rem; }
  .rtps-section-title { font-size: 1.25rem; }
  .rtps-stat-pill { flex: 1; min-width: 60px; }

  /* Table: horizontal scroll + smaller font on tiny screens */
  .rtps-table-wrapper {
    border-radius: 8px;
    /* Show scroll hint shadow on right */
    background:
      linear-gradient(to right, var(--rtps-card-bg) 30%, transparent),
      linear-gradient(to right, transparent, var(--rtps-card-bg) 70%) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(26,86,219,0.12), transparent),
      radial-gradient(farthest-side at 100% 50%, rgba(26,86,219,0.12), transparent) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .rtps-table { font-size: 0.76rem; min-width: 520px; }
  .rtps-table th { padding: 10px 8px; font-size: 0.73rem; }
  .rtps-table td { padding: 8px 8px; }
  .rtps-table .apply-btn { font-size: 0.7rem; padding: 4px 9px; }
  .rtps-mode-badge { font-size: 0.66rem; padding: 2px 7px; }
}

/* Print Styles */
@media print {
  .rtps-hero-buttons, .rtps-ad-slot, .rtps-back-btn { display: none; }
  .rtps-section { padding: 20px 0; }
  .rtps-hero { background: #1a56db; print-color-adjust: exact; }
}

/* ============================================================
   GOVERNMENT SERVICE DIRECTORY (New Section – replaces service cards)
   ============================================================ */

/* Wrapper */
.rtps-dir-section {
  padding: 44px 0 48px;
  background: #f4f6f9;
}

/* 3 Action Buttons Bar */
.rtps-dir-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}

.rtps-dir-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.rtps-dir-action-btn.btn-apply {
  background: #1a56db;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}
.rtps-dir-action-btn.btn-apply:hover {
  background: #1240b0;
  color: #fff;
  transform: translateY(-1px);
}

.rtps-dir-action-btn.btn-status {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.rtps-dir-action-btn.btn-status:hover {
  background: #1e293b;
  color: #fff;
  transform: translateY(-1px);
}

.rtps-dir-action-btn.btn-download {
  background: #059669;
  color: #fff;
  box-shadow: 0 2px 8px rgba(5,150,105,0.3);
}
.rtps-dir-action-btn.btn-download:hover {
  background: #047857;
  color: #fff;
  transform: translateY(-1px);
}

/* Directory Grid */
.rtps-dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Each Category Block */
.rtps-dir-block {
  background: #fff;
  border: 1px solid #dde3ee;
  border-radius: 4px;
  overflow: hidden;
}

/* Category Header – dark navy blue */
.rtps-dir-cat-header {
  background: #0d2461;
  color: #fff;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  line-height: 1.4;
}

/* Links list inside each block */
.rtps-dir-link-list {
  padding: 10px 16px 12px;
  margin: 0;
  list-style: none;
}

.rtps-dir-link-list li {
  padding: 4px 0;
  border-bottom: 1px dashed #e8ecf3;
}

.rtps-dir-link-list li:last-child {
  border-bottom: none;
}

.rtps-dir-link-list a {
  font-size: 0.84rem;
  color: #1a4fcc;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
  padding: 3px 0;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  transition: color 0.15s ease;
}

.rtps-dir-link-list a::before {
  content: '▸';
  color: #1a56db;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.rtps-dir-link-list a:hover {
  color: #0f2f99;
  text-decoration: underline;
}

.rtps-dir-link-list a:hover::before {
  color: #0f2f99;
}

/* Section heading above buttons */
.rtps-dir-heading {
  text-align: center;
  margin-bottom: 20px;
}

.rtps-dir-heading h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

.rtps-dir-heading p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

[data-theme="dark"] .rtps-dir-section { background: #0f172a; }
[data-theme="dark"] .rtps-dir-block { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .rtps-dir-cat-header { background: #0c1f5e; }
[data-theme="dark"] .rtps-dir-link-list a { color: #93c5fd; }
[data-theme="dark"] .rtps-dir-link-list a:hover { color: #bfdbfe; }
[data-theme="dark"] .rtps-dir-link-list li { border-color: #334155; }
[data-theme="dark"] .rtps-dir-heading h2 { color: #f1f5f9; }

/* -------- Responsive -------- */
@media (max-width: 991px) {
  .rtps-dir-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .rtps-dir-grid { grid-template-columns: 1fr; }
  .rtps-dir-action-bar { flex-direction: column; align-items: stretch; }
  .rtps-dir-action-btn { justify-content: center; }
  .rtps-dir-cat-header { font-size: 0.85rem; }
  .rtps-dir-link-list a { font-size: 0.82rem; }
}

@media print {
  .rtps-dir-action-bar { display: none; }
  .rtps-dir-cat-header { background: #0d2461 !important; print-color-adjust: exact; }
}

