/* General Styles */
html, body {
  height: 100%; /* Ensures the body fills the viewport height */
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF; /* White background */
}

/* Green hollow bullets */
.list-group {
  list-style-type: none; /* Remove default bullets */
  padding: 0; /* Optional: remove padding if needed */
  margin: 0; /* Optional: remove margin if needed */
}

.list-group li {
  position: relative;
  padding-left: 1.5rem; /* Add space for the custom bullet */
  margin-bottom: 0.5rem; /* Add spacing between list items */
  font-size: 1rem; /* Optional: Adjust font size */
}

.list-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem; /* Adjust this to align the circle vertically */
  width: 0.5rem; /* Circle width */
  height: 0.5rem; /* Circle height */
  border: 2px solid var(--bs-success); /* Use Bootstrap's success green for the border */
  border-radius: 50%; /* Make it a hollow circle */
  background-color: transparent; /* Ensure the inside is transparent */
}

/* Remove default bullets from nested ULs */
.list-group li ul {
  list-style-type: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Hide the hollow bullet for any li that contains a nested ul */
.list-group li:has(> ul)::before {
  display: none;
  content: none;
}

/* Apply solid green bullets to nested list items */
.list-group li ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.list-group li ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--bs-success); /* Solid green */
  border-radius: 50%;
}

/* Custom Text Selection */
::selection {
  background-color: #198754; /* Matches the green used for the header */
  color: white; /* Keeps the text color white */
}

::-moz-selection {
  background-color: #198754; /* Matches the green used for the header */
  color: white; /* Keeps the text color white */
}

/* Layout with Flexbox */
body {
  display: flex;
  flex-direction: column; /* Stacks header, main, and footer vertically */
  min-height: 100vh; /* Ensures the body is at least as tall as the viewport */
}

/* Hero Section Styling */
.hero-section {
  height: 80vh; /* Adjust height as needed */
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('./images/paidetres/front-paidetres-2018.jpg') no-repeat center center/cover;
  background-attachment: fixed; /* Makes the image stay in place during scroll */
  flex-shrink: 0; /* Ensures the hero section is not flexed or resized */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Align text to the bottom */
  color: white;
  text-align: center; /* Left-align the text */
  padding: 0 10%; /* Add 10% margin on left and right */
  padding-bottom: 20px; /* Add spacing from the bottom */
}

.hero-section.alternate {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('./images/rik_and_tel/front.jpg') no-repeat center center/cover;
}

.hero-section .container {
  padding: 0 15px; /* Align with the container spacing */
}

.hero-section h1 {
  font-size: 3rem; /* Adjust heading size */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Shadow for readability */
  margin: 0;
}

.hero-section .hero-divider {
  border: 0; /* Remove default border styling */
  height: 5px; /* Set the thickness of the line */
  background-color: white; /* Set the line color to white */
  width: 50%; /* Adjust the width of the divider */
  margin: 20px auto; /* Center the line and add vertical spacing */
  opacity: 1;
}

/* Main Content */
main {  
  flex: 1; /* Allows the main content to expand and push the footer down if needed */
  padding-top: 100px; /* Accounts for the fixed header */
}

main.has-hero {
  padding-top: 0; /* No extra spacing needed if a top image is used */
}

main.no-hero {
  padding-top: 100px; /* Add spacing if no hero section is present */
}

.partners-section {
  background-color: #f9f9f9; /* Light background for contrast */
  padding: 3rem 0; /* Top and bottom padding */
}

/* Partners Section */
.partner-box img {
  width: 150px; /* Ensure uniform size */
  height: 150px; /* Ensure uniform size */
  object-fit: cover; /* Keep the aspect ratio */
  border: 2px solid #198754; /* Add a border for visual appeal */
  padding: 5px;
}

.partner-box h5 {
  font-size: 1.2rem;
  color: #333; /* Neutral text color */
  margin-top: 10px;
}

/* Header Styles */
.custom-header {
  background-color: #198754; /* Bootstrap's success green */
  color: white;
  padding: 10px 20px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  position: fixed; /* Fixed header */
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease-in-out; /* Add this for smooth hide/show */
}

.custom-header.hidden {
  transform: translateY(-100%);
}

/* Logo Styling */
.custom-header .logo {
  height: 100px;
  width: auto;
}

/* Navigation Styles */
.custom-header .navbar-nav .nav-item {
  margin-right: 2.5rem; /* Adjust to double the existing spacing */
}

.custom-header .navbar-nav .nav-item:last-child {
  margin-right: 0;
}

.custom-header .nav-link {
  color: white; /* Default text color for navigation links */
  font-size: 16px;
  font-weight: bold;
  text-decoration: none; /* Remove underline */
  transition: color 0.3s ease-in-out;
}

.custom-header .nav-link:hover {
  color: #A9DFBF; /* Light green hover effect */
  text-decoration: none;
}

.custom-header .navbar-toggler-icon {
  filter: invert(100%); /* Ensure toggle icon is visible on dark background */
}

/* Footer Styles */
footer {
  background-color: #333333; /* Charcoal gray */
  color: white;
  padding: 30px 20px;
}

footer h5 {
  color: #198754; /* Bootstrap's success green */
  margin-bottom: 8px;
}

footer p,
footer form label {
  font-size: 1rem;
  margin-bottom: 8px;
}

footer form .form-control {
  font-size: 0.9rem;
}

.form-check-input {
  transform: scale(1.2); /* Slightly enlarge the checkbox */
  margin-top: 0; /* Ensures perfect alignment with the label */
}

.form-check-label {
  font-size: 0.9rem; /* Optional: Adjust the label font size */
  line-height: 1.2; /* Ensures proper vertical alignment */
}

.grecaptcha-badge {
  visibility: hidden;
}

footer form .btn {
  background-color: #198754; /* Light green button */
  color: white; /* Charcoal text */
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
}

footer form .btn:hover {
  background-color: #146c43; /* Slightly darker green hover effect */
  color: white;
}

.toast-centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1055; /* Ensure it's on top of other elements */
  opacity: 1; /* Ensure visibility */
}

/* Footer Link Styling */
footer a {
  color: white; /* Ensure footer links are white */
  text-decoration: none;
}

footer a:hover {
  color: #198754; /* Light green hover effect */
}

/* Copyright Section */
footer .text-center {
  font-size: 0.9rem;
  margin-top: 10px; /* Halved spacing above copyright */
  color: #CCCCCC; /* Lighter gray */
}

/* Footer Responsive Adjustments */
footer .form-check-label {
  font-size: 0.8rem;
}

footer .copyright {
  text-align: center;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #198754; /* Light green for subtlety */
}

.social-icon {
  width: 3.0rem;
  height: 3.0rem;
  border: 2px solid transparent; /* Transparent border initially */
  border-radius: 5px; /* Optional: rounded corners */
  transition: border-color 0.3s ease; /* Smooth transition */
  border-color: rgba(255, 255, 255, 0.151);
}

.social-icon:hover {
  border-color: #28a745; /* Green border on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .custom-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .custom-header .nav-link {
    font-size: 14px; /* Adjust font size for smaller screens */
  }

  .hero-section {
    background-attachment: scroll !important;
    background-size: cover !important; /* Ensures the image scales properly */
    padding-top: 220px;
  }
  
  footer {
    text-align: center;
  }

  .footer .d-flex {
    justify-content: center !important; /* Center align the icons on small screens */
  }

  .partner-box img {
    width: 120px;
    height: 120px;
  }

  .partner-box h5 {
    font-size: 1rem;
  }
}

/* Cookie Banner Styling */
.cookie-banner {
  visibility: visible; /* Hides the banner but maintains its layout */
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  padding: 15px 20px;
  background-color: #444444;
  color: white;
}

.cookie-banner a {
  color: #A9DFBF; /* Light green link */
}

.cookie-banner a:hover {
  color: white; /* White on hover */
}

/* News Articles Styling */
.news-articles .article {
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.news-articles .btn-link {
  color: #198754; /* Match your green theme */
  text-decoration: none;
}

.news-articles .btn-link:hover {
  text-decoration: underline;
}