
/* ===== Core Values Section ===== */
#values {
  padding: 0 0rem;
  padding-bottom: 2rem;
  background-color: #f7fdf9; /* soft, calm green background */
  color: #1b4332;
  box-sizing: border-box;
  text-align: center;
}

/* Section Title */
#values h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #002410;
  margin-bottom: 2rem;
  text-align: left; /* left align the heading */
  display: flex;
  margin-left: 2rem;
  align-items: center; /* align text and line */
}

/* Decorative underline */
#values h2::after {
  content: "";
  flex-grow: 1; /* take up remaining space */
  height: 2px; /* line thickness */
  background-color: #002410; /* side line color */
  margin-left: 1rem; /* space between text and line */
  border-radius: 2px;
}

/* Container for the two columns */
#values .values-container {
    padding: 0 5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-width: 100%;
  margin: 0 auto;
  gap: 2rem;
  align-items: start;
  text-align: left;
}

/* Left Column (Value Names) */
#values .values-names {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
}

#values .values-names h3 {
  font-size: 1.3rem;
  color: #2E8B57;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 10px;
}

/* Active state (highlighted) */
#values .values-names h3.active {
  color: #1b7a4d;
  font-weight: 700;
  border-left: 4px solid #2E8B57;
  padding-left: 12px;
}

/* Right Column (Descriptions) */
#values .values-descriptions {
  position: relative;
}

/* ===== Value Blocks ===== */
#values .value-block {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Show active block */
#values .value-block.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Green Theme Banner */
#values .value-theme {
  background: linear-gradient(90deg, #1f633c ,#2E8B57);
  color: white;
  font-weight: 600;
  padding: 0.7rem 1rem;
  /*border-radius: 6px;*/
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  /*box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);*/
}

/* Paragraph Styling */
#values .value-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

/* REMOVE old paragraph hiding rule */
#values .values-descriptions p {
  display: block;
  opacity: 1;
  transform: none;
}


/* =============================================
      CORE VALUES — MOBILE (max-width: 768px)
============================================= */
@media (max-width: 768px) {

  /* Stack the layout into one column */
  #values .values-container {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  /* Horizontal scroll row */
  #values .values-names {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1.5rem;
    padding-bottom: 0.5rem;

    /* Smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
  }

  /* Make each name inline-block */
  #values .values-names h3 {
    display: inline-block;
    white-space: nowrap;
    padding: 0.5rem 0.2rem;
    border-left: none;  /* remove desktop line */
  }

  /* Active state for mobile: underline instead */
  #values .values-names h3.active {
    border-left: none;
    border-bottom: 3px solid #2E8B57;
    padding-bottom: 0.2rem;
  }

  /* Descriptions go below and take full width */
  #values .values-descriptions {
    width: 100%;
  }
  /* Section Title */
#values h2 {
    font-size: 1.8rem;
    margin-left: 1rem;
}

}

/* =============================================
      CORE VALUES — SMALL MOBILE (max-width: 480px)
============================================= */
@media (max-width: 480px) {

  #values h2 {
    font-size: 2rem;
    margin-left: 1rem;
  }

  #values .values-names {
    gap: 1rem;
  }

  #values .values-names h3 {
    font-size: 1.1rem;
  }

  #values .value-block p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ===== CORE VALUES — Invisible Horizontal Scrollbar ===== */
#values .values-names::-webkit-scrollbar {
  display: none;      /* Chrome, Safari, Edge */
}

#values .values-names {
  scrollbar-width: none;  /* Firefox */
}
