:root {
    --bg-color: #0b0e14;
    --text-color: #e0e0e0;
    --accent-color: #4caf50; /* Farming Green */
    --font-main: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 10px;
    margin-bottom: 60px;
    line-height: 1.6;
}

header {
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

#hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/hero-bg.jpg'); */
    background-size: cover;
}

/* Tooltip Container */
.custom-tooltip {
  position: relative;
  display: block;          /* Changed from inline-block to block so flexbox doesn't collapse it */
  margin: 1.5rem auto;     /* Ensures healthy margin spacing inside the hero framework */
  cursor: help;            /* Interactive help cursor */
  width: max-content;      /* Forces container to perfectly wrap the <h4> text layout width */
}

/* Ensure the text inside the header is visible and clear */
.custom-tooltip h4 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.2rem;
}

/* Tooltip Text Popup Box */
.custom-tooltip .custom-tooltiptext {
  visibility: hidden;
  display: block;          /* Keeps structure predictable */
  width: 340px;            /* Gives account bullet points comfortable horizontal space */
  background-color: #1a2332; 
  color: #e0e0e0;
  text-align: left;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid var(--accent-color); /* Correctly references your Farming Green root variable */

  /* Positioning mechanics */
  position: absolute;
  z-index: 1000;           /* High z-index explicitly pushes it on top of forms and underlying layers */
  bottom: 135%;            /* Suspends it neatly clear above the <h4> header line */
  left: 50%;
  transform: translateX(-50%); /* Keeps the wider description panel perfectly centered */

  /* Smooth fade-in animation transition */
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  
  /* Prevents text content inside the tooltip from inheriting parent alignments */
  white-space: normal;
}

/* Tooltip Arrow Pointer underneath the box */
.custom-tooltip .custom-tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a2332 transparent transparent transparent;
}

/* Display trigger when mouse hovers over the container */
.custom-tooltip:hover .custom-tooltiptext {
  visibility: visible;
  opacity: 1;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s;
    margin: 10px;
}

.cta-button:hover {
    transform: scale(1.05);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}