/* =============================================================
   CCHCL Website — Component Styles
   Buttons, cards, forms, team, blog, badges, accordions
   ============================================================= */

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-spring);
  border: none;
  text-decoration: none;
  padding: 14px 32px;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-purple);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-purple-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.btn--gold {
  background: var(--gradient-gold);
  color: #fff;
}
.btn--gold:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn--outline {
  background: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
  padding: 12px 30px;
}
.btn--outline:hover {
  background: var(--color-purple);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--color-purple);
}
.btn--white:hover {
  color: var(--color-purple-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 12px 30px;
}
.btn--outline-white:hover {
  background: #fff;
  color: var(--color-purple);
  border-color: #fff;
}

.btn--sm {
  font-size: 13px;
  padding: 10px 20px;
}

.btn--lg {
  font-size: 16px;
  padding: 16px 40px;
}

.btn--pill { border-radius: var(--radius-full); }

/* ==========================================================
   CARDS
   ========================================================== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-spring);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card__img { transform: scale(1.05); }

.card__img-wrap {
  overflow: hidden;
  position: relative;
}

.card__body { padding: var(--space-lg); }

.card__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  margin-bottom: 6px;
  display: block;
}

.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__link i {
  transition: transform var(--transition-base);
}
.card:hover .card__link i { transform: translateX(4px); }

/* Card: Gold bottom accent on hover */
.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform var(--transition-spring);
}
.card:hover::after { transform: scaleX(1); }

/* Badge overlay */
.card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(107,45,123,0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* Icon badge (floating circle) */
.card__icon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  z-index: 3;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-spring);
}
.card:hover .card__icon-badge { transform: scale(1.1) rotate(-5deg); }

.card__date {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

/* Subsidiary card variant */
.card--sub {
  border-top: 3px solid transparent;
}
.card--sub:hover {
  border-top-color: var(--color-gold);
}

.card__website {
  font-size: 13px;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.card__website:hover { color: var(--color-purple); }

/* ==========================================================
   TEAM CARDS
   ========================================================== */
.team-page__intro {
  max-width: 760px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}
.team-feature {
  display: grid;
  grid-template-columns: 68fr 32fr;
  gap: var(--space-lg);
  align-items: stretch;
  margin-bottom: var(--space-3xl);
}
.team-feature__card {
  display: grid;
  grid-template-columns: 38fr 62fr;
  min-height: 360px;
  overflow: hidden;
  background: var(--gradient-purple);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.team-feature__image {
  min-height: 360px;
  background: var(--color-deep-navy);
}
.team-feature__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.team-feature__body {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-feature__body h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 8px;
}
.team-feature__role {
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.team-feature__body p:not(.team-feature__role) {
  color: rgba(255,255,255,0.76);
  max-width: 58ch;
}
.team-feature__panel {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(253,246,227,0.78), rgba(255,255,255,0.96)),
    var(--color-surface);
  border: 1px solid rgba(197,160,40,0.24);
  box-shadow: var(--shadow-md);
  display: grid;
  align-content: center;
  gap: var(--space-lg);
}
.team-count {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0,0,0,0.08);
}
.team-count strong {
  display: block;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.95;
  color: var(--color-purple);
}
.team-count span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 15px;
}
.team-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--color-gold-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.team-section__dept {
  margin-bottom: var(--space-3xl);
}
.team-section__dept:last-child {
  margin-bottom: 0;
}
.team-section__header {
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: var(--space-xl);
  align-items: end;
  margin-bottom: var(--space-lg);
}
.team-section__header p {
  color: var(--color-text-secondary);
  max-width: 54ch;
  justify-self: end;
}
.team-section__dept-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  color: var(--color-purple);
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-section__dept-title i {
  color: var(--color-gold);
  font-size: 24px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}
.team-grid--modern {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.team-grid--hub {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-spring);
  border: 1px solid var(--color-border-light);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.team-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-spring);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-gold);
}
.team-card:hover::after {
  transform: scaleX(1);
}
.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-soft-purple);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-purple);
  font-family: var(--font-display);
  font-weight: 700;
  border: 3px solid var(--color-border-light);
  overflow: hidden;
  position: relative;
}
.team-card:hover .team-card__avatar {
  border-color: var(--color-gold);
}
.team-card__avatar span {
  position: relative;
  z-index: 1;
}
.team-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
  z-index: 2;
}
.team-card:hover .team-card__photo {
  transform: scale(1.06);
}
.team-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}
.team-card__title {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.team-card__meta {
  display: inline-flex;
  margin-top: 10px;
  color: var(--color-gold-dark);
  font-size: 13px;
  font-weight: 700;
}
.team-card--hub {
  background:
    linear-gradient(160deg, rgba(232,239,247,0.72), rgba(255,255,255,0.98)),
    var(--color-surface);
}
.team-card--hub .team-card__avatar {
  background: rgba(27,58,107,0.1);
  color: var(--color-navy);
}

.story-gceo-portrait {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid rgba(197,160,40,0.42);
  box-shadow: var(--shadow-md);
  margin: 0 auto var(--space-md);
}
.story-gceo-portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Highlight card (GCEO) */
.team-card--featured {
  background: var(--gradient-purple);
  color: #fff;
  border: none;
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  text-align: left;
  padding: var(--space-xl);
  gap: var(--space-xl);
}
.team-card--featured .team-card__avatar {
  width: 100px;
  height: 100px;
  margin: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 40px;
  border-color: rgba(255,255,255,0.2);
}
.team-card--featured .team-card__name {
  color: #fff;
  font-size: 22px;
}
.team-card--featured .team-card__title {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}
.team-card--featured .team-card__bio {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-top: 8px;
}

/* ==========================================================
   FORMS
   ========================================================== */
.form-group { margin-bottom: var(--space-lg); }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(107,45,123,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Donation amount selector */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.amount-btn {
  padding: 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}
.amount-btn:hover,
.amount-btn.active {
  border-color: var(--color-gold);
  background: var(--color-cream);
  color: var(--color-gold-dark);
}

/* ==========================================================
   ACCORDION
   ========================================================== */
.accordion__item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}
.accordion__trigger {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-purple);
  transition: background 0.2s;
}
.accordion__trigger:hover { background: var(--color-soft-purple); }
.accordion__trigger i { transition: transform 0.3s; color: var(--color-gold); }
.accordion__trigger.open i { transform: rotate(180deg); }
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion__content-inner {
  padding: 0 24px 20px;
}
.accordion__content-inner p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

/* ==========================================================
   BLOG COMPONENTS
   ========================================================== */
.blog-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  justify-content: center;
}
.blog-filter {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}
.blog-filter:hover,
.blog-filter.active {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}

/* Blog featured post */
.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  align-items: center;
}
.blog-featured__img {
  border-radius: var(--radius-xl);
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.blog-featured__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  margin-bottom: 8px;
}
.blog-featured__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: var(--space-md);
}
.blog-featured__excerpt {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* ==========================================================
   DONATE COMPONENTS
   ========================================================== */
.cause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.cause-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-spring);
  background: var(--color-surface);
}
.cause-card:hover,
.cause-card.active {
  border-color: var(--color-gold);
  background: var(--color-cream);
  transform: translateY(-2px);
}
.cause-card i {
  font-size: 32px;
  color: var(--color-gold);
  margin-bottom: 8px;
}
.cause-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

/* Progress bar (for donation campaigns) */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 8px 0;
}
.progress-bar__fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* ==========================================================
   TIMELINE (Our Story page)
   ========================================================== */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 10px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-gold);
  z-index: 1;
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 4px;
}
.timeline__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.timeline--homepage {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-xl);
  padding-top: 38px;
}
.timeline--homepage::before {
  display: block;
  left: 0;
  right: 0;
  top: 6px;
  bottom: auto;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(197,160,40,0), rgba(197,160,40,0.75), rgba(27,58,107,0.28), rgba(197,160,40,0));
}
.timeline--homepage .timeline__item {
  padding: 0;
}
.timeline--homepage .timeline__item::before {
  left: 0;
  top: -36px;
  width: 12px;
  height: 12px;
  border-width: 2px;
  border-color: var(--color-cream);
}
.timeline--homepage .timeline__item::after {
  display: none;
}
.timeline--homepage .timeline__year {
  display: block;
  padding-top: 20px;
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}
.timeline--homepage .timeline__text {
  max-width: 23ch;
  font-size: 15px;
}

/* ==========================================================
   MISC
   ========================================================== */
/* Homepage: portfolio strip */
.portfolio-strip {
  padding: 26px 0;
}
.portfolio-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.portfolio-kpi {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  padding: 18px 14px;
  text-align: center;
}
.portfolio-kpi__value {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 6px;
}
.portfolio-kpi__label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.76);
  letter-spacing: 0.4px;
}

/* Homepage: operating model */
.model-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}
.model-step {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}
.model-step__number {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--color-gold);
  margin-bottom: 12px;
}
.model-step__title {
  font-family: var(--font-display);
  color: var(--color-purple);
  font-size: 24px;
  margin-bottom: 8px;
}
.model-step__text {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* Homepage: flagship projects */
.flagship-section {
  background: linear-gradient(180deg, #fff 0%, var(--color-soft-blue) 100%);
}
.flagship-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: var(--space-xl);
}
.flagship-card {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px;
}
.flagship-card--primary {
  background: linear-gradient(140deg, rgba(107,45,123,0.07), rgba(197,160,40,0.08));
}
.flagship-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--color-gold-dark);
  margin-bottom: 10px;
}
.flagship-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-purple);
  margin-bottom: 10px;
  line-height: 1.2;
}
.flagship-card__text {
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}
.flagship-card__list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.flagship-card__list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-secondary);
  font-size: 14px;
}
.flagship-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* Homepage: trust panel */
.trust-panel {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--color-border-light);
  display: grid;
  gap: 14px;
}
.trust-panel__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.8);
}
.trust-panel__item i {
  font-size: 22px;
  color: var(--color-gold);
  margin-top: 2px;
}
.trust-panel__item h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin-bottom: 2px;
}
.trust-panel__item p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.form-fallback-note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197,160,40,0.26);
  background: var(--color-gold-light);
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: 18px;
}

.map-fallback,
.sub-location-fallback {
  min-height: 330px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.08);
  background:
    linear-gradient(135deg, rgba(245,243,238,0.94), rgba(232,239,247,0.76)),
    var(--color-cream);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
}

.map-fallback > i,
.sub-location-fallback > i {
  color: var(--color-gold);
  font-size: 42px;
  flex-shrink: 0;
}

.map-fallback h3,
.sub-location-fallback h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-purple);
  margin-bottom: 8px;
}

.map-fallback p,
.sub-location-fallback p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.sub-location-fallback {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  min-height: clamp(300px, 34vw, 380px);
}

.sub-location-fallback > i {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(139,94,60,0.1);
  box-shadow: var(--shadow-sm);
  color: var(--sub-ink);
  font-size: 34px;
}

.sub-location-fallback__content {
  min-width: 0;
  max-width: 36rem;
}

/* Homepage: pathways */
.pathways-section {
  background: linear-gradient(180deg, #fff 0%, #f7f2fa 100%);
}
.pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}
.pathway-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
}
.pathway-card i {
  font-size: 28px;
  color: var(--color-purple);
  margin-bottom: 12px;
}
.pathway-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.pathway-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.pathway-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-purple);
}

/* Section header with link */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

/* Values cards */
.value-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-gold);
  transition: all var(--transition-spring);
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.value-card__icon {
  font-size: 28px;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}
.value-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: 6px;
}
.value-card__text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Project page */
.project-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.project-detail {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}
.project-detail i {
  font-size: 24px;
  color: var(--color-gold);
  margin-top: 2px;
}
.project-detail__label {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-detail__value {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-cream);
  border-radius: var(--radius-xl);
}
.empty-state i {
  font-size: 56px;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  opacity: 0.4;
}
.empty-state__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-purple);
  margin-bottom: 8px;
}
.empty-state__text {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 440px;
  margin: 0 auto var(--space-lg);
}

/* ==========================================================
   HOMEPAGE 2026 REFINEMENT
   ========================================================== */
.home-hero {
  min-height: 620px;
  height: 88vh;
  max-height: 860px;
}
.home-hero__bg {
  transform-origin: center;
}
.home-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(197,160,40,0.3), transparent 40%),
    linear-gradient(125deg, rgba(15,36,64,0.88) 0%, rgba(42,14,53,0.74) 52%, rgba(15,36,64,0.55) 100%);
  z-index: 1;
}
.home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.96) contrast(1.04);
}
.home-hero__content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}
.home-hero__eyebrow {
  color: var(--color-gold-light);
}
.hero-fact-panel {
  width: min(520px, 100%);
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.24);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.hero-fact-panel span {
  display: block;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}
.hero-fact-panel p {
  color: rgba(255,255,255,0.86);
  font-size: 15px;
  line-height: 1.5;
  max-width: 38ch;
}

.about-snapshot__facts {
  display: grid;
  gap: 10px;
}
.about-snapshot__facts article {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
}
.about-snapshot__facts strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-gold-dark);
  margin-bottom: 4px;
}
.about-snapshot__facts p {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.leadership-portrait {
  position: relative;
  min-height: 330px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--color-deep-navy);
}
.leadership-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,36,64,0.02) 30%, rgba(15,36,64,0.82) 100%);
}
.leadership-portrait img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-spring);
}
.leadership-portrait:hover img {
  transform: scale(1.04);
}
.leadership-portrait figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
}
.leadership-portrait span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold);
}
.leadership-portrait strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}
.leadership-portrait small {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: rgba(255,255,255,0.78);
}

.mission-band {
  padding: 24px 0;
}
.mission-band__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mission-band__grid article {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  padding: 16px;
}
.mission-band__grid strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 6px;
}
.mission-band__grid p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.5;
}

.home-subsidiaries .section-header {
  margin-bottom: 20px;
}
.subsidiary-hub {
  display: grid;
  grid-template-columns: 33fr 67fr;
  gap: var(--space-xl);
  align-items: start;
}
.subsidiary-switch {
  display: grid;
  gap: 8px;
}
.subsidiary-switch__btn {
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: left;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-spring);
}
.subsidiary-switch__btn:hover,
.subsidiary-switch__btn.is-active {
  border-color: rgba(197,160,40,0.45);
  background: linear-gradient(100deg, rgba(197,160,40,0.08), rgba(107,45,123,0.06));
  color: var(--color-purple);
  transform: translateX(3px);
}

.subsidiary-stage {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
}
.subsidiary-panel {
  display: none;
  grid-template-columns: 56fr 44fr;
  min-height: 420px;
}
.subsidiary-panel.is-active {
  display: grid;
  animation: panelIn 420ms var(--ease-out);
}
.subsidiary-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subsidiary-panel__meta {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--color-cream) 100%);
}
.subsidiary-panel__meta h3 {
  color: var(--color-purple);
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1;
}
.subsidiary-panel__meta p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 28ch;
}
.subsidiary-panel__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.subsidiary-panel__chips span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(27,58,107,0.08);
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 600;
}

.mini-subs-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.mini-sub-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff 0%, #f8f5ef 100%);
  padding: 14px 12px;
}
.mini-sub-card h3 {
  font-size: 17px;
  color: var(--color-purple);
  margin-bottom: 6px;
}
.mini-sub-card p {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.home-showcase__intro {
  max-width: 660px;
  margin-bottom: var(--space-xl);
}
.placeholder-grid {
  display: grid;
  grid-template-columns: 52fr 24fr 24fr;
  gap: var(--space-md);
}
.content-placeholder {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(15,36,64,0.3);
  background:
    repeating-linear-gradient(45deg, rgba(27,58,107,0.06), rgba(27,58,107,0.06) 12px, rgba(255,255,255,0.2) 12px, rgba(255,255,255,0.2) 24px),
    linear-gradient(160deg, #f3efe7 0%, #f9f7f2 100%);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  transition: transform var(--transition-spring), border-color var(--transition-base), box-shadow var(--transition-base);
}
.content-placeholder:hover {
  transform: translateY(-4px);
  border-color: rgba(197,160,40,0.65);
  box-shadow: var(--shadow-md);
}
.content-placeholder--wide {
  min-height: 330px;
}
.content-placeholder__title {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: 4px;
}
.content-placeholder p {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.lims-list {
  margin-top: 6px;
  display: grid;
  gap: 8px;
}
.lims-list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-secondary);
  font-size: 15px;
}
.lims-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

.tilt-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================
   MEDIA: GALLERY
   ========================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-xl);
}
.gallery-filter {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.gallery-filter.active,
.gallery-filter:hover {
  border-color: var(--color-navy);
  color: #fff;
  background: var(--color-navy);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  text-align: left;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 64%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: opacity 0.3s;
}
.gallery-item__title {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
}
.gallery-item__category {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  z-index: 10001;
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
  text-align: center;
}

/* ==========================================================
   LEGAL / POLICY PAGES
   ========================================================== */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
}
.legal-doc__updated {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}
.legal-doc__section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}
.legal-doc__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.legal-doc__heading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: 10px;
}
.legal-doc__text {
  color: var(--color-text-secondary);
  line-height: 1.75;
}
.legal-doc__list {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--color-text-secondary);
  display: grid;
  gap: 8px;
}

/* ==========================================================
   404
   ========================================================== */
.not-found {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}
.not-found__code {
  font-family: var(--font-display);
  font-size: clamp(96px, 20vw, 168px);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 0.9;
  opacity: 0.2;
  margin-bottom: 10px;
}
.not-found__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  color: var(--color-purple);
  margin-bottom: 8px;
}
.not-found__text {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}
.not-found__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.not-found__links {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.not-found__links p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.not-found__links-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================
   SUBSIDIARY PAGES - PHASE 2 ART DIRECTION
   ========================================================== */
.sub-page {
  --sub-accent: var(--color-gold);
  --sub-ink: var(--color-navy);
  --sub-soft: var(--color-cream);
  --sub-hero-gradient: linear-gradient(130deg, rgba(15,36,64,0.9), rgba(27,58,107,0.72));
}

.sub-theme--bookshop {
  --sub-accent: var(--color-bookshop);
  --sub-ink: #4a2f1b;
  --sub-soft: #f7efe8;
  --sub-hero-gradient: linear-gradient(135deg, rgba(74,47,27,0.92), rgba(139,94,60,0.72), rgba(27,58,107,0.58));
}

.sub-theme--publishing {
  --sub-accent: var(--color-publishing);
  --sub-ink: #3f1c48;
  --sub-soft: #f4eef8;
  --sub-hero-gradient: linear-gradient(135deg, rgba(42,14,53,0.9), rgba(107,45,123,0.82), rgba(15,36,64,0.6));
}

.sub-theme--guest-house {
  --sub-accent: var(--color-guest-house);
  --sub-ink: #164a24;
  --sub-soft: #eef6ef;
  --sub-hero-gradient: linear-gradient(135deg, rgba(22,74,36,0.9), rgba(46,125,50,0.74), rgba(15,36,64,0.56));
}

.sub-theme--nabugabo {
  --sub-accent: var(--color-holiday-centre);
  --sub-ink: #0f4868;
  --sub-soft: #ebf5fb;
  --sub-hero-gradient: linear-gradient(135deg, rgba(8,59,94,0.9), rgba(2,119,189,0.74), rgba(15,36,64,0.56));
}

.sub-theme--church-house {
  --sub-accent: var(--color-church-house);
  --sub-ink: #4a3a12;
  --sub-soft: #f9f5e7;
  --sub-hero-gradient: linear-gradient(135deg, rgba(70,57,20,0.9), rgba(197,160,40,0.78), rgba(15,36,64,0.68));
}

.sub-page .page-hero {
  min-height: clamp(400px, 66vh, 620px);
  padding: calc(var(--space-4xl) + 16px) 0 var(--space-3xl);
}

.sub-page .page-hero__bg {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35)),
    var(--sub-hero-gradient);
}

.sub-page .page-hero__content {
  max-width: 760px;
}

.sub-page .page-hero__subtitle {
  color: rgba(255,255,255,0.82);
  max-width: 54ch;
}

.sub-page .breadcrumb {
  font-size: 15px;
}

.sub-page .breadcrumb a:hover {
  color: #fff;
}

.sub-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin-bottom: 12px;
}

.sub-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-lg);
}

.sub-hero__chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.sub-overview {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: var(--space-2xl);
  align-items: center;
}

.sub-overview--reverse {
  grid-template-columns: 42fr 58fr;
}

.sub-overview__media-wrap {
  position: relative;
}

.sub-overview__media {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.06);
}

.sub-overview__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.sub-overview__note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(15,36,64,0.86);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 15px;
  max-width: 28ch;
}

.sub-intro {
  max-width: 58ch;
  color: var(--color-text-secondary);
}

.sub-intro p + p {
  margin-top: 14px;
}

.sub-kpi-grid {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sub-kpi {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 14px;
}

.sub-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1;
  color: var(--sub-ink);
  margin-bottom: 6px;
}

.sub-kpi span {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.sub-microtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub-accent);
  margin-bottom: 10px;
}

.sub-section-head {
  max-width: 700px;
  margin-bottom: var(--space-xl);
}

.sub-section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sub-section-head p {
  color: var(--color-text-secondary);
  margin-top: 10px;
}

.sub-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.sub-switcher__btn {
  border: 1px solid rgba(0,0,0,0.13);
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.sub-switcher__btn:hover {
  transform: translateY(-1px);
  border-color: var(--sub-accent);
}

.sub-switcher__btn.is-active {
  color: #fff;
  background: var(--sub-accent);
  border-color: var(--sub-accent);
}

.sub-panel-stack {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.sub-panel {
  display: none;
  grid-template-columns: 56fr 44fr;
  gap: var(--space-xl);
  padding: 24px;
}

.sub-panel.is-active {
  display: grid;
  animation: panelIn 360ms var(--ease-out);
}

.sub-panel__body h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 38px);
  line-height: 1;
  color: var(--sub-ink);
  margin-bottom: 12px;
}

.sub-panel__body p {
  color: var(--color-text-secondary);
}

.sub-panel__list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.sub-panel__list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.sub-panel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sub-accent);
}

.sub-panel__aside {
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--sub-soft), #fff);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 16px;
}

.sub-panel__aside h4 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--sub-ink);
  margin-bottom: 8px;
}

.sub-panel__aside p {
  color: var(--color-text-secondary);
}

.sub-placeholder {
  margin-top: 12px;
  min-height: 200px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0,0,0,0.2);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.55), rgba(255,255,255,0.55) 12px, rgba(0,0,0,0.02) 12px, rgba(0,0,0,0.02) 24px),
    linear-gradient(140deg, rgba(255,255,255,0.88), rgba(0,0,0,0.03));
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.sub-placeholder strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--sub-ink);
}

.sub-placeholder p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.sub-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sub-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.sub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,0.14);
}

.sub-card h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--sub-ink);
  margin: 10px 0 8px;
}

.sub-card p {
  color: var(--color-text-secondary);
}

.sub-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: var(--sub-accent);
  background: var(--sub-soft);
}

.bookshop-ledger {
  display: grid;
  grid-template-columns: 35fr 65fr;
  gap: var(--space-xl);
}

.bookshop-ledger__summary {
  border-radius: var(--radius-lg);
  background: var(--sub-soft);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 20px;
}

.bookshop-ledger__summary h3 {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--sub-ink);
  margin-bottom: 10px;
}

.bookshop-ledger__events {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.bookshop-ledger__events::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: rgba(139,94,60,0.45);
}

.bookshop-ledger__event {
  position: relative;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px 14px 14px 16px;
}

.bookshop-ledger__event::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sub-accent);
  box-shadow: 0 0 0 4px rgba(139,94,60,0.2);
}

.bookshop-ledger__event strong {
  display: block;
  font-size: 17px;
  color: var(--sub-ink);
  margin-bottom: 4px;
}

.publishing-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.publishing-process__step {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 16px;
}

.publishing-process__step span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(107,45,123,0.12);
  color: var(--sub-accent);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.publishing-process__step h3 {
  font-size: 22px;
  color: var(--sub-ink);
  margin-bottom: 6px;
}

.language-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.language-cluster span {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 15px;
  background: #fff;
  color: var(--color-text-secondary);
}

.guesthouse-amenities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guesthouse-amenity {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 16px;
  text-align: center;
}

.guesthouse-amenity i {
  font-size: 30px;
  color: var(--sub-accent);
  margin-bottom: 8px;
}

.guesthouse-amenity p {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.guesthouse-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guesthouse-journey article {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 18px;
}

.guesthouse-journey strong {
  display: block;
  font-size: 15px;
  color: var(--sub-accent);
  margin-bottom: 8px;
}

.guesthouse-journey h3 {
  font-size: 27px;
  color: var(--sub-ink);
  margin-bottom: 6px;
}

.nabugabo-conservation {
  display: grid;
  grid-template-columns: 46fr 54fr;
  gap: var(--space-xl);
  align-items: start;
}

.nabugabo-points {
  display: grid;
  gap: 10px;
}

.nabugabo-points li {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.nabugabo-points strong {
  color: var(--sub-ink);
}

.churchhouse-floor-note {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.churchhouse-timeline {
  display: grid;
  gap: 12px;
}

.churchhouse-timeline__item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: start;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 14px;
}

.churchhouse-timeline__item strong {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(197,160,40,0.14);
  color: #4a3a12;
  font-size: 15px;
}

.churchhouse-timeline__item p {
  color: var(--color-text-secondary);
}

/* ==========================================================
   HOMEPAGE HERO CAROUSEL
   ========================================================== */
.home-hero-carousel {
  min-height: 620px;
  isolation: isolate;
}

.home-hero-carousel .hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out);
}

.home-hero-carousel .hero__slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.home-hero-carousel .hero__content {
  max-width: min(900px, 78vw);
}

.home-hero-carousel .hero__title {
  font-size: clamp(52px, 8vw, 94px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 14ch;
  text-wrap: balance;
}

.home-hero-carousel .hero__subtitle {
  font-size: clamp(19px, 2.2vw, 25px);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero__controls {
  position: absolute;
  inset: auto 24px 24px auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(9, 17, 31, 0.45);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.hero__arrow:hover {
  transform: translateY(-1px);
  background: rgba(9, 17, 31, 0.75);
  border-color: rgba(255,255,255,0.58);
}

.hero__dots {
  position: absolute;
  left: clamp(16px, 4vw, 44px);
  bottom: 30px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background var(--transition-fast), width var(--transition-fast);
}

.hero__dot.active {
  width: 56px;
  background: var(--color-gold);
}

/* ==========================================================
   DONATE PAGE REFINEMENT
   ========================================================== */
.donate-page {
  --donate-accent: var(--color-gold);
}

.donate-band {
  background: linear-gradient(120deg, rgba(15,36,64,0.96), rgba(60,29,70,0.88));
  position: relative;
}

.donate-band .section-title {
  color: #fff;
}

.donate-band .section-subtitle {
  color: rgba(255,255,255,0.78);
}

.donate-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.donate-impact-item {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.donate-impact-item strong {
  display: block;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
}

.donate-impact-item span {
  color: rgba(255,255,255,0.84);
  font-size: 14px;
}

.donate-form-shell {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: var(--space-xl);
  align-items: start;
}

.donate-form-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 30px);
}

.donate-form-card h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.3vw, 42px);
  color: var(--color-purple);
  line-height: 1;
  margin-bottom: 10px;
}

.donate-form-card p {
  color: var(--color-text-secondary);
  margin-bottom: 18px;
}

.donate-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.donate-side-stack {
  display: grid;
  gap: 14px;
}

.donate-side-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fff 0%, var(--color-cream) 100%);
  padding: 18px;
}

.donate-side-card h4 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-purple);
  margin-bottom: 8px;
}

.donate-side-card p,
.donate-side-card li {
  color: var(--color-text-secondary);
  font-size: 15px;
}

.donate-side-card ul {
  display: grid;
  gap: 8px;
}
