:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --light-bg: #f8f9fa;
  --dark-bg: #212529;
  --text-dark: #212529;
  --text-light: #6c757d;
  --border-color: #dee2e6;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #fff;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
  background-color: #004085;
  border-color: #004085;
}

.text-primary {
  color: var(--primary-color) !important;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d82 100%);
}

.card {
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
}

.feature-box {
  padding: 20px;
  border-radius: 8px;
  background-color: var(--light-bg);
  transition: all 0.3s ease;
}

.feature-box:hover {
  background-color: #e9ecef;
}

.cookie-banner {
  background-color: var(--dark-bg);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
  color: #ccc;
}

.cookie-banner .btn-outline-primary {
  color: white;
  border-color: white;
}

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

footer {
  margin-top: auto;
}

footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .hero-section .row {
    flex-direction: column-reverse;
  }

  .hero-section img {
    margin-bottom: 20px;
  }

  .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .card-img-top {
    height: 200px;
  }

  .cookie-banner .col-md-4 {
    margin-top: 15px;
  }

  .text-md-right {
    text-align: left !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

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

  .card {
    margin-bottom: 15px;
  }

  footer .row {
    text-align: center;
  }

  footer .col-md-6 {
    margin-bottom: 15px;
  }
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.form-control {
  border-color: var(--border-color);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.custom-control-label {
  cursor: pointer;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.rounded {
  border-radius: 8px;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
