:root {
  --primary: #0a2540; /* Deep Blue */
  --primary-light: #16467a;
  --accent: #1a73e8; /* Soft light-blue/accent */
  --white: #ffffff;
  --bg-light: #f7f9fc;
  --text-main: #2b2d38;
  --text-muted: #5f6368;
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 15px 30px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Heebo', sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #145dbf;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

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

.btn-outline-dark:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-donate {
  background-color: #FFC107;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-donate:hover {
  background-color: #ffb300;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-donate-large {
  display: inline-block;
  background-color: #FFC107;
  color: var(--primary);
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Rubik', sans-serif;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}

.btn-donate-large:hover {
  background-color: #ffb300;
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.btn-block {
  width: 100%;
  display: block;
}

/* Header */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  box-shadow: none;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}

.sticky-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin-left: 3rem;
  margin-top: 12px;
}

.logo img {
  height: 85px;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

.sticky-header.scrolled .logo img {
  height: 65px;
  filter: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 600;
  color: var(--white);
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.sticky-header.scrolled .main-nav a {
  color: var(--text-main);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-social {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-right: 2rem;
  margin-left: 2rem;
}

.header-cta .btn {
  white-space: nowrap;
}

.header-social a {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sticky-header.scrolled .header-social a {
  color: var(--primary);
}

.header-social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-menu-btn svg { width: 30px; height: 30px; }
.sticky-header.scrolled .mobile-menu-btn { color: var(--text-main); }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { right: 0; }

.drawer-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  align-self: flex-start;
  margin-bottom: 2rem;
  cursor: pointer;
  color: var(--text-main);
}
.drawer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.drawer-nav a { color: var(--text-main); font-size: 1.2rem; font-weight: 600; }

.drawer-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.6) 0%, rgba(0, 10, 20, 0.4) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrapper {
  margin-bottom: 1.5rem;
}

.hero-logo {
  height: 300px;
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.hero-title {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* About Section */
.section-title {
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.features-grid.four-columns {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.foundation-card {
  color: var(--white);
  border: none;
  background-color: transparent;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.foundation-card h3, .foundation-card p {
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.foundation-card:hover {
  border-bottom: none;
  transform: translateY(-8px) scale(1.02);
}

/* Memorial Section */
.memorial {
  background-color: var(--primary);
  color: var(--white);
}

.memorial h2 {
  color: var(--white);
}

.memorial-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.memorial-text {
  flex: 1;
}

.memorial-sub {
  font-size: 1.2rem;
  font-weight: 600;
  color: #a9c8f0;
  margin-bottom: 1.5rem;
}

.memorial-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.memorial-image-wrapper {
  flex: 1;
  position: relative;
  max-width: 400px;
}

.memorial-img {
  width: 100%;
  border-radius: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.memorial-frame-accent {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: 10px;
  z-index: 1;
}

/* Leadership Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.team-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.team-avatar svg {
  width: 50px;
  height: 50px;
}

.team-card h3 {
  margin-bottom: 0.5rem;
}

.team-title {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.board-members {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.board-members h3 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.8rem;
}

.board-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 992px) {
  .board-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .board-list {
    grid-template-columns: 1fr;
  }
}

.board-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.board-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}

.board-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.board-item:hover::before {
  transform: scaleX(1);
}

.board-item strong {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Rubik', sans-serif;
}

.board-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Gallery Section */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .masonry-grid {
    column-count: 1;
  }
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.4);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: #ccc;
}

/* Media Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.news-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.news-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Social Hub Section */
.social-hub-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  min-width: 250px;
  border-bottom: 4px solid transparent;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent);
}

.social-card-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.social-card h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Donation Section */
.donate-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.donate-card h2 {
  color: var(--white);
  font-size: 2.2rem;
}

.donate-card p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
  opacity: 0.95;
}

.trust-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0.8;
}

.trust-icon {
  width: 24px;
  height: 24px;
}

.trust-icons span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Forms Section */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tabs {
  display: flex;
  background: var(--bg-light);
}

.tab-btn {
  flex: 1;
  padding: 1.5rem;
  border: none;
  background: transparent;
  font-family: 'Rubik', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: var(--primary);
  background: var(--white);
  border-bottom-color: var(--accent);
}

.form-content {
  display: none;
  padding: 3rem;
}

.form-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-group.half {
  flex: 1;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

input, select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Heebo', sans-serif;
  transition: var(--transition);
  background: var(--bg-light);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  background: var(--white);
}

.form-success {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #e6f4ea;
  color: #1e8e3e;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  height: 400px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: all 0.3s ease;
}

.chatbot-window.hidden {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.chatbot-header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-light);
}

.message {
  max-width: 80%;
  padding: 0.8rem;
  border-radius: 15px;
  font-size: 0.95rem;
}

.message.bot {
  background: #e9ecef;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.message.user {
  background: var(--accent);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chatbot-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid #eee;
  background: var(--white);
}

.chatbot-input input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  background: var(--bg-light);
  border-radius: 20px;
  margin-left: 0.5rem; /* RTL margin */
}

.chatbot-input button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translate(0);
}

/* Enlistment Dashboard */
.charts-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.chart-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 350px;
  transition: var(--transition);
}

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

.donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.donut-inner {
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.donut-percent {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Rubik', sans-serif;
}

.chart-desc {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.breakdown-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.unit-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.unit-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 5px solid var(--accent);
}

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

.unit-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.unit-icon {
  font-size: 2rem;
}

.unit-card h4 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary);
}

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

.unit-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px dashed #eee;
  font-size: 1.1rem;
}

.unit-list li:last-child {
  border-bottom: none;
}

.unit-count {
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-light);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
  .memorial-content {
    flex-direction: column;
  }
  .memorial-image-wrapper {
    max-width: 100%;
    margin-top: 2rem;
  }
  .main-nav {
    display: none;
  }
  .header-cta {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
  }
  .header-social {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-logo {
    height: 180px;
  }
  .header-cta .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .logo img {
    height: 60px !important;
  }
  .sticky-header.scrolled .logo img {
    height: 50px !important;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .section-padding {
    padding: 3rem 0;
  }
}

/* --- Accessibility Widget --- */
.a11y-widget {
  position: fixed;
  bottom: 100px;
  left: 30px;
  z-index: 9999;
}

.a11y-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0056b3;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.a11y-toggle:hover {
  transform: scale(1.1);
}

.a11y-menu {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 320px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  transform-origin: bottom left;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.a11y-menu.hidden {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.a11y-header {
  background: #0056b3;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.a11y-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.a11y-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.a11y-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.a11y-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid #eee;
  background: #f9f9f9;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #333;
}

.a11y-btn:hover {
  background: #e9ecef;
  border-color: #ccc;
}

.a11y-reset {
  margin-top: 1rem;
  background: #ffdddd;
  border-color: #ffcccc;
  color: #d32f2f;
}

.a11y-reset:hover {
  background: #ffcccc;
}

/* Accessibility Modes */
html.a11y-high-contrast {
  filter: contrast(150%) saturate(150%);
}

html.a11y-dark-mode {
  filter: invert(1) hue-rotate(180deg);
}
html.a11y-dark-mode img,
html.a11y-dark-mode video,
html.a11y-dark-mode .hero-bg {
  filter: invert(1) hue-rotate(180deg);
}

html.a11y-grayscale {
  filter: grayscale(100%);
}

html.a11y-invert-colors {
  filter: invert(1);
}
html.a11y-invert-colors img,
html.a11y-invert-colors video,
html.a11y-invert-colors .hero-bg {
  filter: invert(1);
}

html.a11y-readable-font body,
html.a11y-readable-font h1,
html.a11y-readable-font h2,
html.a11y-readable-font h3,
html.a11y-readable-font h4,
html.a11y-readable-font h5,
html.a11y-readable-font h6,
html.a11y-readable-font p,
html.a11y-readable-font a,
html.a11y-readable-font span,
html.a11y-readable-font button,
html.a11y-readable-font input {
  font-family: Arial, Helvetica, sans-serif !important;
}

html.a11y-pause-animations * {
  animation: none !important;
  transition: none !important;
}

html.a11y-highlight-links a,
html.a11y-highlight-links button {
  text-decoration: underline !important;
  text-decoration-color: #ff0000 !important;
  text-decoration-thickness: 3px !important;
  background-color: #ffff00 !important;
  color: #000 !important;
  outline: 2px solid #ff0000 !important;
  outline-offset: 2px !important;
}
