*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #002868;
  --primary-light: #003a8c;
  --accent: #BF0A30;
  --accent-light: #d43b52;
  --red: #BF0A30;
  --white: #ffffff;
  --off-white: #f0f2f5;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --text: #2c3e50;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wide-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-subtitle {
  color: var(--gray);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.75rem 0 1.5rem 0;
  border-radius: 2px;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== TOP BAR ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 1001;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}
.top-bar-left a {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}
.top-bar-left a:hover {
  color: var(--accent-light);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-bar-right a {
  color: rgba(255,255,255,0.8);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.top-bar-right a svg {
  width: 16px;
  height: 16px;
}
.top-bar-right a:hover {
  background: var(--accent);
  color: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 0 32px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: linear-gradient(135deg, rgba(0,40,104,0.97) 0%, rgba(0,58,140,0.97) 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.nav-logo img {
  height: 80px;
  width: auto;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes floatHeading {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.01); }
}
@keyframes floatSub {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(191,10,48,0.3); transform: scale(1); }
  50% { box-shadow: 0 8px 40px rgba(191,10,48,0.6); transform: scale(1.03); }
}
.nav-logo-text {
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-logo-text span {
  display: block;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--white);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* --- Nav Links --- */
.nav-menu > a,
.nav-menu .drop-trigger {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.nav-menu > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-menu > a:hover,
.nav-menu .drop-trigger:hover { color: var(--white); }
.nav-menu > a:hover::after { transform: scaleX(1); }
.nav-menu > a.active { color: var(--accent-light); }

/* --- Dropdown --- */
.nav-dropdown {
  position: relative;
}
.drop-trigger {
  display: inline-block;
}
.drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 999;
  padding: 6px 0;
}
.nav-dropdown:hover .drop-menu,
.nav-dropdown:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drop-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.88rem;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.drop-menu a:hover {
  background: var(--off-white);
  color: var(--primary);
}
.drop-menu a::before {
  content: '\203A';
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO / BANNER ===== */
.hero {
  margin-top: 136px;
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--primary);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,61,0.75) 0%, rgba(10,31,61,0.35) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}
.hero-overlay h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  max-width: 900px;
  animation: floatHeading 4s ease-in-out infinite;
}
.hero-overlay p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  max-width: 700px;
  margin-top: 16px;
  font-weight: 300;
  animation: floatSub 5s ease-in-out infinite;
  animation-delay: 0.5s;
}
.hero-overlay .hero-btn {
  margin-top: 32px;
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
  animation: pulseGlow 3s ease-in-out infinite;
  animation-delay: 1s;
}
.hero-overlay .hero-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dots button {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition);
}
.hero-dots button.active {
  background: var(--white);
}
.hero-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 5;
  pointer-events: none;
}
.hero-arrows button {
  pointer-events: all;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--transition);
}
.hero-arrows button:hover {
  background: rgba(255,255,255,0.3);
}

/* ===== QUICK STATS ===== */
.stats {
  background: var(--primary);
  padding: 60px 0;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-light);
}
.stat-item p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* ===== ABOUT ===== */
.about {
  padding: 80px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1rem;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content h2 { font-size: 2rem; color: var(--primary); }
.about-content p { margin-bottom: 16px; color: #555; }
.about-read-more {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.about-read-more:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.about-mandate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.mandate-card {
  background: var(--off-white);
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.mandate-card h4 { color: var(--primary); margin-bottom: 6px; }
.mandate-card p { font-size: 0.9rem; margin: 0; }

/* ===== ABOUT FULL PAGE ===== */
.about-full {
  padding: 80px 0;
  background: var(--white);
}
.about-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-full-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 420px;
  background: var(--light-gray);
}
.about-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-full-content h2 {
  font-size: 2rem;
  color: var(--primary);
}
.about-full-content p {
  margin-bottom: 16px;
  color: #555;
  line-height: 1.8;
}

/* ===== FILE DOCUMENTS ===== */
.file-docs {
  padding: 80px 0;
  background: #f4f6f9;
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  padding: 28px 20px 24px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid #e5e8ee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-color: var(--primary);
}
.doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.doc-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}
.doc-pdf { background: #d32f2f; }
.doc-word { background: #2b5797; }
.doc-excel { background: #217346; }
.doc-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.doc-size {
  font-size: 0.8rem;
  color: #888;
}

/* ===== NEWS ===== */
.news {
  padding: 80px 0;
  background: var(--off-white);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.news-card-img {
  height: 200px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-body {
  padding: 20px;
}
.news-card-body .date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 8px 0;
}
.news-card-body p {
  font-size: 0.9rem;
  color: #666;
}
.news-card-body .read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.news-card-body .read-more:hover { color: var(--primary); }

.event-read-more,
.comm-read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.event-read-more:hover,
.comm-read-more:hover { background: var(--primary); color: var(--white); }

/* ===== EVENTS ===== */
.events {
  padding: 80px 0;
  background: var(--white);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  border: 1px solid var(--light-gray);
}
.event-card:hover {
  transform: translateY(-4px);
}
.event-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--light-gray);
}
.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card-body {
  display: flex;
  padding: 0;
}
.event-date-box {
  min-width: 90px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
}
.event-date-box .day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.event-date-box .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.event-info {
  padding: 16px 20px;
  flex: 1;
}
.event-info h4 {
  color: var(--primary);
  margin-bottom: 6px;
}
.event-info p {
  font-size: 0.85rem;
  color: #666;
}
.event-info .event-time {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
  display: block;
}

/* ===== COMMISSIONERS ===== */
.commissioners {
  padding: 80px 0;
  background: var(--off-white);
}
.commissioners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.comm-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.comm-card:hover {
  transform: translateY(-6px);
}
.comm-card-img {
  width: 100%;
  height: 240px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  overflow: hidden;
}
.comm-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comm-card-body {
  padding: 16px 12px 20px;
}
.comm-card-body h4 {
  color: var(--primary);
  font-size: 1.05rem;
}
.comm-card-body .title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 4px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comm-card-body p {
  font-size: 0.85rem;
  color: #666;
}

/* ===== ORG TREE ===== */
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  position: relative;
}
.org-tree .tree-level {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
  padding: 0 20px;
  z-index: 1;
}
.org-tree .tree-level.level-root {
  padding-bottom: 0;
}
/* connector lines between levels */
.org-tree .tree-connector {
  position: relative;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  z-index: 0;
}
.org-tree .tree-connector .conn-v {
  width: 2px;
  height: 100%;
  background: var(--primary);
  opacity: 0.35;
}
.org-tree .tree-connector .conn-h {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--primary);
  opacity: 0.35;
}
.org-tree .tree-connector .conn-v-down {
  position: absolute;
  top: 0;
  width: 2px;
  height: 50px;
  background: var(--primary);
  opacity: 0.35;
}
/* tree cards */
.org-tree .tree-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  width: 190px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.org-tree .tree-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.org-tree .tree-card .tree-card-img {
  width: 100%;
  height: 180px;
  background: var(--light-gray);
  overflow: hidden;
}
.org-tree .tree-card .tree-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.org-tree .tree-card .tree-card-body {
  padding: 14px 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.org-tree .tree-card .tree-card-body h4 {
  color: var(--primary);
  font-size: 1rem;
  margin: 0 0 2px;
}
.org-tree .tree-card .tree-card-body .tree-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}
/* root card special styling */
.org-tree .tree-level.level-root .tree-card {
  width: 260px;
  border: 2px solid var(--accent);
  box-shadow: 0 6px 24px rgba(191,10,48,0.15);
}
.org-tree .tree-level.level-root .tree-card .tree-card-img {
  height: 240px;
}
.org-tree .tree-level.level-root .tree-card .tree-card-body h4 {
  font-size: 1.25rem;
}
.org-tree .tree-level.level-root .tree-card .tree-card-body .tree-title {
  font-size: 1rem;
}
/* subgroup within a level (for 3-level trees like secretariat) */
.org-tree .tree-subgroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.org-tree .tree-subgroup .sub-connector {
  height: 30px;
  width: 2px;
  background: var(--primary);
  opacity: 0.35;
}
.org-tree .tree-subgroup .sub-children {
  display: flex;
  gap: 20px;
}
.org-tree .tree-subgroup .sub-children .tree-card {
  width: 160px;
}
.org-tree .tree-subgroup .sub-children .tree-card .tree-card-img {
  height: 140px;
}
/* tree card read more button */
.org-tree .tree-card .comm-read-more,
.org-tree .tree-card .sec-read-more {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--transition);
}
.org-tree .tree-card .comm-read-more:hover,
.org-tree .tree-card .sec-read-more:hover {
  background: var(--accent);
}
/* ===== FACEBOOK FEED ===== */
.facebook-feed {
  padding: 60px 0;
  background: #f5f7fa;
}
.facebook-feed .container {
  max-width: 1100px;
  margin: 0 auto;
}
.facebook-feed .fb-frame {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.facebook-feed .fb-frame iframe {
  border: none;
  overflow: hidden;
  border-radius: 8px;
}

/* ===== AI CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E8751A;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232,117,26,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(232,117,26,0.5); }
.chat-toggle svg { width: 28px; height: 28px; }
.chat-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s ease;
}
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-panel.open { display: flex; }
.chat-header {
  background: #E8751A;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar svg { width: 22px; height: 22px; }
.chat-header-title { font-weight: 600; font-size: 0.95rem; }
.chat-header-status { font-size: 0.75rem; opacity: 0.85; }
.chat-header-status::before { content: ''; display: inline-block; width: 7px; height: 7px; background: #4ade80; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.chat-header-actions { display: flex; align-items: center; gap: 4px; }
.chat-clear {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  cursor: pointer; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; transition: background 0.2s;
}
.chat-clear:hover { background: rgba(255,255,255,0.3); }
.chat-close {
  background: none; border: none; color: #fff;
  font-size: 1.6rem; cursor: pointer; line-height: 1; opacity: 0.8; padding: 0 4px;
}
.chat-close:hover { opacity: 1; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f0f2f5;
}
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-msg-text {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-msg.bot .chat-msg-text a { color: #E8751A; text-decoration: underline; }
.chat-link { display: inline-block; margin-top: 6px; font-weight: 600; color: #E8751A; text-decoration: none; border: 1px solid #E8751A; padding: 4px 12px; border-radius: 4px; font-size: 0.85rem; transition: background 0.2s, color 0.2s; }
.chat-link:hover { background: #E8751A; color: #fff; }
.chat-msg.user .chat-msg-text {
  background: #E8751A;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.user + .chat-msg.user { margin-top: 2px; }
.chat-msg.bot + .chat-msg.bot { margin-top: 2px; }
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.chat-typing span {
  width: 7px; height: 7px;
  background: #999;
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}
.chat-footer {
  padding: 10px 12px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}
.chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 9px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s;
}
.chat-input:focus { border-color: #E8751A; }
.chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #E8751A;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.chat-send:hover { background: #d4650e; }
.chat-send svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
    height: 480px;
  }
  .chat-widget { bottom: 16px; right: 16px; }
}

/* responsive */
@media (max-width: 768px) {
  .org-tree .tree-level {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .org-tree .tree-connector {
    height: 30px;
  }
  .org-tree .tree-connector .conn-h { display: none; }
  .org-tree .tree-connector .conn-v-down { display: none; }
  .org-tree .tree-subgroup .sub-children {
    flex-direction: column;
    align-items: center;
  }
  .org-tree .tree-level.level-root .tree-card { width: 220px; }
  .org-tree .tree-level.level-root .tree-card .tree-card-img { height: 200px; }
  .org-tree .tree-subgroup .sub-children .tree-card { width: 160px; }
}

/* ===== FOCUS AREAS ===== */
.focus {
  padding: 80px 0;
  background: var(--primary);
  color: var(--white);
}
.focus .section-title {
  color: var(--white);
}
.focus .section-divider {
  background: var(--accent-light);
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.focus-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.focus-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}
.focus-card .icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}
.focus-card h4 {
  color: var(--accent-light);
  margin-bottom: 8px;
}
.focus-card p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== TESTIMONIALS / QUOTE ===== */
.testimonial {
  padding: 60px 0;
  background: var(--white);
}
.testimonial-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius);
  position: relative;
}
.testimonial-box::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--accent);
  position: absolute;
  top: -10px;
  left: 24px;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-box p {
  font-size: 1.1rem;
  font-style: italic;
  color: #444;
  margin: 20px 0 16px;
}
.testimonial-box .author {
  font-weight: 700;
  color: var(--primary);
  font-style: normal;
}

/* ===== CONTACT / FOOTER ===== */
.contact {
  padding: 80px 0 40px;
  background: var(--primary);
  color: rgba(255,255,255,0.9);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.contact h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.contact p, .contact a {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.75);
}
.contact a:hover { color: var(--accent-light); }
.contact-links a {
  margin-bottom: 6px;
}
.contact .social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.contact .social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.contact .social-links a svg {
  width: 18px;
  height: 18px;
}
.contact .social-links a:hover {
  background: var(--accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-top: 136px;
  padding: 60px 0 40px;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== FULL COMMISSIONERS PAGE ===== */
.commissioners-full {
  padding: 60px 0 80px;
  background: var(--off-white);
}
.comm-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.comm-full-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.comm-full-card:hover {
  transform: translateY(-4px);
}
.comm-full-img {
  width: 220px;
  min-height: 240px;
  flex-shrink: 0;
  background: var(--light-gray);
  overflow: hidden;
}
.comm-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comm-full-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.comm-full-body h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.comm-full-body .title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}
.comm-full-body p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
}

/* ===== VIEW ALL BTN ===== */
.view-all-wrap {
  text-align: center;
  margin-top: 36px;
}
.view-all-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
  border: 2px solid var(--primary);
}
.view-all-btn:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== VIDEO GALLERY ===== */
.video-gallery {
  padding: 80px 0;
  background: var(--white);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  border: 1px solid #d0d5dd;
  transition: transform var(--transition);
  position: relative;
}
.video-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.video-card:hover {
  transform: translateY(-4px);
}
.video-thumb {
  position: relative;
  height: 200px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-autoplay,
.video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}
.video-play {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(10,31,61,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  transition: background var(--transition), transform var(--transition);
  pointer-events: none;
  z-index: 2;
}
.video-play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}
.video-card:hover .video-play {
  background: var(--accent);
  transform: scale(1.1);
}
.video-info {
  padding: 18px 20px;
}
.video-info .video-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.video-info h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 8px 0 6px;
}
.video-info p {
  font-size: 0.85rem;
  color: #666;
}
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.video-modal.open {
  display: flex;
}
.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
}
.video-modal-content video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius);
  background: #000;
  display: block;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity var(--transition);
}
.video-modal-close:hover { opacity: 0.7; }

/* ===== COMMISSIONER MODAL ===== */
.comm-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.comm-modal.open { display: flex; }
.comm-modal-content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.comm-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  color: var(--gray);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2;
  line-height: 1;
}
.comm-modal-close:hover { color: var(--primary); }
.comm-modal-inner {
  display: flex;
  gap: 32px;
  padding: 40px;
}
.comm-modal-img {
  width: 260px;
  min-height: 280px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light-gray);
}
.comm-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comm-modal-info { flex: 1; }
.comm-modal-info h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.comm-modal-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 16px;
}
.comm-modal-info p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.7;
}
.comm-modal-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
}
.comm-modal-details div {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.comm-modal-details strong {
  color: var(--primary);
  min-width: 120px;
}
.comm-modal-details span {
  color: #555;
}

/* ===== FULL VIDEOS PAGE ===== */
.videos-full {
  padding: 60px 0 80px;
  background: #dce3ed;
  min-height: 400px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .top-bar { padding: 0 24px; }
  .navbar { padding: 0 24px; }
  .nav-menu > a,
  .nav-menu .drop-trigger { padding: 8px 10px; font-size: 0.82rem; }
  .nav-logo img { height: 68px; }
  .nav-logo-text { font-size: 1.1rem; }
  .nav-logo-text span { font-size: 0.55rem; }
}

@media (max-width: 768px) {
  .top-bar { padding: 0 16px; }
  .top-bar-left { gap: 12px; }
  .top-bar-left a { font-size: 0.72rem; }
  .top-bar-right a { width: 26px; height: 26px; }
  .top-bar-right a svg { width: 13px; height: 13px; }

  .navbar { padding: 0 12px; }

  .nav-menu {
    position: fixed;
      top: 136px;
      right: -100%;
      width: 280px;
      height: calc(100vh - 136px);
    background: var(--primary-light);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 2px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }

  .nav-menu > a,
  .nav-menu .drop-trigger {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    white-space: normal;
  }
  .nav-menu > a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-text span { font-size: 0.5rem; letter-spacing: 1px; }

  /* Dropdown mobile: always visible inside the mobile menu */
  .nav-dropdown {
    width: 100%;
  }
  .drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-radius: 0;
  }
  .nav-dropdown.open .drop-menu {
    max-height: 400px;
  }
  .drop-menu a {
    color: rgba(255,255,255,0.75);
    padding: 10px 16px;
    font-size: 0.85rem;
    white-space: normal;
  }
  .drop-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
  }
  .drop-menu a::before {
  color: var(--white);
  }

  .hero { height: 70vh; }
  .about-grid { grid-template-columns: 1fr; }
  .about-full-grid { grid-template-columns: 1fr; }
  .about-full-image { height: 280px; }
  .about-mandate { grid-template-columns: 1fr; }
  .about-image { height: 260px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card-img { height: 160px; }
  .event-date-box { flex-direction: row; gap: 8px; padding: 12px; min-width: auto; width: 100%; }
  .event-date-box .day { font-size: 1.4rem; }
  .event-card-body { flex-direction: column; }
  .comm-modal-inner { flex-direction: column; padding: 24px; gap: 20px; }
  .comm-modal-img { width: 100%; height: 220px; }
  .comm-modal { padding: 20px 16px; }
  .comm-modal-info h3 { font-size: 1.3rem; }
  .comm-full-card { flex-direction: column; }
  .comm-full-img { width: 100%; height: 220px; }
  .comm-full-body { padding: 18px 20px; }
  .page-header h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .top-bar { padding: 0 12px; height: 36px; }
  .top-bar-left a { font-size: 0.65rem; gap: 4px; }
  .top-bar-right { gap: 6px; }
  .top-bar-right a { width: 22px; height: 22px; }
  .top-bar-right a svg { width: 11px; height: 11px; }

  .navbar { padding: 0 12px; height: 68px; top: 36px; }
  .nav-logo img { height: 52px; }
  .nav-logo-text { font-size: 0.85rem; }
  .nav-logo-text span { font-size: 0.45rem; letter-spacing: 1px; }
  .nav-menu { top: 104px; height: calc(100vh - 104px); }

  .hero { margin-top: 104px; height: 60vh; min-height: 360px; }
  .hero-overlay h1 { font-size: 1.6rem; }
  .section-title { font-size: 1.5rem; }
  .commissioners-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .event-card-img { height: 140px; }
  .comm-modal-inner { padding: 16px; gap: 16px; }
  .comm-modal-img { height: 180px; }
  .comm-modal { padding: 12px 8px; }
  .comm-modal-info h3 { font-size: 1.1rem; }
  .comm-modal-details div { flex-direction: column; gap: 2px; }
  .video-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .facebook-feed .fb-frame { max-width: 100%; }
  .facebook-feed .fb-frame iframe { height: 400px !important; }
}
