/* TAHISA — Bootstrap alignment + utilities (follows main.css variables) */

:root {
  --bs-primary: #0c4a6e;
  --bs-primary-rgb: 12, 74, 110;
  --bs-link-color: #0c4a6e;
  --bs-link-hover-color: #0ea5e9;
}

.btn-primary,
.bg-primary {
  --bs-btn-bg: #0c4a6e;
  --bs-btn-border-color: #0c4a6e;
  --bs-btn-hover-bg: #094461;
  --bs-btn-hover-border-color: #094461;
  background: linear-gradient(135deg, #0c4a6e 0%, #0b5a8c 100%) !important;
  border: none !important;
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(12, 74, 110, 0.35);
}

.text-primary {
  color: #0c4a6e !important;
}

.btn-outline-primary {
  --bs-btn-color: #0c4a6e;
  --bs-btn-border-color: color-mix(in srgb, #0c4a6e, #fff 55%);
  --bs-btn-hover-bg: #0c4a6e;
  --bs-btn-hover-border-color: #0c4a6e;
}

/* Year archive toolbar */
.tahisa-year-bar {
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
  color: #fff;
  border-radius: var(--radius-md, 18px);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md, 0 12px 40px rgba(15, 23, 42, 0.08));
}

.tahisa-year-bar .form-select {
  max-width: 140px;
  border-radius: 999px;
}

/* Bootstrap Icons on dark / primary blue UI — white glyphs for contrast */
.tahisa-year-bar .bi,
.tahisa-year-bar [class^="bi-"],
.card-header.bg-primary.text-white .bi,
.card-header.bg-primary.text-white [class^="bi-"],
.tahisa-mofate-strip .bi,
.tahisa-mofate-strip [class^="bi-"],
.tahisa-news-mofate-hero .text-white .bi,
.tahisa-news-mofate-hero .text-white [class^="bi-"],
.tahisa-plan-head .bi,
.tahisa-plan-head [class^="bi-"],
.tahisa-plan-head--accent .bi,
.tahisa-plan-head--accent [class^="bi-"],
.tahisa-annual-year-card__head .bi,
.tahisa-annual-year-card__head [class^="bi-"],
.tahisa-careers-status__rail .bi,
.tahisa-careers-status__rail [class^="bi-"],
.tahisa-memberres-status__rail .bi,
.tahisa-memberres-status__rail [class^="bi-"],
.tahisa-renewal-card__rail .bi,
.tahisa-renewal-card__rail [class^="bi-"] {
  color: #fff !important;
}

.page-title .heading .bi,
.page-title .heading [class^="bi-"],
.page-title nav .bi,
.page-title nav [class^="bi-"] {
  color: #fff !important;
}

.page-title .heading h1,
.page-title nav,
.page-title nav a,
.page-title nav .breadcrumb-item,
.page-title nav .breadcrumb-item.active {
  color: #fff !important;
}

.tahisa-year-bar .text-primary,
.tahisa-annual-year-card__head .text-primary,
.tahisa-mofate-strip .text-primary,
.tahisa-news-mofate-hero .text-primary,
.tahisa-plan-head .text-primary,
.tahisa-plan-head--accent .text-primary,
.tahisa-careers-status__rail .text-primary,
.tahisa-memberres-status__rail .text-primary,
.tahisa-renewal-card__rail .text-primary,
.tahisa-gradient-cta .text-primary,
.card-header.bg-primary .text-primary,
.mobile-nav-drawer__head .text-primary,
.page-title .text-primary,
#tahisa-home-alerts .alert.alert-primary .text-primary,
article.tahisa-nextgen-article .alert.alert-primary .text-primary,
#tahisaNewsReaderModalBody article.tahisa-nextgen-article .alert.alert-primary .text-primary {
  color: #fff !important;
}

/* Brand blue surfaces — default copy & icons white */
.tahisa-year-bar,
.tahisa-mofate-strip,
.tahisa-news-mofate-hero,
.tahisa-plan-head,
.tahisa-plan-head--accent,
.tahisa-annual-year-card__head,
.tahisa-careers-status__rail,
.tahisa-memberres-status__rail,
.tahisa-renewal-card__rail,
.tahisa-gradient-cta,
.card-header.bg-primary,
.mobile-nav-drawer__head {
  color: #fff;
}

.card-header.bg-primary .bi,
.card-header.bg-primary [class^="bi-"],
.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-primary p,
.card-header.bg-primary a:not(.btn) {
  color: #fff !important;
}

.badge.bg-primary:not([class*="opacity"]),
.text-bg-primary {
  color: #fff !important;
}

/* Home alerts + NextGen schedule strip (Bootstrap alert-primary is light blue by default) */
#tahisa-home-alerts .alert.alert-primary,
article.tahisa-nextgen-article .alert.alert-primary.border-0,
#tahisaNewsReaderModalBody article.tahisa-nextgen-article .alert.alert-primary.border-0 {
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%) !important;
  color: #fff !important;
  border: none !important;
}

#tahisa-home-alerts .alert.alert-primary .bi,
#tahisa-home-alerts .alert.alert-primary [class^="bi-"],
#tahisa-home-alerts .alert.alert-primary strong,
#tahisa-home-alerts .alert.alert-primary a,
#tahisa-home-alerts .alert.alert-primary .alert-link {
  color: #fff !important;
}

/* Typed.js cursor */
.typed-cursor {
  opacity: 1;
  animation: typed-blink 0.7s infinite;
}

@keyframes typed-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-typed {
  color: #fff;
  font-weight: 700;
  min-height: 1.2em;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f4f7fb 0%, color-mix(in srgb, #0c4a6e 12%, #fff) 100%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#preloader.preloader-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  text-align: center;
}

.preloader-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 4px solid color-mix(in srgb, var(--accent-color) 25%, transparent);
  border-top-color: var(--accent-color);
  animation: tahisa-spin 0.9s linear infinite;
}

.preloader-brand .sitename {
  font-family: var(--heading-font, Outfit, sans-serif);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  font-size: 1.1rem;
}

@keyframes tahisa-spin {
  to { transform: rotate(360deg); }
}

.project-card-tahisa .badge-status {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* Membership CTA slab (reusable) */
.tahisa-gradient-cta {
  border-radius: var(--radius-lg, 24px);
  background: linear-gradient(125deg, #0c4a6e 0%, #0b5a8c 45%, #0ea5e9 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

/* Partners marquee (right → left) */
.tahisa-marquee-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tahisa-marquee {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 2.5rem;
  padding-block: 0.35rem;
  animation: tahisa-marquee-scroll 42s linear infinite;
}

.tahisa-marquee-wrap:hover .tahisa-marquee {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .tahisa-marquee {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    row-gap: 0.75rem;
  }
}

@keyframes tahisa-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tahisa-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--heading-color, #0f172a), #64748b 35%);
}

.tahisa-marquee-item i {
  color: var(--accent-color, #0c4a6e);
  font-size: 1.1rem;
}

/* Membership plan cards */
.tahisa-plan-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tahisa-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12) !important;
}

.tahisa-plan-head {
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 100%);
  color: #fff;
}

.tahisa-plan-head--accent {
  background: linear-gradient(135deg, #0c4a6e 0%, #0b5a8c 55%, #0ea5e9 100%);
}

.tahisa-plan-card .tahisa-plan-price {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* National membership strip (membership.php) */
.tahisa-national-membership__eyebrow {
  letter-spacing: 0.12em;
}

.tahisa-national-stat {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tahisa-national-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}

.tahisa-national-stat__icon {
  width: 3.25rem;
  height: 3.25rem;
}

body.membership-page .tahisa-national-stat__icon {
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(8, 47, 71, 0.22);
}

body.membership-page .tahisa-national-stat__icon .bi {
  color: #fff;
}

body.membership-page .tahisa-benefit-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8, 47, 71, 0.2);
}

body.membership-page .tahisa-benefit-card__icon .bi {
  color: #fff;
}

.tahisa-benefit-card__accent {
  height: 4px;
  background: linear-gradient(90deg, #082f47 0%, #0c4a6e 45%, #0ea5e9 100%);
}

.tahisa-benefit-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tahisa-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.11) !important;
}

.tahisa-benefit-card__glyph {
  flex-shrink: 0;
  line-height: 1;
}

.tahisa-renewal-card__rail {
  background: linear-gradient(160deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
}

.tahisa-renewal-card {
  transition: box-shadow 0.2s ease;
}

.tahisa-renewal-card:hover {
  box-shadow: 0 20px 48px rgba(12, 74, 110, 0.18) !important;
}

/* Project flip cards (compact, 3 per row on large screens) */
.project-flip {
  perspective: 1000px;
  cursor: pointer;
  min-height: 0;
}

.project-flip:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color, #0c4a6e), #fff 40%);
  outline-offset: 4px;
}

.project-flip-inner {
  position: relative;
  width: 100%;
  min-height: 195px;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.project-flip-front,
.project-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(145deg, #0c4a6e 0%, #082f47 55%, #0b5a8c 100%);
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  box-shadow: 0 8px 24px rgba(12, 74, 110, 0.2);
}

.project-flip-front--owner {
  justify-content: space-between;
}

.project-flip-owner-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.project-owner-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, #fff 35%, transparent);
}

.project-flip-owner-meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.project-flip-owner-meta .badge-status {
  font-size: 0.6rem;
}

.project-flip-back {
  transform: rotateY(180deg);
  overflow: hidden;
}

.project-flip-back-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 9.5rem;
  overflow-y: auto;
  margin-bottom: 0.25rem;
}

.project-flip.is-flipped .project-flip-inner {
  transform: rotateY(180deg);
}

/* NextGen 2026 presenter profile grid (4 × 3 on large screens) */
.tahisa-presenter-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.tahisa-presenter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(12, 74, 110, 0.14) !important;
}

.tahisa-presenter-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #e0f2fe 0%, #f0f9ff 45%, #e2e8f0 100%);
  overflow: hidden;
}

.tahisa-presenter-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tahisa-presenter-card__badge {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.tahisa-presenter-card__overview {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.tahisa-presenter-grid__desc {
  max-height: 7.5rem;
  overflow-y: auto;
  line-height: 1.45;
  margin-top: 0.15rem;
}

/* Project grid card — float / lift, opens zoom lightbox when clicked (2026 grid) */
.tahisa-proj-card {
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  outline: none;
}

.tahisa-proj-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
}

.tahisa-proj-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color, #0c4a6e), #fff 35%);
  outline-offset: 3px;
}

.tahisa-proj-card__img {
  transition: transform 0.35s ease;
}

.tahisa-proj-card:hover .tahisa-proj-card__img {
  transform: scale(1.05);
}

body.tahisa-proj-zoom-open {
  overflow: hidden;
}

.tahisa-proj-zoom {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
}

.tahisa-proj-zoom.is-open {
  pointer-events: auto;
}

.tahisa-proj-zoom__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 0.32s ease;
  cursor: pointer;
}

.tahisa-proj-zoom.is-open .tahisa-proj-zoom__backdrop {
  opacity: 1;
}

.tahisa-proj-zoom__panel {
  position: relative;
  width: 100%;
  max-width: 38rem;
  max-height: min(92vh, 52rem);
  overflow: auto;
  transform: scale(0.88) translateY(1.25rem);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.tahisa-proj-zoom.is-open .tahisa-proj-zoom__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.tahisa-proj-zoom__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 1;
  font-size: 1.35rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tahisa-proj-zoom__desc {
  max-height: 14rem;
  overflow-y: auto;
  line-height: 1.5;
}

/* Floating WhatsApp + assistant */
.tahisa-float-dock {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 1035;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
}

.tahisa-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.tahisa-float-btn:hover {
  transform: scale(1.06);
  color: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.28);
}

.tahisa-float-wa {
  background: #25d366;
}

.tahisa-float-chat {
  background: linear-gradient(145deg, #0c4a6e, #0b5a8c);
}

.tahisa-chat-panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 2rem));
  max-height: min(560px, 72vh);
  z-index: 1060;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(12, 74, 110, 0.14);
}

.tahisa-chat-panel[hidden] {
  display: none !important;
}

.tahisa-chat-panel-head {
  padding: 0.85rem 1rem;
  background: linear-gradient(125deg, #0c4a6e, #0b5a8c);
}

.tahisa-chat-panel-body {
  padding: 1rem 1.1rem 1.15rem;
  overflow-y: auto;
}

/* Home: news sidebar + alerts layout */
.tahisa-home-feed-layout .tahisa-home-sidebar.sticky-lg-top {
  top: 5.5rem;
  z-index: 101;
}

.tahisa-home-sidebar-list .list-group-item {
  border-color: rgba(12, 74, 110, 0.08);
}

#tahisa-home-alerts .alert {
  margin-bottom: 0.5rem;
}

/* Home: news sidebar — “new” pulse + scoped layout (does not squeeze other sections) */
@keyframes tahisa-feed-new-blink {
  0%,
  100% {
    opacity: 1;
  }
  45%,
  55% {
    opacity: 0.25;
  }
}

body.index-page .tahisa-home-feed-layout {
  max-width: 100%;
}

.tahisa-sidebar-new-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: tahisa-feed-new-blink 1.15s ease-in-out infinite;
}

.tahisa-home-sidebar-item--new {
  border-inline-start: 3px solid rgba(220, 53, 69, 0.45);
}

/* News: master–detail + reader modal */
.tahisa-news-split-section .tahisa-news-split-shell {
  background: #fff;
  min-height: 0;
}

@media (min-width: 992px) {
  .tahisa-news-split-section .tahisa-news-split-shell {
    min-height: 560px;
  }
}

.tahisa-news-split-detail {
  background: linear-gradient(185deg, #f8fafc 0%, #eef2f7 42%, #ffffff 100%);
  min-height: 260px;
}

@media (min-width: 992px) {
  .tahisa-news-split-detail {
    min-height: 0;
  }
}

.tahisa-news-detail-toolbar {
  border-bottom: 1px solid rgba(12, 74, 110, 0.1);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.tahisa-news-detail-toolbar__inner {
  max-width: 920px;
}

.tahisa-news-detail-inner {
  max-width: 920px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1rem;
  border: 1px solid rgba(12, 74, 110, 0.1);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  min-height: 0;
}

.tahisa-news-standard-hero__icon {
  line-height: 1;
}

#tahisaNewsReaderModal .modal-body .tahisa-nextgen-article,
#tahisaNewsReaderModal .modal-body .tahisa-news-article-full--standard {
  max-width: 100%;
}

#tahisaNewsReaderModal .modal-body > article {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(12, 74, 110, 0.1);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
  #tahisaNewsReaderModal .modal-body > article {
    padding: 1.75rem 2rem;
  }
}

.tahisa-news-index-scroll {
  max-height: min(70vh, 620px);
  overflow-y: auto;
}

.tahisa-news-index-btn.active {
  background: color-mix(in srgb, var(--bs-primary, #0c4a6e), #fff 92%);
  border-inline-start: 3px solid var(--bs-primary, #0c4a6e);
  padding-inline-start: calc(0.75rem - 3px);
}

.tahisa-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tahisa-news-spotlight-img {
  max-height: min(88vh, 1100px);
  object-fit: contain;
  object-position: top center;
  background: #f8f9fa;
}

/* Events page: compact cards + image strip (overrides main.css #events tall overlap) */
body.events-page .events .card.tahisa-event-card {
  margin-bottom: 1.5rem;
}

body.events-page .events .tahisa-event-card-img-wrap {
  max-height: 168px;
}

body.events-page .events .tahisa-event-card-img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease-in-out;
}

body.events-page .events .tahisa-event-card-img--contain {
  object-fit: contain;
  object-position: center center;
  background: linear-gradient(145deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
}

body.events-page .events .card:hover .tahisa-event-card-img {
  transform: scale(1.06);
}

body.events-page .events .card-body {
  margin-top: -1.75rem;
  padding: 0.75rem 1.15rem 1rem;
}

body.events-page .events .card-title {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

body.events-page .events .card-text.tahisa-event-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 0;
  text-align: justify;
}

body.events-page .events .card-text.small {
  display: block;
  -webkit-line-clamp: unset;
}

/* TAHISSA chapter leaders — About page only (compact portraits) */
.tahisa-chapter-leaders .member h4 {
  font-size: 1rem;
}

.tahisa-chapter-leaders .member span {
  font-size: 0.875rem;
}

.tahisa-chapter-leaders .tahisa-chapter-leader-photo {
  display: block;
  width: 96px;
  height: 96px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--accent-color, #0c4a6e), #fff 70%);
}

@media (min-width: 768px) {
  .tahisa-chapter-leaders .tahisa-chapter-leader-photo {
    width: 110px;
    height: 110px;
  }
}

/* Home sidebar — MOFATE × TAHISSA upcoming strip */
.tahisa-mofate-strip {
  background: linear-gradient(135deg, #064e3b 0%, #0c4a6e 48%, #166534 100%);
}

.tahisa-mofate-strip__label {
  letter-spacing: 0.06em;
}

.tahisa-mofate-strip__link {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.tahisa-mofate-strip__link:hover {
  text-decoration-color: #fff;
}

.tahisa-mofate-strip__item:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* News — MOFATE × TAHISSA hero band */
.tahisa-news-mofate-hero {
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 40%, #14532d 100%);
}

.tahisa-mofate-hero-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tahisa-mofate-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

.letter-spacing-1 {
  letter-spacing: 0.08em;
}

.letter-spacing-tight {
  letter-spacing: 0.06em;
}

.tahisa-news-index-mofate__link:last-child {
  border-bottom: none !important;
}

/* News — full article layout in detail panel */
.tahisa-news-detail-inner {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.tahisa-news-article-full__title {
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.tahisa-news-prose {
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #334155;
}

.tahisa-news-prose p {
  margin-bottom: 1.1rem;
}

.tahisa-news-prose p:last-child {
  margin-bottom: 0;
}

.tahisa-news-article-full--standard .tahisa-news-article-full__footer .btn {
  margin-top: 0;
}

.tahisa-presenter-line {
  line-height: 1.45;
}

/* NextGen article — top schedule strip (background set in brand-surface block above) */
article.tahisa-nextgen-article .alert.alert-primary.border-0,
#tahisaNewsReaderModalBody article.tahisa-nextgen-article .alert.alert-primary.border-0 {
  color: rgba(255, 255, 255, 0.95);
}

article.tahisa-nextgen-article .alert.alert-primary.border-0 .bi,
article.tahisa-nextgen-article .alert.alert-primary.border-0 [class^="bi-"],
#tahisaNewsReaderModalBody article.tahisa-nextgen-article .alert.alert-primary.border-0 .bi {
  color: #fff !important;
}

article.tahisa-nextgen-article .alert.alert-primary.border-0 strong,
#tahisaNewsReaderModalBody article.tahisa-nextgen-article .alert.alert-primary.border-0 strong {
  color: #fff;
}

article.tahisa-nextgen-article .alert.alert-primary.border-0 a.alert-link,
#tahisaNewsReaderModalBody article.tahisa-nextgen-article .alert.alert-primary.border-0 a.alert-link {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

article.tahisa-nextgen-article .alert.alert-primary.border-0 .border-white,
#tahisaNewsReaderModalBody article.tahisa-nextgen-article .alert.alert-primary.border-0 .border-white {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* NextGen long-form article (shared: news panel, modal, nextgen-2026.php) */
.tahisa-nextgen-standalone {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tahisa-nextgen-point {
  position: relative;
  padding-left: 0.15rem;
}

.tahisa-nextgen-point__mark {
  display: inline-block;
  margin-right: 0.35rem;
  font-style: normal;
}

.tahisa-nextgen-presenters li:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Careers page */
body.careers-page .tahisa-careers-feature {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.careers-page .tahisa-careers-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}

body.careers-page .tahisa-careers-feature__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(8, 47, 71, 0.28);
}

body.careers-page .tahisa-careers-feature__icon .bi {
  color: #fff;
}

body.careers-page .tahisa-careers-status__rail {
  background: linear-gradient(160deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
}

body.careers-page .tahisa-careers-status {
  transition: box-shadow 0.2s ease;
}

body.careers-page .tahisa-careers-status:hover {
  box-shadow: 0 20px 48px rgba(12, 74, 110, 0.15) !important;
}

body.careers-page .tahisa-careers-path {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

body.careers-page .tahisa-careers-path:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1) !important;
  border-color: color-mix(in srgb, var(--bs-primary, #0c4a6e), transparent 82%);
}

body.careers-page .tahisa-careers-path__glyph {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  line-height: 1;
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8, 47, 71, 0.2);
}

body.careers-page .tahisa-careers-path__glyph .bi {
  color: #fff !important;
}

/* Annual reports page */
body.annual-reports-page .tahisa-annual-feature {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.annual-reports-page .tahisa-annual-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}

body.annual-reports-page .tahisa-annual-feature__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(8, 47, 71, 0.28);
}

body.annual-reports-page .tahisa-annual-feature__icon .bi {
  color: #fff;
}

body.annual-reports-page .tahisa-annual-year-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.annual-reports-page .tahisa-annual-year-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1) !important;
}

body.annual-reports-page .tahisa-annual-year-card__head {
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
}

body.annual-reports-page .tahisa-annual-year-card--pending .tahisa-annual-year-card__head {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
}

/* Member resources page */
body.member-resources-page .tahisa-memberres-feature {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.member-resources-page .tahisa-memberres-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}

body.member-resources-page .tahisa-memberres-feature__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(8, 47, 71, 0.28);
}

body.member-resources-page .tahisa-memberres-feature__icon .bi {
  color: #fff;
}

body.member-resources-page .tahisa-memberres-status__rail {
  background: linear-gradient(160deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
}

body.member-resources-page .tahisa-memberres-status {
  transition: box-shadow 0.2s ease;
}

body.member-resources-page .tahisa-memberres-status:hover {
  box-shadow: 0 20px 48px rgba(12, 74, 110, 0.15) !important;
}

body.member-resources-page .tahisa-memberres-request {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

body.member-resources-page .tahisa-memberres-request:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1) !important;
  border-color: color-mix(in srgb, var(--bs-primary, #0c4a6e), transparent 82%);
}

body.member-resources-page .tahisa-memberres-request__glyph {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  line-height: 1;
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8, 47, 71, 0.2);
}

body.member-resources-page .tahisa-memberres-request__glyph .bi {
  color: #fff !important;
}

/* Gallery page */
body.gallery-page .tahisa-gallery-feature {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.gallery-page .tahisa-gallery-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}

body.gallery-page .tahisa-gallery-feature__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #082f47 0%, #0c4a6e 55%, #0b5a8c 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(8, 47, 71, 0.28);
}

body.gallery-page .tahisa-gallery-feature__icon .bi {
  color: #fff;
}

body.gallery-page .tahisa-gallery-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.gallery-page .tahisa-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12) !important;
}

body.gallery-page .tahisa-gallery-card__link {
  display: block;
  position: relative;
  overflow: hidden;
  height: clamp(118px, 28vw, 168px);
}

body.gallery-page .tahisa-gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

body.gallery-page .tahisa-gallery-card:hover .tahisa-gallery-card__img {
  transform: scale(1.06);
}

body.gallery-page .tahisa-gallery-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 47, 71, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

body.gallery-page .tahisa-gallery-card:hover .tahisa-gallery-card__link::after {
  opacity: 1;
}

/* Honeypot (anti-spam) — keep off-screen, not display:none (some bots skip hidden fields) */
.tahisa-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Cookie consent strip */
.tahisa-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: color-mix(in srgb, #fff 96%, var(--accent-color, #0c4a6e));
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

/* Projects page — 2026 strip + inner rhythm */
.projects-page #projects.section {
  scroll-margin-top: 5rem;
}

.projects-page__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tahisa-2026-strip {
  box-shadow: 0 8px 32px rgba(12, 74, 110, 0.08);
}

.tahisa-proj-card__media {
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
}

/* NextGen standalone page — elevated article shell */
.nextgen-full-page .page-title .heading {
  padding-top: 64px;
  padding-bottom: 56px;
}

.nextgen-full-page .page-title .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
}

.nextgen-full-page .page-title .breadcrumb-item,
.nextgen-full-page .page-title .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.88);
}

.nextgen-full-page .page-title .breadcrumb-item a:hover {
  color: #fff;
}

.nextgen-full-page .page-title .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.65);
}

.nextgen-full-page .tahisa-nextgen-page-shell {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(12, 74, 110, 0.1);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.07);
  padding: 1.35rem 1.15rem;
}

@media (min-width: 992px) {
  .nextgen-full-page .tahisa-nextgen-page-shell {
    padding: 2.5rem 2.25rem;
  }
}

.nextgen-full-page .tahisa-nextgen-page-footer-cta {
  border-color: rgba(12, 74, 110, 0.12) !important;
}

.nextgen-full-page .tahisa-nextgen-page-footer-cta .btn {
  min-width: 10rem;
}

/* About — HIS vertical infographic timeline */
.tahisa-about-history {
  scroll-margin-top: 5rem;
}

.tahisa-about-history--vt {
  background: linear-gradient(180deg, #faf7f0 0%, #f2ece3 55%, #faf7f0 100%);
}

.tahisa-vtimeline {
  max-width: 960px;
  padding: 0.5rem 0 1rem;
}

.tahisa-vtimeline__step {
  --vt-c: #3d5a73;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 92px) minmax(0, 1fr);
  gap: clamp(0.65rem, 2.5vw, 1.35rem);
  align-items: center;
  margin-bottom: 0.15rem;
}

.tahisa-vtimeline__step--c1 {
  --vt-c: #3d5a73;
}

.tahisa-vtimeline__step--c2 {
  --vt-c: #5a9daa;
}

.tahisa-vtimeline__step--c3 {
  --vt-c: #c9a44a;
}

.tahisa-vtimeline__step--c4 {
  --vt-c: #c96d4f;
}

.tahisa-vtimeline__step--c5 {
  --vt-c: #6d8f72;
}

.tahisa-vtimeline__step--c6 {
  --vt-c: #0c4a6e;
}

.tahisa-vtimeline__step--left .tahisa-vtimeline__panel {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.tahisa-vtimeline__step--left .tahisa-vtimeline__axis {
  grid-column: 2;
}

.tahisa-vtimeline__step--left .tahisa-vtimeline__spacer {
  grid-column: 3;
}

.tahisa-vtimeline__step--right .tahisa-vtimeline__spacer {
  grid-column: 1;
}

.tahisa-vtimeline__step--right .tahisa-vtimeline__axis {
  grid-column: 2;
}

.tahisa-vtimeline__step--right .tahisa-vtimeline__panel {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.tahisa-vtimeline__panel {
  max-width: 22rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border-radius: 1.05rem;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.tahisa-vtimeline__step--left .tahisa-vtimeline__panel {
  border-left: 4px solid var(--vt-c);
}

.tahisa-vtimeline__step--right .tahisa-vtimeline__panel {
  border-right: 4px solid var(--vt-c);
}

.tahisa-vtimeline__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--vt-c), #1e293b 28%);
  margin-bottom: 0.4rem;
}

.tahisa-vtimeline__year {
  display: block;
  font-size: clamp(1.65rem, 3.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--vt-c);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  font-family: var(--heading-font, "Outfit", system-ui, sans-serif);
}

.tahisa-vtimeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.tahisa-vtimeline__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 0;
}

.tahisa-vtimeline__axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 72px;
}

.tahisa-vtimeline__line {
  width: 4px;
  flex: 1 1 auto;
  min-height: 1.15rem;
  max-height: 3.5rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vt-c), transparent 15%), color-mix(in srgb, var(--vt-c), transparent 45%));
  border-radius: 999px;
}

.tahisa-vtimeline__line--hide {
  opacity: 0;
  min-height: 0.35rem;
  max-height: 0.35rem;
  flex: 0 0 0.35rem;
}

.tahisa-vtimeline__chev {
  position: relative;
  width: min(5rem, 100%);
  height: 28px;
  margin: 2px 0;
  background: var(--vt-c);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--vt-c), transparent 50%);
}

.tahisa-vtimeline__chev::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.tahisa-vtimeline__icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--vt-c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 4px 0;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--vt-c), transparent 42%);
}

.tahisa-vtimeline__step + .tahisa-vtimeline__step {
  margin-top: -0.2rem;
}

@media (max-width: 767.98px) {
  .tahisa-vtimeline__step--left,
  .tahisa-vtimeline__step--right {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.9rem 1rem;
  }

  .tahisa-vtimeline__step .tahisa-vtimeline__axis {
    order: 1;
    flex: 0 0 56px;
    min-width: 56px;
    width: 56px;
  }

  .tahisa-vtimeline__step .tahisa-vtimeline__panel {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    justify-self: stretch !important;
    text-align: left !important;
    max-width: none;
    border-left: 4px solid var(--vt-c) !important;
    border-right: none !important;
  }

  .tahisa-vtimeline__step .tahisa-vtimeline__spacer {
    display: none !important;
  }

  .tahisa-vtimeline__line--top.tahisa-vtimeline__line--hide {
    flex: 0 0 0.25rem;
    min-height: 0.25rem;
    max-height: 0.25rem;
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Site-wide responsive helpers (mobile / narrow viewports)
   -------------------------------------------------------------------------- */
.main img,
.main video,
.main iframe {
  max-width: 100%;
}

.header .logo {
  min-width: 0;
}

@media (max-width: 1199px) {
  .header > .container-fluid.container-xl {
    flex-wrap: nowrap;
    min-width: 0;
    column-gap: 0.35rem;
  }

  .header .btn-getstarted {
    flex-shrink: 0;
    font-size: 0.8125rem;
  }
}

.header .logo .sitename,
.header .logo .logo-tagline {
  overflow-wrap: anywhere;
}

@media (max-width: 400px) {
  .header .logo h1.sitename {
    font-size: 1.05rem;
  }
}

.footer .footer-newsletter .newsletter-form input[type="email"] {
  min-width: 0;
  flex: 1 1 auto;
}

.footer .footer-newsletter .newsletter-form input[type="submit"] {
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .footer .footer-newsletter .newsletter-form input[type="submit"] {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.875rem;
  }
}
