/**
 * Reha Jobs Theme Stylesheet
 * High performance, zero-slop layout for Educational & Job Portals
 */

:root {
  --reha-primary: #8b0000;
  --reha-header-bg: #8b0000;
  --reha-nav-bg: #1e293b;
  --reha-h1-font: 'Oswald', sans-serif;
  --reha-h2-font: 'Poppins', sans-serif;
  --reha-content-width: 85%;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f1f3f5;
  color: #1e293b;
  line-height: 1.6;
  font-size: 15px;
}

a {
  color: #0f4c81;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: #8b0000;
  text-decoration: underline;
}

/* 1. TOP BAR */
.reha-topbar {
  width: 100%;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 12px;
  border-bottom: 1px solid #1e293b;
}

.reha-topbar-inner {
  width: 100%;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reha-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.reha-topbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.reha-topbar-item .reha-icon {
  font-size: 13px;
}

.reha-ticker-wrapper {
  flex: 1;
  max-width: 700px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  padding: 3px 8px;
  border-radius: 4px;
  overflow: hidden;
}

.reha-ticker-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.reha-ticker-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.reha-ticker-content {
  display: inline-block;
  color: #f8fafc;
  font-weight: 600;
  font-size: 12px;
  animation: reha-marquee 25s linear infinite;
}

@keyframes reha-marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.reha-badge-fast {
  background: #10b981;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* 2. MAIN HEADER (100% FULL WIDTH) */
.reha-main-header {
  width: 100%;
  background: var(--reha-header-bg);
  color: #ffffff;
  border-bottom: 2px solid #5c0000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.reha-header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.reha-branding {
  flex-shrink: 0;
}

.reha-site-title {
  font-family: var(--reha-h1-font);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.reha-site-title a {
  color: #ffffff;
  text-decoration: none;
}

.reha-site-tagline {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
  margin-top: 3px;
  color: #fef08a;
}

.reha-header-ad {
  display: none;
}

@media (min-width: 900px) {
  .reha-header-ad {
    display: block;
    max-width: 728px;
  }
}

/* 3. NAVIGATION BAR (100% FULL WIDTH) */
.reha-main-navigation {
  width: 100%;
  background: var(--reha-nav-bg);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.reha-nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reha-hamburger-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

.reha-ham-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  margin: 4px 0;
}

.reha-ham-text {
  font-size: 12px;
  font-weight: 700;
}

.reha-menu-container {
  display: flex;
}

.reha-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.reha-nav-list > li {
  position: relative;
}

.reha-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  color: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.reha-nav-list > li:hover > a,
.reha-nav-list > li.current-menu-item > a {
  background: #0f172a;
  color: #fef08a;
  text-decoration: none;
}

.reha-nav-sym {
  font-size: 9px;
  opacity: 0.8;
  margin-left: 2px;
}

/* Sub-Menu (Hover Dropdown) */
.reha-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f172a;
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  border-top: 2px solid #ef4444;
  z-index: 1000;
}

.reha-nav-list li:hover > .sub-menu {
  display: block;
}

.reha-nav-list .sub-menu li a {
  display: block;
  padding: 9px 14px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  border-bottom: 1px solid #1e293b;
}

.reha-nav-list .sub-menu li a:hover {
  background: #1e293b;
  color: #fef08a;
  text-decoration: none;
}

.reha-nav-search .reha-search-form {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 4px;
  overflow: hidden;
}

.reha-nav-search .reha-search-input {
  border: none;
  background: transparent;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  width: 170px;
}

.reha-nav-search .reha-search-submit {
  border: none;
  background: #334155;
  color: #ffffff;
  padding: 6px 10px;
  cursor: pointer;
}

/* 4. MAIN CONTENT WRAPPER (80% to 85% width) */
.reha-site-content {
  max-width: 1400px;
  margin: 18px auto;
  padding: 0 16px;
  transition: width 0.2s ease;
}

.reha-main-layout-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.reha-sidebar-left {
  flex-direction: row-reverse;
}

.reha-primary-content {
  flex: 1;
  min-width: 0;
}

.reha-secondary-sidebar {
  width: 310px;
  flex-shrink: 0;
}

/* 5. BENTO EXAM BADGES */
.reha-bento-section {
  margin-bottom: 20px;
}

.reha-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .reha-bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .reha-bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.reha-bento-card {
  padding: 12px 10px;
  border-radius: 6px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.reha-bento-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.bento-red { background: linear-gradient(135deg, #b91c1c, #991b1b); }
.bento-amber { background: linear-gradient(135deg, #d97706, #b45309); }
.bento-blue { background: linear-gradient(135deg, #1d4ed8, #1e40af); }
.bento-emerald { background: linear-gradient(135deg, #059669, #047857); }
.bento-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.bento-cyan { background: linear-gradient(135deg, #0284c7, #0369a1); }

.bento-icon { font-size: 20px; margin-bottom: 4px; }
.bento-text { font-size: 12px; font-weight: 700; line-height: 1.3; }
.bento-sub { font-size: 10px; opacity: 0.85; margin-top: 3px; text-transform: uppercase; }

/* 6. SARKARI RESULT MULTI-COLUMN TABLES */
.reha-tables-row {
  margin-bottom: 22px;
}

.reha-tables-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 860px) {
  .reha-tables-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reha-table-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.reha-table-header {
  padding: 10px 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reha-head-results { background: #581c87; }
.reha-head-admit { background: #1d4ed8; }
.reha-head-jobs { background: #b91c1c; }
.reha-head-answer { background: #047857; }
.reha-head-syllabus { background: #b45309; }
.reha-head-admission { background: #0e7490; }

.reha-table-title {
  font-family: var(--reha-h2-font);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
}

.reha-table-badge {
  background: rgba(255,255,255,0.22);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.reha-table-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.reha-table-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.reha-table-item:nth-child(even) {
  background: #f8fafc;
}

.reha-table-item:hover {
  background: #eff6ff;
}

.reha-table-link {
  color: #0f172a;
  font-weight: 500;
  line-height: 1.35;
  display: inline;
}

.reha-bullet {
  color: #b91c1c;
  margin-right: 4px;
  font-size: 11px;
}

.reha-new-flasher {
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: 4px;
  display: inline-block;
  animation: reha-blink 1.5s infinite;
}

@keyframes reha-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.reha-item-date {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  font-weight: 600;
}

.reha-table-footer {
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: right;
}

.reha-view-more {
  font-size: 12px;
  font-weight: 700;
  color: #0f4c81;
}

/* 7. ADSENSE SLOTS */
.reha-ad-container {
  margin: 16px auto;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.reha-ad-label {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.reha-ad-placeholder {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

/* 8. SINGLE POST & TABLE OF CONTENTS */
.reha-post-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.reha-breadcrumbs {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.reha-breadcrumbs a {
  color: #0f4c81;
  font-weight: 600;
}

.reha-sep { margin: 0 4px; }

.reha-entry-title {
  font-family: var(--reha-h1-font);
  font-size: 26px;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 10px;
}

.reha-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.reha-toc-box {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
}

.reha-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.reha-toc-toggle {
  background: transparent;
  border: none;
  color: #0f4c81;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.reha-toc-list {
  margin-top: 10px;
  padding-left: 20px;
  font-size: 13px;
}

.reha-toc-list li {
  margin: 4px 0;
}

.reha-toc-h2 {
  padding-left: 14px;
  list-style-type: circle;
}

/* Important Dates & Fees Grid */
.reha-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (min-width: 640px) {
  .reha-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.reha-info-box {
  border-top: 4px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 4px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.border-rose { border-top-color: #e11d48; }
.border-blue { border-top-color: #2563eb; }

.reha-info-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}

.reha-info-list {
  list-style: none;
  font-size: 13px;
}

.reha-info-list li {
  margin: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 4px;
}

/* Important Links Box */
.reha-important-links-box {
  margin: 24px 0;
  border: 2px solid #8b0000;
  border-radius: 6px;
  overflow: hidden;
}

.reha-links-header {
  background: #8b0000;
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
}

.reha-links-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.reha-links-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

.reha-btn-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}

.reha-btn-link:hover {
  opacity: 0.9;
  color: #ffffff;
  text-decoration: none;
}

.btn-green { background: #16a34a; }
.btn-red { background: #dc2626; }
.btn-blue { background: #2563eb; }
.btn-purple { background: #9333ea; }

/* 9. SIDEBAR WIDGETS */
.reha-sidebar-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.reha-sidebar-header {
  background: #1e293b;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.reha-sidebar-body {
  padding: 14px;
}

.reha-sidebar-search-form {
  display: flex;
}

.reha-sidebar-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.reha-sidebar-submit {
  background: #8b0000;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  cursor: pointer;
}

.reha-state-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reha-state-pill {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.reha-state-pill:hover {
  background: #8b0000;
  color: #ffffff;
  border-color: #8b0000;
  text-decoration: none;
}

.reha-social-action-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.reha-btn-social {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.btn-tg { background: #0284c7; }
.btn-wa { background: #16a34a; }

/* 10. FOOTER (100% FULL WIDTH) */
.reha-site-footer {
  width: 100%;
  background: #0f172a;
  color: #94a3b8;
  font-size: 13px;
  border-top: 4px solid #8b0000;
}

.reha-footer-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 20px 20px;
}

.reha-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .reha-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reha-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.reha-footer-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.reha-footer-links {
  list-style: none;
}

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

.reha-footer-links a {
  color: #cbd5e1;
}

.reha-footer-links a:hover {
  color: #fef08a;
  text-decoration: none;
}

.reha-footer-badges {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.reha-badge {
  background: #1e293b;
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.reha-footer-interlinks {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.reha-interlink-label {
  font-weight: 700;
  color: #ffffff;
  font-size: 12px;
}

.reha-interlink-item {
  color: #94a3b8;
  font-size: 12px;
  background: #1e293b;
  padding: 2px 8px;
  border-radius: 3px;
}

.reha-interlink-item:hover {
  color: #fef08a;
  text-decoration: none;
}

.reha-footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

@media (min-width: 768px) {
  .reha-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.reha-copyright strong {
  color: #ffffff;
}

/* MOBILE RESPONSIVE NAV VARIANTS */
@media (max-width: 860px) {
  .reha-hamburger-toggle {
    display: flex;
  }

  .reha-nav-hamburger .reha-menu-container {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e293b;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

  .reha-nav-hamburger .reha-menu-container.is-open {
    display: block;
  }

  .reha-nav-hamburger .reha-nav-list {
    flex-direction: column;
  }

  .reha-nav-hamburger .reha-nav-list .sub-menu {
    position: static;
    display: block;
    background: #0f172a;
    box-shadow: none;
    border-top: none;
  }

  /* Swipe Scrollbar mode */
  .reha-nav-swipe .reha-hamburger-toggle {
    display: none;
  }

  .reha-nav-swipe .reha-menu-container {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .reha-nav-swipe .reha-nav-list {
    display: flex;
    flex-wrap: nowrap;
  }

  .reha-main-layout-wrapper {
    flex-direction: column !important;
  }

  .reha-secondary-sidebar {
    width: 100%;
  }

  .reha-site-content {
    width: 100% !important;
  }
}
