/*
Theme Name: Sarkari Result Official
Theme URI: https://example.com
Author: Custom Build
Description: A fully customizable Sarkari-Result style Govt job/result/admit-card portal theme. Manage Jobs, Results, Admit Cards, Answer Keys, Syllabus, Admission, Yojana, Important Links, Certificate Verification, Quick Links, Ticker Alerts and FAQs from the WordPress admin, and tweak colors/text live in Appearance > Customize.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkari-result
*/

:root{
  --maroon:#8b0000;
  --maroon-dark:#5e0000;
  --gold:#ffcc00;
  --navy:#1a1f6e;
  --navy-dark:#0d1145;
  --red:#c0392b;
  --blue:#1a56c4;
  --green:#0e8f6a;
  --orange:#d2691e;
  --purple:#6a1fb0;
  --teal:#0d7377;
  --pink:#c2185b;
  --brown:#8b4513;
  --darkteal:#0f5c56;
  --dark-navy-footer:#0a0e2e;
  --bg:#eef0f4;
  --card-border:#e1e4ea;
  --text:#222;
  --muted:#777;
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:'Segoe UI', Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{text-decoration:none; color:inherit;}
ul{list-style:none; margin:0; padding:0;}
img{max-width:100%;}

/* HEADER */
header.top{
  background:linear-gradient(180deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  text-align:center;
  padding:22px 16px 16px;
  color:#fff;
}
header.top h1{
  margin:0;
  font-size:2.6rem;
  letter-spacing:4px;
  font-weight:800;
  text-shadow:2px 2px 0 rgba(0,0,0,0.25);
}
header.top h1 a{color:#fff;}
header.top .url{
  color:var(--gold);
  font-weight:700;
  letter-spacing:2px;
  margin-top:6px;
  font-size:0.95rem;
}
header.top .tag{
  font-style:italic;
  opacity:0.9;
  margin-top:4px;
  font-size:0.85rem;
}

/* ALERT TICKER */
.ticker-wrap{
  background:var(--gold);
  color:#5e0000;
  font-weight:700;
  font-size:0.82rem;
  overflow:hidden;
  white-space:nowrap;
  position:relative;
  border-bottom:2px solid #5e0000;
}
.ticker-inner{
  display:inline-flex;
  gap:60px;
  padding:8px 0;
  animation:scroll-left 32s linear infinite;
}
.ticker-label{
  background:#5e0000;
  color:#fff;
  padding:2px 10px;
  border-radius:4px;
  margin-right:14px;
}
@keyframes scroll-left{
  0%{transform:translateX(0);}
  100%{transform:translateX(-50%);}
}

/* WARNING */
.warning{
  max-width:1100px;
  margin:16px auto;
  background:#fde3e3;
  border:2px solid var(--red);
  color:var(--red);
  text-align:center;
  padding:12px 16px;
  border-radius:6px;
  font-size:0.85rem;
  font-weight:600;
}

/* AD SLOT */
.sro-ad-slot{
  max-width:1100px;
  margin:0 auto 20px;
  padding:0 16px;
  text-align:center;
}
.sro-ad-label{
  display:block;
  font-size:0.65rem;
  letter-spacing:1px;
  color:var(--muted);
  text-transform:uppercase;
  margin-bottom:4px;
}

/* QUICK LINKS */
.quick-links{
  max-width:1100px;
  margin:0 auto 20px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
  padding:0 16px;
}
.quick-links a{
  color:#fff;
  padding:12px 10px;
  border-radius:6px;
  text-align:center;
  font-weight:700;
  font-size:0.9rem;
  display:block;
}
.quick-links a small{
  display:block;
  font-weight:500;
  font-size:0.65rem;
  opacity:0.85;
  margin-top:2px;
  letter-spacing:1px;
}

/* SEARCH BAR */
.search-section{
  max-width:1100px;
  margin:0 auto 24px;
  padding:0 16px;
}
.search-box{
  background:var(--navy);
  border:2px solid var(--gold);
  border-radius:6px;
  padding:20px;
}
.search-box h2{
  text-align:center;
  color:#fff;
  margin:0 0 14px;
  font-size:1.3rem;
  letter-spacing:1px;
}
.search-input-wrap{
  background:#fff;
  border-radius:6px;
  display:flex;
  align-items:center;
  padding:10px 14px;
  gap:8px;
}
.search-input-wrap input[type="search"],
.search-input-wrap input[type="text"]{
  border:none;
  outline:none;
  flex:1;
  font-size:1rem;
}
.search-input-wrap button{
  border:none;
  background:none;
  color:var(--blue);
  font-weight:700;
  font-size:0.8rem;
  cursor:pointer;
}

/* ICON NAV */
.icon-nav{
  max-width:1100px;
  margin:0 auto 24px;
  background:#fff;
  border-radius:8px;
  padding:20px 10px;
  display:grid;
  grid-template-columns:repeat(8, 1fr);
  gap:10px;
  box-shadow:0 1px 4px rgba(0,0,0,0.06);
}
.icon-nav .item{
  text-align:center;
  font-size:0.72rem;
  font-weight:700;
  color:#333;
}
.icon-nav .circle{
  width:46px;height:46px;
  background:var(--red);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 8px;
  color:#fff;
  font-size:1.3rem;
}

/* CARD GRID */
.grid-section{
  max-width:1100px;
  margin:0 auto 20px;
  padding:0 16px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.panel{
  background:#fff;
  border-radius:6px;
  overflow:hidden;
  border:1px solid var(--card-border);
  box-shadow:0 1px 4px rgba(0,0,0,0.05);
}
.panel-head{
  padding:12px 14px;
  color:#fff;
  font-weight:700;
  font-size:0.9rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.panel-head .badge{
  background:rgba(255,255,255,0.2);
  padding:2px 8px;
  border-radius:10px;
  font-size:0.65rem;
}
.ph-blue{background:var(--blue);}
.ph-red{background:var(--red);}
.ph-green{background:var(--green);}
.ph-brown{background:var(--brown);}
.ph-teal{background:var(--teal);}
.ph-purple{background:var(--purple);}
.ph-purple2{background:#4527a0;}
.ph-orange{background:var(--orange);}
.ph-darknavy{background:#1c2833;}
.ph-pink{background:var(--pink);}
.ph-darkteal{background:var(--darkteal);}
.panel-body{
  min-height:220px;
  padding:14px;
}
.panel-body.empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-style:italic;
  font-size:0.85rem;
  min-height:180px;
}
.panel-list li, .archive-list li{
  border-bottom:1px dashed var(--card-border);
  padding:9px 2px;
  font-size:0.85rem;
}
.panel-list li:last-child, .archive-list li:last-child{border-bottom:none;}
.panel-list a, .archive-list a{color:#1a1f6e; font-weight:600;}
.panel-list a:hover, .archive-list a:hover{color:var(--red);}
.item-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.new-badge{
  background:#fde3e3;
  color:var(--red);
  font-weight:800;
  font-size:0.65rem;
  letter-spacing:0.5px;
  padding:1px 6px;
  border-radius:3px;
  flex-shrink:0;
}
.date, span.date{
  color:var(--muted);
  font-size:0.72rem;
  display:block;
  margin-top:6px;
  padding-top:6px;
  border-top:1px dotted #ccc;
}
.single-date{
  color:var(--red);
  font-size:0.85rem;
  font-weight:600;
  padding-top:8px;
  border-top:1px dotted #ccc;
  display:inline-block;
}

/* ABOUT SECTION */
.about-section, .faq-section{
  max-width:1100px;
  margin:0 auto 20px;
  padding:0 16px;
}
.about-card, .faq-card{
  background:#fff;
  border-radius:6px;
  border:1px solid var(--card-border);
  padding:20px;
}
.about-card h2, .faq-card h2{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--navy);
  font-size:1.15rem;
  margin-top:0;
}
.verified-badge, .seo-badge{
  font-size:0.65rem;
  padding:3px 10px;
  border-radius:10px;
  font-weight:700;
  margin-left:auto;
}
.verified-badge{background:#fde3e3; color:var(--red);}
.seo-badge{background:#e3ecfd; color:var(--blue);}
.about-card p{
  color:#444;
  line-height:1.6;
  font-size:0.9rem;
}
.read-more{
  display:inline-block;
  background:#fde3e3;
  color:var(--red);
  padding:8px 16px;
  border-radius:4px;
  font-weight:700;
  font-size:0.8rem;
  margin:10px 0 16px;
}
.feature-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.feature-box{
  background:#f6f7fa;
  border-radius:6px;
  padding:14px;
  font-size:0.82rem;
}
.feature-box strong{
  display:block;
  margin-bottom:4px;
  color:#222;
}

/* FAQ */
.faq-item{
  border:1px solid var(--card-border);
  border-radius:6px;
  margin-bottom:10px;
  overflow:hidden;
}
.faq-q{
  padding:14px 16px;
  font-weight:700;
  font-size:0.88rem;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#222;
}
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.25s ease;
  padding:0 16px;
  font-size:0.85rem;
  color:#555;
  line-height:1.6;
}
.faq-item.open .faq-a{
  max-height:300px;
  padding:0 16px 16px;
}
.faq-item.open .faq-q .chevron{
  transform:rotate(180deg);
}
.chevron{transition:transform 0.25s ease; color:var(--muted);}

/* NEWSLETTER */
.newsletter{
  max-width:1100px;
  margin:0 auto 30px;
  padding:0 16px;
}
.newsletter-inner{
  background:#111;
  border:2px solid var(--gold);
  border-radius:6px;
  padding:20px 24px;
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
.newsletter-inner h3{
  color:var(--gold);
  margin:0 0 8px;
  font-size:1.05rem;
}
.newsletter-inner p{
  font-size:0.82rem;
  color:#ccc;
  max-width:480px;
  margin:0;
}
.newsletter-form{
  display:flex;
  gap:8px;
}
.newsletter-form input{
  padding:10px 14px;
  border-radius:4px;
  border:none;
  background:#2a2a2a;
  color:#fff;
  min-width:220px;
}
.newsletter-form button{
  background:var(--gold);
  border:none;
  padding:10px 18px;
  border-radius:4px;
  font-weight:800;
  cursor:pointer;
}
.sro-newsletter-msg{
  margin-top:10px;
  font-size:0.8rem;
  font-weight:700;
  padding:8px 12px;
  border-radius:4px;
  display:inline-block;
}
.sro-newsletter-msg.success{background:#d5f5e3; color:#186a3b;}
.sro-newsletter-msg.error{background:#fde3e3; color:#a93226;}

/* GENERIC PAGE / SINGLE / ARCHIVE */
.content-wrap{
  max-width:1100px;
  margin:20px auto;
  padding:0 16px 40px;
}
.content-card{
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:6px;
  padding:24px;
}
.content-card h1{color:var(--navy); margin-top:0;}
.breadcrumb{font-size:0.8rem; color:var(--muted); margin-bottom:14px;}
.breadcrumb a{color:var(--blue);}
.archive-list li{border-bottom:1px dashed var(--card-border); padding:12px 2px;}
.archive-list a{color:var(--navy); font-weight:700;}
.archive-list a:hover{color:var(--red);}
.meta-link-btn{
  display:inline-block;
  margin-top:16px;
  background:var(--green);
  color:#fff;
  padding:10px 18px;
  border-radius:4px;
  font-weight:700;
}

/* FOOTER */
footer.site-footer{
  background:var(--dark-navy-footer);
  color:#aab0c8;
  text-align:center;
  padding:30px 16px 20px;
  border-top:4px solid var(--gold);
}
footer.site-footer .furl{color:#fff; font-weight:700; letter-spacing:2px; margin-bottom:14px;}
footer.site-footer .disclaimer{max-width:800px; margin:0 auto 16px; font-size:0.75rem; line-height:1.6; color:#7d84a3;}
footer.site-footer .flinks{margin-bottom:16px; font-size:0.8rem;}
footer.site-footer .flinks a{margin:0 8px; color:#c3c8de;}
footer.site-footer .flinks a.admin{color:var(--gold);}
footer.site-footer .social-label{font-size:0.7rem; letter-spacing:1px; color:#7d84a3; margin-bottom:10px;}
footer.site-footer .social-icons{display:flex; justify-content:center; gap:10px; margin-bottom:16px;}
footer.site-footer .social-icons a{
  width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff; font-size:0.85rem;
}
footer.site-footer .copyright{font-size:0.72rem; color:#5d6382; border-top:1px solid #23274a; padding-top:14px;}

.scroll-top{
  position:fixed;
  bottom:20px; right:20px;
  background:var(--red);
  color:#fff;
  width:42px;height:42px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.3);
  cursor:pointer;
  font-size:1.2rem;
  z-index:99;
  border:none;
}

@media(max-width:900px){
  .quick-links{grid-template-columns:repeat(2,1fr);}
  .icon-nav{grid-template-columns:repeat(4,1fr);}
  .grid-section{grid-template-columns:1fr;}
  .feature-row{grid-template-columns:1fr;}
  header.top h1{font-size:1.8rem; letter-spacing:2px;}
  .newsletter-inner{flex-direction:column; align-items:stretch;}
  .newsletter-form input{min-width:0; flex:1;}
}
