/*
Theme Name: Apex Skill Recruitment
Theme URI: https://apexskillrecruitment.online/
Author: Apex Skill Recruitment
Author URI: https://apexskillrecruitment.online/
Description: A professional recruitment and job board theme for Apex Skill Recruitment
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apex-skill
Tags: recruitment, jobs, job-board, business, professional
*/

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

:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2447;
  --accent: #e8a020;
  --accent-dark: #c7881a;
  --text: #222831;
  --text-muted: #6b7280;
  --bg: #f7f8fc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(26,58,107,0.10);
  --shadow-sm: 0 2px 8px rgba(26,58,107,0.07);
  --transition: 0.25s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.25;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,160,32,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== HEADER / NAV ===== */
#masthead {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo img { height: 52px; width: auto; }
.site-logo .site-title-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav ul li a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: all var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  color: var(--primary);
  background: rgba(26,58,107,0.07);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2563c7 100%);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Bar */
.search-bar {
  background: var(--white);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  flex-wrap: wrap;
}
.search-bar input, .search-bar select {
  flex: 1;
  min-width: 180px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input:focus, .search-bar select:focus {
  border-color: var(--primary);
}
.search-bar .btn { flex-shrink: 0; padding: 13px 28px; }

.hero-stats {
  margin-top: 30px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}
.hero-stats strong { color: var(--accent); }

/* ===== SECTION DEFAULTS ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.section-label {
  display: inline-block;
  background: rgba(26,58,107,0.09);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ===== JOB LISTINGS ===== */
.jobs-section { background: var(--bg); }
.jobs-grid { display: flex; flex-direction: column; gap: 16px; }

.job-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.job-card-left { display: flex; align-items: center; gap: 18px; flex: 1; }
.job-company-logo {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #2563c7);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.job-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
  font-family: var(--font-body);
}
.job-info h3 a { color: inherit; }
.job-info h3 a:hover { color: var(--accent); }
.job-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-muted);
}
.job-meta span { display: flex; align-items: center; gap: 4px; }
.job-meta .tag {
  background: rgba(26,58,107,0.09);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.job-meta .tag-type {
  background: rgba(232,160,32,0.12);
  color: var(--accent-dark);
}
.job-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.job-date { font-size: 12px; color: var(--text-muted); }
.load-more-wrap { text-align: center; margin-top: 36px; }

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-date {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.blog-card h3 { font-size: 17px; margin-bottom: 12px; }
.blog-card h3 a { color: var(--primary-dark); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 60px 0;
  text-align: center;
}
.about-hero h1 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.about-hero p { color: rgba(255,255,255,0.8); margin-top: 12px; max-width: 540px; margin-left: auto; margin-right: auto; }

.about-content-section { padding: 72px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-grid img {
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pillar-card h3 { font-size: 17px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.pillar-icon { font-size: 28px; margin-bottom: 10px; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 72px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(26,58,107,0.10);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); background: white; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== JOBS PAGE ===== */
.jobs-page-section { padding: 72px 0; }
.jobs-filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
}
.jobs-filter-bar input,
.jobs-filter-bar select {
  flex: 1;
  min-width: 160px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.jobs-filter-bar input:focus,
.jobs-filter-bar select:focus { border-color: var(--primary); }

/* ===== FOOTER ===== */
#colophon {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .site-title-text {
  color: white;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-body);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-trust img { width: 80px; height: auto; margin-top: 8px; }
.footer-bottom {
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 56px 0;
  text-align: center;
  color: white;
}
.page-hero h1 { color: white; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.78); margin-top: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 20px; box-shadow: var(--shadow); flex-direction: column; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .menu-toggle { display: flex; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .job-card-right { align-items: flex-start; flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .search-bar { flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===== WP UTILITIES ===== */
.wp-block-image { margin: 0; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}
.aligncenter { text-align: center; }
.site-main { min-height: 60vh; padding: 60px 0; }
.entry-title { font-size: 2rem; margin-bottom: 20px; }
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 0.6em; }
.entry-content ul { list-style: disc; padding-left: 24px; margin-bottom: 1.2em; }
