/* =============================================
   ELyrics.in - Sarkari Result Style Website
   Color Palette: Red + Blue + White (Govt Style)
   ============================================= */

:root {
  --primary-red: #c0392b;
  --primary-blue: #1a3a6b;
  --accent-blue: #2563a8;
  --light-blue: #e8f0fb;
  --accent-red: #e74c3c;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --border: #d1d5db;
  --text-dark: #1a1a2e;
  --text-mid: #374151;
  --text-light: #6b7280;
  --success: #16a34a;
  --warning: #d97706;
  --ticker-bg: #1a3a6b;
  --shadow: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.13);
  --radius: 6px;
  --font-main: 'Noto Sans', 'Poppins', Arial, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--off-white);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: var(--primary-red); text-decoration: underline; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--primary-blue);
  color: #fff;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 2px solid var(--primary-red);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar a { color: #cfe2ff; font-size: 12px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .date-time { color: #a8c5f8; }

/* ===================== TICKER ===================== */
.ticker-wrap {
  background: var(--ticker-bg);
  border-bottom: 2px solid var(--primary-red);
  padding: 7px 0;
  overflow: hidden;
  position: relative;
}
.ticker-label {
  background: var(--primary-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: flex; align-items: center;
  z-index: 2;
}
.ticker-content {
  padding-left: 110px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-block;
  animation: ticker-scroll 55s linear infinite;
  color: #e0ecff;
  font-size: 13px;
}
.ticker-inner span { margin-right: 60px; }
.ticker-inner a { color: #ffe082; font-weight: 600; }
.ticker-inner a:hover { color: #fff; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary-red);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}
.logo-icon {
  width: 52px; height: 52px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; font-weight: 900;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text .site-name {
  font-size: 24px; font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
}
.logo-text .site-name span { color: var(--primary-red); }
.logo-text .tagline { font-size: 11px; color: var(--text-light); font-style: italic; }

.header-search {
  display: flex; align-items: center;
  background: var(--off-white);
  border: 2px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  max-width: 360px;
  width: 100%;
}
.header-search input {
  border: none; background: transparent;
  padding: 8px 16px; font-size: 14px;
  width: 100%; outline: none; color: var(--text-dark);
}
.header-search button {
  background: var(--primary-red); border: none;
  color: white; padding: 8px 16px;
  cursor: pointer; font-size: 16px;
  transition: background 0.2s;
}
.header-search button:hover { background: var(--accent-red); }

.header-social { display: flex; gap: 8px; }
.btn-whatsapp {
  background: #25d366; color: white;
  padding: 7px 14px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  text-decoration: none !important; white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-telegram {
  background: #0088cc; color: white;
  padding: 7px 14px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  text-decoration: none !important; white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-whatsapp:hover, .btn-telegram:hover { opacity: 0.88; text-decoration: none !important; }

/* ===================== NAVIGATION ===================== */
.main-nav {
  background: var(--primary-blue);
  position: sticky;
  top: 73px;
  z-index: 999;
}
.nav-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li a {
  display: block;
  color: #cfe2ff;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, color 0.2s;
}
.nav-list li a:hover,
.nav-list li a.active {
  background: var(--primary-red);
  color: white;
  text-decoration: none;
}
.nav-list li a.active-page {
  background: var(--primary-red);
  color: #fff;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 12.5px;
}
.breadcrumb ol { display: flex; align-items: center; gap: 6px; list-style: none; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; color: var(--text-light); font-size: 14px; }
.breadcrumb li a { color: var(--accent-blue); }
.breadcrumb li:last-child { color: var(--text-mid); font-weight: 600; }

/* ===================== LAYOUT ===================== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 20px 0 30px;
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* ===================== SECTION HEADINGS ===================== */
.section-head {
  background: var(--primary-blue);
  color: white;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  border-left: 4px solid var(--primary-red);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius) var(--radius) 0 0;
}
.section-head a { color: #ffe082; font-size: 12px; font-weight: 500; }
.section-head a:hover { color: #fff; }

.card-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* ===================== POST LIST TABLE ===================== */
.post-table { width: 100%; border-collapse: collapse; }
.post-table th {
  background: var(--light-blue);
  color: var(--primary-blue);
  font-weight: 700;
  padding: 9px 12px;
  font-size: 12.5px;
  border-bottom: 2px solid var(--primary-blue);
  text-align: left;
}
.post-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #edf2f7;
  font-size: 13.5px;
  vertical-align: top;
}
.post-table tr:hover td { background: #f0f6ff; }
.post-table .post-title a {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 13.5px;
}
.post-table .post-title a:hover { color: var(--primary-red); }
.post-table .tag-new {
  background: var(--primary-red);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
  animation: blink 1.5s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.post-table .tag-hot { background: #d97706; color: white; font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-left: 6px; font-weight: 700; vertical-align: middle; }
.post-table .tag-update { background: var(--success); color: white; font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-left: 6px; font-weight: 700; vertical-align: middle; }
.post-date { color: var(--text-light); font-size: 12px; white-space: nowrap; }
.post-org { color: var(--accent-blue); font-size: 12.5px; font-weight: 600; }

/* ===================== HOME GRID ===================== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 14px;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.post-card-img {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}
.post-card-body { padding: 10px 12px; }
.post-card-cat {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.post-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.4;
  margin-bottom: 6px;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--primary-red); text-decoration: none; }
.post-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 6px;
}
.btn-apply {
  display: inline-block;
  background: var(--primary-red);
  color: white !important;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.btn-apply:hover { background: #a93226; }

/* ===================== SIDEBAR ===================== */
.sidebar .card-box { margin-bottom: 16px; }
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li {
  border-bottom: 1px dotted var(--border);
  padding: 7px 12px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.sidebar-list li::before {
  content: "▶";
  color: var(--primary-red);
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { color: var(--primary-blue); font-weight: 500; }
.sidebar-list li a:hover { color: var(--primary-red); }

.sidebar-join {
  padding: 14px;
  text-align: center;
}
.sidebar-join p { font-size: 13px; color: var(--text-mid); margin-bottom: 10px; font-weight: 600; }
.sidebar-join .btn-whatsapp,
.sidebar-join .btn-telegram {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  width: 100%;
  font-size: 13px;
  padding: 9px;
}

/* ===================== POST DETAIL ===================== */
.post-detail { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.post-detail h1 { font-size: 21px; color: var(--primary-blue); font-weight: 800; margin-bottom: 8px; line-height: 1.35; }
.post-meta-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; font-size: 12.5px; color: var(--text-light); }
.post-meta-bar strong { color: var(--text-mid); }
.post-detail h2 { font-size: 16px; color: var(--white); background: var(--primary-blue); padding: 8px 14px; border-left: 4px solid var(--primary-red); margin: 22px 0 10px; border-radius: 3px; }
.post-detail h3 { font-size: 14.5px; color: var(--primary-blue); font-weight: 700; margin: 16px 0 8px; border-bottom: 1px dashed var(--border); padding-bottom: 4px; }
.post-detail p { margin-bottom: 12px; color: var(--text-mid); font-size: 14.5px; line-height: 1.75; }
.post-detail ul, .post-detail ol { padding-left: 20px; margin-bottom: 14px; color: var(--text-mid); font-size: 14.5px; }
.post-detail li { margin-bottom: 5px; line-height: 1.6; }

/* Info Table */
.info-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.info-table th { background: var(--primary-blue); color: white; padding: 9px 12px; font-weight: 600; text-align: left; font-size: 13.5px; }
.info-table td { padding: 8px 12px; border-bottom: 1px solid #e5e7eb; }
.info-table tr:nth-child(even) td { background: #f7faff; }
.info-table tr:hover td { background: var(--light-blue); }
.info-table td:first-child { font-weight: 600; color: var(--text-mid); width: 40%; }

/* Important Links Box */
.links-box {
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 18px 0;
}
.links-box-head {
  background: var(--primary-blue);
  color: white;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}
.links-table { width: 100%; border-collapse: collapse; }
.links-table td { padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.links-table td:last-child { text-align: right; }
.links-table tr:last-child td { border-bottom: none; }
.btn-link {
  display: inline-block;
  background: var(--primary-red);
  color: white !important;
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
}
.btn-link.blue { background: var(--accent-blue); }
.btn-link.green { background: var(--success); }
.btn-link:hover { opacity: 0.88; }

/* Notice Box */
.notice-box {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-left: 4px solid var(--warning);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 14px 0;
  font-size: 13.5px;
  color: #78350f;
}
.notice-box strong { color: var(--warning); }

/* FAQ Section */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-q { background: var(--light-blue); padding: 11px 14px; font-weight: 600; font-size: 14px; color: var(--primary-blue); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q:after { content: "+"; font-size: 18px; color: var(--primary-red); }
.faq-a { padding: 12px 14px; font-size: 13.5px; color: var(--text-mid); border-top: 1px solid var(--border); display: none; }
.faq-item.open .faq-q:after { content: "−"; }
.faq-item.open .faq-a { display: block; }

/* ===================== PAGINATION ===================== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--primary-blue);
  background: white;
  font-weight: 600;
}
.pagination a:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); text-decoration: none; }
.pagination .current { background: var(--primary-red); color: white; border-color: var(--primary-red); }

/* ===================== CATEGORY FILTERS ===================== */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-bar label { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.filter-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-mid);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

/* ===================== STATISTICS BAR ===================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary-red);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-item:nth-child(2) { border-top-color: var(--primary-blue); }
.stat-item:nth-child(3) { border-top-color: var(--success); }
.stat-item:nth-child(4) { border-top-color: var(--warning); }
.stat-num { font-size: 24px; font-weight: 800; color: var(--primary-blue); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }
@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== BANNER ADS ===================== */
.ad-banner {
  background: var(--white);
  border: 1px dashed #94a3b8;
  border-radius: var(--radius);
  padding: 8px;
  text-align: center;
  margin: 14px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--primary-blue);
  color: #cfe2ff;
  margin-top: 30px;
}
.footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 32px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-about h3 { color: white; font-size: 16px; margin-bottom: 10px; }
.footer-about p { font-size: 13px; line-height: 1.7; color: #a8c5f8; }
.footer-col h4 { color: white; font-size: 14px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #a8c5f8; font-size: 13px; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  padding: 14px 0;
  text-align: center;
  font-size: 12.5px;
  color: #7aa3d4;
}
.footer-bottom a { color: #a8c5f8; }

/* ===================== AUTHOR BOX ===================== */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--light-blue);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 24px;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: white; font-weight: 700; flex-shrink: 0;
}
.author-info h4 { font-size: 15px; color: var(--primary-blue); font-weight: 700; margin-bottom: 2px; }
.author-info .author-role { font-size: 12px; color: var(--primary-red); font-weight: 600; margin-bottom: 6px; }
.author-info p { font-size: 13px; color: var(--text-mid); }

/* ===================== SCROLL TO TOP ===================== */
#scrollTop {
  position: fixed;
  bottom: 24px; right: 20px;
  background: var(--primary-red);
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
  border: none;
}
#scrollTop.visible { opacity: 1; pointer-events: all; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; }
  .logo-text .site-name { font-size: 20px; }
  .topbar-right { display: none; }
  .post-detail { padding: 14px 14px; }
  .post-detail h1 { font-size: 17px; }
}
@media (max-width: 480px) {
  .header-social { display: none; }
}

/* ===================== UTILITY CLASSES ===================== */
.text-red { color: var(--primary-red); }
.text-blue { color: var(--primary-blue); }
.text-green { color: var(--success); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-14 { padding: 14px; }
.badge-red { background: var(--primary-red); color: white; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.badge-blue { background: var(--primary-blue); color: white; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.badge-green { background: var(--success); color: white; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* Page specific: About, Contact, Privacy */
.page-content { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.page-content h1 { font-size: 22px; color: var(--primary-blue); margin-bottom: 12px; border-bottom: 2px solid var(--primary-red); padding-bottom: 8px; }
.page-content h2 { font-size: 17px; color: var(--primary-blue); margin: 20px 0 8px; }
.page-content p { color: var(--text-mid); font-size: 14.5px; margin-bottom: 12px; line-height: 1.75; }
.page-content ul { padding-left: 20px; color: var(--text-mid); font-size: 14.5px; margin-bottom: 12px; }
.page-content li { margin-bottom: 5px; }

.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-blue); }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--text-mid); display: block; margin-bottom: 4px; }
.btn-submit {
  background: var(--primary-red); color: white;
  padding: 10px 28px; border: none;
  border-radius: var(--radius); font-size: 14.5px;
  font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #a93226; }
