/* Hero Section Styles */

/* AGGRESSIVE hero positioning - override Bootstrap completely */
.hero-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0 !important; /* Start with 0, then add negative if needed */
  margin-bottom: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  z-index: 1;
}

/* Override any Bootstrap container padding that might affect hero */
.hero-section .container,
.hero-section .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Hero image styling */
.hero-image {
  width: 100%;
  height: 60vh; /* Tighter proportions - 60% of viewport height */
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.8); /* Slightly darken for better text readability */
  background-color: #090933; /* Navy fallback color */
  background-image: linear-gradient(135deg, #090933 0%, #262c83 100%);
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero content overlay */
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 2rem;
  background: rgba(9, 9, 51, 0.3); /* Navy overlay for consistency */
  margin: 0 !important;
}

/* Force main element to have no padding/margin at top */
main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Ensure content below hero doesn't have top padding */
.content-below-hero {
  position: relative;
  z-index: 10;
  background-color: #fff;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Target specific Bootstrap classes that might add spacing */
.hero-section ~ .container,
.hero-section + .container,
.hero-section + div {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove any Bootstrap row/col spacing in hero */
.hero-section .row {
  margin: 0 !important;
  padding: 0 !important;
}

.hero-section .col,
.hero-section [class*="col-"] {
  padding: 0 !important;
  margin: 0 !important;
}

/* Hero text styling */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
}

.hero-btn-primary {
  background-color: #fff;
  color: #090933;
  border: 2px solid #fff;
}

.hero-btn-primary:hover {
  background-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hero-btn-secondary:hover {
  background-color: #fff;
  color: #090933;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive hero adjustments */
@media (max-width: 991.98px) {
  .hero-image {
    height: 50vh; /* Smaller on tablets */
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-image {
    height: 40vh; /* Even smaller on mobile for tighter proportions */
  }
  
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    min-width: 120px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  .hero-image {
    height: 35vh; /* Very tight on small phones */
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
}

/* Animation for hero on page load */
.hero-section {
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll behavior - content slides under hero */
.content-below-hero {
  position: relative;
  z-index: 10;
  background-color: #fff;
  margin-top: 0;
  padding-top: 0;
}

/* Ensure hero stays below sticky header */
.hero-section {
  margin-top: 0;
  position: relative;
  top: 0;
}

/* Optional: Add parallax effect */
.hero-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  /* Disable parallax on mobile for better performance */
  .hero-parallax {
    background-attachment: scroll;
  }
}