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

:root {
  --primary: #1b4332;       /* Deep Forest Green */
  --primary-light: #2d6a4f;
  --primary-dark: #081c15;
  --secondary: #fbc02d;     /* Gold / Scouting Yellow */
  --secondary-light: #ffeb3b;
  --accent: #8b5a2b;        /* Warm Wood / Earth */
  --accent-light: #f5ebe0;
  --bg-main: #f4f7f6;       /* Crisp light sage/gray background */
  --bg-card: #ffffff;
  --text-main: #1e293b;     /* Slate dark */
  --text-muted: #64748b;
  --text-light: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeIn 0.8s ease-out;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(45, 106, 79, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(251, 192, 45, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-3px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

header.scrolled {
  background: var(--bg-card);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: 48px;
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 16px;
  font-weight: 500;
  border-radius: 20px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
  background-color: var(--accent-light);
}

.nav-links a.active {
  background-color: var(--primary);
  color: var(--text-light);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Home Section Styles */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(27,67,50,0.95) 0%, rgba(8,28,21,0.98) 100%), url('/uploads/activity_camp.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--text-light);
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(251,192,45,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 650px;
  animation: slideInLeft 1s ease-out;
}

.hero-content h1 {
  color: var(--text-light);
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Carousel/Slideshow */
.slider-section {
  background-color: var(--bg-card);
  padding: 80px 0;
}

.slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: flex-end;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--text-light);
  padding: 40px 30px;
}

.slide-caption h3 {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.slide-caption p {
  font-size: 1.05rem;
  opacity: 0.9;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(5px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--text-light);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-card {
  padding: 20px;
  animation: fadeIn 1s ease-out;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.stat-number {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.85;
  font-weight: 500;
}

/* Mission & Vision Cards */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.mv-card {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.mv-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.mv-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.mv-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* About Page & Scout Law */
.about-history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.about-history-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-history-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-history-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.scout-code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.scout-promise, .scout-law-container {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.scout-promise h3, .scout-law-container h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.promise-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-dark);
  line-height: 1.8;
  position: relative;
  padding-left: 20px;
  border-left: 4px solid var(--secondary);
}

.law-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.law-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-main);
}

.law-item::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

/* Leaders Page */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.leader-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.leader-img-wrapper {
  height: 280px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-body);
}

.leader-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keep faces in frame */
  transition: var(--transition);
  image-rendering: -webkit-optimize-contrast; /* crisp on webkit */
  will-change: transform; /* GPU layer for sharp rendering */
}

.leader-card:hover .leader-img-wrapper img {
  transform: scale(1.06);
}

.leader-info {
  padding: 24px;
}

.leader-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.leader-position {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leader-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.leader-contact {
  border-top: 1px solid var(--border);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.leader-contact i {
  color: var(--primary-light);
  margin-right: 6px;
}

/* Activities Page */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.activity-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.activity-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.activity-img {
  height: 260px;
  overflow: hidden;
  background-color: var(--bg-body);
}

.activity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.activity-meta {
  font-size: 0.9rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.activity-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.activity-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

/* Projects Page */
.project-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 24px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-gallery-carousel {
  height: 280px;
  position: relative;
  overflow: hidden;
}

.project-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 30px;
}

.project-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-status-badge.ongoing {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.project-status-badge.completed {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.project-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.project-progress-wrapper {
  margin-bottom: 20px;
}

.project-progress-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.project-progress-bar {
  height: 10px;
  background-color: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.project-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 5px;
  transition: width 1s ease-out;
}

.project-outcomes {
  background-color: var(--accent-light);
  padding: 18px;
  border-radius: var(--radius-sm);
  margin-top: 15px;
  border-left: 4px solid var(--success);
}

.project-outcomes h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.project-outcomes p {
  font-size: 0.92rem;
  color: var(--text-main);
}

.project-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  gap: 15px;
}

/* Events Page */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.event-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-poster {
  width: 40%;
  min-height: 280px;
  overflow: hidden;
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-details {
  width: 60%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.event-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 15px;
}

.event-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 6px;
}

.event-info-item i {
  color: var(--primary-light);
}

/* Gallery Page */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 25px;
  background-color: var(--bg-card);
  border: 2px solid var(--border);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.filter-btn .filter-count {
  background: var(--bg-main);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
  min-width: 22px;
  text-align: center;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(27,67,50,0.25);
}

.filter-btn.active .filter-count,
.filter-btn:hover .filter-count {
  background: rgba(255,255,255,0.25);
  color: var(--text-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.tall  { grid-row: span 2; }
.gallery-item.wide  { grid-column: span 2; }

.gallery-item:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.09);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,28,21,0.92) 0%,
    rgba(8,28,21,0.4) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Zoom icon centered on hover */
.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-desc {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.gallery-cat {
  color: var(--secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Lightbox Modal - Enhanced */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.97);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 95vw;
}

.lightbox-media-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

#lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 78vw;
  max-height: 76vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.98rem;
  font-weight: 500;
  max-width: 78vw;
  line-height: 1.5;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  text-align: center;
  letter-spacing: 1px;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 2.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .lightbox-media-wrapper {
    gap: 0;
  }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.6) !important;
    border: none !important;
  }
  #lightbox-prev {
    left: 10px;
  }
  #lightbox-next {
    right: 10px;
  }
  .lightbox-content img,
  .lightbox-content video {
    max-width: 95vw;
    max-height: 80vh;
  }
  .lightbox-close {
    top: -48px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 12;
  }
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel h3 {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-info-panel p {
  opacity: 0.85;
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-detail-icon {
  font-size: 1.5rem;
  color: var(--secondary);
}

.contact-detail-text h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-detail-text p {
  margin-bottom: 0;
  opacity: 0.8;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.contact-map-placeholder {
  height: 300px;
  border-radius: var(--radius-md);
  background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
}

/* Join Us Application Page */
.join-section {
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--accent-light) 100%);
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-card);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.apply-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg-main);
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  grid-column: span 2;
  text-align: center;
  margin-top: 15px;
}

.form-success-message {
  display: none;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 20px;
}

.form-success-message i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 20px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.footer-brand p {
  margin-bottom: 20px;
}

.footer-links h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Single-page App Views Routing */
.view-section {
  display: none;
  padding-top: 100px;
  animation: fadeIn 0.6s ease-out forwards;
}

.view-section.active {
  display: block;
}

/* Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================= */

@media (max-width: 1024px) {
  .about-history {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .scout-code-grid {
    grid-template-columns: 1fr;
  }
  .activities-grid, .projects-grid, .events-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 40px;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    align-items: flex-start;
  }
  .nav-links.active {
    left: 0;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-panel {
    padding: 30px;
  }
  .event-card {
    flex-direction: column;
  }
  .event-poster, .event-details {
    width: 100%;
  }
  .event-poster {
    min-height: 200px;
    height: 200px;
  }
  .apply-form {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .form-actions {
    grid-column: span 1;
  }
  .form-wrapper {
    padding: 30px;
  }
  .slider-container {
    height: 350px;
  }
  .slide-caption h3 {
    font-size: 1.4rem;
  }
  .law-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .slider-container {
    height: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   SLIDESHOW IMPROVEMENTS — better image fit, mobile clarity
   ========================================================================= */

.slider-container {
  height: 520px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .slider-container { height: 360px; }
  .slide-caption h3 { font-size: 1.2rem; }
  .slide-caption p  { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .slider-container { height: 260px; }
  .slide-caption { padding: 20px 16px; }
  .slide-caption h3 { font-size: 1rem; }
  .slide-caption p  { display: none; }
}

/* =========================================================================
   GALLERY — improved mobile clarity
   ========================================================================= */

.gallery-grid {
  grid-auto-rows: 240px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 280px !important;
  }
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* =========================================================================
   PEACE DIALOGUE HUB — Homepage Banner
   ========================================================================= */

.pdh-home-banner {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  background: linear-gradient(135deg, #0d3b26 0%, #1b4332 40%, #0b2a4a 100%);
}

.pdh-home-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(251,192,45,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(27,108,168,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.pdh-home-banner-inner {
  position: relative;
  text-align: center;
  color: #fff;
}

.pdh-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,192,45,0.15);
  border: 1px solid rgba(251,192,45,0.4);
  color: #fbc02d;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.pdh-home-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.1;
}

.pdh-home-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  font-weight: 500;
}

.pdh-home-msg {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: 28px;
}

.pdh-pillars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.pdh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.pdh-pill:hover {
  background: rgba(251,192,45,0.2);
  border-color: rgba(251,192,45,0.6);
  color: #fbc02d;
}

.pdh-home-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pdh-ai-btn {
  background: linear-gradient(135deg, #1b6ca8, #0d4880);
  color: #fff;
  border: none;
}

.pdh-ai-btn:hover {
  background: linear-gradient(135deg, #2480c4, #1b6ca8);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(27,108,168,0.4);
}

.pdh-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
  font-style: italic;
}

/* =========================================================================
   PEACE DIALOGUE HUB — Main Section Hero
   ========================================================================= */

#peace {
  padding-top: 80px;
}

.pdh-hero {
  position: relative;
  background: linear-gradient(135deg, #081c15 0%, #0b2a4a 50%, #1b4332 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  text-align: center;
}

.pdh-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 60%, rgba(251,192,45,0.07) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(45,106,79,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.pdh-hero-inner {
  position: relative;
  color: #fff;
}

.pdh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.pdh-hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.1;
}

.pdh-hero-title span { color: #fbc02d; }

.pdh-hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

.pdh-hero-quote {
  font-size: 1rem;
  color: #fbc02d;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.pdh-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.pdh-outline-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}

.pdh-outline-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* =========================================================================
   PEACE DIALOGUE HUB — Tab Navigation
   ========================================================================= */

.pdh-tabs-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 80px;
  z-index: 100;
}

.pdh-tabs-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pdh-tabs-nav::-webkit-scrollbar { display: none; }

.pdh-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 16px 20px;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  position: relative;
}

.pdh-tab:hover {
  color: var(--primary);
  background: var(--accent-light);
}

.pdh-tab.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

/* =========================================================================
   PEACE DIALOGUE HUB — Body
   ========================================================================= */

.pdh-body {
  padding: 60px 0;
  background: var(--bg-main);
}

.pdh-tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.pdh-tab-content.active {
  display: block;
}

.pdh-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.pdh-section-header h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.pdh-section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.pdh-section-title {
  font-size: 2rem;
  text-align: center;
  margin: 60px 0 40px;
  color: var(--primary-dark);
}

.pdh-sub-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 50px 0 25px;
}

/* =========================================================================
   PEACE DIALOGUE HUB — Overview
   ========================================================================= */

.pdh-overview-hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}

.pdh-overview-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.pdh-overview-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.pdh-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Animated Peace Ring */
.pdh-overview-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdh-peace-ring {
  position: relative;
  width: 280px;
  height: 280px;
}

.pdh-peace-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--secondary);
  box-shadow: 0 0 30px rgba(45,106,79,0.4);
  animation: pulse 3s ease-in-out infinite;
}

.pdh-peace-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  animation: orbitSpin 12s linear infinite;
  animation-delay: var(--delay);
}

.pdh-peace-orbit span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Mission/Vision/Objectives Grid */
.pdh-mvg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 70px;
}

.pdh-mvg-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.pdh-mvg-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.pdh-mvg-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.pdh-mvg-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.pdh-mvg-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 5 Pillars */
.pdh-pillars { margin-bottom: 20px; }

.pdh-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.pdh-pillar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--c);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pdh-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pdh-pillar-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--c);
  opacity: 0.12;
  position: absolute;
  top: 10px;
  right: 14px;
  line-height: 1;
  font-family: var(--font-heading);
}

.pdh-pillar-icon {
  width: 54px;
  height: 54px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c);
  margin: 0 auto 16px;
}

.pdh-pillar-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.pdh-pillar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================================
   PEACE DIALOGUE HUB — PeaceSolve AI
   ========================================================================= */

.pdh-ai-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.pdh-ai-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

.pdh-ai-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  color: var(--secondary);
}

.pdh-ai-header h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.pdh-ai-header p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.pdh-ai-steps {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.pdh-ai-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.pdh-ai-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.pdh-ai-step.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

.pdh-ai-step.active span {
  background: var(--primary);
  color: #fff;
}

.pdh-ai-step.done span {
  background: var(--success);
  color: #fff;
}

.pdh-ai-chat {
  padding: 24px;
  min-height: 280px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
}

.pdh-ai-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pdh-ai-msg.user {
  flex-direction: row-reverse;
}

.pdh-ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.pdh-ai-msg.user .pdh-ai-avatar {
  background: linear-gradient(135deg, #4a90d9, #1b6ca8);
  color: #fff;
}

.pdh-ai-bubble {
  background: #fff;
  border-radius: 12px 12px 12px 4px;
  padding: 14px 18px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  max-width: 80%;
}

.pdh-ai-msg.user .pdh-ai-bubble {
  border-radius: 12px 12px 4px 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
}

.pdh-ai-input-area {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
  align-items: flex-end;
}

.pdh-ai-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  resize: none;
  font-size: 0.93rem;
  line-height: 1.5;
  transition: var(--transition);
  background: var(--bg-main);
}

.pdh-ai-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

.pdh-ai-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.pdh-ai-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(27,67,50,0.3);
}

.pdh-ai-disclaimer {
  padding: 10px 24px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
}

/* =========================================================================
   PEACE DIALOGUE HUB — Dialogue Circles
   ========================================================================= */

.pdh-guidelines-box {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 50px;
}

.pdh-guidelines-box h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdh-guidelines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 30px;
}

.pdh-guideline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-main);
  font-weight: 500;
}

.pdh-guideline i {
  color: var(--success);
  flex-shrink: 0;
}

.pdh-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.pdh-topic-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.pdh-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.pdh-topic-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(45,106,79,0.1);
  color: var(--primary);
  margin-bottom: 12px;
}

.pdh-topic-tag.hot {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

.pdh-topic-icon {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 12px;
  display: block;
}

.pdh-topic-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.pdh-topic-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.pdh-topic-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdh-topic-meta i { color: var(--primary-light); }

.pdh-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdh-event-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pdh-event-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.pdh-event-date {
  text-align: center;
  min-width: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
}

.pdh-event-date span {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.pdh-event-date {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pdh-event-info {
  flex: 1;
}

.pdh-event-info h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.pdh-event-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pdh-event-info p i { color: var(--primary-light); }

/* =========================================================================
   PEACE DIALOGUE HUB — Report & Resolve
   ========================================================================= */

.pdh-report-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.pdh-report-form-area h3,
.pdh-amb-form h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--primary-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.pdh-form-group {
  margin-bottom: 20px;
}

.pdh-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.pdh-input, .pdh-select, .pdh-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  background: var(--bg-main);
  transition: var(--transition);
  font-family: inherit;
  color: var(--text-main);
}

.pdh-input:focus, .pdh-select:focus, .pdh-textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
  outline: none;
}

.pdh-textarea { resize: vertical; min-height: 100px; }

.pdh-conflict-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdh-conflict-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.pdh-conflict-chip:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(45,106,79,0.08);
}

.pdh-conflict-chip input { display: none; }

.pdh-report-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdh-info-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.pdh-info-card i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.pdh-info-card h4 {
  font-size: 0.97rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.pdh-info-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pdh-report-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  color: var(--success);
}

.pdh-report-success i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.pdh-report-success h3 {
  color: var(--success);
  margin-bottom: 10px;
}

.pdh-report-success p { color: var(--text-main); margin-bottom: 8px; }

/* =========================================================================
   PEACE DIALOGUE HUB — Learn & Grow
   ========================================================================= */

.pdh-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pdh-resource-cat {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pdh-resource-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pdh-resource-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.pdh-resource-cat h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.pdh-resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdh-resource-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
}

.pdh-resource-list i {
  color: var(--primary-light);
  margin-top: 2px;
  flex-shrink: 0;
}

.pdh-resource-list a {
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
}

.pdh-resource-list a:hover { color: var(--primary); }

/* =========================================================================
   PEACE DIALOGUE HUB — Peace Ambassadors
   ========================================================================= */

.pdh-amb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.pdh-amb-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pdh-amb-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pdh-amb-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 14px;
  letter-spacing: 1px;
}

.pdh-amb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(251,192,45,0.15);
  color: #b8860b;
  margin-bottom: 10px;
}

.pdh-amb-card h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.pdh-amb-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pdh-amb-quote {
  font-style: italic;
  font-size: 0.82rem !important;
  color: var(--primary-light) !important;
  border-left: 3px solid var(--secondary);
  padding-left: 10px;
  text-align: left;
  margin: 12px 0 !important;
}

.pdh-amb-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.pdh-amb-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
}

.pdh-amb-apply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.pdh-amb-apply-info h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.pdh-amb-apply-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.pdh-amb-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdh-amb-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.pdh-amb-benefits i { color: var(--success); margin-top: 2px; }

/* =========================================================================
   PEACE DIALOGUE HUB — Community Actions
   ========================================================================= */

.pdh-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.pdh-action-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 4px solid var(--ac);
  transition: var(--transition);
}

.pdh-action-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pdh-action-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--ac) 12%, transparent);
  color: var(--ac);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pdh-action-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ac);
  margin-bottom: 8px;
}

.pdh-action-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.pdh-action-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.pdh-action-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pdh-action-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pdh-action-stats i { color: var(--ac); }

.pdh-action-btn {
  background: color-mix(in srgb, var(--ac) 10%, transparent);
  color: var(--ac);
  border: 2px solid color-mix(in srgb, var(--ac) 30%, transparent);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.pdh-action-btn:hover {
  background: var(--ac);
  color: #fff;
  border-color: var(--ac);
  transform: translateY(-2px);
}

.pdh-impact-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 50px;
  text-align: center;
  color: #fff;
}

.pdh-impact-banner h3 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.pdh-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.pdh-impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pdh-impact-num {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--secondary);
  line-height: 1;
}

.pdh-impact-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* =========================================================================
   PEACE DIALOGUE HUB — Responsive
   ========================================================================= */

@media (max-width: 1100px) {
  .pdh-pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .pdh-amb-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pdh-overview-hero { grid-template-columns: 1fr; }
  .pdh-overview-visual { display: none; }
  .pdh-mvg-grid { grid-template-columns: 1fr; }
  .pdh-resources-grid { grid-template-columns: 1fr 1fr; }
  .pdh-report-grid { grid-template-columns: 1fr; }
  .pdh-amb-apply { grid-template-columns: 1fr; gap: 30px; }
  .pdh-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .pdh-home-title { font-size: 2rem; }
  .pdh-hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .pdh-pillars-grid { grid-template-columns: 1fr 1fr; }
  .pdh-topics-grid { grid-template-columns: 1fr; }
  .pdh-actions-grid { grid-template-columns: 1fr; }
  .pdh-guidelines-grid { grid-template-columns: 1fr; }
  .pdh-amb-grid { grid-template-columns: 1fr 1fr; }
  .pdh-amb-apply { padding: 30px 20px; }
  .pdh-impact-banner { padding: 30px 20px; }
  .pdh-ai-wrapper { margin: 0 -10px; }
  .pdh-event-item { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .pdh-pillars-grid { grid-template-columns: 1fr; }
  .pdh-resources-grid { grid-template-columns: 1fr; }
  .pdh-amb-grid { grid-template-columns: 1fr; }
  .pdh-impact-grid { grid-template-columns: 1fr 1fr; }
  .pdh-hero-title { font-size: 1.9rem; }
  .pdh-home-title { font-size: 1.6rem; }
  .pdh-home-sub { font-size: 1rem; }
  .pdh-tab { padding: 12px 14px; font-size: 0.8rem; }
  .pdh-ai-input-area { flex-direction: column; }
  .pdh-ai-send { width: 100%; justify-content: center; }
}

