/* ==========================================
   OETJobs.net - Main Stylesheet
   Inspired by oetjobs.com design system
   ========================================== */

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

:root {
  /* Colors */
  --color-primary: #256aaf;
  --color-primary-dark: #1a4f85;
  --color-primary-light: #3182d6;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-dark: #1a202c;
  --color-dark-secondary: #2d3748;
  --color-dark-hero-bg: #0f172a;
  --color-text: #1a202c;
  --color-text-light: #4a5568;
  --color-text-muted: #718096;
  --color-bg: #ffffff;
  --color-bg-light: #f7fafc;
  --color-bg-gray: #edf2f7;
  --color-border: #e2e8f0;
  --color-border-light: #f0f0f0;
  --color-success: #38a169;
  --color-warning: #d69e2e;
  --color-danger: #e53e3e;
  --color-white: #ffffff;
  --color-footer-bg: #1a202c;
  --color-footer-text: #a0aec0;

  /* Typography */
  --font-heading: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --font-heading-alt: 'Noto Sans', 'Segoe UI', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --container-width: 1140px;
  --container-narrow: 800px;
  --border-radius: 4px;
  --border-radius-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- Base Styles --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* --- Navigation --- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 64px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--color-primary);
}

/* Dropdown */
.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 100;
  padding: 0.5rem 0;
}

.main-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.main-nav .dropdown-menu a:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.nav-search {
  display: flex;
  align-items: center;
}

.nav-search input {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 0.8rem;
  width: 140px;
  outline: none;
}

.nav-search input:focus {
  border-color: var(--color-primary);
}

.nav-search button {
  padding: 0.4rem 0.7rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.nav-search button:hover {
  background: var(--color-primary-dark);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--color-dark-hero-bg) 0%, #1e3a5f 100%);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-section .subtitle {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.hero-section h1 {
  font-size: 2.8rem;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

.hero-section .hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-hiring {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: var(--space-md);
}

.hero-hiring a {
  color: var(--color-accent);
  font-weight: 700;
}

/* --- Section Styles --- */
.section {
  padding: var(--space-3xl) 0;
}

.section-gray {
  background: var(--color-bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1rem;
}

/* --- Job Listings Tabs --- */
.job-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--color-border);
}

.job-tab {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.job-tab:hover {
  color: var(--color-primary);
}

.job-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* --- Job Cards --- */
.job-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  gap: var(--space-lg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
}

.job-card-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-white);
}

.job-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.job-card-body {
  flex: 1;
  min-width: 0;
}

.job-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.job-card-title a {
  color: var(--color-text);
}

.job-card-title a:hover {
  color: var(--color-primary);
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.job-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.job-badge.location {
  background: var(--color-bg-light);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.job-badge.featured {
  background: var(--color-accent);
  color: var(--color-white);
}

.job-badge.hiring {
  background: var(--color-success);
  color: var(--color-white);
}

.job-card-salary {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.job-card-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.job-card-requirements span {
  position: relative;
}

.job-card-requirements span:not(:last-child)::after {
  content: '·';
  margin-left: var(--space-md);
  color: var(--color-border);
}

.job-card-rating {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.job-card-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  min-width: 120px;
}

.job-card-actions .btn {
  width: 100%;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-3xl) 0;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Social / Community Section --- */
.community-section {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: var(--color-bg-light);
}

.community-section h3 {
  margin-bottom: var(--space-lg);
}

.community-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.community-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.community-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.community-link .icon {
  font-size: 1.2rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark-hero-bg);
  color: var(--color-footer-text);
  padding: var(--space-3xl) 0 0;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-column h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-column ul li {
  margin-bottom: 0.3rem;
}

.footer-column ul li a {
  color: var(--color-footer-text);
  font-size: 0.85rem;
}

.footer-column ul li a:hover {
  color: var(--color-white);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--space-xl);
  text-align: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--color-footer-text);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

.footer-legal {
  margin-top: var(--space-sm);
}

.footer-legal a {
  margin: 0 0.5rem;
}

.footer-disclaimer {
  margin-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* --- Page Header (for subpages) --- */
.page-header {
  background: linear-gradient(135deg, var(--color-dark-hero-bg) 0%, #1e3a5f 100%);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-sm) 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

/* --- Search / Filter Section --- */
.filter-section {
  padding: var(--space-lg) 0;
  background: var(--color-bg-light);
}

.filter-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.filter-tab {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.filter-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.filter-form {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.filter-form input,
.filter-form select {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  outline: none;
  background: var(--color-white);
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--color-primary);
}

.filter-form .btn {
  padding: 0.6rem 1.2rem;
}

/* --- Job List (listing page) --- */
.job-list-section {
  padding: var(--space-xl) 0;
}

.job-list-section .container {
  max-width: var(--container-width);
}

/* --- Page Content --- */
.page-content {
  padding: var(--space-2xl) 0;
}

.page-content .container-narrow {
  max-width: 800px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: var(--space-md);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav > ul > li {
    width: 100%;
  }

  .main-nav > ul > li > a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
  }

  .main-nav .dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-md);
  }

  .main-nav .dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-top: var(--space-sm);
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section {
    padding: var(--space-2xl) 0;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .job-card {
    flex-direction: column;
  }

  .job-card-logo {
    width: 80px;
    height: 80px;
  }

  .job-card-actions {
    flex-direction: row;
    min-width: auto;
  }

  .job-card-actions .btn {
    width: auto;
    flex: 1;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .job-tabs {
    flex-wrap: wrap;
  }

  .filter-form {
    flex-direction: column;
  }

  .filter-form input,
  .filter-form select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }

  .job-card-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .job-card-requirements span:not(:last-child)::after {
    display: none;
  }
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.job-card {
  animation: fadeIn 0.4s ease-out;
}

/* ==========================================
   Job Detail Page
   ========================================== */

/* --- Detail Layout --- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 44px 24px;
}

.detail-main { min-width: 0; }

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 12px 24px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-breadcrumb a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.detail-breadcrumb a:hover {
  color: var(--color-primary);
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-company {
  font-size: 16px;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-light);
}

.detail-meta-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-text-muted);
  flex-shrink: 0;
}

.detail-section {
  margin-bottom: 36px;
}

.detail-section h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.detail-section p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.detail-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.detail-section li {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* --- Detail Pagination --- */
.detail-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin-top: 20px;
  gap: 16px;
}

.detail-pagination a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 10px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all 0.2s;
  max-width: 48%;
  text-decoration: none;
}

.detail-pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.detail-pagination .pag-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-pagination .pag-title {
  font-weight: 700;
  color: var(--color-text);
  font-size: 14px;
}

.detail-pagination .pag-arrow {
  font-size: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* --- Apply Box (Sidebar) --- */
.apply-box {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  position: sticky;
  top: 88px;
}

.apply-box-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.apply-box-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 20px;
}

.apply-box .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.apply-note {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}

/* --- Sidebar Related Jobs --- */
.sidebar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.sidebar-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.sidebar-job {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
}

.sidebar-job:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-job-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
  transition: color 0.2s;
}

.sidebar-job-title:hover {
  color: var(--color-primary-dark);
}

.sidebar-job-company {
  font-size: 12px;
  color: var(--color-text-muted);
}

.sidebar-job-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* --- Mobile Sticky Apply --- */
.mobile-sticky-apply {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.mobile-sticky-apply .btn {
  width: 100%;
  margin-bottom: 0;
}

/* --- Contact Reveal Modal --- */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal-overlay.open {
  display: flex;
}

.contact-modal {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.2s;
}

.contact-modal-close:hover {
  background: var(--color-bg-light);
}

.contact-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.contact-modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  padding-right: 30px;
}

.contact-modal-subtitle {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* --- Modal Form --- */
.contact-modal-form .form-group {
  margin-bottom: 18px;
}

.contact-modal-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.contact-modal-form .form-label .required {
  color: var(--color-danger);
  margin-left: 2px;
}

.contact-modal-form .form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-white);
  font-family: var(--font-body);
}

.contact-modal-form .form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,106,175,0.1);
}

.contact-modal-form .form-input::placeholder {
  color: var(--color-text-muted);
}

/* --- Captcha --- */
.captcha-box {
  background: var(--color-bg-light);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.captcha-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.captcha-label svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.captcha-math {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-math-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.captcha-math-input {
  width: 80px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  outline: none;
  background: var(--color-white);
}

.captcha-math-input:focus {
  border-color: var(--color-primary);
}

.captcha-refresh {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.captcha-refresh:hover {
  background: var(--color-border-light);
}

.captcha-refresh svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.captcha-verified {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-success);
}

.captcha-verified.show {
  display: flex;
}

.contact-modal-form .form-submit {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-modal-form .form-submit:hover {
  background: var(--color-primary-dark);
}

.contact-modal-form .form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Contact Revealed State --- */
.contact-revealed-box {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.contact-revealed-box.show {
  display: block;
}

.contact-revealed-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--color-success);
}

.contact-revealed-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 16px;
}

.contact-revealed-detail {
  background: #f0fff4;
  border: 1px solid var(--color-success);
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: left;
  margin-bottom: 16px;
}

.contact-revealed-detail p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 6px;
}

.contact-revealed-detail strong {
  color: var(--color-text);
}

.contact-revealed-detail a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
}

.contact-revealed-luck {
  font-size: 14px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* --- Detail Page Responsive --- */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    order: -1;
  }
  .apply-box {
    position: static;
  }
  .mobile-sticky-apply {
    display: block;
  }
}

@media (max-width: 768px) {
  .detail-layout {
    padding: 24px 16px 80px;
  }
  .detail-title {
    font-size: 22px;
  }
  .detail-breadcrumb {
    padding: 8px 16px 0;
    font-size: 12px;
  }
  .detail-section h2 {
    font-size: 18px;
  }
  .detail-pagination {
    flex-direction: column;
  }
  .detail-pagination a {
    max-width: 100%;
    width: 100%;
  }
}

/* ==========================================
   Subpage Content Utilities
   ========================================== */

/* City grid (teach-in pages) */
.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.city-card {
  background: var(--color-bg-light);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
}

/* Checklist cards (guide pages) */
.checklist-card {
  background: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1rem;
}

/* Step cards (start-here page) */
.start-card {
  background: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--color-primary);
}

.start-card h3 {
  margin-bottom: 0.5rem;
}

/* Button row */
.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--color-bg-light);
  transition: background 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.faq-q:hover {
  background: var(--color-bg-gray);
}

.faq-a {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.faq-a.open {
  max-height: 600px;
  padding: 1rem 1.25rem;
}

/* --- Responsive for subpage utilities --- */
@media (max-width: 640px) {
  .city-grid {
    grid-template-columns: 1fr;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-header p {
    font-size: 0.9rem;
  }

  .container-narrow h2 {
    font-size: 1.3rem;
  }

  .container-narrow h3 {
    font-size: 1.05rem;
  }

  .container-narrow p,
  .container-narrow li {
    font-size: 0.9rem;
  }
}

/* ==========================================
   Mobile Drawer Panel
   ========================================== */
.drawer-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.drawer-mask.open { opacity: 1; }

.drawer-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--color-white);
  z-index: 1600;
  transition: right 0.25s ease;
  padding: 20px;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.drawer-panel.open { right: 0; }

.drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.2s;
}
.drawer-close:hover { background: var(--color-bg-light); }

.drawer-nav {
  list-style: none;
  margin-top: 40px;
}
.drawer-nav li { margin-bottom: 0; }
.drawer-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
}
.drawer-nav a:hover { color: var(--color-primary); }
.drawer-nav .drawer-cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 700;
  border: none;
  text-align: center;
  width: 100%;
}
.drawer-nav .drawer-cta:hover { background: var(--color-primary-dark); color: var(--color-white); }

/* ==========================================
   Post Job Modal
   ========================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.2s;
}
.modal-close:hover { background: var(--color-bg-light); }
.modal-close svg { width: 18px; height: 18px; stroke: currentColor; }

.modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  padding-right: 30px;
}
.modal-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.form-group label .required {
  color: var(--color-danger);
  margin-left: 2px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-white);
  font-family: var(--font-body);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,106,175,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}
.form-group .textarea-lg {
  min-height: 140px;
  resize: vertical;
}

.form-radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}
.form-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}
.form-radio-group input[type="radio"] {
  accent-color: var(--color-primary);
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 24px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.5;
}
.form-info-box svg {
  flex-shrink: 0;
  stroke: var(--color-text-muted);
  margin-top: 1px;
}

/* Captcha in modal */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.captcha-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.captcha-input {
  width: 80px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  outline: none;
  background: var(--color-white);
}
.captcha-input:focus { border-color: var(--color-primary); }
.captcha-verified {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-success);
}
.captcha-verified.show { display: flex; }
.captcha-refresh {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.2s;
}
.captcha-refresh:hover { background: var(--color-border-light); }

/* Submit Button */
.btn-submit {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--color-primary-dark); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-submit.btn-cooldown {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}
.btn-submit.btn-cooldown::after {
  content: attr(data-countdown);
  margin-left: 8px;
  font-weight: 400;
}

/* Modal Success */
.modal-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.modal-success.show { display: block; }
.modal-success-icon {
  width: 56px;
  height: 56px;
  background: #e6f5ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.modal-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-success);
}
.modal-success h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-success);
}
.modal-success p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ==========================================
   Country Search Select
   ========================================== */
.country-select-wrap {
  display: none;
  position: relative;
  margin-top: 8px;
}
.country-select-wrap.show { display: block; }

.country-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--color-white);
  font-family: var(--font-body);
}
.country-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,106,175,0.1);
}

.country-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: var(--color-white);
  border: 1.5px solid var(--color-primary);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.country-dropdown.open { display: block; }

.country-option {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s;
}
.country-option:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.country-selected {
  display: none;
  padding: 10px 16px;
  background: var(--color-bg-light);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
}
.country-selected::before {
  content: '\2713  ';
  color: var(--color-success);
}
.country-selected:hover {
  background: var(--color-border-light);
}

/* ==========================================
   Partner Button Style
   ========================================== */
.btn-partner {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-partner:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================
   Nav Post Job Button
   ========================================== */
.nav-post-job-btn {
  white-space: nowrap;
}

/* ==========================================
   Contact Form Page Styles
   ========================================== */
.page-banner {
  background: linear-gradient(135deg, var(--color-dark-hero-bg) 0%, #1e3a5f 100%);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  text-align: center;
}
.page-banner h1 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}
.page-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.form-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ==========================================
   Improved Mobile Responsiveness
   ========================================== */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }

  .main-nav {
    display: none !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-box {
    padding: 24px 16px;
    max-height: 95vh;
    border-radius: var(--border-radius);
  }

  .drawer-panel {
    width: 260px;
    right: -260px;
  }

  .page-banner h1 { font-size: 1.6rem; }
  .page-banner p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .modal-box {
    padding: 20px 14px;
  }
  .modal-title { font-size: 18px; }
  .form-radio-group {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================
   Wider Detail Layout
   ========================================== */
.detail-layout-wide {
  max-width: 1200px;
}
.detail-layout-wide .detail-main {
  max-width: 780px;
}

/* ==========================================
   Redesigned Contact Modal (OETJobs unique)
   ========================================== */
.contact-modal-wide {
  max-width: 560px;
}

.contact-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-modal-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-modal-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-white);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Nationality Searchable Select */
.nationality-select-wrap {
  position: relative;
}
.nationality-search {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-white);
  font-family: var(--font-body);
}
.nationality-search:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,106,175,0.1);
}
.nationality-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 180px;
  overflow-y: auto;
  background: var(--color-white);
  border: 1.5px solid var(--color-primary);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.nationality-dropdown.open { display: block; }
.nationality-selected {
  display: none;
  padding: 10px 16px;
  background: var(--color-bg-light);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  margin-top: 6px;
}
.nationality-selected::before {
  content: '\2713  ';
  color: var(--color-success);
}

/* Revealed Contact (Card-based layout) */
.revealed-success-header {
  text-align: center;
  margin-bottom: 24px;
}
.revealed-check-circle {
  width: 56px;
  height: 56px;
  background: #e6f5ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.revealed-check-circle svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-success);
}
.revealed-success-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 4px;
}
.revealed-success-header p {
  font-size: 14px;
  color: var(--color-text-light);
}

.revealed-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.revealed-card {
  background: #f0fff4;
  border: 1.5px solid #c6f6d5;
  border-radius: var(--border-radius);
  padding: 14px 18px;
  transition: border-color 0.2s;
}
.revealed-card:hover {
  border-color: var(--color-success);
}
.revealed-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.revealed-card-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  word-break: break-all;
}
.revealed-card-value:hover {
  text-decoration: underline;
}

.revealed-tip {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}
.revealed-tip strong {
  color: var(--color-text);
}

@media (max-width: 480px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================
   Blog Card Grid
   ========================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 2.5rem;
}

.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.blog-card-meta time {
  color: var(--color-text-muted);
}

.blog-card-sep {
  color: var(--color-border);
}

.blog-card-read {
  color: var(--color-text-muted);
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--color-primary);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.2s;
}

.blog-card-link:hover {
  gap: 10px;
  text-decoration: none;
}

.blog-card-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

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

/* ==========================================
   Prev/Next Navigation Buttons
   ========================================== */
.detail-pagination .pag-prev,
.detail-pagination .pag-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.detail-pagination .pag-prev:hover,
.detail-pagination .pag-next:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  text-decoration: none;
}
.detail-pagination .pag-prev svg,
.detail-pagination .pag-next svg {
  stroke: currentColor;
}
