/*
Theme Name:   Sarkari Wave (GeneratePress Child)
Theme URI:    https://sarkariwave.com/
Description:  Modern child theme for sarkariwave.com built on GeneratePress. Adds a top utility bar, scrolling alert ticker, hero section, card grids, styled tables, and a rich footer.
Author:       Custom Build
Template:     generatepress
Version:      1.0.0
Text Domain:  sarkariwave-child
*/

/* =========================================================
   0. ROOT VARIABLES
   ========================================================= */
:root{
  --sw-primary:#123a7a;      /* deep navy blue - headers, nav */
  --sw-primary-dark:#0b2957;
  --sw-accent:#f59e0b;       /* amber - CTAs, badges, alerts */
  --sw-accent-dark:#d97706;
  --sw-success:#16a34a;
  --sw-danger:#dc2626;
  --sw-bg:#f4f6fb;
  --sw-card-bg:#ffffff;
  --sw-text:#1f2937;
  --sw-text-light:#6b7280;
  --sw-border:#e5e9f2;
  --sw-radius:10px;
  --sw-shadow:0 2px 10px rgba(18,58,122,0.08);
  --sw-shadow-hover:0 10px 24px rgba(18,58,122,0.15);
  --sw-font-head:'Poppins', sans-serif;
  --sw-font-body:'Inter', sans-serif;
}

body{
  font-family:var(--sw-font-body);
  color:var(--sw-text);
  background:var(--sw-bg);
}
h1,h2,h3,h4,h5,h6,
.site-title, .site-description{
  font-family:var(--sw-font-head);
}
a{ transition:color .2s ease; }

.inside-container, .grid-container{ max-width:1200px; }

/* =========================================================
   1. TOP UTILITY BAR
   ========================================================= */
.sw-topbar{
  background:var(--sw-primary-dark);
  color:#dbe4f7;
  font-size:13px;
}
.sw-topbar .sw-topbar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:6px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}
.sw-topbar-left{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.sw-topbar-left span{ display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.sw-topbar a{ color:#dbe4f7; text-decoration:none; }
.sw-topbar a:hover{ color:var(--sw-accent); }
.sw-topbar-social{ display:flex; gap:12px; }
.sw-topbar-social a{ font-size:13px; }
.sw-topbar-date{ opacity:.85; }

@media(max-width:768px){
  .sw-topbar-inner{ justify-content:center; text-align:center; }
  .sw-topbar-left{ justify-content:center; }
}

/* =========================================================
   2. HEADER / NAVIGATION
   ========================================================= */
.site-header{
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.main-navigation,
.main-navigation .inside-navigation{
  background:var(--sw-primary);
}
.main-navigation *{
  font-family:var(--sw-font-body);
  font-weight:600;
  letter-spacing:.2px;
}
.main-navigation .main-nav ul li a{
  color:#fff !important;
  padding:16px 18px;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a{
  background:var(--sw-primary-dark) !important;
  color:var(--sw-accent) !important;
}
.main-navigation .main-nav ul ul{
  background:#fff;
  box-shadow:var(--sw-shadow-hover);
  border-top:3px solid var(--sw-accent);
  min-width:230px;
}
.main-navigation .main-nav ul ul li a{
  color:var(--sw-text) !important;
  padding:12px 18px;
  border-bottom:1px solid var(--sw-border);
}
.main-navigation .main-nav ul ul li a:hover{
  background:var(--sw-bg) !important;
  color:var(--sw-primary) !important;
  padding-left:22px;
}
.main-navigation .menu-toggle{
  background:var(--sw-primary-dark) !important;
}
.site-logo img{ max-height:56px; width:auto; }
.site-title a{ color:var(--sw-primary) !important; font-weight:700; }
.site-description{ color:var(--sw-text-light); }

/* =========================================================
   3. ALERT / SCROLLING TICKER
   ========================================================= */
.sw-alertbar{
  background:#fff7e6;
  border-top:1px solid #ffe4a3;
  border-bottom:1px solid #ffe4a3;
  overflow:hidden;
}
.sw-alertbar-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:14px;
  padding:8px 20px;
}
.sw-alertbar-label{
  flex:none;
  background:var(--sw-danger);
  color:#fff;
  font-weight:700;
  font-size:12px;
  letter-spacing:.5px;
  padding:5px 12px;
  border-radius:20px;
  text-transform:uppercase;
}
.sw-marquee{
  flex:1;
  overflow:hidden;
  white-space:nowrap;
  position:relative;
}
.sw-marquee-track{
  display:inline-flex;
  gap:48px;
  padding-left:100%;
  animation:sw-scroll 35s linear infinite;
}
.sw-marquee:hover .sw-marquee-track{ animation-play-state:paused; }
.sw-marquee-track a{
  color:var(--sw-primary-dark);
  font-size:14px;
  font-weight:600;
  text-decoration:none;
}
.sw-marquee-track a:hover{ color:var(--sw-accent-dark); text-decoration:underline; }
@keyframes sw-scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-100%); }
}

/* =========================================================
   4. HERO SECTION (front page)
   ========================================================= */
.sw-hero{
  background:linear-gradient(135deg,var(--sw-primary) 0%,var(--sw-primary-dark) 100%);
  color:#fff;
  padding:56px 20px 64px;
}
.sw-hero-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:32px;
}
.sw-hero-content{ flex:1 1 460px; }
.sw-hero-badge{
  display:inline-block;
  background:rgba(245,158,11,.18);
  color:var(--sw-accent);
  border:1px solid rgba(245,158,11,.4);
  font-size:12px;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  padding:5px 14px;
  border-radius:20px;
  margin-bottom:16px;
}
.sw-hero h1{
  font-size:clamp(28px,4vw,42px);
  line-height:1.25;
  margin:0 0 14px;
  color:#fff;
}
.sw-hero p{
  font-size:16px;
  color:#dbe4f7;
  max-width:620px;
  margin:0 0 26px;
}
.sw-hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.sw-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 26px;
  border-radius:8px;
  font-weight:700;
  font-size:14.5px;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease;
}
.sw-btn-primary{ background:var(--sw-accent); color:#1a1a1a; }
.sw-btn-primary:hover{ background:var(--sw-accent-dark); color:#fff; transform:translateY(-2px); }
.sw-btn-outline{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.6); }
.sw-btn-outline:hover{ background:rgba(255,255,255,.12); transform:translateY(-2px); }

.sw-hero-panel{
  flex:1 1 320px;
  background:#fff;
  color:var(--sw-text);
  border-radius:var(--sw-radius);
  padding:22px 24px;
  box-shadow:var(--sw-shadow-hover);
}
.sw-hero-panel h3{
  margin-top:0;
  font-size:16px;
  color:var(--sw-primary);
  border-bottom:2px solid var(--sw-accent);
  display:inline-block;
  padding-bottom:6px;
  margin-bottom:14px;
}
.sw-hero-panel table{ width:100%; border-collapse:collapse; margin:0; }
.sw-hero-panel table td{ padding:8px 4px; font-size:14px; border-bottom:1px dashed var(--sw-border); }
.sw-hero-panel table td:first-child{ color:var(--sw-text-light); }
.sw-hero-panel table td:last-child{ text-align:right; font-weight:600; }

/* =========================================================
   5. SECTION WRAPPERS + HEADINGS
   ========================================================= */
.sw-section{ max-width:1200px; margin:0 auto; padding:48px 20px; }
.sw-section-tight{ padding-top:0; }
.sw-section-head{ text-align:center; margin-bottom:32px; }
.sw-section-head .sw-eyebrow{
  display:block;
  color:var(--sw-accent-dark);
  font-weight:700;
  font-size:12.5px;
  letter-spacing:1px;
  text-transform:uppercase;
  margin-bottom:8px;
}
.sw-section-head h2{
  font-size:clamp(22px,3vw,30px);
  margin:0 0 10px;
  color:var(--sw-primary-dark);
}
.sw-section-head p{ color:var(--sw-text-light); max-width:600px; margin:0 auto; }

/* =========================================================
   6. CARD GRID (Quick Links / Homepage Cards widget area)
   ========================================================= */
#sw-homepage-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
}
#sw-homepage-cards .widget{
  background:var(--sw-card-bg);
  border:1px solid var(--sw-border);
  border-top:3px solid var(--sw-primary);
  border-radius:var(--sw-radius);
  padding:24px 22px;
  box-shadow:var(--sw-shadow);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#sw-homepage-cards .widget:hover{
  transform:translateY(-6px);
  box-shadow:var(--sw-shadow-hover);
  border-top-color:var(--sw-accent);
}
#sw-homepage-cards .widget-title{
  font-family:var(--sw-font-head);
  font-size:17px;
  color:var(--sw-primary-dark);
  margin:0 0 10px;
}
#sw-homepage-cards .widget p{ color:var(--sw-text-light); font-size:14.5px; margin-bottom:12px; }
#sw-homepage-cards .widget a.sw-card-link,
#sw-homepage-cards .widget p:last-child a{
  color:var(--sw-primary);
  font-weight:700;
  font-size:13.5px;
  text-decoration:none;
}
#sw-homepage-cards .widget a:hover{ color:var(--sw-accent-dark); }

/* =========================================================
   7. LATEST UPDATES (auto post grid)
   ========================================================= */
.sw-post-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}
.sw-post-card{
  background:var(--sw-card-bg);
  border-radius:var(--sw-radius);
  overflow:hidden;
  box-shadow:var(--sw-shadow);
  transition:transform .2s ease, box-shadow .2s ease;
  display:flex;
  flex-direction:column;
}
.sw-post-card:hover{ transform:translateY(-5px); box-shadow:var(--sw-shadow-hover); }
.sw-post-thumb{ aspect-ratio:16/9; overflow:hidden; background:var(--sw-bg); }
.sw-post-thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s ease; }
.sw-post-card:hover .sw-post-thumb img{ transform:scale(1.06); }
.sw-post-body{ padding:18px 20px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.sw-post-cat{
  align-self:flex-start;
  background:rgba(18,58,122,.08);
  color:var(--sw-primary);
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.4px;
  padding:4px 10px;
  border-radius:20px;
}
.sw-post-body h3{ font-size:16.5px; margin:2px 0 0; line-height:1.4; }
.sw-post-body h3 a{ color:var(--sw-text); text-decoration:none; }
.sw-post-body h3 a:hover{ color:var(--sw-primary); }
.sw-post-meta{ font-size:12.5px; color:var(--sw-text-light); }
.sw-post-excerpt{ font-size:14px; color:var(--sw-text-light); margin:0; }
.sw-read-more{ margin-top:auto; font-size:13px; font-weight:700; color:var(--sw-accent-dark); text-decoration:none; }
.sw-read-more:hover{ text-decoration:underline; }

.sw-view-all-wrap{ text-align:center; margin-top:34px; }

/* =========================================================
   8. CONTENT / SINGLE POST-PAGE TYPOGRAPHY
   ========================================================= */
.entry-content h2{
  color:var(--sw-primary-dark);
  margin-top:1.6em;
  padding-bottom:8px;
  border-bottom:2px solid var(--sw-border);
}
.entry-content h3{ color:var(--sw-primary); margin-top:1.4em; }
.entry-content a{ color:var(--sw-primary); font-weight:600; }
.entry-content a:hover{ color:var(--sw-accent-dark); }

.entry-content table{
  width:100%;
  border-collapse:collapse;
  margin:24px 0;
  box-shadow:var(--sw-shadow);
  border-radius:var(--sw-radius);
  overflow:hidden;
}
.entry-content table th{
  background:var(--sw-primary);
  color:#fff;
  padding:12px 16px;
  text-align:left;
  font-family:var(--sw-font-head);
  font-size:14px;
}
.entry-content table td{
  padding:11px 16px;
  border-bottom:1px solid var(--sw-border);
  font-size:14.5px;
}
.entry-content table tr:nth-child(even) td{ background:var(--sw-bg); }
.entry-content table tr:last-child td{ border-bottom:none; }

.entry-content blockquote{
  background:#eef4ff;
  border-left:4px solid var(--sw-primary);
  padding:16px 20px;
  border-radius:0 var(--sw-radius) var(--sw-radius) 0;
  font-style:normal;
  color:var(--sw-text);
}
.entry-content .sw-notice{
  background:#fff7e6;
  border:1px solid #ffe4a3;
  border-left:4px solid var(--sw-accent);
  padding:16px 20px;
  border-radius:var(--sw-radius);
  margin:20px 0;
}
.entry-content ul li, .entry-content ol li{ margin-bottom:8px; }

/* Buttons inside content (e.g. [button] shortcode or manual .sw-btn class) */
.entry-content .sw-btn{ margin:4px 6px 4px 0; }

/* =========================================================
   9. SIDEBAR
   ========================================================= */
.widget-area .widget{
  background:var(--sw-card-bg);
  border:1px solid var(--sw-border);
  border-radius:var(--sw-radius);
  padding:20px 22px;
  margin-bottom:22px;
  box-shadow:var(--sw-shadow);
}
.widget-area .widget-title{
  font-family:var(--sw-font-head);
  font-size:16px;
  color:var(--sw-primary-dark);
  border-bottom:2px solid var(--sw-accent);
  padding-bottom:8px;
  margin-bottom:14px;
}

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer, .footer-widgets{
  background:var(--sw-primary-dark) !important;
  color:#c9d5ee;
}
.site-footer .widget-title{
  color:#fff;
  font-family:var(--sw-font-head);
  font-size:16px;
  position:relative;
  padding-bottom:10px;
  margin-bottom:16px;
}
.site-footer .widget-title::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:36px; height:3px;
  background:var(--sw-accent);
  border-radius:2px;
}
.site-footer a{ color:#c9d5ee; text-decoration:none; }
.site-footer a:hover{ color:var(--sw-accent); }
.site-footer .widget ul{ list-style:none; margin:0; padding:0; }
.site-footer .widget ul li{ margin-bottom:9px; font-size:14px; }
.site-footer p{ font-size:14px; line-height:1.7; }

.sw-footer-bottom{
  background:#081d3f;
  padding:16px 20px;
}
.sw-footer-bottom-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:13px;
  color:#94a3c4;
}
.sw-footer-bottom-inner a{ color:#94a3c4; }
.sw-footer-bottom-inner a:hover{ color:var(--sw-accent); }
.sw-footer-links{ display:flex; gap:16px; flex-wrap:wrap; }

/* =========================================================
   11. BACK TO TOP BUTTON
   ========================================================= */
#sw-back-to-top{
  position:fixed;
  right:22px; bottom:22px;
  width:44px; height:44px;
  border-radius:50%;
  background:var(--sw-primary);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--sw-shadow-hover);
  cursor:pointer;
  opacity:0; visibility:hidden;
  transform:translateY(10px);
  transition:all .25s ease;
  z-index:999;
  text-decoration:none;
  font-size:18px;
}
#sw-back-to-top.sw-show{ opacity:1; visibility:visible; transform:translateY(0); }
#sw-back-to-top:hover{ background:var(--sw-accent); color:#1a1a1a; }

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media(max-width:768px){
  .sw-hero{ padding:36px 16px 42px; text-align:center; }
  .sw-hero-actions{ justify-content:center; }
  .sw-section{ padding:34px 16px; }
  #sw-back-to-top{ right:14px; bottom:14px; width:40px; height:40px; }
}
