/*
Theme Name:   JobGuide Child
Theme URI:    https://jobguide.in
Description:  GeneratePress Premium Child Theme for JobGuide.in — Telugu Job Alerts Portal
Author:       JobGuide.in
Template:     generatepress
Version:      1.0.0
Text Domain:  jobguide-child
*/

/* ===================== CSS VARIABLES ===================== */
:root {
  --jg-blue-dark:  #1a3c6e;
  --jg-blue:       #1e4fa0;
  --jg-blue-nav:   #163580;
  --jg-yellow:     #ffc107;
  --jg-green:      #16a34a;
  --jg-red:        #dc2626;
  --jg-amber:      #f59e0b;
  --jg-bg:         #cbd5e1;
  --jg-white:      #ffffff;
  --jg-border:     #e5e7eb;
  --jg-text:       #333333;
  --jg-muted:      #666666;
  --jg-max-width:  1140px;
  --jg-pad:        16px;
  --jg-radius:     8px;
}

/* ===================== BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Noto Sans Telugu', 'Noto Sans', sans-serif;
  font-size: 14px;
  background: var(--jg-bg);
  color: var(--jg-text);
  margin: 0; padding: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===================== GP OVERRIDES ===================== */
.site-header,
.main-navigation,
.site-footer,
.inside-page-hero { display: none !important; }
#page, .site-content { padding: 0; margin: 0; }
.content-area { width: 100%; float: none; }
.inside-article { padding: 0; }
.entry-header, .entry-footer { display: none; }
.generate-columns-container { max-width: 100%; }

/* ===================== CONTAINER ===================== */
.jg-wrap {
  max-width: var(--jg-max-width);
  margin: 0 auto;
  background: var(--jg-bg);
  overflow: hidden;
}

/* ===================== TOP BAR ===================== */
.jg-topbar {
  background: var(--jg-blue-dark);
  color: #fff;
  padding: 6px var(--jg-pad);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===================== HEADER ===================== */
.jg-header {
  background: var(--jg-blue);
  padding: 12px var(--jg-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 999;
}
.jg-logo-text { color: #fff; font-size: 26px; font-weight: 800; }
.jg-logo-text span { color: var(--jg-yellow); }
.jg-logo-sub { color: var(--jg-yellow); font-size: 12px; display: block; }
.jg-hbtns { display: flex; gap: 6px; }
.jg-hbtn { padding: 8px 14px; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; color: #fff; font-weight: 700; }
.jg-hbtn-tg    { background: #2ca5e0; }
.jg-hbtn-wa    { background: #25d366; }
.jg-hbtn-alert { background: var(--jg-yellow); color: #000 !important; }

/* ===================== NAV ===================== */
.jg-nav-wrap { background: var(--jg-blue-nav); position: relative; }
.jg-nav-bar { display: flex; overflow-x: auto; padding: 0 var(--jg-pad); scrollbar-width: none; }
.jg-nav-bar::-webkit-scrollbar { display: none; }
.jg-ni {
  color: #fff; padding: 11px 14px; font-size: 13px; cursor: pointer;
  white-space: nowrap; opacity: 0.85;
  border-bottom: 2px solid transparent; display: block; transition: all 0.2s;
}
.jg-ni:hover, .jg-ni.active { opacity: 1; border-bottom-color: var(--jg-yellow); background: rgba(255,255,255,0.08); }

.jg-ham-btn {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer;
  padding: 10px var(--jg-pad); width: 100%;
}
.jg-ham-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.jg-ham-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.jg-ham-btn.open span:nth-child(2) { opacity: 0; }
.jg-ham-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ===================== TICKER ===================== */
.jg-ticker-bar {
  background: #fff3cd; border-bottom: 1px solid #ffd070;
  padding: 6px var(--jg-pad); font-size: 12px;
  display: flex; gap: 8px; align-items: center; overflow: hidden;
}
.jg-tlbl { background: var(--jg-red); color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.jg-ticker-wrap { flex: 1; overflow: hidden; }
.jg-ticker-text { display: inline-block; white-space: nowrap; animation: jg-scroll 35s linear infinite; padding-left: 100%; }
@keyframes jg-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ===================== HERO ===================== */
.jg-hero {
  background: var(--jg-blue-dark);
  padding: 28px var(--jg-pad);
  text-align: center;
}
.jg-hero h1 { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 6px; line-height: 1.3; }
.jg-hero p  { color: #b8d4f8; font-size: 14px; margin-bottom: 16px; }
.jg-sbox { display: flex; gap: 6px; max-width: 640px; margin: 0 auto; }
.jg-sbox input  { flex: 1; padding: 10px 14px; border-radius: 5px; border: none; font-size: 14px; }
.jg-sbox select { padding: 10px; border-radius: 5px; border: none; font-size: 13px; }
.jg-sbox button { padding: 10px 20px; background: var(--jg-yellow); border: none; border-radius: 5px; font-size: 14px; font-weight: 700; cursor: pointer; color: #000; }
.jg-qtags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.jg-qtag { background: rgba(255,255,255,0.15); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; cursor: pointer; }
.jg-qtag:hover { background: rgba(255,255,255,0.28); }

/* ===================== AD SLOTS ===================== */
.jg-ad-top { background: #f9f9f9; border: 1px solid var(--jg-border); padding: 9px var(--jg-pad); }
.jg-ad-box { background: #fff; border: 1px dashed #ccc; border-radius: 5px; padding: 9px; text-align: center; color: #aaa; font-size: 12px; }
.jg-ad-tag { background: #f3f4f6; padding: 2px 8px; border-radius: 3px; font-size: 10px; color: #999; }
.jg-ad-inline { background: #f9f9f9; border: 1px dashed #d1d5db; border-radius: 5px; padding: 8px; text-align: center; color: #bbb; font-size: 11px; margin: 4px 0 10px; }
.jg-ad-sidebar { background: #f9f9f9; border: 1px dashed #d1d5db; border-radius: 7px; padding: 20px 10px; text-align: center; color: #bbb; font-size: 12px; }

/* ===================== BODY AREA ===================== */
.jg-body { background: var(--jg-bg); padding: 14px var(--jg-pad); }

/* ===================== SECTIONS ===================== */
.jg-section { background: #fff; border-radius: var(--jg-radius); padding: 14px 16px; margin-bottom: 16px; }
.jg-sectitle {
  font-size: 15px; font-weight: 700; color: var(--jg-blue-dark);
  padding-bottom: 8px; border-bottom: 2px solid var(--jg-blue);
  margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center;
}
.jg-sectitle a { font-size: 12px; font-weight: 400; color: var(--jg-blue); }

/* Category Grid */
.jg-cgrid { display: grid; grid-template-columns: repeat(8,1fr); gap: 8px; }
.jg-cc { background: #f8fafc; border: 1px solid var(--jg-border); border-radius: 7px; padding: 10px 4px; text-align: center; cursor: pointer; transition: all 0.2s; }
.jg-cc:hover { border-color: var(--jg-blue); background: #eff6ff; }
.jg-ci { font-size: 22px; margin-bottom: 4px; }
.jg-cn { font-size: 12px; font-weight: 700; color: var(--jg-blue-dark); }
.jg-ck { font-size: 11px; color: var(--jg-muted); }

/* Filters */
.jg-filters { background: #fff; border-radius: var(--jg-radius); padding: 11px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.jg-filter-label { font-size: 13px; font-weight: 700; }
.jg-fsel { padding: 8px 9px; border: 1px solid #d1d5db; border-radius: 5px; font-size: 13px; }
.jg-fbtn { padding: 8px 18px; background: var(--jg-blue); color: #fff; border: none; border-radius: 5px; font-size: 13px; font-weight: 700; cursor: pointer; }
.jg-fclr { padding: 8px 14px; background: #f3f4f6; color: #444; border: 1px solid #d1d5db; border-radius: 5px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* Breadcrumb */
.jg-bc { font-size: 12px; color: #555; display: flex; gap: 4px; align-items: center; margin-bottom: 8px; }
.jg-bc a { color: var(--jg-blue); }

/* Two-col Layout */
.jg-two-col { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 14px; align-items: start; }
.jg-left  { display: flex; flex-direction: column; }
.jg-right { display: flex; flex-direction: column; gap: 11px; position: sticky; top: 70px; }

/* Job tabs */
.jg-stabs { display: flex; margin-bottom: 11px; border-bottom: 1px solid var(--jg-border); overflow-x: auto; }
.jg-stab { padding: 8px 14px; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--jg-muted); white-space: nowrap; }
.jg-stab.active, .jg-stab:hover { color: var(--jg-blue); border-bottom-color: var(--jg-blue); font-weight: 700; }

/* Job Cards */
.jg-jcard { border: 1px solid var(--jg-border); border-radius: 7px; padding: 13px 14px; margin-bottom: 9px; cursor: pointer; background: #fff; line-height: 1.4; transition: all 0.2s; }
.jg-jcard:hover { border-color: var(--jg-blue); box-shadow: 0 2px 10px rgba(30,79,160,0.1); }
.jg-jcard.urgent { border-left: 3px solid var(--jg-red); }
.jg-jcard.ending { border-left: 3px solid var(--jg-amber); }
.jg-jcard.fresh  { border-left: 3px solid var(--jg-green); }

.jg-jtop    { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; gap: 6px; }
.jg-jtitle  { font-size: 15px; font-weight: 700; color: var(--jg-blue); flex: 1; line-height: 1.4; }
.jg-badges  { display: flex; gap: 3px; flex-wrap: wrap; flex-shrink: 0; }
.jg-jbadge  { font-size: 10px; padding: 3px 7px; border-radius: 3px; font-weight: 700; white-space: nowrap; }
.bg-g  { background: #dcfce7; color: #166534; }
.bg-n  { background: #fef3c7; color: #92400e; }
.bg-h  { background: #fee2e2; color: #991b1b; }
.bg-p  { background: #e0f2fe; color: #0c4a6e; }
.bg-es { background: #fff3e0; color: #e65100; }

.jg-jorg  { font-size: 12px; color: #555; margin-bottom: 6px; font-weight: 600; }
.jg-jmeta { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.jg-jtag  { font-size: 12px; background: #f3f4f6; padding: 3px 8px; border-radius: 3px; color: #444; }

.jg-jfoot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid #f0f0f0; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jg-dl-badge  { background: var(--jg-red); color: #fff; padding: 2px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.jg-dl-ending { background: var(--jg-amber); color: #fff; padding: 2px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.jg-dl-txt    { font-size: 12px; color: var(--jg-red); font-weight: 700; }
.jg-jbtns     { display: flex; gap: 6px; }
.jg-apply-btn  { padding: 8px 16px; background: var(--jg-green); color: #fff; border: none; border-radius: 5px; font-size: 13px; cursor: pointer; font-weight: 700; }
.jg-apply-btn:hover { background: #15803d; }
.jg-detail-btn { padding: 8px 13px; background: #fff; color: var(--jg-blue); border: 1px solid var(--jg-blue); border-radius: 5px; font-size: 13px; cursor: pointer; font-weight: 700; }
.jg-detail-btn:hover { background: #eff6ff; }
.jg-more-btn { width: 100%; padding: 10px; background: #fff; color: var(--jg-blue); border: 1px solid var(--jg-blue); border-radius: 7px; font-size: 14px; cursor: pointer; font-weight: 700; margin-top: 4px; }
.jg-more-btn:hover { background: #eff6ff; }

/* Location & Qualification */
.jg-locgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 13px; }
.jg-lbtn { background: #f8fafc; border: 1px solid var(--jg-border); border-radius: 6px; padding: 9px; text-align: center; font-size: 13px; cursor: pointer; font-weight: 600; transition: all 0.2s; }
.jg-lbtn:hover { background: #eff6ff; border-color: var(--jg-blue); color: var(--jg-blue); }
.jg-qchips { display: flex; flex-wrap: wrap; gap: 7px; }
.jg-qchip { padding: 6px 13px; border-radius: 20px; font-size: 13px; cursor: pointer; border: 1px solid #bfdbfe; color: #1e40af; background: #eff6ff; font-weight: 600; }
.jg-qchip:hover { background: var(--jg-blue); color: #fff; }

/* ===================== SIDEBAR CARDS ===================== */
.jg-scard { background: #fff; border: 1px solid var(--jg-border); border-radius: var(--jg-radius); padding: 12px 14px; }
.jg-scard-title { font-size: 14px; font-weight: 700; color: var(--jg-blue-dark); padding-bottom: 7px; border-bottom: 2px solid var(--jg-blue); margin-bottom: 9px; }
.jg-ritem { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 0.5px solid #f0f0f0; }
.jg-ritem:last-of-type { border-bottom: none; }
.jg-rname { color: var(--jg-blue); font-weight: 700; font-size: 13px; }
.jg-rdate { font-size: 11px; color: #888; }
.jg-rstat { font-size: 11px; padding: 2px 7px; border-radius: 3px; font-weight: 700; }
.s-out  { background: #dcfce7; color: #166534; }
.s-soon { background: #fef3c7; color: #92400e; }
.s-dl   { background: #fee2e2; color: #991b1b; }
.jg-view-all { display: block; text-align: center; font-size: 12px; color: var(--jg-blue); margin-top: 7px; cursor: pointer; }
.jg-examitem { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 0.5px solid #f0f0f0; }
.jg-examitem:last-child { border-bottom: none; }
.jg-examname { font-weight: 700; color: var(--jg-text); font-size: 13px; }
.jg-examdate { color: #888; font-size: 11px; }

/* Alert & Social Boxes */
.jg-abox { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--jg-radius); padding: 12px; }
.jg-abox p { font-size: 14px; color: #1e40af; margin-bottom: 8px; font-weight: 700; text-align: center; }
.jg-abox input { width: 100%; padding: 8px 10px; border: 1px solid #bfdbfe; border-radius: 4px; font-size: 13px; margin-bottom: 6px; display: block; }
.jg-abox button { width: 100%; padding: 8px 12px; background: var(--jg-blue); color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; font-weight: 700; }
.jg-tgbox { background: #e8f4fd; border: 1px solid #2ca5e0; border-radius: var(--jg-radius); padding: 12px; text-align: center; }
.jg-tgbox p { font-size: 13px; color: #0369a1; margin-bottom: 8px; font-weight: 700; }
.jg-tgbtn { display: block; width: 100%; padding: 8px 12px; background: #2ca5e0; color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; font-weight: 700; margin-bottom: 5px; }
.jg-wabtn { display: block; width: 100%; padding: 8px 12px; background: #25d366; color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; font-weight: 700; }

/* ===================== TG BANNER ===================== */
.jg-tg-banner { background: var(--jg-blue-dark); padding: 14px var(--jg-pad); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.jg-tg-banner p    { color: #fff; font-size: 16px; font-weight: 700; margin: 0; }
.jg-tg-banner span { color: #b8d4f8; font-size: 12px; display: block; }
.jg-tg-join { padding: 8px 22px; background: var(--jg-yellow); color: #000; border: none; border-radius: 5px; font-size: 14px; cursor: pointer; font-weight: 700; }

/* ===================== FOOTER ===================== */
.jg-footer { background: var(--jg-blue-dark); padding: 20px var(--jg-pad); display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.jg-fcol h4 { color: var(--jg-yellow); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.jg-fcol a  { display: block; color: #93c5fd; font-size: 12px; margin-bottom: 5px; }
.jg-fcol a:hover { color: #fff; }
.jg-fbot { background: #0f2549; padding: 10px var(--jg-pad); text-align: center; font-size: 11px; color: #6b9dd4; line-height: 2; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .jg-topbar { display: none; }
  .jg-two-col { grid-template-columns: 1fr; }
  .jg-right { position: static; }
  .jg-cgrid { grid-template-columns: repeat(4,1fr); }
  .jg-footer { grid-template-columns: repeat(2,1fr); }
  .jg-ham-btn { display: flex; }
  .jg-nav-bar { flex-direction: column; max-height: 0; overflow: hidden; padding: 0; transition: max-height 0.3s ease; }
  .jg-nav-bar.open { max-height: 600px; padding: 0 var(--jg-pad); }
  .jg-nav-bar.open .jg-ni { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .jg-sbox { flex-direction: column; }
  .jg-sbox select, .jg-sbox button { width: 100%; }
  .jg-hbtns { display: none; }
  .jg-filters { flex-direction: column; align-items: stretch; }
  .jg-fsel, .jg-fbtn, .jg-fclr { width: 100%; }
  .jg-jfoot { flex-direction: column; align-items: flex-start; }
  .jg-jbtns { width: 100%; }
  .jg-apply-btn, .jg-detail-btn { flex: 1; }
  .jg-locgrid { grid-template-columns: repeat(2,1fr); }
  .jg-tg-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .jg-cgrid { grid-template-columns: repeat(2,1fr); }
  .jg-footer { grid-template-columns: 1fr; }
  .jg-hero h1 { font-size: 18px; }
}
