/* Content Block */
.content-block {
  padding-top: 20px;
  padding-bottom: 10px;
  margin-left: 30px;
  margin-right: 30px;
  color: #d7d7d7;
}

.content-block p {
  line-height: 1.8;
}

@media(min-width: 900px) {
  .content-block {
    margin-left: 50px;
    margin-right: 50px;
  }
}

@media (min-width: 1200px) {
  .content-block {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero Banner */
.hero-banner {
  position: relative;
  display: flex;
  justify-content: center;
  /* background-image will be set by JavaScript */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  border-bottom: 3px solid #4b7874;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  left: 0;
  right: 0;
}

/* Background image layer for smooth transitions */
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.hero-banner.transitioning::before {
  opacity: 1;
}

.hero-banner h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-banner h3 {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-banner .content-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-banner .hero-text {
  color: white;
}

.hero-banner ul {
  padding-inline-start: 21px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.hero-banner ul li {
  padding-bottom: 0.6rem;
}

.hero-banner ul li strong {
  color: white;
  font-weight: 600;
}

.hero-banner a:not(.btn) {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero Carousel Controls */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  border-radius: 0.25rem;
  opacity: 0.7;
}

.hero-carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
}

.hero-carousel-arrow-left {
  left: 20px;
}

.hero-carousel-arrow-right {
  right: 20px;
}

.hero-carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.hero-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  opacity: 0.6;
}

.hero-carousel-indicator:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.5);
}

.hero-carousel-indicator.active {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
  opacity: 1;
}

/* Buttons */
.btn-action {
  margin-bottom: 0;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  font-weight: 500;
  border-width: 1px;
  border-style: solid;
  opacity: 0.9;
}

.btn-action-primary {
  background-color: rgba(222, 187, 157, 0.85);
  border-color: rgba(121, 61, 3, 0.6);
  color: #5A2800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-action-primary:hover {
  background-color: rgba(255, 242, 219, 0.95);
  border-color: #cfa600;
  color: #793d03;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.btn-secondary {
  background-color: rgba(13, 46, 43, 0.7);
  border-color: rgba(75, 120, 116, 0.6);
  color: rgba(215, 215, 215, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(75, 120, 116, 0.85);
  border-color: #4b7874;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

/* Alternative Background */
body.quarto-light .alt-background {
  background-color: #051122;
  border-top: 2px solid #4b7874;
  border-bottom: 2px solid #4b7874;
}

body.quarto-dark .alt-background {
  background-color: #051122;
  border-top: 2px solid #4b7874;
  border-bottom: 2px solid #4b7874;
}

/* Features Section */
.features-section {
  padding: 3rem 0;
}

.features {
  padding-bottom: 2em;
}

.feature {
  margin-top: 20px;
  background-color: #FFF2db;
  padding: 25px;
  border: 3px solid #3a3738;
  border-radius: 0.5rem;
  box-shadow:
    inset 0 0 0 1px #4b7874,
    0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  /* Subtle texture overlay */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}

@media (min-width: 800px) {
  .features {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 0 0 -30px;
    width: calc(100% + 30px);
  }
  .feature {
    width: calc(25% - 30px);
    margin: 20px 0 0 30px;
  }
}

.feature h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #cfa600;
  margin-bottom: 1rem;
}

body.quarto-dark .feature h3 {
  color: #cfa600;
}

.feature p:first-of-type {
  margin-bottom: 0.2rem;
  line-height: 1.6;
  color: #5A2800;
}

body.quarto-light .feature p:first-of-type {
  color: #5A2800;
}

body.quarto-dark .feature p:first-of-type {
  color: #5A2800;
}

.feature img {
  border-radius: 0.375rem;
  border: 2px solid #3a3738;
}

.learn-more {
  margin-top: 0.5rem;
}

.learn-more a {
  color: #004294;
  text-decoration: none;
  font-weight: 500;
}

body.quarto-dark .learn-more a {
  color: #0063DC;
}

.learn-more a:hover {
  text-decoration: underline;
  color: #0063DC;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner {
    min-height: 400px;
  }

  .hero-banner h1 {
    font-size: 2rem;
  }

  .hero-banner h3 {
    font-size: 1.2rem;
  }

  .hero-banner ul {
    font-size: 1rem;
  }
}

/* Remove default page navigation */
nav.page-navigation {
  display: none;
}
