/*
Theme Name: Global Career Hub
Theme URI: https://globalcareerhub.org
Author: Global Career Hub
Author URI: https://globalcareerhub.org
Description: A modern, professional WordPress theme for Global Career Hub .ORG – Connecting Talent, Creating Futures. Perfect for career blogs, job advice, and professional development content. Features a clean layout, responsive design, and brand colors inspired by the official logo.
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: global-career-hub
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar, responsive-layout
*/

/* ==========================================================================
   CSS Variables - Brand Colors from Logo
   ========================================================================== */
:root {
  /* Primary Blues */
  --gch-blue-dark: #033494;
  --gch-blue: #1058BA;
  --gch-blue-light: #349DE2;
  --gch-blue-soft: #E8F4FC;

  /* Gold Accents */
  --gch-gold-dark: #A86A0F;
  --gch-gold: #DE9F20;
  --gch-gold-light: #F8D55C;
  --gch-gold-soft: #FFF8E7;

  /* Neutrals */
  --gch-black: #0B102B;
  --gch-dark: #1A1F3A;
  --gch-gray: #4A5568;
  --gch-gray-light: #E2E8F0;
  --gch-white: #FFFFFF;
  --gch-off-white: #F7FAFC;

  /* Typography */
  --gch-font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --gch-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing & Layout */
  --gch-container: 1200px;
  --gch-radius: 12px;
  --gch-shadow: 0 4px 20px rgba(3, 52, 148, 0.08);
  --gch-shadow-hover: 0 8px 30px rgba(3, 52, 148, 0.15);
  --gch-transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--gch-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gch-dark);
  background-color: var(--gch-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gch-blue);
  text-decoration: none;
  transition: var(--gch-transition);
}

a:hover {
  color: var(--gch-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gch-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gch-black);
  margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25em;
}

ul, ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--gch-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main {
  padding: 3rem 0;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gch-blue), var(--gch-gold));
  border-radius: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--gch-black);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-logo img {
  height: 60px;
  width: auto;
  transition: var(--gch-transition);
}

.site-logo:hover img {
  transform: scale(1.03);
}

.site-title {
  font-family: var(--gch-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gch-white);
  margin: 0;
  line-height: 1.2;
}

.site-title span.gold {
  color: var(--gch-gold-light);
}

.site-title span.blue {
  color: var(--gch-blue-light);
}

.site-description {
  font-size: 0.7rem;
  color: var(--gch-gray-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.85;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--gch-white);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: var(--gch-transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: rgba(222, 159, 32, 0.15);
  color: var(--gch-gold-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--gch-gold);
  color: var(--gch-gold-light);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* ==========================================================================
   Hero / Page Header
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--gch-black) 0%, var(--gch-blue-dark) 60%, var(--gch-blue) 100%);
  color: var(--gch-white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(248, 213, 92, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.75rem;
  color: var(--gch-white);
  margin-bottom: 0.5rem;
}

.hero-title .gold {
  color: var(--gch-gold-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--gch-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--gch-transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gch-gold) 0%, var(--gch-gold-light) 100%);
  color: var(--gch-black);
  box-shadow: 0 4px 15px rgba(222, 159, 32, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 159, 32, 0.5);
  color: var(--gch-black);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gch-gold-light);
  color: var(--gch-gold-light);
}

.btn-outline:hover {
  background: var(--gch-gold-light);
  color: var(--gch-black);
}

/* ==========================================================================
   Blog Layout
   ========================================================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.content-area {
  min-width: 0;
}

/* Post Cards */
.posts-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  background: var(--gch-white);
  border-radius: var(--gch-radius);
  overflow: hidden;
  box-shadow: var(--gch-shadow);
  transition: var(--gch-transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gch-shadow-hover);
}

.post-card .post-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gch-blue-soft);
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--gch-transition);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-card .post-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--gch-gray);
  margin-bottom: 0.75rem;
}

.post-card .post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.post-card .post-category {
  background: var(--gch-blue-soft);
  color: var(--gch-blue);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.post-card .entry-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-card .entry-title a {
  color: var(--gch-black);
}

.post-card .entry-title a:hover {
  color: var(--gch-blue);
}

.post-card .entry-excerpt {
  color: var(--gch-gray);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
}

.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--gch-blue);
  font-size: 0.9rem;
}

.post-card .read-more:hover {
  color: var(--gch-gold);
  gap: 0.6rem;
}

/* Single Post */
.single-post .entry-header {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post .entry-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.single-post .entry-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--gch-gray);
  font-size: 0.9rem;
}

.single-post .post-thumbnail {
  margin-bottom: 2rem;
  border-radius: var(--gch-radius);
  overflow: hidden;
  box-shadow: var(--gch-shadow);
}

.single-post .entry-content {
  background: var(--gch-white);
  padding: 2.5rem;
  border-radius: var(--gch-radius);
  box-shadow: var(--gch-shadow);
  line-height: 1.8;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
  margin-top: 2rem;
  color: var(--gch-blue-dark);
}

.single-post .entry-content a {
  color: var(--gch-blue);
  border-bottom: 1px solid transparent;
}

.single-post .entry-content a:hover {
  border-bottom-color: var(--gch-gold);
  color: var(--gch-gold-dark);
}

.single-post .entry-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.single-post .entry-content blockquote {
  border-left: 4px solid var(--gch-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gch-gold-soft);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gch-dark);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  position: sticky;
  top: 100px;
}

.widget {
  background: var(--gch-white);
  border-radius: var(--gch-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--gch-shadow);
}

.widget-title {
  font-size: 1.1rem;
  color: var(--gch-blue-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gch-gold);
  display: inline-block;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gch-gray-light);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul a {
  color: var(--gch-dark);
  font-weight: 500;
}

.widget ul a:hover {
  color: var(--gch-blue);
}

/* Search Widget */
.widget_search .search-form {
  display: flex;
  gap: 0.5rem;
}

.widget_search input[type="search"] {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 2px solid var(--gch-gray-light);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--gch-transition);
}

.widget_search input[type="search"]:focus {
  outline: none;
  border-color: var(--gch-blue);
}

.widget_search button {
  background: var(--gch-blue);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--gch-transition);
}

.widget_search button:hover {
  background: var(--gch-blue-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--gch-black);
  color: var(--gch-gray-light);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 70px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.footer-widget h4 {
  color: var(--gch-gold-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gch-gold);
  border-radius: 2px;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 0.6rem;
}

.footer-widget a {
  color: var(--gch-gray-light);
  opacity: 0.85;
  font-size: 0.95rem;
}

.footer-widget a:hover {
  color: var(--gch-gold-light);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-bottom a {
  color: var(--gch-gold-light);
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--gch-white);
  transition: var(--gch-transition);
}

.social-links a:hover {
  background: var(--gch-gold);
  color: var(--gch-black);
  transform: translateY(-3px);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  background: var(--gch-white);
  border-radius: 8px;
  color: var(--gch-dark);
  font-weight: 600;
  box-shadow: var(--gch-shadow);
  transition: var(--gch-transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--gch-blue);
  color: white;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  margin-top: 3rem;
  background: var(--gch-white);
  padding: 2rem;
  border-radius: var(--gch-radius);
  box-shadow: var(--gch-shadow);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gch-gray-light);
}

.comment-author {
  font-weight: 600;
  color: var(--gch-blue-dark);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
  text-align: center;
  padding: 5rem 0;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--gch-blue);
  margin-bottom: 0.5rem;
}

.error-404 .page-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .footer-widgets {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gch-black);
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }

  .main-navigation.toggled {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
  }

  .main-navigation a {
    padding: 0.85rem 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .site-logo img {
    height: 48px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .single-post .entry-content {
    padding: 1.5rem;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .post-card .post-content {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1.5rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--gch-gray);
  text-align: center;
  margin-top: 0.5rem;
}

.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;
}

/* Sticky Post Badge */
.sticky .post-card {
  border: 2px solid var(--gch-gold);
}

.sticky-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gch-gold);
  color: var(--gch-black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}
