/**
 * Hero section styles
 */

/* Main hero container */
.hero-section {
  background-color: var(--color-blue);
  padding: calc(var(--spacing-xxl) + 4rem) 0;
  position: relative;
  overflow: hidden; /* Ensure radial glow stays within bounds */
}

.hero-section h3{
  margin-bottom:0px;
  padding-bottom:0px;
}

/* Radial blur effect */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(0, 83, 155, 0) 70%);
  pointer-events: none; /* Ensure it doesn't interfere with clicks */
  z-index: 0; /* Place below content */
}

@media (max-width: 992px) {
  /* Adjust radial blur position for mobile */
  .hero-section::before {
    background: radial-gradient(circle at center 30%, rgba(255, 255, 255, 0.15) 0%, rgba(0, 83, 155, 0) 70%);
  }
}

/* Second radial blur for added dimension */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 55% 40%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 83, 155, 0) 60%);
  pointer-events: none;
  z-index: 0; /* Place below content */
}

@media (max-width: 992px) {
  /* Adjust second radial blur position for mobile */
  .hero-section::after {
    background: radial-gradient(circle at center 60%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 83, 155, 0) 60%);
  }
}

/* Hero columns layout */
.hero-columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  position: relative;
  z-index: 1; /* Place above radial blur */
}

.hero-column {
  padding: 0 12px;
  width: 100%;
}

.hero-column-left {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
}

.hero-column-right {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2; /* Ensure content is above the blur effects */
}

/* Radial blur effect specifically for color boxes */
.hero-column-right::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12) 0%, rgba(0, 83, 155, 0) 70%);
  pointer-events: none;
  z-index: -1;
}


/* Hero title and description */
.hero-title,
.hero-description {
  color: #fff;
  text-wrap: balance;
}

/* Hero next section link */
.hero-next-section-link-wrapper {
  text-align: center;
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  width: 100%;
}

.hero-next-section-link {
  color: var(--color-sky-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.3s ease;
}

.hero-next-section-link:hover {
  opacity: 0.8;
}

.hero-next-section-icon {
  margin-top: 0.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Position jump link further down on mobile */
@media (max-width: 992px) {
  .hero-section {
    padding-bottom: calc(var(--spacing-super) - 2rem); /* Add extra padding at bottom on mobile */
    padding-top:calc(var(--spacing-super) - 3rem);
  }
  
  .hero-next-section-link-wrapper {
    bottom: 2rem !important;
    text-align: left !important;
    left: 20px !important;
    right: auto !important;
  }
}

.hero-title {
  margin-bottom: var(--spacing-sm);

}

.hero-description p:last-child {
  margin-bottom: 0;
}

/* Fact boxes */
.hero-fact-box {
  position: relative;
  margin-bottom: 15px; /* Add gap between boxes */
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  /* Initial state - hidden and positioned to the right */
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
}

/* Animation states */
.hero-fact-box.animate-in {
  animation: swingInFromRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-fact-box.animation-complete {
  opacity: 1;
  transform: translateX(0);
}

@keyframes swingInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px) rotate(10deg);
  }
  60% {
    opacity: 1;
    transform: translateX(-10px) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

/* Color variations for fact boxes */
.hero-fact-box-1 {
  background-color: var(--color-light-green);
}

.hero-fact-box-2 {
  background-color: var(--color-gold);
}

.hero-fact-box-3 {
  background-color: var(--color-copper);
}

/* Matching funds row */
.hero-matching-funds-row {
  width: 100%;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* Matching funds section */
.hero-matching-funds-section {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Matching funds heading */
.hero-matching-funds-heading {
  margin-bottom: 25px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  text-align: left;
  will-change: opacity, transform;
}

.hero-matching-funds-heading.animate-in {
  animation: fadeUpIn 0.5s ease forwards;
}

.hero-matching-funds-heading.animation-complete {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

.hero-matching-funds-heading h3 {
  color: #fff;
  margin: 0;
  padding: 0;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

/* No decorative line under heading */

/* Matching funds list */
.hero-matching-funds-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  text-align: left;
  padding-left: 20px;
}

.hero-matching-funds-list.animate-in {
  animation: fadeUpIn 0.5s ease forwards;
}

.hero-matching-funds-list.animation-complete {
  opacity: 1;
  transform: translateY(0);
}

/* Matching fund items */
.hero-matching-fund-item {
  position: relative;
  margin-bottom: 15px;
  padding-left: 20px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  line-height: 1.5;
}

.hero-matching-fund-item::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-size: 1.2rem;
}

@keyframes fadeUpIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-matching-fund-item.animate-in {
  animation: fadeUpIn 0.5s ease forwards;
}

.hero-matching-fund-item.animation-complete {
  opacity: 1;
  transform: translateY(0);
}

.hero-matching-fund-number {
  font-weight: bold;
  margin-right: 5px;
  color: var(--color-gold);
}

/* Fact content styling */
.hero-fact-content {
  display: flex;
  flex-direction: column;
}

.hero-fact-number,
.hero-fact-text {
  color: #fff;
  margin: 0;
}


.hero-fact-text {
  display: block;
}

/* Next section link */
.hero-next-section-link-wrapper {
  text-align: center;
  position: absolute;
  bottom: 6rem;
  left: 0;
  right: 0;
}

.hero-next-section-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-gold);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  transition: color var(--transition-speed) var(--transition-timing);
}

.hero-next-section-link:hover {
  color: var(--color-sky-blue);
}

.hero-next-section-icon {
  display: inline-flex;
  margin-left: var(--spacing-xs);
  transition: transform var(--transition-speed) var(--transition-timing);
}

.hero-next-section-link:hover .hero-next-section-icon {
  transform: translateY(3px);
}

@media (max-width: 992px) {
  .hero-column-left,
  .hero-column-right {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .hero-column-right {
    margin-top: var(--spacing-lg);
  }
  
  .hero-fact-box {
    height: auto;
    min-height: 80px;
  }
  
  .hero-matching-funds-row {
    margin-top: 15px;
    margin-bottom:0px;
  }
  
  .hero-matching-funds-section {
    padding: 0 15px;
  }
  
  
  .hero-matching-funds-list {
    max-width: 100%;
    padding-left: 10px;
  }
  .hero-matching-funds-heading{
    margin-bottom:5px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}
