/* ==========================
   NAV (Nonprofit styling within Nav)
========================== */
.sub-header .nonprofit {
  padding-top: 10%;
  padding-bottom: 0%;
}

.sub-header .nonprofit-i {
  padding-top: 0%;
}

@media (max-width: 1200px) {
  .sub-header .nonprofit {
    font-size: 22px;
    padding-bottom: 0%;
  }

  .sub-header .nonprofit-i {
    padding-top: 0%;
    font-size: 18px;
  }
}

/* ==========================
   NON-PROFIT SECTION
========================== */
.nonprofit {
  margin-top: 1%;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  flex-basis: 47%;
  padding: 30px 2px;
  width: 80%;
  margin: auto;
  padding-top: 40px;
  padding-bottom: 50px;
}

.nonprofit img {
  display: block;
  margin: 0 auto;
  width: 80%;
}

@media (max-width: 1000px) {
  .nonprofit img {
    width: 100%;
  }
}

.nonprofit h1 {
  font-size: 50px;
  padding-top: 10%;
  padding-bottom: 5%;
  font-weight: 600;
  text-align: center;
}

.nonprofit h3 {
  font-size: 24px;
  padding-top: 0;
  font-weight: 300;
  text-align: center;
}

.nonprofit h4 {
  font-size: 18px;
  padding-top: 10px;
  text-align: center;
}

.nonprofit p {

  color: #2e2e2e;
  font-size: 15px;
  font-weight: 300;
  line-height: 25px;
  padding: 15px 0 25px;


}

/* SACE Program Image */
.nonprofit .SACE-PROGRAM-img {
  width: 50%;
}

@media (max-width: 1000px) {
  .nonprofit .SACE-PROGRAM-img {
    width: 70%;
  }
}

/* Typography scaling for mobile */
@media (max-width: 1000px) {
  .nonprofit h1 {
    font-size: 40px;
  }

  .nonprofit h2 {
    font-size: 20px;
  }

  .nonprofit h3 {
    font-size: 15px;
    font-weight: 100;
  }

  .nonprofit h4 {
    font-size: 25px;
  }

  .nonprofit p {
    font-size: 15px;
  }
}

/* ==========================
   SLIDESHOW STYLING
========================== */
.slideshow-container {
  position: relative;
  display: block;
  width: 90%;
  max-width: 800px;
  margin: 80px auto 50px; /* ensures top spacing even if nav/header removed */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  background: #fff;       /* optional: prevents background bleeding */
}

@media (max-width: 768px) {
  .slideshow-container {
    margin: 40px 0;
  }
}



.slide {
  display: none;
}

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

/* Fade animation */
.fade {
  animation: fadeEffect 1.5s ease;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Navigation arrows */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Dots */
.dots-container {
  text-align: center;
  margin-top: 10px;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.4s;
}

.active,
.dot:hover {
  background-color: #fc7651;
}


   /* RESPONSIVE BEHAVIOR FOR SLIDESHOW*/

/* Mobile: keep it large */
@media (max-width: 768px) {
  .slideshow-container {
    width: 100%;
    max-width: none;
    margin: 30px 0;
    border-radius: 0;
    box-shadow: none;
  }

  .slide img {
    border-radius: 0;
  }
}

/* Extra large screens: make it smaller and centered */
@media (min-width: 1200px) {
  .slideshow-container {
    max-width: 750px;  /* narrower for big monitors */
  }
}

/* Edited Slideshow */
.gallery-tabs { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.tab { padding:8px 14px; border:1px solid #fc7651; border-radius:999px; background:#fff; cursor:pointer; }
.tab.active { background:#fc7651; color:#fff; }
@media (max-width: 768px) { .gallery-tabs { overflow-x:auto; } }

/* ===== Gallery Controls (Prev/Next Buttons Below) ===== */
.gallery-controls {
  text-align: center;
  margin-top: 20px;
}

.gallery-controls button {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.gallery-controls button:hover {
  background: rgba(0, 0, 0, 1);
  transform: translateY(-2px);
}

.gallery-controls button:active {
  transform: scale(0.97);
}

