@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap");

:root {
  --bs-primary: #e70f47;
  --bs-primary-rgb: 231, 15, 71;
  --bs-secondary: #f2a900;
  --bs-secondary-rgb: 242, 169, 0;
  --bs-font-sans-serif:
    "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --rotary-red: #e70f47;
  --rotary-red-dark: #b10b35;
  --rotary-gold: #f2a900;
  --rotary-azure: #00a2e0;
  --rotary-dark: #122236;
  --rotary-cream: #f7f8fa;
  --serif: Georgia, "Times New Roman", serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--bs-font-sans-serif);
  color: #1f2937;
  background-color: #f8f2f5;
}

h1,
h2,
h3,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
  font-family: var(--bs-font-sans-serif);
  letter-spacing: 0;
}

h1,
.display-1,
.display-2 {
  font-weight: 300;
}
h2,
h3,
.display-3,
.display-4,
.display-5 {
  font-weight: 700;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--rotary-gold);
}

/* ---------- Utilities ---------- */
.bg-rotary-red {
  background-color: var(--rotary-red) !important;
}
.bg-rotary-dark {
  background-color: var(--rotary-dark) !important;
}
.bg-rotary-cream {
  background-color: var(--rotary-cream) !important;
}
.text-rotary-red {
  color: var(--rotary-red) !important;
}
.text-rotary-gold {
  color: var(--rotary-gold) !important;
}
.border-rotary {
  border-color: var(--rotary-red) !important;
}

.btn-primary {
  background-color: var(--rotary-red);
  border-color: var(--rotary-red);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--rotary-red-dark);
  border-color: var(--rotary-red-dark);
}
.btn-secondary {
  background-color: var(--rotary-gold);
  border-color: var(--rotary-gold);
  color: #1f2937;
}
.btn-secondary:hover {
  background-color: #d99700;
  border-color: #d99700;
  color: #1f2937;
}
.btn-outline-light:hover {
  color: var(--rotary-red);
}

/* ---------- Navbar ---------- */
#navbar-container {
  position: sticky;
  top: 0;
  z-index: 1030;
}
#mainNavbar {
  transition: box-shadow 0.2s ease;
  padding: 0.95rem 0;
}
#mainNavbar.navbar-scrolled {
  box-shadow: 0 4px 18px rgba(18, 34, 54, 0.08);
}
#mainNavbar .navbar-brand {
  padding: 0;
  margin: 0;
}
#mainNavbar .navbar-logo {
  display: block;
  height: 66px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
#mainNavbar .nav-link {
  font-weight: 700;
  color: #2b3a4a;
  font-size: 0.96rem;
  padding: 0.65rem 0.95rem;
  position: relative;
}
#mainNavbar .nav-link.active,
#mainNavbar .nav-link:hover {
  color: var(--rotary-red);
}
#mainNavbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--rotary-gold);
}
/* Navbar Logo Container - Static + Spinning + Static */
.navbar-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.logo-static {
  width: auto;
  height: 40px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-spin {
  animation: spin 10s linear infinite;
  width: auto;
  height: 40px;
  max-width: 100%;
  max-height: 100%;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-section.hero-compact {
  min-height: 46vh;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-section.hero-compact {
    min-height: 25vh;
    overflow: hidden;
  }
}
.hero-section.hero-compact .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-section .display-1,
.hero-section .display-2 {
  color: #fff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
}
.hero-section .lead,
.hero-section .hero-badge {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.message-card {
  background: #ffffff;
  border: 1px solid rgba(18, 34, 54, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.message-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(18, 34, 54, 0.12);
}
.message-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(231, 15, 71, 0.08);
}
.message-card h3 {
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.message-card p {
  line-height: 1.75;
}
.message-card .text-rotary-gold {
  font-size: 0.85rem;
  letter-spacing: 0.09em;
}
/* ---------- Hero with Video ---------- */
.hero-section.hero-video {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background-color: #1a1a2e; /* Fallback color */
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
  /* Optional: add gradient overlay for better text readability */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-section.hero-video .container {
  position: relative;
  z-index: 3;
}

.hero-section.hero-video .display-1,
.hero-section.hero-video .display-2 {
  color: #fff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
}

.hero-section.hero-video .lead {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* -------- Mobile Optimization -------- */
@media (max-width: 768px) {
  .hero-section.hero-video {
    min-height: 70vh;
  }

  .hero-video-bg {
    min-height: 100vh;
  }

  #mainNavbar .navbar-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
}

/* -------- Reduce Motion Preference -------- */
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg {
    display: none;
  }

  .hero-section.hero-video {
    background-image: url("../assets/images/hero-poster.jpg");
    background-size: cover;
    background-position: center;
  }
}

/* ---------- Cards ---------- */
.feature-card {
  border: none;
  border-radius: 14px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  height: 100%;
}

.project-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(18, 34, 54, 0.06);
}

.project-card .card-img-top {
  height: 210px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.project-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card .card-title {
  min-height: 2.8rem;
}

.project-card .card-text {
  flex: 1;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(18, 34, 54, 0.12);
}
.feature-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 15, 71, 0.1);
  color: var(--rotary-red);
  font-size: 1.5rem;
}

.leader-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 26px rgba(18, 34, 54, 0.12);
}
.leader-card img {
  aspect-ratio: 1/1;
  object-fit: cover;
  /* object-position: top; */
}

/* ---- Leader-card responsive: show full photo on smaller screens ---- */
@media (max-width: 991.98px) {
  .leader-card .card-img-top {
    height: auto !important; /* override inline height:200px */
  }
  .leader-card .card-img-top img {
    aspect-ratio: 3 / 4; /* portrait ratio — shows full photo */
  }
}

@media (max-width: 575.98px) {
  .leader-card .card-img-top img {
    aspect-ratio: 4 / 5; /* slightly taller on phones */
  }
}

.quote-block {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  border-left: 5px solid var(--rotary-gold);
  padding-left: 1.5rem;
}

/* ---------- Gallery ---------- */
.gallery-grid img {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
}

/* ---------- Stats ---------- */
.stat-number {
  font-family: var(--bs-font-sans-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--rotary-red);
}

/* ---------- Accordion ---------- */
.accordion-button:not(.collapsed) {
  background-color: rgba(231, 15, 71, 0.08);
  color: var(--rotary-red);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(231, 15, 71, 0.25);
}

/* ---------- Communication Channel Page ---------- */
.communication-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.communication-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 1.25rem;
  box-shadow: 0 10px 24px rgba(18, 34, 54, 0.06);
  padding: 1.4rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.communication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18, 34, 54, 0.1);
  border-color: rgba(231, 15, 71, 0.24);
}

.communication-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

.communication-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rotary-dark);
  margin: 0;
}

.communication-card__role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.16);
  color: var(--rotary-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.communication-card__person {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--rotary-dark);
}

.communication-zone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.communication-zone-btn {
  border: 0;
  background: rgba(231, 15, 71, 0.08);
  color: var(--rotary-red);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.communication-zone-btn:hover,
.communication-zone-btn:focus-visible {
  background: var(--rotary-red);
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.communication-accordion .accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.communication-accordion .accordion-button {
  font-weight: 600;
  color: var(--rotary-dark);
}

.communication-accordion .accordion-button:not(.collapsed) {
  color: var(--rotary-red);
  background: rgba(231, 15, 71, 0.07);
}

.communication-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.communication-modal-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.communication-modal-list li:last-child {
  border-bottom: 0;
}

/* ---------- Vision, Mission & Goals Page ---------- */
.vision-card {
  border: none;
  border-radius: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: #ffffff;
  height: 100%;
}

.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(18, 34, 54, 0.12);
}

.vision-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.vision-card .icon-circle.red {
  background: rgba(231, 15, 71, 0.12);
  color: var(--rotary-red);
}

.vision-card .icon-circle.gold {
  background: rgba(242, 169, 0, 0.15);
  color: var(--rotary-gold);
}

.vision-card .icon-circle.blue {
  background: rgba(0, 162, 224, 0.12);
  color: var(--rotary-azure);
}

.goal-card {
  border-left: 4px solid var(--rotary-red);
  border-radius: 12px;
  background: #ffffff;
  padding: 1.5rem 1.5rem 1.5rem 1.8rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.goal-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.goal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rotary-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.goal-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rotary-dark);
  margin-bottom: 0.5rem;
}

.goal-card ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

.goal-card ul li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.5;
}

.goal-card ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--rotary-gold);
  font-weight: 700;
}

.closing-quote {
  background: linear-gradient(135deg, #f8f2f5 0%, #f1e8ec 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(231, 15, 71, 0.08);
}

.closing-quote .quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--rotary-gold);
  opacity: 0.4;
  font-family: Georgia, serif;
}

.closing-quote h3 {
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  color: var(--rotary-dark);
  letter-spacing: 0.02em;
}

.closing-quote h3 strong {
  font-weight: 700;
  color: var(--rotary-red);
}

@media (max-width: 768px) {
  .goal-card {
    padding: 1.2rem;
  }

  .closing-quote {
    padding: 2rem 1.2rem;
  }

  .closing-quote .quote-mark {
    font-size: 2.8rem;
  }
}

@media (max-width: 1199.98px) {
  .communication-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .communication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .communication-grid {
    grid-template-columns: 1fr;
  }

  .communication-card {
    padding: 1.15rem;
  }
}

/* ---------- Footer ---------- */
.footer-link {
  color: #c8d3df;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--rotary-gold);
}
.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- Misc ---------- */
.section-divider {
  width: 64px;
  height: 4px;
  background: var(--rotary-gold);
  border-radius: 4px;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rotary-red);
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .leader-card,
  .gallery-grid img {
    transition: none;
  }
}

.login-logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .login-logo {
    max-width: 150px;
  }
}

/* ── Resources-specific styles ── */
.video-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  height: 100%;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(18, 34, 54, 0.12);
}
.video-card .ratio {
  border-radius: 0;
}
.video-card .card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.resource-tab-btn {
  border: none;
  background: transparent;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  transition:
    background 0.18s,
    color 0.18s;
}
.resource-tab-btn.active,
.resource-tab-btn:hover {
  background: rgba(231, 15, 71, 0.09);
  color: var(--rotary-red);
}
.resource-tab-btn .icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(231, 15, 71, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rotary-red);
  font-size: 1rem;
  flex: none;
}
.resource-tab-btn.active .icon-pill {
  background: var(--rotary-red);
  color: #fff;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.download-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e9ecef;
}
.download-list li:last-child {
  border-bottom: none;
}
.download-list .file-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: none;
}
.file-icon.docx {
  background: #e8f0fe;
  color: #1a73e8;
}
.file-icon.pdf {
  background: #fce8e6;
  color: #d93025;
}
.file-icon.doc {
  background: #e8f0fe;
  color: #1a73e8;
}

.download-list a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  flex: 1;
  line-height: 1.3;
}
.download-list a:hover {
  color: var(--rotary-red);
  text-decoration: underline;
}

.download-list .btn-dl {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
}
.tab-pane-content {
  display: none;
}
.tab-pane-content.active {
  display: block;
}

/* ---------- Password Toggle ---------- */
.input-with-icon {
  position: relative;
}

.input-with-icon .form-control {
  padding-right: 3rem;
}

.password-toggle-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: var(--rotary-red);
}

.password-toggle-btn i {
  font-size: 1.1rem;
}

/* Message Cards */
.message-card {
  border: 1px solid rgba(18, 34, 54, 0.08);
  border-radius: 20px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  background: #ffffff;
  height: 100%;
  box-shadow: 0 8px 20px rgba(18, 34, 54, 0.04);
}
.message-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(18, 34, 54, 0.1);
}
.message-card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1.25rem 1.5rem 0.25rem 1.5rem;
}
.message-card .card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.message-card .card-footer {
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0.75rem 1.5rem 1.25rem;
  font-size: 0.85rem;
  color: #4b5563;
}
.portrait-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--rotary-red);
  border: 2px solid rgba(231, 15, 71, 0.15);
  flex-shrink: 0;
}
.role-badge {
  background: rgba(242, 169, 0, 0.15);
  color: #b8860b;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.message-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1f2937;
}
.message-text p:last-child {
  margin-bottom: 0;
}
.sig-line {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rotary-dark);
}
.closing-quote {
  border: 0;
}
.closing-quote .quote-mark {
  line-height: 1;
}

/* Flowchart Structure */
.flowchart-container {
  position: relative;
  padding: 2rem 0;
}

.flowchart-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 60px;
  background: var(--rotary-gold);
  border-radius: 4px;
}

.flowchart-container::after {
  content: "District Committee";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rotary-red);
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(231, 15, 71, 0.3);
}

.flowchart-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  margin-top: 3rem;
}

.flowchart-row::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: var(--rotary-gold);
  opacity: 0.3;
  border-radius: 4px;
}

/* Region Cards */
.region-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 2px solid #f1f3f5;
  transition: all 0.3s ease;
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
}

.region-card::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background: var(--rotary-gold);
  opacity: 0.5;
}

.region-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--rotary-red);
}

.region-card.adrr {
  border-top: 4px solid var(--rotary-azure);
}

.region-card.rrc {
  border-top: 4px solid var(--rotary-gold);
}

.region-card .role-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.region-card .role-badge.adrr {
  background: rgba(0, 162, 224, 0.12);
  color: var(--rotary-azure);
}

.region-card .role-badge.rrc {
  background: rgba(242, 169, 0, 0.15);
  color: #b8860b;
}

.region-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--rotary-dark);
}

.region-card .person-name {
  color: #4b5563;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
  margin: 0;
}

.zone-tag {
  background: #f8f9fa;
  color: #1f2937;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  cursor: pointer;
}

.zone-tag:hover {
  background: var(--rotary-red);
  color: white;
  border-color: var(--rotary-red);
  transform: scale(1.05);
}

/* For mobile */
@media (max-width: 768px) {
  .flowchart-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .flowchart-row::before {
    display: none;
  }

  .region-card {
    max-width: 100%;
    width: 100%;
  }

  .region-card::before {
    display: none;
  }

  .flowchart-container::before,
  .flowchart-container::after {
    display: none;
  }
}

/* --- Extracted from communication_channel.html (Org Chart Styles) --- */
/* ===== Org Chart Styles ===== */
.org-chart-section {
  background: var(--rotary-cream);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(18, 34, 54, 0.06);
}

.org-chart-section .section-title {
  font-family: var(--bs-font-sans-serif);
  font-weight: 700;
  color: var(--rotary-dark);
}

.org-chart-section .section-title i {
  color: var(--rotary-red);
}

.org-chart-section .eyebrow {
  color: var(--rotary-gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Org chart specific colors */
.org-chart-wrap {
  overflow-x: auto;
  padding: 1rem 0;
}

.org-node {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  background: #fff;
  border: 2px solid #c9cfda;
  cursor: default;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  z-index: 2;
  font-family: var(--bs-font-sans-serif);
}

.org-node .abbr {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.65;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.org-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 33, 73, 0.15);
}

.org-node.root {
  background: var(--rotary-dark);
  color: #fff;
  border-color: var(--rotary-dark);
  font-size: 0.95rem;
  min-width: 230px;
  padding: 14px 20px;
}

.org-node.peer {
  background: #fff;
  border-color: #1c3768;
  color: var(--rotary-dark);
}

.org-node.branch-green {
  border-color: #1f8a56;
  color: #1f8a56;
}
.org-node.branch-blue {
  border-color: #1c6fbf;
  color: #1c6fbf;
}
.org-node.branch-purple {
  border-color: #7b3fb0;
  color: #7b3fb0;
}
.org-node.branch-orange {
  border-color: #d9722c;
  color: #d9722c;
}

.org-node.leaf-green {
  background: #eef8f2;
  border-color: #1f8a56;
  color: #1a4a34;
}
.org-node.leaf-blue {
  background: #eaf3fc;
  border-color: #1c6fbf;
  color: #153f66;
}
.org-node.leaf-purple {
  background: #f4eefb;
  border-color: #7b3fb0;
  color: #452167;
}
.org-node.leaf-orange {
  background: #fdf1e6;
  border-color: #d9722c;
  color: #7a4415;
}

.org-node.clubs {
  background: var(--rotary-dark);
  color: #fff;
  border-color: var(--rotary-dark);
  font-family: "Archivo Black", var(--bs-font-sans-serif);
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

.org-node.has-children {
  cursor: pointer;
}
.org-node.has-children::after {
  content: "▾";
  display: block;
  font-size: 0.6rem;
  margin-top: 4px;
  opacity: 0.5;
}
.org-node.collapsed::after {
  content: "▸";
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.dbl-arrow {
  color: var(--rotary-dark);
  font-size: 1.3rem;
  letter-spacing: -2px;
  opacity: 0.5;
  font-weight: 300;
}

.trunk {
  width: 2px;
  height: 30px;
  background: var(--rotary-dark);
  margin: 0 auto;
  opacity: 0.3;
}

.branches {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
  padding-top: 20px;
  flex-wrap: nowrap;
  min-width: 1000px;
}

.branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--rotary-dark);
  opacity: 0.3;
}

.branch-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 210px;
}

.branch-col::before {
  content: "";
  width: 2px;
  height: 20px;
  background: var(--rotary-dark);
  opacity: 0.3;
}

.children-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease;
  overflow: hidden;
}

.children-wrap.hidden {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0;
  gap: 0;
}

.child-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.child-row::before {
  content: "";
  width: 2px;
  height: 14px;
  background: #c9cfda;
}

.sub-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  margin-top: 10px;
}

.sub-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #c9cfda;
}

.sub-list .org-node {
  position: relative;
}

.sub-list .org-node::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #c9cfda;
}

.sub-list .dot-marker {
  position: absolute;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 3;
}

.branch-col[data-branch="green"] .sub-list::before,
.branch-col[data-branch="green"] .sub-list .org-node::before,
.branch-col[data-branch="green"] .dot-marker {
  background: #1f8a56;
}
.branch-col[data-branch="blue"] .sub-list::before,
.branch-col[data-branch="blue"] .sub-list .org-node::before,
.branch-col[data-branch="blue"] .dot-marker {
  background: #1c6fbf;
}
.branch-col[data-branch="purple"] .sub-list::before,
.branch-col[data-branch="purple"] .sub-list .org-node::before,
.branch-col[data-branch="purple"] .dot-marker {
  background: #7b3fb0;
}
.branch-col[data-branch="orange"] .sub-list::before,
.branch-col[data-branch="orange"] .sub-list .org-node::before,
.branch-col[data-branch="orange"] .dot-marker {
  background: #d9722c;
}

.org-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(18, 34, 54, 0.06);
}

.org-legend .chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--rotary-dark);
  font-weight: 500;
}

.org-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.org-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 1rem;
}

.org-toolbar button {
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid var(--rotary-red);
  background: transparent;
  color: var(--rotary-red);
  transition: all 0.15s ease;
  font-family: var(--bs-font-sans-serif);
}

.org-toolbar button:hover {
  background: var(--rotary-red);
  color: #fff;
}

@media (max-width: 991px) {
  .branches {
    min-width: 900px;
  }
  .org-chart-section {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .org-chart-section {
    padding: 1rem;
  }
  .top-row {
    gap: 10px;
  }
  .org-node {
    min-width: 120px;
    font-size: 0.7rem;
    padding: 8px 10px;
  }
  .org-node.root {
    min-width: 160px;
    font-size: 0.8rem;
    padding: 10px 14px;
  }
  .dbl-arrow {
    font-size: 1rem;
  }
  .branches {
    gap: 20px;
    min-width: 700px;
  }
  .branch-col {
    min-width: 160px;
  }
  .org-legend .chip {
    font-size: 0.7rem;
  }
}
/* ---------- Compact Hero with Image Only ---------- */
.hero-image-banner {
  min-height: 300px;
  max-height: 400px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .hero-image-banner {
    min-height: 25vh;
  }
}
.mini-hero-image {
  max-width: 960px;
  margin: 2rem auto 3rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.mini-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- Focus Area grid (district service breakdown) ---------- */
.focus-area-table {
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(18, 34, 54, 0.06);
  max-width: 800px;
  margin: 0 auto;
  display: inline-block;
  width: 100%;
}

.flex-table {
  display: flex;
  flex-direction: column;
}

.focus-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  background: #fff;
}

.focus-header {
  background: #f9fafc;
  color: #444;
  font-weight: 700;
  font-size: 1.1rem;
}

.focus-header > div,
.focus-row > div {
  padding: 1rem 1rem;
  text-align: center;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.focus-header > div:last-child,
.focus-row > div:last-child {
  border-right: none;
}

.focus-row:last-child > div {
  border-bottom: none;
}

.focus-col-area {
  background: #f2f4f8;
  text-align: left !important;
}

.focus-col-projects {
  background: #e3f2fd;
}

.focus-col-benef {
  background: #e8f5e9;
}

.focus-col-vol {
  background: #fff3e0;
}

.focus-col-funds {
  background: #f3e5f5;
}

.focus-row:hover .focus-col-area {
  background: #e6e9f0;
}
.focus-row:hover .focus-col-projects {
  background: #d1e7ff;
}
.focus-row:hover .focus-col-benef {
  background: #d4edda;
}
.focus-row:hover .focus-col-vol {
  background: #ffe5b4;
}
.focus-row:hover .focus-col-funds {
  background: #e1d1f0;
}

.focus-col-area i {
  font-size: 1.4rem;
  color: var(--rotary-red);
  margin-right: 0.6rem;
  vertical-align: middle;
}

.focus-col-area .focus-area-name {
  vertical-align: middle;
  font-weight: 600;
  color: #1f2937;
}

@media (max-width: 768px) {
  .focus-area-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.8rem;
    max-width: 100%;
    margin: 0;
  }

  .focus-area-table::-webkit-scrollbar {
    height: 8px;
  }
  .focus-area-table::-webkit-scrollbar-thumb {
    background: rgba(18, 34, 54, 0.18);
    border-radius: 999px;
  }

  .focus-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    min-width: 500px;
    background: #fff;
    margin-bottom: 0;
    border: none;
  }

  .focus-header {
    background: #f9fafc;
    color: #444;
    font-weight: 700;
    font-size: 1rem;
  }

  .focus-header > div,
  .focus-row > div {
    padding: 0.85rem 0.9rem;
    text-align: center;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    white-space: normal;
    word-break: break-word;
    font-size: 0.95rem;
  }

  .focus-header > div:last-child,
  .focus-row > div:last-child {
    border-right: none;
  }

  .focus-row:last-child > div {
    border-bottom: none;
  }

  .focus-col-area {
    background: #f2f4f8;
    text-align: left !important;
  }

  .focus-col-projects {
    background: #e3f2fd;
  }

  .focus-col-benef {
    background: #e8f5e9;
  }

  .focus-col-vol {
    background: #fff3e0;
  }

  .focus-col-funds {
    background: #f3e5f5;
  }

  .focus-row:hover .focus-col-area {
    background: #e6e9f0;
  }
  .focus-row:hover .focus-col-projects {
    background: #d1e7ff;
  }
  .focus-row:hover .focus-col-benef {
    background: #d4edda;
  }
  .focus-row:hover .focus-col-vol {
    background: #ffe5b4;
  }
  .focus-row:hover .focus-col-funds {
    background: #e1d1f0;
  }

  .focus-col-area i {
    margin-right: 0.4rem;
  }
}
