:root {
  /* Professional Light Theme */
  --bg: #f8f9fa; /* Light Gray Background */
  --card: #ffffff; /* White Card */
  --text: #212529; /* Dark text */
  --muted: #6c757d; /* Muted gray for secondary text */
  --border: #e9ecef; /* Light border */
  --accent: #007bff; /* Corporate Blue Accent */
  --accent-light: #e6f2ff; /* Very light accent background */
  --header-bg: #f8f9fa; /* Header background */
}

[data-theme="dark"] {
  /* Professional Dark Theme */
  --bg: #121212;
  --card: #1e1e1e;
  --text: #f8f9fa;
  --muted: #adb5bd;
  --border: #343a40;
  --accent: #4da6ff; /* Lighter blue for dark theme */
  --accent-light: #2c3e50;
  --header-bg: #1e1e1e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* Base Headings */
h1, h2, h3 {
    line-height: 1.2;
    margin-top: 0.5em;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* HEADER */
.topbar {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

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

.logo {
  max-height: 38px;
}

.theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.3s;
}

.theme-toggle:hover {
    background: var(--accent-light);
}

.theme-toggle span {
    display: none; /* Hide label for cleaner look */
}


/* HERO & INTRO */
.page-intro {
  padding: 60px 0 40px;
  text-align: center;
}

.page-intro h1 {
  font-size: 44px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-intro p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

/* CARDS & SECTIONS */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card h2 {
  font-size: 26px;
  font-weight: 600;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    font-weight: 500;
}

/* JOB LIST */
.job-list {
  display: flex;
  flex-direction: column;
}

.job-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  transition: background 0.2s, transform 0.2s;
}

.job-row:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.job-row h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--accent);
}

.job-row p {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
}

.job-meta {
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
  align-self: flex-start; /* Aligns meta to the top */
  padding-top: 5px;
  font-weight: 500;
}

@media (max-width: 800px) {
  .job-row {
    flex-direction: column;
  }
  .job-meta {
    align-self: flex-start;
    padding-top: 10px;
  }
}


/* GRIDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* INFO BOXES (For About page) */
.info-box {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg); /* Lighter background for contrast */
}

.info-box h3 {
    color: var(--accent);
    margin-top: 0;
}

/* LIST */
.clean-list {
  padding-left: 20px;
  list-style: none; /* Remove default bullets */
}

.clean-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
}

.clean-list li:before {
    content: "•"; /* Custom bullet point */
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* CTA */
.cta {
  text-align: center;
  padding: 60px 20px;
}

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 17px;
  transition: background 0.3s, transform 0.2s;
  border: none;
}

.btn-primary:hover {
    background: #0056b3; /* Darker blue on hover */
    transform: translateY(-1px);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  padding: 20px;
}

/* JOB PAGE SPECIFIC STYLES */

.job-page main {
    padding: 0; /* Card padding is inside sections */
}

.job-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    border-bottom: 1px solid var(--border);
    background: var(--accent-light);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.job-header .brand-logo {
    max-height: 70px;
    align-self: flex-start;
}

.job-title {
    font-size: 32px;
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--accent);
}

.job-header .lead {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 15px;
}

.job-page .meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    background: var(--card);
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.accent-line {
    height: 4px;
    background: var(--accent);
    margin-bottom: 30px;
}

.section {
    padding: 0 30px 30px;
}

.section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 15px;
}

.section ul {
    list-style: disc;
    padding-left: 20px;
}

.section li {
    margin-bottom: 10px;
}

.cta-section {
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
}

.apply-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.job-footer {
    padding: 15px 30px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .job-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .job-title {
        font-size: 26px;
    }
    .job-header .lead {
        font-size: 16px;
    }
    .job-page .meta {
        flex-direction: column;
    }
    .section, .cta-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}