/* ===== JOBS SECTION STYLING ===== */

:root {
  --primary: #1B365D;
  --accent: #2C5282;
  --gold-light: #C9A96E;
  --text-gray: #64748b;
  --text-light: #94a3b8;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --shadow-soft: 0 4px 20px rgba(27,54,93,0.08);
  --shadow-medium: 0 8px 32px rgba(27,54,93,0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-gray);
  background: #ffffff;
}

body {
  overflow-x: hidden;
}

/* HEADER & NAVIGATION */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  font-weight: 500;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  padding: 10px 0;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.back-link:hover {
  border-bottom-color: var(--accent);
}

/* JOBS GRID / CARDS */
.jobs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px;
}

.jobs-header {
  text-align: center;
  margin-bottom: 50px;
}

.jobs-header h1 {
  font-family: 'Georgia', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--primary);
  margin-bottom: 16px;
}

.jobs-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.job-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.job-card-header {
  margin-bottom: 16px;
}

.job-card-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  color: var(--primary);
}

.job-card-header h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.job-card-header h3 a:hover {
  color: var(--accent);
}

.job-category {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-description {
  flex-grow: 1;
  margin: 0 0 20px 0;
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.job-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.job-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,54,93,0.2);
}

/* JOB DETAIL PAGE */
.job-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px;
}

.job-detail-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border);
}

.job-detail-header h1 {
  font-family: 'Georgia', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--primary);
  margin: 0 0 16px 0;
}

.job-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.job-detail-meta-item {
  padding: 16px;
  background: var(--light-bg);
  border-radius: 8px;
  border-left: 3px solid var(--gold-light);
}

.job-detail-meta-item label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.job-detail-meta-item value {
  display: block;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
}

.job-detail-content {
  margin-bottom: 40px;
  line-height: 1.8;
  color: var(--text-gray);
}

.job-detail-content h2 {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin: 32px 0 16px 0;
}

.job-detail-content p {
  margin-bottom: 16px;
}

.job-detail-content ul,
.job-detail-content ol {
  margin: 16px 0 16px 24px;
}

.job-detail-content li {
  margin-bottom: 8px;
}

.job-detail-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.apply-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.apply-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,54,93,0.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }

  .jobs-container,
  .job-detail-container {
    padding: 40px 20px;
  }

  .jobs-header h1,
  .job-detail-header h1 {
    font-size: 2rem;
  }

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

  .job-detail-meta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .jobs-header h1,
  .job-detail-header h1 {
    font-size: 1.6rem;
  }

  .job-card-meta {
    flex-direction: column;
    gap: 8px;
  }

  .job-detail-header {
    padding-bottom: 20px;
  }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #1B365D 0%, #2C5282 100%);
  color: #fff;
  padding: 16px 26px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,54,93,0.25);
}

.btn-gold {
  background: linear-gradient(45deg, #C9A96E 0%, #D4B074 100%);
  color: #1B365D;
  padding: 16px 26px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201,169,110,0.25);
}

/* ===== JOB HERO ===== */
.job-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 48px 0 44px;
  color: #fff;
}

.job-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.job-hero-back {
  display: inline-block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.job-hero-back:hover {
  color: #fff;
}

.job-category-badge {
  display: inline-block;
  background: rgba(201,169,110,0.2);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(201,169,110,0.4);
}

.job-hero-title {
  font-family: 'Georgia', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
  margin: 0 0 28px;
  line-height: 1.25;
}

.job-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.job-fact {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 12px 18px;
  border-radius: 10px;
  min-width: 130px;
}

.job-fact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.job-fact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hero:hover {
  background: #d4b074;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== JOB CONTENT CONTAINER ===== */
.job-detail-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 60px;
}

/* ===== JOB INTRO ===== */
.job-intro {
  margin-bottom: 28px;
  padding: 22px 26px;
  background: var(--light-bg);
  border-radius: 12px;
  border-left: 4px solid var(--gold-light);
}

.job-intro p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.97rem;
  line-height: 1.8;
}

/* ===== JOB SECTIONS ===== */
.job-section {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.job-section h2 {
  margin: 0 0 18px;
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  position: relative;
  letter-spacing: normal;
}

.job-section h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--gold-light);
}

.job-richtext p {
  margin: 0 0 12px;
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.96rem;
}

.job-richtext p:last-child {
  margin-bottom: 0;
}

.job-richtext ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-gray);
  line-height: 1.8;
}

.job-richtext li {
  margin: 0 0 10px;
  padding-left: 22px;
  position: relative;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-gray);
}

.job-richtext li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  top: 2px;
}

/* ===== JOB MAP ===== */
.job-map {
  margin-bottom: 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.job-map iframe {
  width: 100%;
  height: 280px;
  display: block;
  border: none;
}

.job-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--light-bg);
  font-size: 0.88rem;
  color: var(--text-gray);
}

.job-map-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.job-map-footer a:hover {
  text-decoration: underline;
}

/* ===== JOB DETAIL CTA (dark card) ===== */
.job-detail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 30px 34px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 16px;
  flex-wrap: wrap;
}

.job-detail-cta h3 {
  margin: 0 0 6px;
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
}

.job-detail-cta p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--light-bg);
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE (detail pages) ===== */
@media (max-width: 768px) {
  .job-hero {
    padding: 32px 0 28px;
  }

  .job-hero-inner {
    padding: 0 20px;
  }

  .job-hero-title {
    font-size: 1.7rem;
  }

  .job-hero-facts {
    gap: 10px;
  }

  .job-fact {
    min-width: 0;
    flex: 1 1 calc(50% - 5px);
  }

  .job-detail-container {
    padding: 32px 20px 48px;
  }

  .job-section {
    padding: 22px 20px;
  }

  .job-detail-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
  }

  .btn-hero,
  .job-detail-cta .btn-gold {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .job-hero-title {
    font-size: 1.45rem;
  }

  .job-hero-facts {
    flex-direction: column;
  }

  .job-fact {
    flex: none;
    width: 100%;
  }
}
