/*
Theme Name: Global Career Hub
Theme URI: https://globalcareerhub.example
Author: Global Career Hub
Author URI: https://globalcareerhub.example
Description: A clean, modern WordPress theme for job boards and career blogs. Includes job listing layouts, career blog templates, responsive design, and styles compatible with WP Job Manager. Perfect for remote work, international careers, and recruitment sites.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
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: global-career-hub
Tags: job-board, blog, business, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, custom-logo, sticky-post

Global Career Hub WordPress Theme
*/

/* ========== CSS Variables ========== */
:root {
  --gch-primary: #0f766e;
  --gch-primary-dark: #0d5c56;
  --gch-primary-light: #14b8a6;
  --gch-accent: #f59e0b;
  --gch-text: #1e293b;
  --gch-text-light: #64748b;
  --gch-bg: #f8fafc;
  --gch-white: #ffffff;
  --gch-border: #e2e8f0;
  --gch-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --gch-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --gch-radius: 12px;
  --gch-transition: all 0.25s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--gch-text);
  background: var(--gch-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gch-primary); text-decoration: none; transition: var(--gch-transition); }
a:hover { color: var(--gch-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; line-height: 1.3; color: var(--gch-text); }
p { margin: 0 0 1em; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* ========== Layout ========== */
.gch-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-content { flex: 1; }
.site-main { padding: 40px 0 60px; }

/* ========== Header ========== */
.site-header {
  background: var(--gch-white);
  border-bottom: 1px solid var(--gch-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--gch-shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-title {
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
  color: var(--gch-text);
}
.site-title a { color: inherit; }
.site-title span { color: var(--gch-primary); }
.custom-logo-link img { max-height: 40px; width: auto; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gch-primary), var(--gch-primary-light));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.1rem;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: var(--gch-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  display: block;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: #f0fdfa;
  color: var(--gch-primary);
}
.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--gch-white);
  border: 1px solid var(--gch-border);
  border-radius: var(--gch-radius);
  box-shadow: var(--gch-shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--gch-transition);
  z-index: 100;
  flex-direction: column;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-navigation .sub-menu a {
  padding: 10px 16px;
  border-radius: 0;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gch-text);
}
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.gch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--gch-transition);
  text-decoration: none;
  font-family: inherit;
}
.gch-btn-primary {
  background: var(--gch-primary);
  color: #fff !important;
}
.gch-btn-primary:hover {
  background: var(--gch-primary-dark);
  color: #fff !important;
}
.gch-btn-outline {
  background: transparent;
  color: var(--gch-primary) !important;
  border: 2px solid var(--gch-primary);
}
.gch-btn-outline:hover {
  background: #f0fdfa;
}
.gch-btn-accent {
  background: var(--gch-accent);
  color: #fff !important;
}
.gch-btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ========== Hero ========== */
.gch-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  color: white;
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}
.gch-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.gch-hero-content { position: relative; z-index: 1; max-width: 680px; }
.gch-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.gch-hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.95);
}
.gch-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.gch-hero .gch-btn-primary {
  background: white;
  color: var(--gch-primary) !important;
}
.gch-hero .gch-btn-primary:hover { background: #f0fdfa; }
.gch-hero .gch-btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: white !important;
}
.gch-hero .gch-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

/* Job search box (front page) */
.gch-job-search {
  background: white;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: var(--gch-shadow-lg);
  max-width: 800px;
  margin-top: 8px;
}
.gch-job-search input,
.gch-job-search select {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: 1.5px solid var(--gch-border);
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}
.gch-job-search input:focus,
.gch-job-search select:focus { border-color: var(--gch-primary); }

/* ========== Sections ========== */
.gch-section { padding: 50px 0; }
.gch-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.gch-section-title { font-size: 1.5rem; font-weight: 700; margin: 0; }

/* ========== Post / Job Cards ========== */
.gch-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.gch-card {
  background: var(--gch-white);
  border-radius: var(--gch-radius);
  overflow: hidden;
  border: 1px solid var(--gch-border);
  transition: var(--gch-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gch-card:hover {
  box-shadow: var(--gch-shadow-lg);
  transform: translateY(-3px);
}
.gch-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gch-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gch-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gch-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}
.gch-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gch-card-meta {
  font-size: 0.82rem;
  color: var(--gch-text-light);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gch-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.gch-card-title a { color: var(--gch-text); }
.gch-card-title a:hover { color: var(--gch-primary); }
.gch-card-excerpt {
  font-size: 0.9rem;
  color: var(--gch-text-light);
  flex: 1;
  margin-bottom: 12px;
}
.gch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gch-border);
  font-size: 0.85rem;
}

/* Job-style card */
.gch-job-card {
  background: var(--gch-white);
  border: 1px solid var(--gch-border);
  border-radius: var(--gch-radius);
  padding: 20px;
  transition: var(--gch-transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gch-job-card:hover {
  box-shadow: var(--gch-shadow-lg);
  border-color: #99f6e4;
}
.gch-job-card-top { display: flex; gap: 14px; align-items: flex-start; }
.gch-company-logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--gch-primary); flex-shrink: 0;
}
.gch-job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gch-job-tag {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0fdfa;
  color: var(--gch-primary);
}
.gch-job-salary { font-weight: 700; color: #059669; }

/* Category pills */
.gch-cat-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.gch-cat-pill {
  padding: 7px 16px;
  background: var(--gch-white);
  border: 1px solid var(--gch-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gch-text);
  transition: var(--gch-transition);
  display: inline-block;
}
.gch-cat-pill:hover,
.gch-cat-pill.active {
  background: var(--gch-primary);
  color: white;
  border-color: var(--gch-primary);
}

/* ========== Single Post ========== */
.gch-single {
  background: var(--gch-white);
  border: 1px solid var(--gch-border);
  border-radius: var(--gch-radius);
  overflow: hidden;
}
.gch-single-header { padding: 36px 36px 0; }
.gch-single-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 12px 0 16px;
  line-height: 1.3;
}
.gch-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--gch-text-light);
  font-size: 0.9rem;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gch-border);
  margin-bottom: 0;
}
.gch-single-thumb {
  max-height: 400px;
  overflow: hidden;
}
.gch-single-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.gch-single-content {
  padding: 36px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.gch-single-content h2 { font-size: 1.35rem; margin: 28px 0 12px; }
.gch-single-content h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.gch-single-content p { margin-bottom: 16px; }
.gch-single-content ul,
.gch-single-content ol { margin: 0 0 16px 24px; }
.gch-single-content li { margin-bottom: 6px; }
.gch-single-content blockquote {
  border-left: 4px solid var(--gch-primary);
  padding: 14px 20px;
  margin: 20px 0;
  background: #f0fdfa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.gch-single-content img { border-radius: 8px; margin: 16px 0; }
.gch-post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gch-border);
}
.gch-post-tags a {
  padding: 5px 12px;
  background: #f1f5f9;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gch-text);
}
.gch-post-tags a:hover {
  background: var(--gch-primary);
  color: white;
}

/* Author box */
.gch-author-box {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #f0fdfa;
  border-radius: var(--gch-radius);
  margin-top: 32px;
}
.gch-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gch-primary);
}
.gch-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ========== Sidebar ========== */
.gch-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
}
.gch-widget {
  background: var(--gch-white);
  border: 1px solid var(--gch-border);
  border-radius: var(--gch-radius);
  padding: 20px;
  margin-bottom: 20px;
}
.gch-widget h2,
.gch-widget .widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gch-primary);
}
.gch-widget ul { list-style: none; margin: 0; padding: 0; }
.gch-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gch-border);
}
.gch-widget ul li:last-child { border-bottom: none; }
.gch-widget a { color: var(--gch-text); font-weight: 500; }
.gch-widget a:hover { color: var(--gch-primary); }

/* ========== Page Header ========== */
.gch-page-header {
  background: var(--gch-white);
  border-bottom: 1px solid var(--gch-border);
  padding: 36px 0;
}
.gch-page-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 6px;
}
.gch-page-header p { color: var(--gch-text-light); margin: 0; }
.gch-breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gch-text-light);
  margin-bottom: 10px;
  list-style: none;
  padding: 0;
}
.gch-breadcrumb a { color: var(--gch-primary); }

/* ========== Pagination ========== */
.navigation.pagination,
.gch-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.navigation.pagination .nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.navigation.pagination a,
.navigation.pagination span,
.gch-pagination a,
.gch-pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--gch-border);
  background: var(--gch-white);
  color: var(--gch-text);
  padding: 0 10px;
}
.navigation.pagination .current,
.navigation.pagination a:hover,
.gch-pagination .current,
.gch-pagination a:hover {
  background: var(--gch-primary);
  color: white;
  border-color: var(--gch-primary);
}

/* ========== Comments ========== */
.comments-area {
  background: var(--gch-white);
  border: 1px solid var(--gch-border);
  border-radius: var(--gch-radius);
  padding: 28px;
  margin-top: 36px;
}
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--gch-border); }
.comment-reply-link { font-size: 0.85rem; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gch-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--gch-primary);
}
.comment-form .submit {
  background: var(--gch-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.comment-form .submit:hover { background: var(--gch-primary-dark); }

/* ========== Forms (Contact, etc.) ========== */
.gch-form-group { margin-bottom: 16px; }
.gch-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 5px;
}
.gch-form-group input,
.gch-form-group textarea,
.gch-form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gch-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.gch-form-group input:focus,
.gch-form-group textarea:focus,
.gch-form-group select:focus {
  border-color: var(--gch-primary);
}
.gch-form-group textarea { min-height: 120px; resize: vertical; }

/* ========== Footer ========== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 0;
  margin-top: auto;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-widgets .widget-title,
.site-footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 14px;
  border: none;
  padding: 0;
}
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: white; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-info {
  border-top: 1px solid #1e293b;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========== WP Job Manager compatibility ========== */
.job_listings .job_listing {
  background: var(--gch-white);
  border: 1px solid var(--gch-border);
  border-radius: var(--gch-radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: var(--gch-transition);
  list-style: none;
}
.job_listings .job_listing:hover {
  box-shadow: var(--gch-shadow);
  border-color: #99f6e4;
}
.job_listings .job_listing a.job_listing-clickbox { color: inherit; }
.job_listings .position h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.job_listings .company { color: var(--gch-text-light); font-size: 0.9rem; }
.job_listings .location { font-size: 0.85rem; color: var(--gch-text-light); }
.job_listings .meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.job_listings .job-type {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0fdfa;
  color: var(--gch-primary);
}
.single_job_listing .application .application_button,
.job_application .application_button {
  background: var(--gch-primary) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}
.job-filters {
  background: var(--gch-white);
  border: 1px solid var(--gch-border);
  border-radius: var(--gch-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.job-filters input,
.job-filters select {
  padding: 10px 12px;
  border: 1.5px solid var(--gch-border);
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ========== CTA Banner ========== */
.gch-cta {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: white;
  border-radius: var(--gch-radius);
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}
.gch-cta h2 { color: white; margin-bottom: 10px; }
.gch-cta p { opacity: 0.9; margin-bottom: 20px; }
.gch-cta .gch-btn-accent { background: var(--gch-accent); }

/* ========== 404 ========== */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}
.error-404 h1 { font-size: 4rem; color: var(--gch-primary); margin-bottom: 12px; }
.error-404 p { color: var(--gch-text-light); margin-bottom: 24px; }

/* ========== Alignments (WP core) ========== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--gch-text-light); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .gch-layout { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-navigation {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--gch-white);
    border-bottom: 1px solid var(--gch-border);
    box-shadow: var(--gch-shadow-lg);
    padding: 12px;
  }
  .main-navigation.toggled { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; }
  .main-navigation .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }
  .gch-hero h1 { font-size: 2rem; }
  .gch-posts-grid { grid-template-columns: 1fr; }
  .gch-single-header,
  .gch-single-content { padding: 24px; }
  .gch-single-header h1 { font-size: 1.5rem; }
  .footer-widgets { grid-template-columns: 1fr; }
  .gch-job-search { flex-direction: column; }
  .header-actions .gch-btn { display: none; }
}
