/* ============================================================
   LANDING PAGE & SITE-WIDE ADDITIONS
   Append to public/assets/css/style.css
   (or keep as a separate file and link it in head.php)
   ============================================================ */

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.site-header--transparent {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  position: absolute;
  width: 100%;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 56px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  flex-shrink: 0;
}

.site-logo__icon { font-size: 22px; }
.site-logo--footer .site-logo__text { color: #fff; }
.site-logo--footer .site-logo__icon { color: #93c5fd; }

/* Nav */
.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.site-nav__link {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
  transition: background .15s, color .15s;
}

.site-nav__link:hover,
.site-nav__link.active {
  background: #eff6ff;
  color: var(--primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Hamburger */
.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.btn-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.btn-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger--open span:nth-child(2) { opacity: 0; }
.btn-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .btn-hamburger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 12px;
    gap: 2px;
  }
  .site-nav--open { display: flex; }
  .site-header--transparent { position: fixed; background: var(--card-bg); border-bottom: 1px solid var(--border); }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%);
  color: #fff;
  padding: 80px 16px 64px;
  overflow: hidden;
  text-align: center;
}

.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: #fff;
}
.hero__shape--1 { width: 400px; height: 400px; top: -120px; right: -100px; }
.hero__shape--2 { width: 250px; height: 250px; bottom: -80px; left: -60px; }
.hero__shape--3 { width: 150px; height: 150px; top: 30%; left: 10%; }

.hero__content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

.hero__badge .material-symbols-outlined { font-size: 15px; color: #86efac; }

.hero__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero__title-accent {
  color: #93c5fd;
}

.hero__subtitle {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Hero search box */
.hero__search {
  max-width: 700px;
  margin: 0 auto;
}

.hero__search-inner {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

.hero__search-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 0 4px 0 12px;
}

.hero__search-icon {
  font-size: 20px;
  color: #9ca3af;
  flex-shrink: 0;
  margin-right: 6px;
}

.hero__search-input,
.hero__search-select {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1f2937;
  background: transparent;
  padding: 14px 0;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}

.hero__search-divider {
  width: 1px;
  background: #e5e7eb;
  margin: 10px 0;
  flex-shrink: 0;
}

.hero__search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}

.hero__search-btn:hover { background: #1d4ed8; }
.hero__search-btn .material-symbols-outlined { font-size: 18px; }

.hero__search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__search-label { font-size: 12px; opacity: .7; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
}

.hero__tag:hover { background: rgba(255,255,255,.25); }

@media (max-width: 600px) {
  .hero { padding: 72px 16px 48px; }
  .hero__search-inner { flex-direction: column; border-radius: 10px; }
  .hero__search-divider { width: 100%; height: 1px; margin: 0 10px; }
  .hero__search-field { padding: 0 12px; }
  .hero__search-btn { border-radius: 0 0 10px 10px; justify-content: center; }
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--primary);
  color: #fff;
}

.stats-bar__inner {
  display: flex;
  justify-content: space-around;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px;
}

.stat-item { text-align: center; }
.stat-item__num  { display: block; font-size: 22px; font-weight: 700; color: #93c5fd; }
.stat-item__label{ font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }

/* ── Section blocks ──────────────────────────────────────── */
.section-block {
  padding: 40px 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-block--grey {
  max-width: 100%;
  background: var(--bg);
  padding: 40px 16px;
}

.section-block--grey .featured-grid,
.section-block--grey .section-block__header,
.section-block--grey .featured-cta {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.section-title--center { text-align: center; width: 100%; margin-bottom: 24px; }

.link-all {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.link-all .material-symbols-outlined { font-size: 16px; }

/* ── Category grid ───────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 12px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.category-card:hover {
  border-color: var(--cat-color, var(--primary));
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.category-card__icon {
  font-size: 28px;
  color: var(--cat-color, var(--primary));
}

.category-card--all .category-card__icon { color: var(--primary); }

.category-card__name  { font-size: 13px; font-weight: 600; }
.category-card__count { font-size: 11px; color: var(--muted); }

/* ── Featured job cards ──────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.fcard {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .15s, transform .15s;
}

.fcard:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }

.fcard__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.fcard__icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.fcard__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.fcard__org { font-size: 13px; color: var(--muted); }

.fcard__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.fcard__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fcard__meta .material-symbols-outlined { font-size: 14px; }

.fcard__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.fcard__deadline {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #b45309;
}

.fcard__deadline .material-symbols-outlined { font-size: 13px; }

.fcard__btn {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
}

.featured-cta { text-align: center; margin-top: 8px; }

/* ── Primary large button ────────────────────────────────── */
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}

.btn-primary-lg:hover { background: #1d4ed8; }
.btn-primary-lg .material-symbols-outlined { font-size: 18px; }
.btn-primary-lg--white { background: #fff; color: var(--primary); }
.btn-primary-lg--white:hover { background: #f0f9ff; }

/* ── Why section ─────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.why-card__icon {
  display: block;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
}

.why-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.why-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  text-align: center;
  padding: 56px 16px;
}

.cta-banner__inner { max-width: 600px; margin: 0 auto; }
.cta-banner h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.cta-banner p  { opacity: .85; margin-bottom: 24px; font-size: 15px; }

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: #d1d5db;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 28px;
}

@media (max-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

.site-footer__tagline { font-size: 13px; color: #9ca3af; margin-top: 8px; line-height: 1.6; }

.site-footer__heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links a {
  font-size: 13px;
  color: #d1d5db;
  text-decoration: none;
  transition: color .15s;
}
.site-footer__links a:hover { color: #93c5fd; }

.site-footer__contact li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer__contact .material-symbols-outlined { font-size: 15px; color: #93c5fd; }

.site-footer__bottom {
  border-top: 1px solid #1f2937;
  text-align: center;
  padding: 14px 16px;
  font-size: 12px;
  color: #6b7280;
}

/* ── Static pages (About, Contact, Privacy) ─────────────── */
.page-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  text-align: center;
  padding: 56px 16px 40px;
}

.page-hero--sm { padding: 48px 16px 32px; }
.page-hero__title { font-size: clamp(22px, 4vw, 36px); font-weight: 700; margin-bottom: 8px; }
.page-hero__sub   { font-size: 14px; opacity: .8; }

.static-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.static-page--narrow { max-width: 700px; }

.static-page--contact { max-width: 1000px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } }

.static-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.static-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.static-card p  { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.static-card ul { padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 2; }
.static-card a  { color: var(--primary); }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.about-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-feature .material-symbols-outlined {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.about-feature p  { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

.contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.contact-inline__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  background: #eff6ff;
  padding: 8px 14px;
  border-radius: 8px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-detail__icon {
  font-size: 20px;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-detail__label { font-size: 11px; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.contact-detail__value { font-size: 14px; color: var(--text); text-decoration: none; }
.contact-detail__value:hover { color: var(--primary); }

.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  resize: vertical;
  font-family: inherit;
  outline: none;
}
.contact-form textarea:focus { border-color: var(--primary); }

/* ── Home page body offset (for transparent header) ─────── */
.home-page .site-header--transparent ~ * { /* no offset — hero fills below header */ }
