:root {
  /* Corporate Green Palette */
  --primary-color: #1a5c36;
  /* Deep Corporate Green */
  --primary-dark: #123f25;
  --primary-light: #2e8b57;
  --accent-color: #d4af37;
  /* Gold/Bronze for subtle highlights */

  /* Neutral Palette */
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  /* Shadows & Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Font Families */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body) !important;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==================== NAVBAR ==================== */
/* ==================== NAVBAR ==================== */
.navbar {
  background: #cbd5e1;
  /* Silver/Gray */
  border-bottom: 1px solid #94a3b8;
  box-shadow: var(--shadow-sm);
  padding: 0;
  /* Removing padding for standard height */
  margin-bottom: 0;
  min-height: 50px;
  /* Standard CKAN height */
}

.navbar .brand,
.navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: #1e293b;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 5px 15px;
  /* Adjust for smaller height */
  height: 50px;
  line-height: 50px;
  /* Vertically center */
  display: flex;
  align-items: center;
}

.navbar-brand img {
  max-height: 35px;
  /* Ensure logo fits in 50px */
  width: auto;
}

.navbar .nav>li>a {
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 15px 15px;
  /* Center text in 50px bar */
  transition: all 0.2s ease;
  line-height: 20px;
}

.navbar .nav>li>a:hover {
  color: #000000;
  background: rgba(255, 255, 255, 0.2);
}

/* Active state for nav items if available */
.navbar .nav>li.active>a {
  color: #000000;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

/* ==================== HERO SECTION ==================== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--bg-white);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.05;
  pointer-events: none;
}

.hero h1 {
  color: var(--bg-white);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

/* Search Box */
.hero-search-box form {
  display: flex;
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 6px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
}

.hero-search-box input[type="text"] {
  border: none;
  flex-grow: 1;
  padding: 14px 28px;
  font-size: 1.05rem;
  outline: none;
  background: transparent;
  color: var(--text-main);
}

.hero-search-box button {
  background: var(--primary-color);
  color: var(--bg-white);
  border: none;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-search-box button:hover {
  background: var(--primary-dark);
}

/* ==================== MODULE / CARDS ==================== */
/* Container spacing */
.module-content {
  margin-top: 2rem;
}

/* Common Section Titles */
.module-heading,
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  display: inline-block;
  min-width: 200px;
}

/* Dataset List Items as Cards */
.dataset-item,
.dataset-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dataset-item:hover,
.dataset-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.dataset-heading,
.dataset-card h5 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.4;
  font-size: 1.25rem;
}

.dataset-heading a,
.dataset-card h5 a {
  color: var(--primary-color);
  text-decoration: none;
}

.dataset-heading a:hover,
.dataset-card h5 a:hover {
  color: var(--primary-dark);
}

.dataset-content,
.dataset-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.dataset-resources ul,
.dataset-tags {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dataset-resources li a,
.dataset-tags .tag {
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
}

.dataset-org {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
  background: var(--bg-white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ==================== BUTTONS & UTILS ==================== */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s;
}

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

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

.btn-default {
  background-color: var(--bg-white);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-default:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

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

/* ==================== FOOTER ==================== */
.site-footer {
  background: #0f172a;
  /* Slate 900 */
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.site-footer h4 {
  color: var(--bg-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ==================== CKAN OVERRIDES ==================== */
/* Hide breadcrumb on home if needed or style it */
.breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
}

/* Facet box styling */
.module-narrow .module-heading {
  font-size: 1.1rem;
  border-bottom: none;
}

.nav-simple>li>a {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}