/*
Theme Name: eFiling Court Info
Theme URI: https://efilingcourtinfo.com
Author: Advocate Chandan
Author URI: https://efilingcourtinfo.com
Description: Professional Legal & Court Information WordPress Theme with Navy Blue design, Dark/Light Mode, Custom Homepage, Sidebar Widgets, and full Gutenberg Block Support. Perfect for legal portals, court info sites, consumer rights websites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: efilingcourtinfo
Tags: legal, court, news, blog, two-columns, right-sidebar, custom-menu, featured-images, custom-logo, dark-mode, gutenberg

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --primary:      #1a3a6b;
  --primary-dark: #112752;
  --primary-light:#2a5298;
  --accent:       #d4420c;
  --accent2:      #e8881a;
  --bg:           #f4f6f9;
  --bg-white:     #ffffff;
  --text:         #1e1e1e;
  --text-light:   #555555;
  --border:       #dde3ec;
  --tag-bg:       #eef2fa;
  --card-shadow:  0 2px 8px rgba(26,58,107,0.10);
  --radius:       6px;
  --font:         'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  --topbar-bg:    #112752;
  --nav-bg:       #1a3a6b;
  --footer-bg:    #112752;
  --ticker-accent:#d4420c;
}

/* DARK MODE */
body.dark-mode {
  --bg:           #0f1923;
  --bg-white:     #1a2535;
  --text:         #e8edf5;
  --text-light:   #a0b0c8;
  --border:       #2a3a52;
  --tag-bg:       #1e2e42;
  --card-shadow:  0 2px 12px rgba(0,0,0,0.4);
  --topbar-bg:    #0a1220;
  --nav-bg:       #0f1d30;
  --footer-bg:    #0a1220;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
p { margin-bottom: 1em; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 0.5em; }

/* ============================================================
   SKIP LINK (Accessibility)
============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   TOP BAR
============================================================ */
#topbar {
  background: var(--topbar-bg);
  color: #c5d3e8;
  font-size: 12px;
  padding: 5px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-date { display: flex; align-items: center; gap: 5px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* Dark Mode Toggle */
.dark-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #c5d3e8;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font);
  transition: all 0.2s;
}
.dark-toggle:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
  color: #c5d3e8;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: all 0.2s;
}
.topbar-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

/* ============================================================
   HEADER / LOGO
============================================================ */
#masthead {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  padding: 14px 0;
  transition: background 0.3s;
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-logo-icon {
  width: 58px; height: 58px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.custom-logo { width: 58px; height: 58px; object-fit: contain; border-radius: 8px; }
.site-title-wrap .site-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin: 0;
}
.site-title a { color: var(--primary); text-decoration: none; }
.site-title a span { color: var(--accent); }
.site-description { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }

.header-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-box {
  text-align: center;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 14px;
  min-width: 75px;
}
.stat-box .stat-num { font-size: 17px; font-weight: 700; color: var(--primary); display: block; }
.stat-box .stat-lbl { font-size: 10px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.4px; }

/* ============================================================
   NAVIGATION
============================================================ */
#site-navigation {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-navigation ul { display: flex; flex-wrap: wrap; }
.main-navigation ul li a {
  color: #dce8ff;
  padding: 12px 13px;
  font-size: 13px;
  font-weight: 500;
  display: block;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--accent2);
  text-decoration: none;
}
/* Dropdown */
.main-navigation ul li { position: relative; }
.main-navigation ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-dark);
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 300;
  border-radius: 0 0 6px 6px;
  flex-direction: column;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul li ul li a { border-bottom: 1px solid rgba(255,255,255,0.07); border-bottom-right-style: none; padding: 10px 14px; }
.main-navigation ul li ul li a:hover { background: var(--accent); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  cursor: pointer;
  padding: 6px 10px;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: 0.2s; }

/* ============================================================
   BREAKING NEWS TICKER
============================================================ */
.news-ticker {
  background: #fff;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: background 0.3s;
}
body.dark-mode .news-ticker { background: var(--bg-white); }
.ticker-label {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ticker-scroll { overflow: hidden; flex: 1; }
.ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
  padding: 7px 0;
  font-size: 13px;
}
.ticker-inner a { margin: 0 20px; color: var(--primary); font-weight: 500; }
.ticker-inner a:hover { color: var(--accent); }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ============================================================
   LAYOUT: WRAPPER
============================================================ */
#page { min-height: 100vh; display: flex; flex-direction: column; }
#content { flex: 1; }

.site-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  width: 100%;
}
.site-wrapper.full-width { grid-template-columns: 1fr; }
.site-wrapper.no-sidebar { grid-template-columns: 1fr; }
.site-main { min-width: 0; }
#secondary { min-width: 0; }

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: #fff;
  padding: 9px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.section-header .sec-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #fff;
}
.section-header .sec-all {
  color: #ffd88a;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 20px;
  transition: 0.2s;
}
.section-header .sec-all:hover { background: var(--accent2); color: var(--primary); text-decoration: none; }

/* ============================================================
   CARDS
============================================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 20px;
  transition: background 0.3s, border-color 0.3s;
}
.card-body { padding: 16px; }

/* ============================================================
   NOTICE BAR
============================================================ */
.notice-bar {
  background: #fff8e6;
  border: 1px solid #f5c842;
  border-left: 4px solid var(--accent2);
  padding: 9px 14px;
  font-size: 13px;
  color: #6b4800;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
}
body.dark-mode .notice-bar { background: #2a1f00; color: #e8c870; border-color: #5a4000; }

/* ============================================================
   CATEGORY GRID (Homepage)
============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.cat-item {
  background: var(--bg-white);
  padding: 16px 10px;
  text-align: center;
  transition: background 0.18s;
}
.cat-item:hover { background: var(--tag-bg); }
.cat-item a { text-decoration: none; display: block; }
.cat-item .cat-icon { font-size: 28px; margin-bottom: 7px; display: block; }
.cat-item .cat-name { font-size: 12px; font-weight: 600; color: var(--primary); display: block; margin-bottom: 2px; }
.cat-item .cat-count { font-size: 11px; color: var(--text-light); }
.cat-item a:hover .cat-name { color: var(--accent); }

/* ============================================================
   POST LIST
============================================================ */
.post-list { padding: 0; }
.post-list-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--card-shadow);
  transition: background 0.3s;
}
.post-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: var(--tag-bg); }
.post-bullet {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
}
.post-item-body { flex: 1; }
.post-item-body .post-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  display: block;
  margin: 0;
}
.post-item-body .post-title a { color: var(--text); }
.post-item-body .post-title a:hover { color: var(--accent); }
.post-meta-row {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.post-tag {
  background: var(--tag-bg);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 600;
}
.post-date { margin-left: auto; flex-shrink: 0; }
.badge-new {
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 4px;
}

/* ============================================================
   TWO-COLUMN GRID
============================================================ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* ============================================================
   FEATURED BOX
============================================================ */
.featured-box {
  background: linear-gradient(135deg, var(--tag-bg) 0%, var(--bg) 100%);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 12px 14px;
}
.featured-box .feat-title { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.featured-box .feat-desc { font-size: 12.5px; color: var(--text-light); line-height: 1.55; }

/* ============================================================
   INFO TABLE
============================================================ */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th {
  background: var(--tag-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.info-table td { padding: 8px 12px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:hover td { background: var(--tag-bg); }
.status-green { color: #1a7a3e; font-weight: 600; }
.status-red { color: #c0261a; font-weight: 600; }
.status-orange { color: #b36200; font-weight: 600; }

/* ============================================================
   COURT FEE CALCULATOR
============================================================ */
.calc-wrap { padding: 16px; }
.calc-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.calc-group { flex: 1; min-width: 130px; }
.calc-group label { font-size: 12.5px; font-weight: 600; color: var(--primary); display: block; margin-bottom: 5px; }
.calc-group select,
.calc-group input[type="number"] {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
  outline: none;
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--text);
  transition: border-color 0.2s, background 0.3s;
}
.calc-group select:focus,
.calc-group input:focus { border-color: var(--primary); }
.calc-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  width: 100%;
  margin-top: 4px;
  transition: background 0.2s;
}
.calc-btn:hover { background: var(--primary); }
.calc-result {
  background: linear-gradient(135deg, var(--tag-bg), var(--bg));
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 14px;
  margin-top: 12px;
  display: none;
}
.calc-result.show { display: block; }
.calc-result .res-label { font-size: 11.5px; color: var(--text-light); margin-bottom: 2px; }
.calc-result .res-forum { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.calc-result .res-fee { font-size: 26px; font-weight: 700; color: var(--accent); }
.calc-result .res-note { font-size: 11.5px; color: var(--text-light); margin-top: 8px; line-height: 1.6; }

/* ============================================================
   BARE ACTS GRID
============================================================ */
.bare-act-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.bare-act-item { background: var(--bg-white); padding: 11px 13px; transition: background 0.15s; }
.bare-act-item:hover { background: var(--tag-bg); }
.bare-act-item a { text-decoration: none; color: var(--text); display: block; }
.bare-act-item a:hover { color: var(--accent); }
.bare-act-title { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.bare-act-item a:hover .bare-act-title { color: var(--accent); }
.bare-act-sub { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ============================================================
   SINGLE POST / PAGE
============================================================ */
.entry-header { margin-bottom: 20px; }
.entry-title { font-size: 26px; color: var(--primary); margin-bottom: 10px; }
.entry-meta {
  font-size: 12.5px;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.entry-meta span { display: flex; align-items: center; gap: 4px; }
.entry-content { line-height: 1.8; color: var(--text); }
.entry-content h2 { font-size: 20px; color: var(--primary); margin: 24px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); }
.entry-content h3 { font-size: 17px; color: var(--primary); margin: 20px 0 8px; }
.entry-content p { margin-bottom: 1em; }
.entry-content ul,
.entry-content ol { margin: 0 0 1em 20px; }
.entry-content li { margin-bottom: 4px; }
.entry-content blockquote {
  background: var(--tag-bg);
  border-left: 4px solid var(--accent2);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-light);
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.entry-content table th { background: var(--primary); color: #fff; padding: 8px 12px; text-align: left; }
.entry-content table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.entry-content table tr:hover td { background: var(--tag-bg); }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content a:hover { color: var(--accent); }
.entry-thumbnail { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.entry-thumbnail img { width: 100%; height: 300px; object-fit: cover; }

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}
.nav-previous a, .nav-next a {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.nav-previous a:hover, .nav-next a:hover { background: var(--accent); color: #fff; }

/* ============================================================
   SIDEBAR
============================================================ */
#secondary { display: flex; flex-direction: column; gap: 18px; }
.widget-area-section { overflow: hidden; }
.widget-area-header {
  background: var(--primary);
  color: #fff;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.widget-area-body {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--card-shadow);
  padding: 14px;
  transition: background 0.3s;
}
.widget { margin-bottom: 4px; }
.widget-title { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.widget ul { padding: 0; }
.widget ul li { border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { display: block; padding: 8px 0; color: var(--text); font-size: 13px; transition: color 0.15s; }
.widget ul li a:hover { color: var(--accent); text-decoration: none; padding-left: 4px; }
.widget_search .search-form { display: flex; gap: 6px; }
.widget_search .search-field { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; font-family: var(--font); background: var(--bg); color: var(--text); outline: none; }
.widget_search .search-field:focus { border-color: var(--primary); }
.widget_search .search-submit { background: var(--accent); color: #fff; border: none; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-size: 13px; }

/* Quick Links Pills */
.quick-links { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 0; }
.quick-links a {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: 0.18s;
  text-decoration: none;
}
.quick-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Sidebar Court Links */
.court-link-list { padding: 0; }
.court-link-list li { border-bottom: 1px solid var(--border); }
.court-link-list li:last-child { border-bottom: none; }
.court-link-list li a { display: flex; align-items: center; gap: 8px; padding: 9px 0; color: var(--text); font-size: 13px; transition: 0.15s; }
.court-link-list li a:hover { color: var(--accent); text-decoration: none; }
.court-link-list .cl-icon { font-size: 14px; }
.court-link-list .cl-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 700; }

/* Custom Link Manager */
.link-manager { margin-top: 10px; }
.link-manager-title { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.link-form { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.link-form input { padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 12.5px; font-family: var(--font); background: var(--bg-white); color: var(--text); outline: none; width: 100%; }
.link-form input:focus { border-color: var(--primary); }
.link-form-btn { background: var(--primary); color: #fff; border: none; padding: 7px 14px; border-radius: 4px; cursor: pointer; font-size: 12.5px; font-family: var(--font); width: 100%; transition: background 0.2s; }
.link-form-btn:hover { background: var(--accent); }
.custom-links-list { padding: 0; }
.custom-links-list li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.custom-links-list li:last-child { border-bottom: none; }
.custom-links-list li a { flex: 1; color: var(--primary); font-size: 12.5px; }
.custom-links-list li a:hover { color: var(--accent); }
.del-link-btn { background: none; border: none; color: #c0261a; cursor: pointer; font-size: 14px; padding: 0 2px; line-height: 1; }

/* Ad box */
.ad-placeholder { background: var(--tag-bg); border: 2px dashed var(--border); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--text-light); font-size: 13px; }
.ad-placeholder .ad-size { font-size: 11px; color: #aaa; margin-top: 4px; }

/* ============================================================
   FAQ SECTION
============================================================ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
  user-select: none;
}
.faq-question:hover { background: var(--tag-bg); }
.faq-question.active { background: var(--tag-bg); color: var(--accent); }
.faq-arrow { font-size: 12px; transition: transform 0.2s; }
.faq-question.active .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 14px 14px; font-size: 13px; color: var(--text-light); line-height: 1.7; }
.faq-answer.show { display: block; }
.faq-answer a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0;
}
.pagination a,
.pagination span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary);
  background: var(--bg-white);
  transition: 0.18s;
  text-decoration: none;
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   COMMENTS
============================================================ */
.comments-area { margin-top: 28px; }
.comments-title { font-size: 18px; color: var(--primary); margin-bottom: 16px; }
.comment-list { padding: 0; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-author-name { font-weight: 600; color: var(--primary); font-size: 13.5px; }
.comment-meta { font-size: 11.5px; color: var(--text-light); margin-bottom: 6px; }
.comment-body p { font-size: 13.5px; color: var(--text); }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 13.5px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 10px;
  outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { height: 100px; resize: vertical; }
.comment-form .submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.2s;
}
.comment-form .submit:hover { background: var(--primary); }

/* ============================================================
   FOOTER
============================================================ */
#colophon {
  background: var(--footer-bg);
  color: #9eb3d0;
  margin-top: 28px;
  transition: background 0.3s;
}
.footer-widgets {
  max-width: 1200px;
  margin: auto;
  padding: 28px 16px 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-widget-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-about-text { font-size: 12.5px; line-height: 1.7; }
.footer-about-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-about-title span { color: var(--accent2); }
.footer-widget ul { padding: 0; }
.footer-widget ul li { margin-bottom: 6px; border: none; }
.footer-widget ul li a { color: #9eb3d0; font-size: 12.5px; transition: color 0.18s; text-decoration: none; padding: 0; display: inline; }
.footer-widget ul li a:hover { color: var(--accent2); }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.footer-social a { color: #9eb3d0; font-size: 12px; background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 20px; transition: 0.2s; text-decoration: none; }
.footer-social a:hover { color: var(--accent2); background: rgba(255,255,255,0.15); }
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px;
  text-align: center;
  font-size: 12px;
  color: #6b88a8;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom-bar a { color: var(--accent2); }

/* ============================================================
   GUTENBERG BLOCKS SUPPORT
============================================================ */
.wp-block-button__link { border-radius: 4px; font-family: var(--font); }
.wp-block-button.is-style-fill .wp-block-button__link { background: var(--accent); }
.wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--primary); color: var(--primary); }
.wp-block-pullquote { border-top: 4px solid var(--primary); border-bottom: 4px solid var(--primary); }
.wp-block-quote { border-left: 4px solid var(--accent2); }
.wp-block-separator { border-color: var(--border); }
.wp-block-cover { border-radius: var(--radius); }
.wp-block-table td, .wp-block-table th { border-color: var(--border); }
.has-primary-color { color: var(--primary); }
.has-accent-color { color: var(--accent); }
.has-primary-background-color { background-color: var(--primary); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  .site-wrapper { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .header-stats { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: flex; }
  .main-navigation { width: 100%; }
  .main-navigation ul { display: none; flex-direction: column; background: var(--primary-dark); width: 100%; }
  .main-navigation ul.toggled { display: flex; }
  .main-navigation ul li ul { position: static; display: flex !important; flex-direction: column; box-shadow: none; background: rgba(0,0,0,0.2); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .bare-act-grid { grid-template-columns: 1fr; }
  .site-title-wrap .site-title { font-size: 18px; }
  .entry-title { font-size: 20px; }
  .calc-row { flex-direction: column; }
}

/* ============================================================
   HOMEPAGE SPECIFIC LAYOUT FIX
   vacancyexam.in jaisa layout - main content + sidebar
============================================================ */

/* Homepage wrapper - 2 column grid same as inner pages */
.hp-wrapper {
  grid-template-columns: minmax(0, 1fr) 300px;
}

/* Homepage main content full stretch */
.hp-main {
  min-width: 0;
}

/* Card fix - ensure full width inside main */
.hp-main .card,
.hp-main .two-col-grid,
.hp-main .bare-act-grid,
.hp-main #faq-wrap {
  width: 100%;
  box-sizing: border-box;
}

/* Notice bar */
.notice-bar {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f39c12;
  border-radius: 4px;
  padding: 9px 14px;
  font-size: 13px;
  color: #7d5a00;
  margin-bottom: 16px;
}

/* Bare acts grid - 4 col */
.bare-act-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
}

.bare-act-item {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  transition: all .2s;
}

.bare-act-item:hover {
  background: #e8f0fe;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.bare-act-item a {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
}

.bare-act-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.bare-act-sub {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  transition: background .2s;
  user-select: none;
}

.faq-question:hover { background: #fafbfc; }
.faq-question.active { color: var(--primary); }
.faq-arrow { font-size: 11px; transition: transform .2s; flex-shrink: 0; margin-left: 8px; }
.faq-question.active .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 10px 14px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
  background: #fafbfc;
  border-top: 1px solid var(--border);
}

.faq-answer a { color: var(--primary); }
.faq-answer.show { display: block; }

/* Responsive: homepage */
@media (max-width: 960px) {
  .hp-wrapper { grid-template-columns: 1fr; }
  .bare-act-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .bare-act-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-wrapper { padding: 0 12px; }
}
