/*
Theme Name: FM Tak
Theme URI: https://fmtak.com
Author: FM Tak
Author URI: https://fmtak.com
Description: Attractive Government Jobs (Sarkari Naukri) WordPress Theme for FMTak.com. Catchy design, AdSense-friendly, fully responsive.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.5
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: fmtak
Tags: job-board, government-jobs, sarkari-naukri, blog, custom-menu, featured-images, responsive-layout
*/

:root {
  --primary: #0b3d5c;
  --primary-dark: #06283d;
  --primary-light: #145a86;
  --accent: #e74c3c;
  --accent-dark: #c0392b;
  --yellow: #f1c40f;
  --green: #27ae60;
  --blue: #2980b9;
  --purple: #8e44ad;
  --orange: #e67e22;
  --text: #1a252f;
  --text-light: #5d6d7e;
  --border: #dce1e6;
  --bg: #eef1f5;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --radius: 8px;
  --container: 1180px;
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 14px;
}

/* AdSense Friendly Ad slots */
.ad-slot {
  background: #f8f9fa;
  border: 1px dashed #bdc3c7;
  border-radius: 6px;
  text-align: center;
  color: #95a5a6;
  font-size: 12px;
  font-weight: 600;
  padding: 12px;
  margin: 14px 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-slot.ad-header { min-height: 90px; margin: 0; border-radius: 0; border: none; background: #f0f0f0; }
.ad-slot.ad-sidebar { min-height: 250px; }
.ad-slot.ad-incontent { min-height: 90px; }
.ad-slot.ad-footer { min-height: 90px; margin: 20px 0 0; }

.top-alert {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
  color: #fff;
  text-align: center;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
}
.top-alert a { color: #f1c40f; text-decoration: underline; }

.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}
.header-top {
  background: var(--primary-dark);
  font-size: 12.5px;
  padding: 5px 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.header-top a { color: rgba(255,255,255,0.85); }
.header-top a:hover { color: var(--yellow); }

.header-main { padding: 12px 0; }
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-title {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1;
}
.site-title span { color: var(--yellow); }
.site-description {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 3px;
  font-weight: 500;
}
.main-nav ul { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 13px;
  border-radius: 5px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  background: var(--accent);
  color: #fff;
}
.menu-toggle {
  display: none;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.header-search form { display: flex; }
.header-search input[type="search"] {
  padding: 9px 14px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 13.5px;
  width: 190px;
  outline: none;
}
.header-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.header-search button:hover { background: var(--accent-dark); }

.hero-section {
  background: linear-gradient(135deg, #0b3d5c 0%, #1a6b9a 50%, #0b3d5c 100%);
  color: #fff;
  padding: 36px 0 42px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section h1 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 6px;
}
.hero-section p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 22px;
  font-size: 15px;
}
.job-search-form {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.job-search-form input {
  flex: 1;
  padding: 15px 22px;
  border: none;
  font-size: 15px;
  outline: none;
}
.job-search-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.job-search-form button:hover { background: var(--accent-dark); }

.quick-cats {
  background: var(--white);
  padding: 18px 0;
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
}
.quick-cats .container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.qcat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-radius: 10px;
  color: #fff !important;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 70px;
  line-height: 1.3;
}
.qcat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  color: #fff !important;
}
.qcat span { font-size: 22px; display: block; margin-bottom: 4px; }
.qcat.jobs { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.qcat.admit { background: linear-gradient(135deg, #2980b9, #1a5276); }
.qcat.result { background: linear-gradient(135deg, #27ae60, #1e8449); }
.qcat.syllabus { background: linear-gradient(135deg, #e67e22, #d35400); }
.qcat.answer { background: linear-gradient(135deg, #8e44ad, #6c3483); }
.qcat.admission { background: linear-gradient(135deg, #16a085, #0e6655); }

.site-main { padding: 24px 0 40px; }
.main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.section-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #fff;
}
.section-head h2 {
  font-size: 16px;
  color: #fff;
  margin: 0;
}
.section-head .view-all {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
}
.section-head .view-all:hover {
  background: rgba(255,255,255,0.35);
  color: #fff;
}
.section-head.jobs-head { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.section-head.admit-head { background: linear-gradient(90deg, #1a5276, #2980b9); }
.section-head.result-head { background: linear-gradient(90deg, #1e8449, #27ae60); }
.section-head.syllabus-head { background: linear-gradient(90deg, #d35400, #e67e22); }
.section-head.answer-head { background: linear-gradient(90deg, #6c3483, #8e44ad); }
.section-body { padding: 12px; }

.job-list { display: flex; flex-direction: column; }
.job-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.15s;
}
.job-item:last-child { border-bottom: none; }
.job-item:hover { background: #f7f9fc; }
.job-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
}
.job-item-title a { color: inherit; }
.job-item-title a:hover { color: var(--accent); }
.job-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-light);
}
.job-item-meta .org { color: var(--primary); font-weight: 600; }
.job-item-meta .ldate { color: var(--accent); font-weight: 700; }
.job-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.job-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}
.job-badge.new { background: #fdecea; color: #c0392b; }
.job-badge.admit { background: #eaf2f8; color: #1a5276; }
.job-badge.result { background: #e8f8f5; color: #1e8449; }
.job-badge.syllabus { background: #fef5e7; color: #d35400; }
.job-badge.answer { background: #f5eef8; color: #6c3483; }
.btn-view {
  background: var(--primary);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.btn-view:hover { background: var(--accent); color: #fff !important; }
.tag-new {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.widget-title {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 14px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.widget-title.green { background: var(--green); }
.widget-title.orange { background: var(--orange); }
.widget-title.purple { background: var(--purple); }
.widget-title.red { background: var(--accent); }
.widget-content { padding: 12px 14px; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
  color: var(--text);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.widget ul li a:hover { color: var(--accent); }
.cat-count {
  background: var(--bg);
  color: var(--text-light);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}
.side-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.side-cat {
  display: block;
  text-align: center;
  padding: 10px 6px;
  border-radius: 6px;
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  transition: transform 0.15s;
}
.side-cat:hover { transform: scale(1.04); color: #fff !important; }
.side-cat.c1 { background: #e74c3c; }
.side-cat.c2 { background: #2980b9; }
.side-cat.c3 { background: #27ae60; }
.side-cat.c4 { background: #e67e22; }
.side-cat.c5 { background: #8e44ad; }
.side-cat.c6 { background: #16a085; }
.side-cat.c7 { background: #c0392b; }
.side-cat.c8 { background: #1a5276; }

.single-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.single-content .entry-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-dark);
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.job-info-box {
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
}
.job-info-box h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--accent);
}
.job-info-table { width: 100%; border-collapse: collapse; }
.job-info-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.job-info-table tr:last-child td { border-bottom: none; }
.job-info-table td:first-child {
  font-weight: 700;
  width: 38%;
  color: var(--text-light);
  background: rgba(0,0,0,0.02);
}
.entry-content { font-size: 15px; line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin: 22px 0 10px; }
.entry-content p { margin-bottom: 13px; }
.entry-content ul, .entry-content ol {
  margin: 10px 0 14px 22px;
  list-style: disc;
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 5px; }
.entry-content a { color: var(--accent); font-weight: 700; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
}
.entry-content table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.entry-content table tr:nth-child(even) { background: #f8f9fa; }
.apply-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 22px;
  border-radius: var(--radius);
  text-align: center;
  margin: 24px 0;
}
.apply-box h3 { color: #fff; margin-bottom: 8px; font-size: 18px; }
.apply-box .btn-big {
  display: inline-block;
  background: var(--yellow);
  color: var(--primary-dark) !important;
  font-weight: 800;
  padding: 12px 36px;
  border-radius: 50px;
  margin-top: 10px;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.apply-box .btn-big:hover {
  background: #fff;
  color: var(--primary-dark) !important;
}

.page-header { margin-bottom: 18px; }
.page-header h1 { font-size: 22px; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.pagination a:hover,
.pagination .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 36px 0 0;
  margin-top: 10px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}
.footer-brand h3 span { color: var(--yellow); }
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.footer-widget h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-widget h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-widget ul li { margin-bottom: 7px; }
.footer-widget a {
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
}
.footer-widget a:hover { color: var(--yellow); }
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 14px 0;
  text-align: center;
  font-size: 12.5px;
}
.footer-bottom a { color: var(--yellow); }

.error-404 {
  text-align: center;
  padding: 50px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.error-404 h1 {
  font-size: 90px;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1;
}
.error-404 p { font-size: 16px; margin-bottom: 20px; color: var(--text-light); }

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

@media (max-width: 992px) {
  .main-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quick-cats .container { grid-template-columns: repeat(3, 1fr); }
  .header-search input[type="search"] { width: 140px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 18px; border-radius: 0; }
  .header-main .container { flex-wrap: wrap; position: relative; }
  .header-search { order: 3; width: 100%; margin-top: 10px; }
  .header-search form { width: 100%; }
  .header-search input[type="search"] { width: 100%; flex: 1; }
  .hero-section h1 { font-size: 22px; }
  .job-search-form { border-radius: 10px; flex-direction: column; }
  .job-search-form button { border-radius: 0; }
  .quick-cats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .single-content { padding: 18px 14px; }
  .site-title { font-size: 22px; }
  .job-item { grid-template-columns: 1fr; }
  .job-item-right { flex-direction: row; align-items: center; }
}
@media (max-width: 480px) {
  .quick-cats .container { grid-template-columns: 1fr 1fr; }
  .qcat { font-size: 12px; min-height: 60px; }
}
