/* General Body Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(to right, #e0eafc, #cfdef3);
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  padding-top: 120px; /* Add padding to prevent content from being hidden by the sticky header */
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure body takes at least full viewport height */
}

.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  background-color: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 10px;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
  }
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Ensure the header is on top of other content */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a drop shadow for a 3D effect */
}

.navbar-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  padding: 1rem 2rem;
  margin: 0 auto; /* Center the navbar */
  background: linear-gradient(to right, #00008b, #B8860B);
}

.navbar-brand-custom {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 1.5em; /* Adjust as needed */
  margin-right: 0.5em;
}

.nav-links-custom {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-links-custom a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s;
}

.nav-links-custom a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
}

.navbar-toggler-custom {
  display: none; /* Hidden by default on larger screens */
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.hamburger-icon {
  display: block;
}

.navbar-collapse-custom {
  display: flex;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

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

  .navbar-toggler-custom {
    display: block; /* Show on small screens */
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .navbar-collapse-custom {
    display: none; /* Hidden by default on small screens */
    width: 100%;
    flex-direction: column;
    max-height: 0;
  }

  .navbar-collapse-custom.show {
    display: flex; /* Show when toggled */
    max-height: 500px; /* Adjust as needed */
    width: 100%; /* Ensure full width on show */
  }

  .nav-links-custom {
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-links-custom li {
    width: 100%;
    text-align: center;
  }

  .nav-links-custom a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* Main Content Styles */
.main-content {
  padding: 3rem 1rem;
  flex-grow: 1; /* Allow main content to grow and push footer down */
}

.container-custom {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-center-custom {
  text-align: center;
}

.mb-4-custom {
  margin-bottom: 1.5rem;
}

.display-4-custom {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.lead-custom {
  font-size: 1.25rem;
  font-weight: 300;
}

.btn-custom {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-warning-custom {
  color: #000;
  background-color: #ffc107;
  border-color: #ffc107;
}

.btn-warning-custom:hover {
  color: #000;
  background-color: #ffcd39;
  border-color: #ffcb30;
}

.btn-primary-custom {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary-custom:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-lg-custom {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.3rem;
}

/* Section Styles */
.section-custom {
  padding: 3rem 1rem;
}

.row-custom {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  justify-content: center; /* Center columns within the row */
}

.g-4-custom {
  gap: 1.5rem;
}

.col-md-custom {
  flex: 0 0 auto;
  width: 100%;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .col-md-custom {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-md-custom {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
}

.card-custom {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
  background-clip: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
  border-radius: 0.5rem; /* Rounded corners */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Softer shadow */
  backdrop-filter: blur(5px); /* Blur effect */
  -webkit-backdrop-filter: blur(5px); /* For Safari */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  min-height: 300px; /* Increased consistent height for cards */
}

.card-custom:hover {
  transform: scale(1.03); /* Zoom in effect */
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.card-body-custom {
  flex: 1 1 auto;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute space between title, text, and button */
}

.card-text-custom {
  margin-bottom: 1rem;
  flex-grow: 1; /* Allow text to grow and push button down */
}

.card-title-custom {
  margin-bottom: 0.5rem;
}

.card-text-custom {
  margin-bottom: 1rem;
}

.bg-light-custom {
  background-color: #f8f9fa !important;
}

.text-dark-custom {
  color: #212529 !important;
}

.lined-paper-background {
  background-color: #fdfdfd !important; /* Paper-like background */
  background-image: linear-gradient(#eee .1em, transparent .1em); /* Horizontal lines */
  background-size: 100% 1.2em; /* Line spacing */
}

.blockquote-custom {
  margin-bottom: 1rem;
  font-size: 1.25em;
}

.blockquote-footer-custom {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.875em;
  color: #6c757d;
}

.list-unstyled-custom {
  padding-left: 0;
  list-style: none;
}

.form-label-custom {
  margin-bottom: 0.5rem;
}

.form-control-custom {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.mb-3-custom {
  margin-bottom: 1rem;
}

.mt-5-custom {
  margin-top: 3rem;
}

/* Footer Styles */
.footer-gradient {
  background: linear-gradient(to right, #006400, #8b0000);
  padding: 1rem;
  color: white;
  text-align: center;
  position: relative;
}

.lead-custom {
  font-size: 1.25rem;
  font-weight: 300;
}

.footer-link-custom {
  color: white;
  text-decoration: none;
}

.footer-link-custom:hover {
  text-decoration: underline;
}