:root {
  /* Colors - Sleek Finance/Tech */
  --bg-color: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --primary: #2563eb; /* Tech blue */
  --primary-hover: #1d4ed8;
  --accent: #10b981; /* Emerald/Money green */
  --border-color: #e2e8f0;
  
  --site-width: 1200px;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --header-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

h2 { font-size: 1.75rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: color 0.1s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav a {
  color: var(--text-main);
  font-weight: 500;
}
nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Main Content */
main {
  flex: 1;
  padding: 3rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
  background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('assets/hero_banner.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
  margin-top: -3rem;
  margin-bottom: 3rem;
  color: white;
  border-radius: 0 0 2rem 2rem;
}

.hero h1 {
  color: white;
  font-size: 2.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #e2e8f0;
}

/* UI Elements */
.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background-color: var(--primary-hover); color: white; text-decoration: none; }

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Salary Table */
.salary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}
.salary-table th {
  background-color: var(--text-main);
  color: white;
  text-align: left;
  padding: 1rem;
  font-weight: 600;
}
.salary-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.salary-table tr:last-child td { border-bottom: none; }
.salary-table tr:hover { background-color: #f1f5f9; }

/* FAQ */
.faq-section {
  margin-top: 3rem;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border-color); }
.faq-item h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.125rem; font-weight: 600; }
.faq-item p { margin-bottom: 0; }

/* Call to Action (Newsletter) */
.cta-box {
  background-color: #0f172a;
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 3rem 0;
}
.cta-box h2 { color: white; margin-top: 0; }
.cta-box p { color: #94a3b8; }
.cta-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.cta-form input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #334155;
  background: #1e293b;
  color: white;
  min-width: 250px;
}
.cta-form button { background-color: var(--accent); color: #0f172a; }
.cta-form button:hover { background-color: #059669; }

/* Ads Placeholders */
.ad-placeholder {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: var(--radius);
}

/* Footer */
footer {
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
  clear: both;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  nav ul { display: none; } /* On a real app we'd add a hamburger menu */
  h1 { font-size: 1.75rem; }
  .cta-form { flex-direction: column; }
}

/* Incremental Search Bar */
.search-container {
  margin-bottom: 2rem;
  max-width: 500px;
}
.search-container input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.search-container input:focus {
  outline: none;
  border-color: var(--primary);
}

/* CSS Bar Chart */
.chart-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.bar-label {
  width: 120px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.875rem;
}
.bar-track {
  flex: 1;
  background-color: var(--border-color);
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  background-color: var(--primary);
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 12px;

  /* Adding a gradient for modern finance tech look */
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
