/*
Theme Name: SarkariAlert365
Theme URI: https://sarkarialert365.com
Author: SarkariAlert365
Author URI: https://sarkarialert365.com
Description: A professional government job alert theme for SarkariAlert365.com — Government Jobs, Results, Admit Cards, Answer Keys.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkarialert365
Tags: government-jobs, job-portal, news, blog, custom-menu, featured-images, responsive-layout
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --saffron: #FF6B00;
  --saffron-light: #FF8C35;
  --saffron-pale: #FFF4EC;
  --green: #138808;
  --green-light: #1aaa0a;
  --navy: #0A2463;
  --navy-mid: #1A3A7A;
  --navy-light: #2652A8;
  --sky: #EEF3FF;
  --text-dark: #1A1A2E;
  --text-mid: #444466;
  --text-light: #888899;
  --border: #D8DEF0;
  --white: #FFFFFF;
  --card-shadow: 0 2px 10px rgba(10,36,99,0.08);
  --tag-new: #E8FFF0;
  --tag-new-text: #138808;
  --tag-out: #FFF0E8;
  --tag-out-text: #CC4400;
  --red-alert: #CC2222;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-dark);
  background: #F5F7FD;
  font-size: 14px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--saffron); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============================================================
   TOP BANNER
   ============================================================ */
.top-banner {
  background: var(--red-alert);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 5px 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
  background: var(--white);
  border-bottom: 3px solid var(--saffron);
  box-shadow: 0 2px 12px rgba(10,36,99,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-wrap { display: flex; align-items: center; gap: 12px; }

.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-light) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 10px rgba(255,107,0,0.3);
  flex-shrink: 0;
}

.site-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.site-title span { color: var(--saffron); }

.site-description {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.header-search {
  flex: 1; max-width: 420px;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.header-search:focus-within { border-color: var(--saffron); }

.header-search input[type="search"] {
  flex: 1; border: none; outline: none;
  padding: 9px 14px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--sky);
}

.header-search button {
  background: var(--saffron);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  color: white;
  font-size: 16px;
  transition: background 0.2s;
}

.header-search button:hover { background: var(--saffron-light); }

.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.btn-whatsapp {
  background: #25D366; color: white;
  padding: 8px 14px; border-radius: 7px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: transform 0.15s; white-space: nowrap;
}
.btn-whatsapp:hover { transform: translateY(-1px); color: white; }

.btn-notify {
  background: var(--navy); color: white;
  padding: 8px 14px; border-radius: 7px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s; white-space: nowrap;
}
.btn-notify:hover { background: var(--navy-light); color: white; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-navigation { background: var(--navy); overflow-x: auto; }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

#site-navigation ul { display: flex; flex-wrap: nowrap; }

#site-navigation ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px 14px;
  white-space: nowrap;
  display: block;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

#site-navigation ul li a:hover,
#site-navigation ul li.current-menu-item > a {
  color: var(--saffron);
  border-bottom-color: var(--saffron);
  background: rgba(255,255,255,0.05);
}

/* Dropdown */
#site-navigation ul li { position: relative; }
#site-navigation ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 220px;
  z-index: 999;
  border-top: 2px solid var(--saffron);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  flex-direction: column;
}
#site-navigation ul li:hover > ul { display: flex; }
#site-navigation ul li ul li a { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 10px 16px; }

/* ============================================================
   STATE STRIP
   ============================================================ */
.state-strip {
  background: var(--navy-mid);
  overflow-x: auto;
  scrollbar-width: none;
}
.state-strip::-webkit-scrollbar { display: none; }

.state-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  padding: 0 12px;
  gap: 2px;
}

.state-tag {
  color: rgba(255,255,255,0.75);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}
.state-tag:hover,
.state-tag.active { background: rgba(255,107,0,0.25); color: var(--saffron); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker-bar {
  background: var(--saffron-pale);
  border-top: 1px solid rgba(255,107,0,0.2);
  border-bottom: 1px solid rgba(255,107,0,0.2);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  background: var(--saffron);
  color: white;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ticker-track { flex: 1; overflow: hidden; position: relative; }

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 50s linear infinite;
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 500;
  padding: 7px 0;
}

@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
}

/* ============================================================
   SECTION CARDS
   ============================================================ */
.section-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 18px;
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-head {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 10px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head .view-all {
  font-size: 11.5px;
  background: rgba(255,255,255,0.15);
  padding: 3px 10px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-family: 'Noto Sans', sans-serif;
  transition: background 0.2s;
}
.section-head .view-all:hover { background: rgba(255,255,255,0.25); color: white; }

.section-head.green-head { background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%); }
.section-head.red-head   { background: linear-gradient(90deg, #8B1A1A 0%, #B22222 100%); }
.section-head.dark-green { background: linear-gradient(90deg, #1A6B1A 0%, #228B22 100%); }
.section-head.karnataka  { background: linear-gradient(90deg, #C8102E 0%, #EE3524 100%); }

/* ============================================================
   JOB LIST
   ============================================================ */
.job-list { padding: 6px 0; }

.job-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.job-item:last-child { border-bottom: none; }
.job-item:hover { background: var(--sky); }

.job-item .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  flex-shrink: 0;
  margin-top: 5px;
}

.job-title {
  flex: 1;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}
.job-item:hover .job-title { color: var(--saffron); }

.job-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-new  { background: var(--tag-new);  color: var(--tag-new-text); }
.badge-out  { background: var(--tag-out);  color: var(--tag-out-text); }
.badge-soon { background: #E8F0FF; color: var(--navy-light); }

/* ============================================================
   QUICK GRID (3-col table)
   ============================================================ */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.quick-cell {
  background: var(--white);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1.4;
}
.quick-cell:hover { background: var(--sky); color: var(--saffron); }
.quick-cell .cell-label { color: var(--text-light); font-size: 11px; margin-top: 3px; }

/* ============================================================
   EDUCATION FILTER CHIPS
   ============================================================ */
.edu-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }

.edu-chip {
  background: var(--sky);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.edu-chip:hover { background: var(--navy); color: white; border-color: var(--navy); }
.edu-chip span  { color: var(--text-light); font-weight: 400; }

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.post-container {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 24px;
  margin-bottom: 18px;
}

.post-category-badge {
  display: inline-block;
  background: var(--saffron);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.post-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.post-content { font-size: 14px; line-height: 1.8; color: var(--text-dark); }
.post-content h2 { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy); margin: 20px 0 10px; }
.post-content h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 16px 0 8px; }
.post-content p  { margin-bottom: 12px; }
.post-content ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.post-content li { margin-bottom: 6px; }

/* Job Detail Table */
.job-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.job-detail-table th {
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.job-detail-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.job-detail-table tr:nth-child(even) td { background: var(--sky); }
.job-detail-table td:first-child { font-weight: 600; color: var(--navy); width: 35%; }

.apply-btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  margin: 16px 0;
  transition: background 0.2s;
}
.apply-btn:hover { background: var(--green-light); color: white; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.sidebar-head {
  background: var(--saffron);
  color: white;
  padding: 9px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-list { padding: 4px 0; }

.sb-item {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: background 0.15s;
  line-height: 1.4;
}
.sb-item:last-child { border-bottom: none; }
.sb-item:hover { background: var(--sky); }
.sb-item .sb-dot { color: var(--saffron); font-size: 16px; margin-top: -2px; flex-shrink: 0; }

/* Quick access grid */
.quick-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }

.ql-btn {
  background: var(--sky);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  display: block;
}
.ql-btn .ql-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.ql-btn:hover { background: var(--navy); color: white; border-color: var(--navy); transform: translateY(-2px); }

/* Subscribe box */
.subscribe-box { padding: 14px; }
.subscribe-box h3 { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.subscribe-box p  { font-size: 11.5px; color: var(--text-mid); margin-bottom: 10px; line-height: 1.5; }

.subscribe-input { display: flex; flex-direction: column; gap: 8px; }
.subscribe-input input[type="email"] {
  border: 2px solid var(--border); border-radius: 7px;
  padding: 9px 12px; font-size: 13px; outline: none;
  transition: border-color 0.2s; font-family: 'Noto Sans', sans-serif; width: 100%;
}
.subscribe-input input[type="email"]:focus { border-color: var(--saffron); }
.subscribe-input button {
  background: var(--saffron); color: white; border: none; border-radius: 7px;
  padding: 10px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; letter-spacing: 0.5px; transition: background 0.2s;
}
.subscribe-input button:hover { background: var(--saffron-light); }

/* App banner */
.app-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 10px; padding: 16px; text-align: center; color: white; margin-bottom: 16px;
}
.app-banner .app-icon { font-size: 36px; margin-bottom: 8px; display: block; }
.app-banner h3 { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.app-banner p  { font-size: 11.5px; opacity: 0.8; margin-bottom: 12px; }
.btn-download  {
  background: var(--saffron); color: white; padding: 9px 20px; border-radius: 7px;
  font-size: 13px; font-weight: 700; font-family: 'Rajdhani', sans-serif;
  display: inline-block; letter-spacing: 0.5px; transition: background 0.2s;
}
.btn-download:hover { background: var(--saffron-light); color: white; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; padding: 16px; justify-content: center; flex-wrap: wrap; }

.pagination a,
.pagination span {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--navy);
  transition: all 0.15s;
}
.pagination a:hover     { background: var(--navy); color: white; border-color: var(--navy); }
.pagination span.current { background: var(--saffron); color: white; border-color: var(--saffron); }

/* ============================================================
   FOOTER
   ============================================================ */
.tricolor {
  height: 4px;
  background: linear-gradient(to right, var(--saffron) 33.3%, white 33.3%, white 66.6%, var(--green) 66.6%);
}

#colophon {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  margin-top: 20px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 32px 20px 20px;
}

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 700; color: white;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--saffron);
  display: inline-block; letter-spacing: 0.5px;
}

.footer-col p { font-size: 12.5px; line-height: 1.7; }

.footer-links li { margin-bottom: 7px; }
.footer-links a {
  font-size: 12.5px; color: rgba(255,255,255,0.7);
  transition: color 0.15s; display: flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--saffron); font-size: 14px; }
.footer-links a:hover { color: var(--saffron); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; padding: 14px 20px;
  font-size: 12px; color: rgba(255,255,255,0.5);
}

/* ============================================================
   WIDGETS
   ============================================================ */
.widget { margin-bottom: 16px; }
.widget-title { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .page-wrap { grid-template-columns: 1fr 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-wrap { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .header-search { max-width: 100%; order: 3; flex: 1 0 100%; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn-whatsapp { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
}
