/**
 * JobKaka Portal – JobKaka.com color & layout match
 * Primary: #A51D21 | White | Black
 */

:root {
  --jk-red: #a51d21;
  --jk-red-dark: #8a181c;
  --jk-black: #111111;
  --jk-text: #222222;
  --jk-muted: #555555;
  --jk-border: #d1d5db;
  --jk-bg: #ffffff;
  --jk-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --font-sans: Arial, Helvetica, "Segoe UI", Roboto, sans-serif;
  --container: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--jk-text);
  background: var(--jk-bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--jk-red); }

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 12px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--jk-red);
  color: #fff;
}

/* ========== HEADER / LOGO ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--jk-border);
}

.site-branding {
  text-align: center;
  padding: 14px 12px 10px;
}

.site-logo {
  text-decoration: none !important;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: inline-block;
}

.logo-job { color: var(--jk-red); }

.logo-kaka { color: var(--jk-black); }

.logo-tld { color: var(--jk-black); font-size: 0.95em; }

.custom-logo-link {
  display: block;
  text-align: center;
}

.custom-logo-link img {
  max-height: 52px;
  width: auto;
  margin: 0 auto;
}

/* Red icon navigation bar */
.icon-nav {
  background: var(--jk-red);
}

.icon-nav__list {
  list-style: none;
  margin: 0;
  padding: 8px 4px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.icon-nav__list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.icon-nav__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.icon-nav__list a:hover {
  opacity: 0.9;
}

/* ========== SEARCH ========== */
.hero-search {
  background: #fff;
  padding: 16px 0 12px;
}

.jobkaka-search-form {
  max-width: 100%;
}

.search-form__row {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--jk-red);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.search-form__row input[type="search"] {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
  min-width: 0;
}

.search-form__submit {
  flex-shrink: 0;
  width: 52px;
  border: none;
  background: var(--jk-red);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-form__submit:hover {
  background: var(--jk-red-dark);
}

.search-form__filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.search-form__filters--hidden {
  display: none;
}

.search-form__filters select {
  padding: 8px;
  border: 1px solid var(--jk-border);
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ========== QUICK FILTER LINKS ========== */
.quick-links {
  background: #fff;
  padding: 4px 12px 8px;
}

.quick-links__rule {
  border: none;
  margin: 10px 0;
}

.quick-links__rule--dashed {
  border-top: 1px dashed var(--jk-border);
}

.quick-links__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a5f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quick-filters {
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.quick-filters a {
  color: var(--jk-red) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.quick-filters a:hover {
  text-decoration: underline !important;
}

.quick-filters .sep {
  color: var(--jk-muted);
  font-weight: 400;
  margin: 0 2px;
}

/* ========== SECTION RED BANNERS ========== */
.section-banner {
  margin: 0;
  padding: 10px 12px;
  background: var(--jk-red);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.home-sections .section {
  margin-bottom: 0;
}

.section__more {
  text-align: center;
  padding: 14px 12px 20px;
  background: #fff;
}

.section__more .btn-outline,
.section__more a {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--jk-red);
  color: var(--jk-red) !important;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 4px;
}

.section__more a:hover {
  background: var(--jk-red);
  color: #fff !important;
}

/* ========== JOB CARDS (JobKaka mobile card) ========== */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
}

.job-grid--home-trending,
.job-grid--home-latest {
  padding: 16px;
  background: #fff;
}

@media (max-width: 1199px) {
  .job-grid--home-trending,
  .job-grid--home-latest {
    grid-template-columns: 1fr;
  }
}

.job-card {
  background: #fff;
  border: 1px solid var(--jk-border);
  box-shadow: var(--jk-shadow);
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
}

.job-card__title {
  margin: 0;
  padding: 14px 12px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.job-card__title a {
  color: var(--jk-red) !important;
  text-decoration: none !important;
}

.job-card__title a:hover {
  text-decoration: underline !important;
}

.job-card__divider {
  border: none;
  border-top: 1px solid var(--jk-border);
  margin: 0 12px;
}

.job-card__details {
  padding: 8px 12px 14px;
}

.job-card__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.88rem;
}

.job-card__label {
  color: var(--jk-text);
  flex-shrink: 0;
}

.job-card__value {
  color: var(--jk-black);
  font-weight: 700;
  text-align: right;
}

/* ========== MODULE LISTS ========== */
.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.module-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--jk-border);
}

.module-list a {
  color: var(--jk-red) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.module-list__date {
  font-size: 0.8rem;
  color: var(--jk-muted);
  white-space: nowrap;
}

/* ========== STATE CHIPS ========== */
.section--states {
  background: #fff;
  padding-bottom: 16px;
}

.state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.state-chip {
  padding: 6px 14px;
  border: 1px solid var(--jk-red);
  border-radius: 4px;
  color: var(--jk-red) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  background: #fff;
}

.state-chip:hover {
  background: var(--jk-red);
  color: #fff !important;
}

/* ========== INNER PAGES ========== */
.site-main--home {
  padding-bottom: 0;
}

.site-main {
  padding-bottom: 24px;
}

.layout-with-sidebar {
  display: block;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px;
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
  .layout-with-sidebar {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }
}

.archive-header {
  margin-bottom: 16px;
}

.archive-title {
  color: var(--jk-red);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--jk-muted);
  margin-bottom: 12px;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb-list a { color: var(--jk-red); }

.entry-header .entry-title {
  color: var(--jk-red);
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 10px;
}

.entry-content {
  background: #fff;
  border: 1px solid var(--jk-border);
  padding: 14px;
  margin-bottom: 16px;
}

.job-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.job-table th,
.job-table td {
  border: 1px solid var(--jk-border);
  padding: 8px 10px;
  text-align: left;
}

.job-table th {
  background: #f9f9f9;
  font-weight: 600;
  width: 38%;
}

.job-details-box h2,
.important-links h2 {
  color: var(--jk-red);
  font-size: 1.05rem;
  margin-top: 0;
}

.btn-primary {
  display: inline-block;
  background: var(--jk-red);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
}

.btn-primary:hover {
  background: var(--jk-red-dark);
}

/* ========== SIDEBAR ========== */
.sidebar .widget {
  border: 1px solid var(--jk-border);
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.widget-title {
  color: var(--jk-red);
  border-bottom: 2px solid var(--jk-red);
  padding-bottom: 6px;
  margin: 0 0 10px;
  font-size: 1rem;
}

.jobkaka-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jobkaka-widget-list a {
  color: var(--jk-red);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ========== ADS ========== */
/* ========== AD SLOTS ========== */
.ad-slot {
  text-align: center;
  margin: 10px auto;
  max-width: 100%;
  overflow: hidden;
  min-height: 50px;
}

.ad-slot ins.adsbygoogle,
.ad-slot iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.ad-slot--above_header { margin: 0; padding: 4px 0; }

.ad-slot--below_logo,
.ad-slot--below_nav,
.ad-slot--header,
.ad-slot--below_search {
  padding: 6px 8px;
  background: #fff;
}

.ad-slot--mobile_sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #fff;
  border-top: 1px solid var(--jk-border);
  padding: 4px;
  margin: 0;
}

.ad-slot--left_sticky_desktop,
.ad-slot--right_sticky_desktop {
  display: none;
  position: fixed;
  top: 120px;
  z-index: 100;
  width: 160px;
  padding: 4px;
}

@media (min-width: 1200px) {
  .ad-slot--left_sticky_desktop {
    display: block;
    left: 4px;
  }
  .ad-slot--right_sticky_desktop {
    display: block;
    right: 4px;
  }
  .ad-slot--mobile_sticky { display: none; }
}

@media (max-width: 1199px) {
  .ad-slot--left_sticky_desktop,
  .ad-slot--right_sticky_desktop { display: none !important; }
}

body:has(.ad-slot--mobile_sticky:not(:empty)) {
  padding-bottom: 70px;
}

.ad-slot--sidebar,
.ad-slot--sidebar_top {
  position: sticky;
  top: 80px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--jk-red);
  color: #fff;
  padding: 20px 12px;
  margin-top: 8px;
}

.site-footer a {
  color: #fff !important;
  text-decoration: underline;
}

.footer-nav .menu {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

.footer-nav .menu a {
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.copyright {
  text-align: center;
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.95;
}

/* ========== PAGINATION ========== */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  background: #fff;
}

.page-numbers {
  padding: 6px 12px;
  border: 1px solid var(--jk-border);
  color: var(--jk-red) !important;
  text-decoration: none !important;
  font-weight: 600;
}

.page-numbers.current {
  background: var(--jk-red);
  color: #fff !important;
  border-color: var(--jk-red);
}

/* Hide old blue nav elements */
.nav-toggle,
.primary-nav { display: none !important; }

/* ========== PICKER PAGES (Qualification / Job Type) ========== */
.site-main--picker {
  background: #f3f4f6;
  min-height: 50vh;
}

.picker-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.picker-page__header {
  text-align: center;
  margin-bottom: 28px;
}

.picker-page__title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--jk-red);
}

.picker-page__subtitle {
  margin: 0;
  color: var(--jk-muted);
  font-size: 1rem;
}

.picker-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .picker-grid--qual { grid-template-columns: repeat(2, 1fr); }
  .picker-grid--jobtype { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .picker-grid--qual { grid-template-columns: repeat(3, 1fr); }
  .picker-grid--jobtype { grid-template-columns: repeat(4, 1fr); }
}

.picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--jk-shadow);
  border: 1px solid var(--jk-border);
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}

.picker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.picker-card__icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
}

.picker-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--jk-black);
}

.picker-card__subtitle {
  font-size: 0.85rem;
  color: var(--jk-muted);
  margin-top: 4px;
}

/* ========== DESKTOP JOB GRID (4 columns) ========== */
.site-main--archive {
  background: #fff;
}

.archive-top {
  text-align: center;
  padding: 16px 12px;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.archive-top__label {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--jk-red);
}

.job-grid--desktop {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .job-grid--desktop { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .job-grid--desktop { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .job-grid--desktop { grid-template-columns: repeat(4, 1fr); }
}

.job-card--grid {
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 100%;
}

.job-card--grid .job-card__title {
  font-size: 0.9rem;
  min-height: 4.5em;
}

.job-card--grid .job-card__details {
  flex: 1;
}

.job-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 12px 14px;
  padding: 10px;
  background: var(--jk-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  border-radius: 4px;
}

.job-card__btn:hover {
  background: var(--jk-red-dark);
}

.job-card__btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 50%;
  font-size: 0.7rem;
}

.no-jobs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}

/* Footer – black like JobKaka desktop */
.site-footer {
  background: #000 !important;
}

.site-footer a {
  color: var(--jk-red) !important;
  text-decoration: none !important;
}

@media (min-width: 1200px) {
  .container { max-width: 1200px; }
}

/* ========== 3-LEVEL BROWSE BUTTONS (JobKaka blue/green pills) ========== */
.site-main--browse {
  background: #fff;
  padding-bottom: 24px;
}

.browse-crumb {
  text-align: center;
  padding: 10px 12px;
  margin: 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--jk-border);
}

.browse-crumb a {
  margin-right: 8px;
  font-weight: 700;
}

.browse-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 12px;
  max-width: 900px;
  margin: 0 auto;
}

.browse-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.12s, box-shadow 0.12s;
}

.browse-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #fff !important;
}

.browse-btn--blue {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}

.browse-btn--green {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
}

.browse-btn__play {
  font-size: 0.75rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.browse-btn__text {
  flex: 1;
  text-align: center;
}

.browse-btn__arrow {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.section-banner--results {
  margin-top: 8px;
}

.browse-jobs-grid {
  background: #fff;
  padding-bottom: 8px;
}
