/* Extra styles for the multi-page version of the site.
   Loaded after style.css; only adds new classes, nothing here overrides the theme. */

/* ---- spacing helpers the theme may not define ---- */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; }
.mb-60 { margin-bottom: 60px; }
@media (min-width: 992px) {
  .gx-60 { --bs-gutter-x: 60px; }
}

/* ---- active menu link ---- */
/* the desktop bar is green, so the active link uses the gold accent */
.main-menu > ul > li > a.active {
  color: var(--theme-color2);
}
.th-mobile-menu ul li a.active {
  color: var(--theme-color);
}

.main-menu > ul > li { margin: 0 11px; }
@media (min-width: 1400px) {
  .main-menu > ul > li { margin: 0 14px; }
}
@media (max-width: 1399px) {
  .header-notice { display: none; }
}

/* story card name on the home page links to the CEO page */
.story-card .box-title a { color: inherit; }
.story-card .box-title a:hover { color: var(--theme-color); }

/* ---- shared small components ---- */
.role-line {
  color: var(--theme-color);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 15px;
  letter-spacing: 0.2px;
}

.lead-text {
  font-size: 19px;
  line-height: 1.7;
  color: var(--title-color);
}

.portrait-frame {
  border-radius: 30px 30px 150px 30px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(18, 47, 42, 0.18);
  background: var(--smoke-color);
}
.portrait-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.photo-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(18, 47, 42, 0.15);
}
.photo-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.photo-card_badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--theme-color2);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* ---- vision / mission panels ---- */
.info-panel {
  background: var(--theme-color);
  color: var(--white-color);
  border-radius: 30px;
  padding: 45px 40px;
}
.info-panel--alt { background: var(--theme-dark); }
.info-panel p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.info-panel_title { color: var(--white-color); margin-bottom: 12px; }
.info-panel_icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}

/* ---- value / feature cards ---- */
.value-card {
  background: var(--white-color);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 10px 40px rgba(18, 47, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(18, 47, 42, 0.14);
}
.value-card_icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(57, 127, 114, 0.12);
  color: var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.value-card_title { font-size: 22px; margin-bottom: 12px; }
.value-card p { margin-bottom: 0; }
.value-card a:not(.th-btn) { color: var(--theme-color); font-weight: 600; word-break: break-word; }

/* ---- gallery ---- */
.gallery-tile {
  position: relative;
  display: block;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--smoke-color);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-tile:hover img { transform: scale(1.07); }
.gallery-tile_caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 18px;
  color: var(--white-color);
  background: linear-gradient(to top, rgba(0, 17, 14, 0.85), rgba(0, 17, 14, 0));
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.gallery-tile_caption strong { font-size: 16px; line-height: 1.3; }
.gallery-tile_caption em { font-style: normal; opacity: 0.8; }
.gallery-tile_zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--theme-color2);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}
.gallery-tile:hover .gallery-tile_zoom { opacity: 1; transform: scale(1); }

/* ---- events ---- */
.event-date {
  display: inline-block;
  background: rgba(227, 162, 27, 0.15);
  color: #a9730a;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  margin-bottom: 14px;
}
.event-title { font-size: 28px; margin-bottom: 14px; }
.event-thumb {
  position: relative;
  display: block;
  height: 170px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--smoke-color);
}
.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.event-thumb:hover img { transform: scale(1.08); }
.event-thumb_play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  background: rgba(0, 17, 14, 0.35);
  font-size: 24px;
}
@media (max-width: 575px) {
  .event-thumb { height: 110px; }
}
.stat-pill {
  background: var(--white-color);
  border-radius: 20px;
  padding: 22px 12px;
  box-shadow: 0 10px 30px rgba(18, 47, 42, 0.08);
}
.stat-pill strong {
  display: block;
  font-size: 34px;
  color: var(--theme-color);
  font-family: var(--title-font);
  line-height: 1.1;
}
.stat-pill span { font-size: 14px; }

/* ---- CEO / team ---- */
.ceo-feature {
  background: var(--gray-color);
  border-radius: 30px;
  padding: 40px;
}
.ceo-feature_name { font-size: 30px; margin-bottom: 4px; }
@media (max-width: 575px) {
  .ceo-feature { padding: 24px; }
}

.ceo-sticky { position: sticky; top: 110px; }
.ceo-card {
  margin-top: 24px;
  background: var(--theme-dark);
  color: var(--white-color);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
}
.ceo-card_name { color: var(--white-color); font-size: 28px; margin-bottom: 4px; }
.ceo-card_role {
  display: inline-block;
  margin: 6px 0 4px;
  background: var(--theme-color2);
  color: var(--white-color);
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 18px;
  border-radius: 999px;
}
.ceo-card_org { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; }
.ceo-card_links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ceo-card_links .style-border { color: var(--white-color); border-color: rgba(255, 255, 255, 0.5); }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: rgba(57, 127, 114, 0.12);
  color: var(--theme-color);
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 15px;
}

.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.fact-list i { color: var(--theme-color); margin-top: 5px; }
.fact-list a { color: var(--theme-color); font-weight: 600; }

.pull-card {
  text-align: center;
  background: var(--theme-color);
  color: var(--white-color);
  border-radius: 30px;
  padding: 55px 35px;
}
.pull-card h3 { color: var(--white-color); margin-bottom: 14px; }
.pull-card p { color: rgba(255, 255, 255, 0.88); margin-bottom: 28px; }
.pull-card .style-border { color: var(--white-color); border-color: rgba(255, 255, 255, 0.6); }
/* the default green button would vanish on the green card, so use a white one */
.pull-card .th-btn:not(.style3):not(.style-border) { background-color: var(--white-color); color: var(--theme-color); }
.pull-card .th-btn:not(.style3):not(.style-border):hover { color: var(--white-color); }

/* ---- contact ---- */
.contact-form {
  background: var(--white-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(18, 47, 42, 0.08);
}
.contact-form .form-control,
.contact-form .form-select {
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid var(--th-border-color);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(57, 127, 114, 0.15);
}
.contact-form .form-label { font-weight: 600; color: var(--title-color); }
.form-note { color: var(--theme-color); font-weight: 600; margin-bottom: 0; }
.side-card {
  background: var(--gray-color);
  border-radius: 24px;
  padding: 35px;
}
.side-card h4 { margin-bottom: 12px; }
@media (max-width: 575px) {
  .contact-form { padding: 24px; }
}

/* ---- readable text on the gold / orange buttons ----
   White on gold is only ~2.2:1 contrast, so these use the dark title colour at rest
   and switch back to white where the hover fill is dark. */
.th-btn.style3,
.th-btn.style5 {
  color: var(--title-color);
}
.th-btn.style3:hover {
  color: var(--white-color);
}
.donation-card[style*="--theme-color2"] .th-btn.style6,
.donation-card[style*="FF5528" i] .th-btn.style6 {
  color: var(--title-color);
}
.donation-card[style*="--theme-color2"] .th-btn.style6:hover,
.donation-card[style*="FF5528" i] .th-btn.style6:hover {
  color: var(--white-color);
}

/* ---- phone fixes ---- */
@media (max-width: 575px) {
  /* keep long email addresses on one line inside the contact cards */
  .value-card a:not(.th-btn) { font-size: 14px; word-break: normal; overflow-wrap: anywhere; }

  /* gallery: two photos per row instead of one very tall column */
  .gallery-tile { height: 190px; border-radius: 16px; }
  .gallery-tile_caption { padding: 28px 10px 10px; font-size: 11px; }
  .gallery-tile_caption strong {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .gallery-tile_zoom { display: none; }

  /* team: two people per row; trim the oversized card chrome */
  .team-card .img-wrap { margin: 0 8px; }
  .team-card .box-title,
  .team-card2 .box-title { font-size: 16px; }
  .team-card .team-desig,
  .team-card2 .team-desig { font-size: 13px; }
}
