:root {
  /* Colors */
  --primary-color: #00204A; /* Dark Blue */
  --secondary-color: #8A8B8C; /* Gray */
  --background-color: #F8F8F8; /* Light Gray */
  --footer-bg-color: #1A1A1A; /* Dark Gray */
  --button-color: #B1970F; /* Gold */
  --text-primary: #333333;
  --text-secondary: #555555;
  --heading-color: var(--primary-color);

  --section-bg-1: #F8F8F8;
  --section-bg-2: #EEEEEE;
  --section-bg-3: #E0E0E0;
  --section-bg-4: #D0D0D0;
  --section-bg-5: #C0C0C0;

  /* Fonts */
  --font-family-primary: 'Montserrat', sans-serif;
  --font-family-secondary: 'Open Sans', sans-serif;

  /* Spacing & Sizing */
  --border-radius: 5px;
  --spacing-unit: 1rem; /* 16px */
  --line-height-base: 1.7;

  /* Shadows */
  --box-shadow-base: 0 4px 8px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-speed: 0.3s ease-in-out;
}

/* Base Styles */
body {
  font-family: var(--font-family-secondary);
  color: var(--text-primary);
  background-color: var(--background-color);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-primary);
  color: var(--heading-color);
  margin-top: 0;
  margin-bottom: var(--spacing-unit);
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-unit);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--button-color);
  text-decoration: underline;
}

/* Custom Button Styles (leveraging Bootstrap's .btn base) */
.btn-primary,
.btn-custom {
  background-color: var(--button-color);
  border-color: var(--button-color);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-family: var(--font-family-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed);
  box-shadow: var(--box-shadow-base);
}

.btn-primary:hover,
.btn-custom:hover {
  background-color: darken(var(--button-color), 10%); /* Adjust for darker gold */
  border-color: darken(var(--button-color), 10%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
  transition: all var(--transition-speed);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-base);
}

/* Forms - Input & Textarea */
.form-control {
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
  font-family: var(--font-family-secondary);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 32, 74, 0.25); /* Primary color with transparency */
  outline: 0;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-base);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  overflow: hidden; /* Ensure image corners are rounded */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card-img-top {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

/* Section Backgrounds */
.section-bg-1 {
  background-color: var(--section-bg-1);
}

.section-bg-2 {
  background-color: var(--section-bg-2);
}

.section-bg-3 {
  background-color: var(--section-bg-3);
}

.section-bg-4 {
  background-color: var(--section-bg-4);
}

.section-bg-5 {
  background-color: var(--section-bg-5);
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  background-color: #fff; /* Ensure contrast with dark blue text */
  box-shadow: var(--box-shadow-base);
}

.navbar-brand {
  font-family: var(--font-family-primary);
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
  color: var(--primary-color);
  font-family: var(--font-family-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all var(--transition-speed);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--button-color);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--button-color);
  transition: all var(--transition-speed);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
  font-family: var(--font-family-secondary);
}

.footer h5 {
  color: #fff;
  font-family: var(--font-family-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: var(--button-color);
  text-decoration: none;
}

.footer .social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin-right: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all var(--transition-speed);
}

.footer .social-icons a:hover {
  background-color: var(--button-color);
  transform: translateY(-2px);
}

/* Utilities & Spacing */
.py-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .py-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}


/* Cookie Banner Additional Styles for Bootstrap */
.cookie-banner-custom {
    z-index: 1060;
    backdrop-filter: blur(10px);
}

.cookie-banner-custom .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}