/* ===================================================
   SARKARI RESULT THEME - MAIN CSS
   =================================================== */

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

:root {
  --red: #cc0000;
  --dark-red: #990000;
  --orange: #ff6600;
  --green: #006600;
  --blue: #003399;
  --light-blue: #0055cc;
  --yellow: #ffcc00;
  --bg: #f0f0f0;
  --white: #ffffff;
  --border: #cccccc;
  --text: #222222;
  --link: #003399;
  --link-hover: #cc0000;
}

body {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === TOPBAR === */
.topbar { background: var(--dark-red); color: #fff; padding: 4px 0; font-size: 11px; text-align: center; }
.topbar a { color: #ffff99; margin: 0 4px; }
.topbar a:hover { color: #fff; }

/* === HEADER === */
header {
  background: linear-gradient(135deg, var(--red) 0%, var(--dark-red) 40%, #770000 100%);
  padding: 10px 0 0;
  border-bottom: 3px solid var(--orange);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-img {
  width: 70px; height: 70px; border-radius: 50%;
  border: 3px solid var(--yellow);
  background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.logo-img .logo-fallback {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 700; color: var(--red);
  text-align: center; line-height: 1.2;
}
.logo-text h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px; font-weight: 700;
  color: #ffff00; letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.logo-text p { font-size: 11px; color: #ffdddd; }
.header-right { text-align: right; }
.header-right .tagline { color: #ffffcc; font-size: 11px; margin-bottom: 6px; }
.join-btns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.join-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600; cursor: pointer;
}
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-telegram { background: #0088cc; color: #fff; }
.btn-whatsapp:hover, .btn-telegram:hover { opacity: 0.9; text-decoration: none; color: #fff; }

/* === NAV === */
nav { background: var(--blue); border-top: 2px solid var(--yellow); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; }
.nav-inner a, .nav-inner > li > a {
  color: #fff; padding: 8px 13px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.2);
  display: block;
}
.nav-inner a:hover, .nav-inner a.active { background: var(--red); color: #fff; text-decoration: none; }

/* WordPress menu compatibility */
#primary-menu { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
#primary-menu > li { position: relative; }
#primary-menu > li > a { color: #fff; padding: 8px 13px; font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 600; display: block; border-right: 1px solid rgba(255,255,255,0.2); }
#primary-menu > li > a:hover, #primary-menu > li.current-menu-item > a { background: var(--red); text-decoration: none; color: #fff; }
#primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #002277; min-width: 200px; z-index: 999; list-style: none; border: 1px solid rgba(255,255,255,0.2); }
#primary-menu > li:hover .sub-menu { display: block; }
#primary-menu .sub-menu li a { color: #fff; padding: 7px 14px; display: block; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
#primary-menu .sub-menu li a:hover { background: var(--red); }

/* === TICKER === */
.ticker-wrap {
  background: #ffffcc; border-bottom: 2px solid var(--orange);
  overflow: hidden; padding: 5px 0;
}
.ticker-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.ticker-label {
  background: var(--red); color: #fff;
  padding: 2px 8px; font-size: 11px; font-weight: 700;
  white-space: nowrap; border-radius: 2px; flex-shrink: 0;
  animation: blink-bg 1s step-end infinite;
}
@keyframes blink-bg { 0%,100% { background: var(--red); } 50% { background: var(--dark-red); } }
.ticker-scroll { overflow: hidden; flex: 1; }
.ticker-text {
  display: inline-block; white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-size: 12px; font-weight: 600; color: var(--dark-red);
}
.ticker-text a { color: var(--dark-red); }
.ticker-text a:hover { color: var(--blue); }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* === MAIN CONTAINER === */
.container {
  max-width: 1100px; margin: 10px auto; padding: 0 8px;
  display: grid; grid-template-columns: 1fr 260px; gap: 10px;
}
.container.full-width { grid-template-columns: 1fr; }

/* === NOTICE BOX === */
.notice-box {
  background: #fff8e1; border: 2px solid var(--orange);
  border-radius: 4px; padding: 8px 12px;
  margin-bottom: 10px; font-size: 12px;
}
.notice-box strong { color: var(--red); }

/* === SECTION CARDS === */
.section-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 3px; margin-bottom: 10px; overflow: hidden;
}
.section-head {
  background: linear-gradient(90deg, var(--blue), #0044bb);
  color: #fff; padding: 7px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-head.red-head   { background: linear-gradient(90deg, var(--red), var(--dark-red)); }
.section-head.green-head { background: linear-gradient(90deg, #005500, #007700); }
.section-head.orange-head{ background: linear-gradient(90deg, #cc4400, var(--orange)); }

.view-more { font-size: 11px; color: #ffff99; font-family: 'Noto Sans', sans-serif; font-weight: 400; }
.view-more:hover { color: #fff; text-decoration: underline; }

/* === POST LIST === */
.post-list { list-style: none; padding: 0; }
.post-list li {
  padding: 5px 12px; border-bottom: 1px dashed #ddd;
  font-size: 12px; display: flex; align-items: flex-start; gap: 6px;
  transition: background 0.15s;
}
.post-list li:hover { background: #f8f8ff; }
.post-list li:last-child { border-bottom: none; }
.post-list li::before { content: "►"; color: var(--red); font-size: 9px; margin-top: 3px; flex-shrink: 0; }
.post-list a { color: #111; flex: 1; }
.post-list a:hover { color: var(--red); }
.sr-post-count { color: #666; font-size: 11px; }

/* === BADGES === */
.badge {
  display: inline-block; padding: 0px 5px; font-size: 9px;
  font-weight: 700; border-radius: 2px; white-space: nowrap;
  margin-left: 4px; vertical-align: middle; color: #fff;
}
.badge-new      { background: var(--red); animation: blink 1.5s step-end infinite; }
.badge-out      { background: var(--green); }
.badge-start    { background: var(--green); }
.badge-soon     { background: var(--blue); }
.badge-extended { background: var(--orange); }
.badge-updated  { background: #660099; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* === LOAD MORE === */
.load-more-wrap { padding: 8px 12px; text-align: center; border-top: 1px solid #eee; }
.btn-load-more {
  background: var(--blue); color: #fff;
  border: none; padding: 6px 18px;
  border-radius: 4px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.btn-load-more:hover { background: var(--red); }
.btn-load-more:disabled { background: #999; cursor: not-allowed; }
.sr-loading { font-size: 12px; color: #666; padding: 6px; display: none; }

/* === STATS BAR === */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 10px;
}
.stat-box {
  background: #fff; border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  padding: 8px; text-align: center; border-radius: 3px;
}
.stat-box.red-stat    { border-top-color: var(--red); }
.stat-box.green-stat  { border-top-color: var(--green); }
.stat-box.orange-stat { border-top-color: var(--orange); }
.stat-num  { font-size: 20px; font-weight: 900; color: var(--blue); font-family: 'Rajdhani', sans-serif; }
.stat-box.red-stat .stat-num    { color: var(--red); }
.stat-box.green-stat .stat-num  { color: var(--green); }
.stat-box.orange-stat .stat-num { color: var(--orange); }
.stat-label { font-size: 10px; color: #666; font-weight: 600; }

/* === FEATURED GRID === */
.featured-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; padding: 8px;
}
.featured-link {
  background: linear-gradient(135deg, #003399, #0055cc);
  color: #fff; padding: 8px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600; text-align: center;
  display: block; border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.featured-link:hover { background: linear-gradient(135deg, var(--red), var(--dark-red)); color: #fff; text-decoration: none; transform: translateY(-1px); }
.featured-link small { font-weight: 400; display: block; font-size: 10px; opacity: 0.85; margin-top: 2px; }
.featured-link.red-fl    { background: linear-gradient(135deg, var(--red), var(--dark-red)); }
.featured-link.green-fl  { background: linear-gradient(135deg, #005500, #007700); }
.featured-link.orange-fl { background: linear-gradient(135deg, #cc4400, var(--orange)); }

/* === CATEGORY QUICK LINKS === */
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding: 8px; }
.cat-btn {
  background: #eef2ff; border: 1px solid #99aadd;
  border-radius: 4px; padding: 8px 6px; text-align: center;
  font-size: 11px; font-weight: 600; color: var(--blue);
  cursor: pointer; transition: all 0.15s; display: block;
}
.cat-btn:hover { background: var(--blue); color: #fff; text-decoration: none; }
.cat-icon { font-size: 16px; display: block; margin-bottom: 2px; }

/* === SIDEBAR === */
.sidebar-box { background: var(--white); border: 1px solid var(--border); border-radius: 3px; margin-bottom: 10px; overflow: hidden; }
.sidebar-head { background: linear-gradient(90deg, var(--red), var(--dark-red)); color: #fff; padding: 6px 10px; font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; }
.sidebar-head.blue-sh  { background: linear-gradient(90deg, var(--blue), #0044bb); }
.sidebar-head.green-sh { background: linear-gradient(90deg, #005500, #007700); }
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li { padding: 4px 10px; border-bottom: 1px dashed #ddd; font-size: 11px; display: flex; gap: 4px; align-items: flex-start; transition: background 0.15s; }
.sidebar-list li:hover { background: #f8f8ff; }
.sidebar-list li::before { content: "◆"; color: var(--orange); font-size: 8px; margin-top: 3px; flex-shrink: 0; }
.sidebar-list li:last-child { border: none; }
.sidebar-list a { color: #111; }
.sidebar-list a:hover { color: var(--red); }

/* === SEARCH === */
.search-box { padding: 8px; background: #f5f5f5; border-bottom: 1px solid #ddd; position: relative; }
.search-row { display: flex; }
.search-box input { width: 100%; padding: 6px 8px; border: 1px solid #aaa; border-radius: 3px 0 0 3px; font-size: 12px; outline: none; }
.search-btn { padding: 6px 10px; background: var(--red); color: #fff; border: none; border-radius: 0 3px 3px 0; cursor: pointer; font-size: 12px; font-weight: 600; }
.search-btn:hover { background: var(--dark-red); }
.sr-search-dropdown {
  position: absolute; top: 100%; left: 8px; right: 8px;
  background: #fff; border: 1px solid #ccc;
  border-radius: 0 0 4px 4px; z-index: 9999;
  max-height: 300px; overflow-y: auto;
  display: none; box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.sr-search-dropdown.active { display: block; }
.sr-search-results-list { list-style: none; padding: 0; }
.sr-search-results-list li { border-bottom: 1px solid #eee; }
.sr-search-results-list li a { display: block; padding: 7px 10px; font-size: 11px; color: #222; }
.sr-search-results-list li a:hover { background: #eef2ff; color: var(--red); text-decoration: none; }
.sr-result-type { background: var(--blue); color: #fff; padding: 1px 5px; border-radius: 2px; font-size: 9px; font-weight: 700; margin-right: 4px; }
.sr-no-results { padding: 10px; font-size: 12px; color: #666; }
.sr-searching { padding: 10px; font-size: 12px; color: #666; text-align: center; }

/* === QUICK TABLE === */
.quick-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.quick-table td { padding: 5px 8px; border: 1px solid #ddd; vertical-align: top; }
.quick-table tr:nth-child(even) td { background: #e8f0ff; }
.quick-table a { color: var(--blue); }
.quick-table a:hover { color: var(--red); }

/* === BREADCRUMB === */
.sr-breadcrumb { background: #fff; border: 1px solid #ddd; padding: 6px 12px; font-size: 11px; color: #666; margin-bottom: 10px; border-radius: 3px; }
.sr-breadcrumb a { color: var(--blue); }
.sr-breadcrumb a:hover { color: var(--red); }

/* === SINGLE POST === */
.single-wrapper { background: #fff; border: 1px solid var(--border); border-radius: 3px; padding: 16px; margin-bottom: 10px; }
.single-post-title { font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; color: #111; border-bottom: 2px solid var(--red); padding-bottom: 8px; margin-bottom: 10px; }
.post-meta-bar { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #666; margin-bottom: 14px; }
.post-meta-bar span { display: flex; align-items: center; gap: 4px; }

.sr-detail-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12px; }
.sr-detail-table th { background: var(--blue); color: #fff; padding: 7px 10px; text-align: left; font-weight: 600; width: 35%; }
.sr-detail-table td { padding: 7px 10px; border: 1px solid #ddd; }
.sr-detail-table tr:nth-child(even) td { background: #e8f0ff; }
.sr-detail-table a { color: var(--blue); font-weight: 600; }

.sr-links-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12px; }
.sr-links-table th { background: var(--dark-red); color: #fff; padding: 7px 10px; text-align: left; }
.sr-links-table td { padding: 7px 10px; border: 1px solid #ddd; }
.sr-links-table tr:nth-child(even) td { background: #fff5f5; }
.sr-link-btn { display: inline-block; background: var(--blue); color: #fff !important; padding: 4px 12px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.sr-link-btn:hover { background: var(--red); text-decoration: none !important; }
.sr-link-btn.green-btn { background: var(--green); }
.sr-link-btn.orange-btn { background: var(--orange); }

.entry-content h2 { font-family: 'Rajdhani', sans-serif; font-size: 18px; background: #eef2ff; padding: 6px 10px; border-left: 4px solid var(--blue); margin: 14px 0 8px; }
.entry-content h3 { font-size: 15px; font-weight: 700; margin: 10px 0 6px; color: #003399; }
.entry-content p { margin-bottom: 10px; font-size: 13px; }
.entry-content ul, .entry-content ol { margin: 8px 0 8px 20px; font-size: 13px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 10px 0; }
.entry-content table th, .entry-content table td { border: 1px solid #ccc; padding: 6px 8px; }
.entry-content table th { background: var(--blue); color: #fff; }
.entry-content table tr:nth-child(even) td { background: #f0f4ff; }

/* === ARCHIVE / CATEGORY PAGE === */
.archive-list { list-style: none; padding: 0; }
.archive-list li { background: #fff; border: 1px solid #ddd; border-left: 4px solid var(--blue); padding: 10px 14px; margin-bottom: 6px; border-radius: 0 4px 4px 0; transition: border-color 0.2s; }
.archive-list li:hover { border-left-color: var(--red); }
.archive-list .post-title a { font-size: 14px; font-weight: 600; color: #111; }
.archive-list .post-title a:hover { color: var(--red); }
.archive-list .post-excerpt { font-size: 11px; color: #666; margin-top: 4px; }
.archive-list .post-meta { font-size: 10px; color: #999; margin-top: 4px; }
.archive-list .post-meta .badge { margin-left: 0; }

/* === PAGINATION === */
.sr-pagination { text-align: center; margin: 12px 0; }
.sr-pagination .page-numbers { display: inline-block; padding: 5px 10px; border: 1px solid #ccc; margin: 2px; border-radius: 3px; font-size: 12px; }
.sr-pagination .page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }
.sr-pagination .page-numbers:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }

/* === FOOTER === */
footer { background: #222; color: #ccc; margin-top: 16px; }
.footer-top { background: var(--dark-red); padding: 12px 0; }
.footer-nav { max-width: 1100px; margin: 0 auto; padding: 0 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.footer-nav a { color: #fff; font-size: 12px; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 3px; }
.footer-nav a:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 12px 10px; text-align: center; font-size: 11px; color: #999; }
.footer-bottom a { color: #ffaa44; }
.footer-widgets { max-width: 1100px; margin: 0 auto; padding: 12px 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.footer-widget h4 { color: #fff; font-family: 'Rajdhani', sans-serif; font-size: 15px; margin-bottom: 8px; border-bottom: 1px solid #555; padding-bottom: 4px; }
.footer-widget ul { list-style: none; }
.footer-widget ul li { padding: 3px 0; border-bottom: 1px solid #333; }
.footer-widget ul li a { color: #bbb; font-size: 11px; }
.footer-widget ul li a:hover { color: #ffaa44; }

/* === 404 / SEARCH PAGE === */
.sr-page-404 { text-align: center; padding: 40px 20px; background: #fff; border: 1px solid #ddd; border-radius: 4px; }
.sr-page-404 h1 { font-size: 60px; color: var(--red); font-family: 'Rajdhani', sans-serif; }
.sr-page-404 p { font-size: 14px; color: #666; }
.search-results-wrap .entry-title a { font-size: 15px; font-weight: 600; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 8px; text-align: center; }
  .header-right { text-align: center; }
  .join-btns { justify-content: center; }
  .featured-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .logo-text h1 { font-size: 20px; }
  .footer-widgets { grid-template-columns: 1fr; }
  .sr-detail-table th { width: auto; }
}
