/* sections */
.odd {
  background: var(--bg-dark);
}

.even {
  background: var(--bg);
}

#about-inner {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

#core-pillars {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#core-pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(58,156,45,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 85% 20%, rgba(58,156,45,0.05) 0%, transparent 60%);
  pointer-events: none;
}




.pillars-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
}

.card.pillar {
  box-shadow: none;
  border: 1px solid var(--primary-light);
  width: 80%;
  max-width: 500px;
  padding: 36px 32px 40px;
}

.pillar-title {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 20px;
}

.pillar-title svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  box-sizing: content-box;
  background-color: rgba(144, 238, 144, 0.3); 
  border: 1px solid rgba(45,122,34,0.2);
  border-radius: 14px;
  padding: 10px;
  color: rgba(0, 128, 0, 0.9);
}

.card.pillar p {
  font-size: 0.95rem;;
}

/* Photos */
#photosContainer {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

#photosContainer img {
  border-radius: 12px;
  object-fit: cover;
}

@media screen and (max-width: 1200px) {
  #photosContainer img {
    width: 40%;
    height: auto;
  }
}

@media screen and (max-width: 800px) {
  #index-photo-1 {
    display: none;
  }

  #photosContainer img {
    width: 80%;
    height: auto;
  }

  .about-image {
    display: none;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-text {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile pillar carousel */
@media (max-width: 520px) {
  .pillars-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .pillars-container::-webkit-scrollbar {
    display: none;
  }

  .card.pillar {
    flex: 0 0 85%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .scroll-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: rgba(58, 156, 45, 0.3);
    border: 1px solid rgba(58, 156, 45, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .scroll-indicator.active {
    background-color: rgba(58, 156, 45, 0.8);
    width: 1.5rem;
    border-radius: 0.25rem;
  }
}

@media (min-width: 521px) {
  .scroll-indicators {
    display: none;
  }
  
  /* Hide cloned cards on desktop - only show first 3 */
  .pillars-container .card.pillar:nth-child(n+4) {
    display: none;
  }
}
