/* MCT (Masakeen Charitable Society) template styles - based on MCT project */

:root {
  --mct-primary: #ff5200;
  --mct-primary-dark: #b33900;
  --mct-bg-dark: #1a1a2e;
}

/* Donor gratitude — top overlay */
.donor-thanks-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(110deg, #4a2520 0%, #7a3d2e 40%, #a34f2a 70%, #c45d28 100%);
  color: #fff5eb;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.donor-thanks-banner.is-hidden {
  opacity: 0;
  transform: translateY(-110%);
  pointer-events: none;
}
.donor-thanks-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  padding-right: 1.25rem;
}
.donor-thanks-banner__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(0.92rem, 2.1vw, 1.08rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.donor-thanks-banner__text strong {
  color: #ffd9b8;
  font-weight: 700;
}
.donor-thanks-banner__accent {
  color: #ffb89a;
  font-weight: 600;
  font-style: italic;
}
.donor-thanks-banner__close {
  flex: 0 0 auto;
  align-self: center;
  border: 0;
  background: transparent;
  color: #ffe3cf;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.9;
  white-space: nowrap;
  padding: 0.35rem 0 0.35rem 0.75rem;
}
.donor-thanks-banner__close:hover { opacity: 1; }

.donor-banner-visible .site-header { top: var(--donor-banner-offset, 0px); }

@media (max-width: 768px) {
  .donor-thanks-banner { padding: 0.7rem 0; }
  .donor-thanks-banner__inner {
    flex-wrap: wrap;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .donor-thanks-banner__text {
    flex: 1 1 100%;
    order: 1;
  }
  .donor-thanks-banner__close {
    order: 2;
    margin-left: auto;
    padding: 0.25rem 0 0;
  }
}

/* Header MCT - orange accent */
.site-header--mct .nav-menu a:hover,
.site-header--mct .nav-menu a.active { color: var(--mct-primary); }
.site-header--mct .nav-cta {
  background: var(--mct-primary) !important;
  color: #fff !important;
}
.site-header--mct .nav-cta:hover { background: var(--mct-primary-dark) !important; color: #fff !important; }
.logo--mct img { height: 48px; }

/* Main slider */
.mct-slider {
  position: relative;
  min-height: 500px;
  background: var(--mct-bg-dark) center/cover no-repeat;
}
.mct-slider-inner { position: relative; min-height: 500px; }
.mct-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}
.mct-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.mct-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
/* Infographic / data poster: show full image without heavy crop */
.mct-slide--data {
  background-color: #0d2626;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
.mct-slide--data::before {
  background: rgba(0,0,0,0.2);
}
.mct-slide-content--data {
  margin-top: auto;
  align-self: flex-end;
  padding-bottom: 0.5rem;
  max-width: 100%;
}
.mct-slide-content--data .mct-slide-title {
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.5);
}
.mct-slide-content--data .mct-slide-kicker {
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}
.mct-slide .container { position: relative; z-index: 2; min-height: 500px; display: flex; align-items: center; }
.mct-slide--data .container {
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.mct-slide-content { padding: 2rem 0; max-width: 600px; }
.mct-slide-kicker { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-bottom: 0.5rem; }
.mct-slide-title { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 0 0 1.25rem; line-height: 1.3; }
.btn--mct {
  background: var(--mct-primary);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  display: inline-block;
}
.btn--mct:hover { background: var(--mct-primary-dark); color: #fff; text-decoration: none; }
.btn--mct-light { background: #fff; color: var(--mct-primary); }
.btn--mct-light:hover { background: #f0f0f0; color: var(--mct-primary-dark); }

.mct-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.mct-slider-btn:hover { background: #fff; }
.mct-slider-prev { left: 1rem; }
.mct-slider-next { right: 1rem; }
.mct-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
}
.mct-slider-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.mct-slider-dots button.active { background: var(--mct-primary); }

/* Quick links block */
.mct-block1 { padding: 2rem 0; background: #f8f9fa; }
.mct-box-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.mct-box-wrap {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mct-box-wrap:hover { border-color: var(--mct-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; }
.mct-box-wrap h4 { margin: 0; font-size: 1.1rem; color: #333; }
.mct-box-wrap:hover h4 { color: var(--mct-primary); }

/* 100% strip */
.mct-middle {
  padding: 3rem 0;
  background: var(--mct-primary);
  color: #fff;
  text-align: center;
}
.mct-middle-inner { max-width: 720px; margin: 0 auto; }
.mct-middle-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin: 0 0 0.5rem; color: #fff; }
.mct-middle-p { margin: 0 0 0.25rem; opacity: 0.95; }
.mct-middle h4 { margin: 0 0 1.25rem; font-size: 1.1rem; }
.mct-middle .btn--mct-light { margin-top: 0.5rem; }

/* Three cards */
.mct-bottom-grids { padding: 4rem 0; }
.mct-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.mct-area-box {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mct-area-box:hover { border-color: var(--mct-primary); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.mct-area-box img { max-width: 80px; height: auto; margin: 0 auto 1rem; display: block; }
.mct-area-box h4 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.mct-title-head { color: #333; }
.mct-title-head:hover { color: var(--mct-primary); text-decoration: none; }
.mct-area-box p { font-size: 0.95rem; color: #555; margin: 0 0 1rem; line-height: 1.6; }
.btn-text-mct { color: var(--mct-primary); font-weight: 600; }
.btn-text-mct:hover { text-decoration: underline; }

/* Donate Monthly + 4 causes */
.mct-causes { padding: 4rem 0; background: #f8f9fa; }
.mct-causes-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 992px) { .mct-causes-row { grid-template-columns: 1fr; } }
.mct-title-big { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-bottom: 0.75rem; color: #1a1a1a; }
.mct-causes-left h4 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.mct-causes-left a { color: var(--mct-primary); }
.mct-causes-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mct-img-block {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}
.mct-img-block img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.mct-img-block:hover img { transform: scale(1.05); }
.mct-img-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.mct-img-block:hover { text-decoration: none; }

/* Mission and Goals */
.mct-mission { padding: 4rem 0; }
.mct-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.mct-feature-gd {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: border-color 0.2s;
}
.mct-feature-gd:hover { border-color: var(--mct-primary); }
.mct-feature-icon { flex-shrink: 0; }
.mct-feature-icon img { max-width: 56px; height: auto; }
.mct-feature-info h5 { margin: 0 0 0.5rem; font-size: 1.1rem; color: #1a1a1a; }
.mct-feature-info p { margin: 0; font-size: 0.9rem; color: #555; line-height: 1.6; }

/* Footer MCT */
.site-footer--mct {
  background: #1a1a2e;
  color: rgba(255,255,255,0.9);
  padding: 2.5rem 0 4rem;
  margin-top: 0;
}
.site-footer--mct a { color: #ff8c69; }
.site-footer--mct a:hover { color: #fff; text-decoration: none; }
.footer-mct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-mct-col h4 { font-size: 1rem; margin-bottom: 0.75rem; color: #fff; }
.footer-mct-col p { margin: 0 0 0.35rem; font-size: 0.9rem; }
.footer-social { list-style: none; padding: 0; margin: 0; }
.footer-social li { margin-bottom: 0.25rem; }
.footer-mct-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.mct-movetop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--mct-primary);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  z-index: 99;
}
.mct-movetop.show { display: block; }
.mct-movetop:hover { background: var(--mct-primary-dark); color: #fff; }

/* Home: mission, performance table, statement (main page data) */
.mct-home-data {
  padding: 3.5rem 0;
  background: #f0f2f5;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.mct-home-data--page {
  border-top: none;
  padding-top: 2.5rem;
}
.mct-home-data__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 0.75rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.mct-home-data__lead {
  text-align: center;
  color: #555;
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
}
.mct-home-data__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .mct-home-data__grid {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.15fr) minmax(260px, 1fr);
    gap: 1.75rem;
  }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .mct-home-data__grid {
    grid-template-columns: 1fr 1fr;
  }
  .mct-home-data__col--table { grid-column: 1 / -1; }
}
.mct-data-block {
  margin-bottom: 1.25rem;
}
.mct-data-block:last-child { margin-bottom: 0; }
.mct-data-block--flush { margin-bottom: 0; }
.mct-data-banner {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--mct-primary);
  border-radius: 4px;
}
.mct-data-banner--compact { font-size: 0.78rem; }
.mct-data-block__body {
  margin: 0;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.65;
}
.mct-data-block__body p { margin: 0 0 0.85rem; }
.mct-data-block__body p:last-child { margin-bottom: 0; }
.mct-data-block__body cite {
  font-style: normal;
  font-weight: 600;
  color: #1a1a1a;
}
.mct-honorific { font-size: 0.88em; white-space: nowrap; }
.mct-performance-intro {
  font-size: 0.9rem;
  color: #444;
  margin: 0 0 0.85rem;
  line-height: 1.55;
}
.mct-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  border: 1px solid #d8d8d8;
  background: #fffef8;
}
.mct-data-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.mct-data-table abbr { text-decoration: none; border-bottom: 1px dotted rgba(0,0,0,0.25); cursor: help; }
.mct-data-table th,
.mct-data-table td {
  padding: 0.4rem 0.35rem;
  text-align: right;
  border: 1px solid #c9c9c9;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.mct-data-table th:first-child,
.mct-data-table td:first-child {
  text-align: left;
  width: 4.25rem;
  max-width: 4.25rem;
  padding-left: 0.35rem;
  padding-right: 0.25rem;
  box-sizing: border-box;
}
.mct-data-table thead th:first-child {
  width: 4.25rem;
}
.mct-data-table th:nth-child(4),
.mct-data-table td:nth-child(4) {
  width: 4rem;
  max-width: 4rem;
  padding-left: 0.25rem;
  box-sizing: border-box;
}
.mct-data-table thead th {
  background: #2c5282;
  color: #fff;
  font-weight: 600;
}
.mct-data-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.6); }
.mct-data-table__total th,
.mct-data-table__total td {
  background: #fce4ec;
  font-weight: 700;
}
.mct-statement-lead {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.mct-org-line {
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: var(--mct-primary);
  border-radius: 4px;
}
.mct-data-block--statement .mct-statement-dates {
  font-size: 0.82rem;
  color: #555;
  margin: -0.35rem 0 0.75rem;
}
.mct-statement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  background: #fffef8;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  overflow: hidden;
}
.mct-statement-table:last-of-type { margin-bottom: 0; }
.mct-statement-table thead th {
  background: #c53030;
  color: #fff;
  padding: 0.45rem 0.65rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mct-statement-table thead th.mct-statement-table__section {
  text-align: center;
  font-size: 0.85rem;
}
.mct-statement-table thead tr + tr th {
  background: #9b2c2c;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: normal;
}
.mct-statement-table thead tr + tr th:nth-child(2),
.mct-statement-table thead tr + tr th:nth-child(3) {
  text-align: right;
}
.mct-statement-table abbr { text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.5); cursor: help; }
.mct-statement-table td,
.mct-statement-table th[scope="row"] {
  padding: 0.4rem 0.65rem;
  border-top: 1px solid #e0e0e0;
}
.mct-statement-table td:nth-child(2),
.mct-statement-table td:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mct-statement-table__highlight th,
.mct-statement-table__highlight td {
  background: #fff9c4;
  font-weight: 700;
  border-top: 2px solid #d4af37;
}

.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.25rem; }
.mb-5 { margin-bottom: 2rem; }
.img-fluid { max-width: 100%; height: auto; }
