/* -------------------------------------
   Hero Styles
------------------------------------- */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  width: 100%;
  margin: 0;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-wrapper {
    margin-left: -10px;
    margin-right: -20px;
  }
}

.hero__content {
  padding-right: 20px;
}

.hero__content-inner {
  max-width: 550px;
  padding: 15px;
}

.hero__overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 8px;
}

.hero__heading {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.hero__subheading {
  font-size: 1rem;
  margin-bottom: 12px;
}

.hero__cta-button {
  display: inline-block;
  padding: 8px 16px;
  background: #FFF9D9;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid #FFF9D9;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero__cta-button a {
  color: #000;
  text-decoration: none;
}

.hero__cta-button a:hover,
.hero__cta-button a:focus,
.hero__cta-button a:visited {
  color: #000;
  text-decoration: none;
}

.hero__cta-button:hover {
  background: white;
}

/* -------------------------------------
   Announcements Section
------------------------------------- */
.hero__announcements {
  background: none;
  box-shadow: none;
  padding: 0;
  margin-top: 10px;
  margin-right: 30px;
}

#announcementsCarousel {
  position: relative;
}

#announcementsCarousel .carousel-inner {
  border-radius: 8px;
  overflow: hidden;
}

#announcementsCarousel .carousel-item {
  padding: 10px 15px;
  background: rgba(255, 249, 217);
  color: #333;
  min-height: 180px;
}

/* Announcements Content */
.announcements-wrapper {
  width: 100%;
  padding: 20px 15px;
  text-align: left;
  margin: 0 auto;
}

.announcements-wrapper h2,
.announcements-wrapper h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.announcements-wrapper p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcements-wrapper a {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: #c8102e;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.announcements-wrapper a:hover {
  background: #960c22;
  color: #fff;
}

/* Hide Carousel Arrows */
.hero__announcements .carousel-control-prev,
.hero__announcements .carousel-control-next {
  width: 5%;
  display: none;
}

.hero__announcements .carousel-control-prev-icon,
.hero__announcements .carousel-control-next-icon {
  background-color: #333;
  border-radius: 0;
}

/* Fallback for No Announcements */
.no-announcements {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* -------------------------------------
   Layout Cleanup
------------------------------------- */
.hero .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.hero .row {
  margin-left: 0;
  margin-right: 0;
}

.node__content {
  padding: 0;
}

.layout--full-width-onecol {
  padding: 0;
  margin: 0;
}

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

  .hero__content {
    padding-right: 0;
    text-align: center;
  }

  .hero__cta-button {
    margin-top: 12px;
  }

  .hero__announcements {
    margin-top: 30px;
    margin-right: -10px;
  }
}

/* -------------------------------------
   Animation
------------------------------------- */
.fade-in {
  animation: fadeIn 1.2s ease-in both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
