/* ================================
   Global Variables
   ================================ */
:root {
  --primary: #2b6cb0; /* Deep blue */
  --secondary: #38a169; /* Green accent */
  --accent: #f6ad55; /* Warm highlight */
  --light-bg: #f8f9fa; /* Page background */
  --text-color: #333333;
  --white: #ffffff;
  --border: #e5e7eb;
  --font-family: "Calibri", "Segoe UI", Arial, sans-serif;
  --page-banner-bg: #e2e8f0; /* Light gray-blue */
}

/* ================================
    Base Styles
================================ */
body {
  font-family: var(--font-family);
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--primary);
  font-weight: 600;
}

/* Utility */
.section {
  padding: 60px 0;
}

.btn-primary {
  background-color: var(--primary);
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary);
}

/* ================================
    Navbar
================================ */
.navbar {
  background-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .show > .nav-link {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .show > .nav-link {
  border-bottom: 4px solid var(--secondary);
  border-radius: 0 !important;
}

.dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ================================
    Hero Section
================================ */
.hero {
  color: var(--primary);
  text-align: center;
  padding: 60px 20px; /* more balanced vertical space */
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero .btn {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero .btn:hover {
  background-color: var(--secondary);
  color: var(--white);
}

/* ================================
    Calculator Cards
================================ */
.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.calc-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.main-content-wrapper {
  min-height: 70vh; /* Ensure footer stays at bottom */
}

.page-banner {
  background-color: var(--page-banner-bg);
  border-bottom: 1px solid var(--border);
}

.btn-primary{
  background: var(--secondary); border-color: var(--secondary);
}

  #cookie-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--primary);
      color: var(--white);
      padding: 15px;
      display: none;
      z-index: 99999;
      font-size: 14px;
  }
  #cookie-banner .cb-container {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 15px;
      flex-wrap: wrap;
  }
  #cookie-banner button {
      background:var(--secondary);
      border: 0;
      padding: 8px 16px;
      color: var(--white);
      font-weight: 600;
      border-radius: 4px;
      cursor: pointer;
  }
  #cookie-banner a {
      color: var(--accent);
      text-decoration: underline;
  }

/* ================================
  Footer
================================ */
footer {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 30px 10px;
}

footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ================================
    Responsive Tweaks
================================ */
@media (max-width: 768px) {
  .hero {
    padding: 70px 15px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .btn {
    font-size: 11pt;
  }
  .navbar-nav .nav-link {
    padding: 8px 12px;
  }
}
