/* ======================
   BASE STYLES 
   ====================== */
main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ======================
   NAVIGATION 
   ====================== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 64px;
  padding: 0 2rem;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.90);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown-menu {
  border-radius: 12px;
  border: none;
  margin-top: 8px;
  background-color: rgba(255, 255, 255, 0.98);
}

.dropdown-item {
  border-radius: 8px;
  margin: 4px;
  padding: 8px 16px;
  background-color: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
  background-color: transparent !important;
  transform: none !important;
}

/* ======================
   HERO SECTIONS (Carousel & Video) 
   ====================== */
.hero-media-container {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  max-height: 800px;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-media-container > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Carousel specific */
#carouselExample {
  height: 100%;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  background-color: #f8f9fa;
}

/* Video elements - REMOVED DUPLICATE RULES */
.hero-media-container video,
.hero-media-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  z-index: 2;
}

/* ======================
   CARDS 
   ====================== */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.75rem;
  width: 100%;
  color: #2a7f62;
  font-weight: bold;
}

.card-text {
  width: 100%;
}

/* ======================
   MISSION STATEMENT 
   ====================== */
.mission-statement {
  font-size: 1.35rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}

.mission-statement.lead {
  font-size: 1.5rem;
  font-weight: 500;
}

/* ======================
   BENEFITS LIST 
   ====================== */
.benefits-list {
  font-size: 1.2rem;
  line-height: 1.6;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background-color: rgba(42, 127, 98, 0.05);
  border-radius: 8px;
}
.benefit-item:hover {
  background-color: rgba(42, 127, 98, 0.1);
}
.benefit-icon {
  margin-right: 1rem;
  color: #2a7f62;
  font-size: 1.3rem;
  line-height: 1.6;
}
.benefit-text strong {
  color: #2a7f62;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .mission-statement {
    font-size: 1.15rem;
  }
  .mission-statement.lead {
    font-size: 1.25rem;
  }
  .benefits-list {
    font-size: 1.1rem;
  }
}

/* ======================
   CALL TO ACTION 
   ====================== */
#cta {
  background-color: rgba(42, 127, 98, 0.05); /* Light green tint */
  border-top: 1px solid rgba(42, 127, 98, 0.1);
  border-bottom: 1px solid rgba(42, 127, 98, 0.1);
}

.cta-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #333;
}

.btn-success {
  background-color: #2a7f62;
  border-color: #2a7f62;
  transition: all 0.3s ease;
}
.btn-success:hover {
  background-color: #23805a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(42, 127, 98, 0.2);
}

/* Responsive adjustment */
@media (max-width: 767.98px) {
  .cta-text {
    font-size: 1.1rem;
  }
}

/* ======================
   PAGE SPECIFIC 
   ====================== */
/* About Page */
#about {
  padding-top: 80px;
}

.about-image {
  max-height: 400px;
  overflow: hidden;
  border-radius: 12px;
}

/* Contact Page */
#contact {
  padding-top: 80px;
}

#contact .form-control:focus {
  border-color: #2a7f62;
  box-shadow: 0 0 0 0.25rem rgba(42, 127, 98, 0.25);
}

/* ======================
   FOOTER LINK STYLES 
   ====================== */
footer .text-primary {
  color: #0d6efd !important;
  text-decoration: none !important; /* Removes underline */
  font-weight: 500; /* Slightly bolder for better visibility */
  transition: color 0.2s ease; /* Smooth color transition */
}

/* ======================
   RESPONSIVE BREAKPOINTS 
   ====================== */
@media (max-width: 991.98px) {
  /* Hero sections */
  .hero-media-container {
    height: 60vh;
    min-height: 400px;
    max-height: none;
    margin-top: 0;
  }

  /* Navigation */
  .navbar-collapse {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: rgba(255, 255, 255, 0.90);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .navbar-toggler {
    z-index: 1001;
  }
}

@media (max-width: 767.98px) {
  /* Hero sections */
  .hero-media-container {
    height: 60vh !important;
    min-height: 50vh !important;
    max-height: none !important;
    margin-top: -40px;
  }

  /* Navigation */
  .navbar {
    top: 10px;
    height: 54px;
  }
}

/* Landscape orientation */
@media (max-width: 991.98px) and (orientation: landscape) {
  .hero-media-container {
    height: 80vh !important;
  }
}

/* ======================
   LEGAL PAGES TYPOGRAPHY 
   ====================== */
.legal-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
}

.legal-content h2 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #2a7f62;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #3a3a3a;
    margin-top: 1.5rem;
}

.legal-content p, .legal-content li {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}