/* ===================================================
   1. VARIABLES & RESET
   =================================================== */
:root {
  --primary: #0066cc;
  --primary-dark: #004c99;
  --accent: #22c55e; /* SORDES Green */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --max-width: 1200px;
  --radius: 30px;
  --footer-bg: #0f172a;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===================================================
   2. HEADER & NAVIGATION
   =================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  height: 80px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

.main-logo {
  height: 50px;
  width: auto;
}

/* DESKTOP NAV */
.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
}

/* Dropdown Logic */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0f172a; /* Dark Navy */
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-top: 3px solid var(--accent);
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
  border-left: 3px solid transparent;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===================================================
   3. HERO SECTION
   =================================================== */
main {
  padding-top: 80px;
}

.hero {
  position: relative;
  width: 100%;
  padding: 20px 0;
  background: var(--bg-white);
}

.hero__slider {
  position: relative;
  max-width: var(--max-width);
  height: 500px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 0 20px;
}

.slide-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 800;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Slide Backgrounds */
.slide-1 {
  background-image: url("hero-bg.webp");
}
.slide-2 {
  background-image: url("Health and nutrition.webp");
}
.slide-3 {
  background-image: url("project-education.webp");
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.prev {
  left: 20px;
}
.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background: white;
  width: 30px;
  border-radius: 10px;
}

/* ===================================================
   4. GLOBAL LAYOUT ELEMENTS
   =================================================== */
.section-block {
  padding: 100px 0;
}

.bg-gray {
  background-color: #f8fafc;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Unified Page Header (Used for all sub-pages) */
.page-header,
.page-banner,
.gallery-header {
  background:
    linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
    url("hero-bg.webp");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0 60px;
  text-align: center;
  width: 100%;
  margin-bottom: 40px;
}

.page-header h1,
.page-banner h1,
.gallery-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-header p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Grids */
.grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* ===================================================
   5. SECTIONS: ABOUT, HISTORY, MISSION
   =================================================== */
.card--centered {
  text-align: center;
  padding: 40px 30px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.card--centered:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 70px;
  height: 70px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

/* History Section */
.history-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.history-kicker {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.intro-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.callout-text {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  font-style: italic;
  margin-top: 30px;
  color: var(--primary);
}

.rounded-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Objectives List */
.objectives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.obj-list {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.obj-list h3 {
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.obj-list ul {
  list-style: none;
}

.obj-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.obj-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Generic Card */
.card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-10px);
}

/* ===================================================
   6. PROJECTS
   =================================================== */
.project-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.project-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-body h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 700;
}

.project-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.read-more:hover {
  color: var(--primary-dark);
}

.projects-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 40px;
  padding-bottom: 20px;
}

.view-all-link {
  color: #0056b3;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
}
.view-all-link:hover {
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
}

/* ===================================================
   7. GALLERY & STORIES
   =================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: block;
}
.gallery-item img:hover {
  transform: translateY(-5px);
}

.gallery-shortcut {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
}
.gallery-shortcut p {
  color: #666;
  margin-bottom: 15px;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid #0056b3;
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background-color: #0056b3;
  color: #ffffff;
}

/* Stories of Change */
.stories-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.story-card:hover {
  box-shadow: var(--shadow-md);
}

.story-img-container {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.story-card:hover .story-img {
  transform: scale(1.05);
}

.story-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-tag {
  display: inline-block;
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  width: fit-content;
}

.story-content h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.3;
}
.story-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Stories Nav */
.stories-nav {
  background: white;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 80px;
  z-index: 900;
}

.stories-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
}

.stories-nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-light);
  transition: 0.3s;
}
.stories-nav a:hover {
  background: var(--primary);
  color: white;
}

/* Alternating layout for stories on Desktop */
@media (min-width: 768px) {
  .story-card:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* ===================================================
   8. LOCATIONS & TABLES
   =================================================== */
.locations-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

.location-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary);
}

.card-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.region-sub {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.map-wrapper {
  position: sticky;
  top: 100px;
}

.somalia-map {
  width: 100%;
  border-radius: 15px;
  border: 1px solid #eee;
}

.prmn-badge {
  background: #e8f5e9;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: #2e7d32;
}

/* Tables */
.project-table {
  width: 100%;
  min-width: 800px;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  font-size: 0.95rem;
  color: #334155;
}

.project-table thead tr {
  background-color: #f1f5f9;
  color: #0f172a;
}

.project-table th {
  padding: 18px 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  border-bottom: 2px solid #e2e8f0;
}

.project-table td {
  padding: 16px 15px;
  border-bottom: 1px solid #f1f5f9;
}

.project-table tbody tr:hover {
  background-color: #f8fafc;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid #eee;
}

.col-budget {
  font-weight: 700;
  color: var(--primary);
}
.col-no {
  width: 50px;
  text-align: center;
}

.mobile-hint {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

/* ===================================================
   9. LEGAL, GOVERNANCE & ORG CHART
   =================================================== */
.grid-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 80px;
}

.sidebar-nav {
  position: sticky;
  top: 100px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.sidebar-nav h4 {
  margin-bottom: 15px;
  color: #0a192f;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}
.sidebar-nav li {
  margin-bottom: 12px;
}

.sidebar-nav a {
  text-decoration: none;
  color: #555;
  transition: color 0.3s;
  font-weight: 500;
}
.sidebar-nav a:hover {
  color: #007bff;
}

.content-body h2 {
  color: #0a192f;
  margin-top: 0;
  font-size: 1.8rem;
}

.legal-section {
  padding-bottom: 40px;
}
.legal-section h3 {
  color: #007bff;
  margin: 25px 0 10px 0;
  font-size: 1.2rem;
}
.legal-section p {
  line-height: 1.7;
  color: #444;
}

hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 40px 0;
}

.org-chart-container {
  margin-top: 40px;
  padding: 30px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.org-chart-container h4 {
  color: #0a192f;
  margin-bottom: 20px;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.chart-caption {
  font-size: 0.9rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===================================================
   10. PARTNERS (Infinite Auto-Scroller)
   =================================================== */
.logo-slider {
  padding: 60px 0;
  background: white;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}
.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.logo-track {
  display: flex;
  width: calc(250px * 14);
  animation: scroll-logos 40s linear infinite;
  align-items: center;
  gap: 60px;
}
.logo-track:hover {
  animation-play-state: paused;
}

.logo-track img {
  height: 45px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}
.logo-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===================================================
   11. FOOTER
   =================================================== */
.main-footer {
  background-color: var(--footer-bg);
  color: #ffffff;
  padding: 80px 0 40px;
  border-top: 4px solid var(--accent);
}

.main-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-mini-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.footer-bio {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.footer-column h4 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.office-location {
  margin-bottom: 20px;
}
.office-location strong {
  display: block;
  color: #ffffff;
  margin-bottom: 5px;
}
.office-location p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.footer-email {
  word-break: break-all;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  padding-bottom: 20px;
  color: #64748b;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.developer-credits {
  text-align: center;
}
.dev-email {
  color: #28a745;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 0.3s;
}
.dev-email:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===================================================
   12. FLOATING DONATE BUTTON
   =================================================== */
.floating-donate {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent), #15803d);
  color: white !important;
  padding: 20px 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-radius: 8px 0 0 8px;
  z-index: 9999;
  box-shadow: -4px 0 20px rgba(34, 197, 94, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  display: flex !important;
  align-items: center;
  gap: 12px;
  animation: pulse-green 2s infinite;
  transition: all 0.3s ease;
}

.floating-donate:hover {
  padding: 20px 18px;
  background: linear-gradient(135deg, #16a34a, #14532d);
  box-shadow: -6px 0 25px rgba(34, 197, 94, 0.6);
}

.floating-donate i {
  transform: rotate(90deg);
  font-size: 1.4rem;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: -10px 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ===================================================
   13. CONSOLIDATED MOBILE RULES (Responsive)
   =================================================== */

/* --- TABLET & BELOW (Max-Width: 1024px) --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

/* --- MOBILE MENU ACTIVATION POINT (Max-Width: 992px) --- */
@media (max-width: 992px) {
  /* 1. Header Container Tweaks */
  .header__container {
    padding: 0 20px;
  }

  /* 2. Show the Burger Button */
  .mobile-menu-btn {
    display: block !important;
  }

  /* 3. The Mobile Navigation Drawer */
  .nav-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px); /* Full height minus header */
    background-color: #0f172a; /* Dark Navy Background */
    padding: 30px 0;
    z-index: 999; /* Ensure it stays above other content */
    overflow-y: auto; /* Allow scrolling inside menu if it's too long */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* 4. The 'Active' State (Triggered by JS) */
  .nav-links.active {
    display: flex !important; /* Force it to appear */
    animation: fadeIn 0.3s ease-in-out;
  }

  /* 5. Mobile Link Styling */
  .nav-link {
    color: #ffffff;
    font-size: 1.2rem;
    padding: 15px 24px;
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
  }

  /* 6. Dropdowns on Mobile (Always Open) */
  .dropdown {
    width: 100%;
    display: block;
  }

  .dropdown .nav-link {
    /* Style the main parent link of the dropdown */
    border-bottom: none;
    color: var(--accent);
  }

  .dropdown-content {
    position: relative; /* Not absolute on mobile */
    top: 0;
    display: block; /* Always show sub-links on mobile */
    width: 100%;
    box-shadow: none;
    border-top: none;
    background: rgba(0, 0, 0, 0.2); /* Slightly darker for contrast */
  }

  .dropdown-content a {
    padding-left: 40px; /* Indent sub-items */
    color: #cbd5e1;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* 7. Stack Grids Vertically */
  .grid-three,
  .history-grid,
  .objectives-grid,
  .locations-grid,
  .grid-sidebar {
    grid-template-columns: 1fr; /* Force single column */
    display: grid;
    gap: 30px;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-img-container {
    height: 250px;
  }

  /* Sidebar handling */
  .grid-sidebar {
    display: flex;
    flex-direction: column-reverse; /* Put sidebar content first on mobile */
  }

  .sidebar-nav {
    position: relative;
    top: 0;
    width: 100%;
  }
}

/* --- SMALLER DEVICES (Max-Width: 768px) --- */
@media (max-width: 768px) {
  .logo-track {
    gap: 40px;
    animation: scroll-logos 25s linear infinite;
  }

  .mobile-hint {
    display: block;
  }

  /* Adjust Donate Button */
  .floating-donate {
    writing-mode: vertical-rl !important;
    text-orientation: mixed;
    width: auto !important;
    padding: 15px 8px !important;
    font-size: 0.85rem !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-radius: 8px 0 0 8px !important;
  }

  .floating-donate i {
    transform: rotate(90deg);
    margin-bottom: 10px;
  }
}

/* --- VERY SMALL (Max-Width: 600px) --- */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Add a simple fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
