/* ===== COMPANIES SECTION ===== */
.companies-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
  }
  
  .section-title {
    font-size: 2rem;
    color: #332c78;
    margin-bottom: 2rem;
  }
  
  .companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .company-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .company-card:hover {
    transform: translateY(-5px);
  }
  
  .company-card img {
    max-width: 100px;
    margin: 0 auto 1rem;
    margin-bottom: 1rem;
    display: block;
  }
  
  .company-card h3 {
    color: #332c78;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .visit-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #332c78;
    color: white;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
  }

/* ================================
   Giving Back Section Styles
   ================================ */

   #giving-back {
    position: relative;
    height: 50vh; /* Adjusted to fit your resized background */
    overflow: hidden;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #giving-back-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.4);
  }
  
  #giving-back-call-to-action {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .giving-back-content {
    display: flex;
    gap: 2rem;
    background-color:white;
    padding: 2rem;
    border-radius: 1rem;
    align-items: center;
  }
  
  .giving-back-logo img {
    width: 100px;
    height: auto;
  }
  
  .giving-back-text span {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #268142;
    text-transform: uppercase;
  }
  
  .giving-back-text h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #268142;
  }
  
  .giving-back-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #268142;
  }
  
  #giving-back-button {
    background-color: #268142;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    text-transform: uppercase;
  }
  
  /*----Make it responsive on phones----------*/
  @media screen and (max-width: 768px) {
    #giving-back {
      height: auto;
      padding: 2rem 1rem;
    }
  
    .giving-back-content {
      flex-direction: column;
      text-align: center;
      padding: 1.5rem;
    }
  
    .giving-back-logo img {
      width: 80px;
    }
  
    .giving-back-text h4 {
      font-size: 1.4rem;
    }
  
    .giving-back-text p {
      font-size: 0.95rem;
    }
  
    #giving-back-button {
      width: 100%;
      font-size: 1rem;
    }
  }


  /* =======================================
   News and Updates Section Styles
   ======================================= */

/* General Section Styling */
section {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  color: #332c78;
}

.news-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.news-preview-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.news-preview {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 2rem;
  width: 100%;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
}

.news-preview::-webkit-scrollbar {
  display: block;
  height: 8px;
}

.news-preview::-webkit-scrollbar-thumb {
  background: rgba(51, 44, 120, 0.5);
  border-radius: 10px;
}

.news-preview::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.news {
  flex: 0 0 calc((100% - 4rem) / 3); /* 3 items per view, 2rem gap between each */
  scroll-snap-align: start;
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column; /* Ensure content stacks vertically */
  height: auto; /* Let it expand if needed */
  max-height: none;
}

.news-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-contents {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1; /* take remaining space */
  height: 100%;
  overflow: hidden;
}

.news-contents h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #332c78;
}

.news-contents p:nth-of-type(1) {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #555;
}

.news-contents p:nth-of-type(2) {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

.news-button {
  align-self: flex-start;
  background-color: #332c78;
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.news-button:hover {
  background-color: #5946b2;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(51, 44, 120, 0.8);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.arrow-btn:hover {
  background-color: rgba(51, 44, 120, 1);
}

.scroll-left {
  left: 0.5rem;
}

.scroll-right {
  right: 0.5rem;
}

@media (max-width: 768px) {
  .news-preview {
    flex-direction: column;
  }

  .news {
    width: 100%;
  }
}

