/* ========== base ========== */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
}

/* ========== navigation bar ========== */
.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
  margin: 0;
  height: 90px;
  background: #f8f9fa;
  border-bottom: 3px solid #001f3f;
}

.nav-logo {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  background: white;
  flex-shrink: 0;
}

.nav-icon {
  height: 65px;
  width: 65px;
  object-fit: contain;
}

.nav-buttons {
  display: flex;
  height: 100%;
  flex: 1;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 18px;
  background: #f8f9fa;
  border-right: 1px solid #ddd;
  transition: all 0.3s ease;
  height: 100%;
  flex: 1;
  text-align: center;
}

.nav-button:hover {
  background: #001f3f;
  color: white;
}

.nav-button.active {
  background: #001f3f;
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  padding: 0 20px;
}

/* Title section (very dark navy) */
.title-section {
  background: #000d1a;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.site-title {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== dark navy content section ========== */
.bottom-section {
  background-color: #001f3f;
  color: white;
  padding: 40px 16px 40px;
  text-align: center;
  min-height: 70vh;
}

.bottom-section h2 {
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 36px;
}

.bottom-section p {
  font-size: 18px;
  line-height: 1.6;
}

/* ========== home page styles ========== */
.home-image-container {
  margin-bottom: 40px;
}

.home-hero-image {
  width: 100%;
  max-width: 900px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.home-content {
  max-width: 800px;
  margin: 0 auto;
}

.home-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
}

/* ========== about page styles ========== */
.about-image-container {
  margin-bottom: 50px;
}

.about-hero-image {
  width: 100%;
  max-width: 800px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 45px;
}

.about-section h3 {
  font-size: 28px;
  color: white;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.about-section p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

/* ========== leadership styles ========== */
.leadership-container {
  max-width: 1000px;
  margin: 0 auto;
}

.leader-profile {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  gap: 30px;
}

.leader-image {
  flex-shrink: 0;
  width: 200px;
}

.leader-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.leader-info {
  flex: 1;
  text-align: left;
}

.leader-info h3 {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: white;
}

.leader-info h4 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: normal;
  font-style: italic;
}

.leader-info p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ========== work/counters styles ========== */
.counters-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.counter-item {
  text-align: center;
  flex: 1;
  max-width: 300px;
}

.counter-number {
  font-size: 72px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.counter-label {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.counter-description {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.work-content {
  max-width: 800px;
  margin: 0 auto;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  padding-top: 40px;
}

.work-section h3 {
  font-size: 28px;
  color: white;
  margin: 0 0 20px 0;
  font-weight: bold;
  text-align: center;
}

.work-section p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

/* ========== individual article styles ========== */
.article-main-title {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-header {
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 20px;
}

.article-byline {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: white;
}

.article-published {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin: 0;
}

.article-image-container {
  margin-bottom: 40px;
}

.article-image {
  width: 100%;
  max-width: 800px;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.article-content {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: left;
}

.article-content p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: justify;
}

.article-footer {
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  padding-top: 25px;
  text-align: center;
}

.back-to-articles {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.back-to-articles:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ========== articles page styles ========== */
.articles-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.article-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.article-title {
  font-size: 22px;
  color: white;
  margin: 0 0 15px 0;
  font-weight: bold;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.article-author {
  font-weight: bold;
}

.article-date {
  font-style: italic;
}

.article-excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
}

.article-button {
  display: inline-block;
  background: white;
  color: #001f3f;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.article-button:hover {
  background: #001f3f;
  color: white;
  border: 2px solid white;
}

/* ========== video styles ========== */
.video-container {
  margin: 60px auto 50px;
  max-width: 1000px;
}

.work-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  max-height: 600px;
  object-fit: contain;
}

/* ========== video and text layout ========== */
.video-text-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.video-section {
  flex: 1;
}

.text-sections {
  flex: 2.7;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-section .work-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

@media (max-width: 768px) {
  .video-text-layout {
    flex-direction: column;
  }
  
  .text-sections {
    flex: 1;
  }
}

/* ========== gallery page styles ========== */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

/* ========== donate page styles ========== */
.donate-content {
  max-width: 700px;
  margin: 0 auto;
}

.donate-description {
  margin-bottom: 50px;
}

.donate-description p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: center;
}

.donation-uses {
  text-align: left;
  max-width: 600px;
  margin: 25px auto;
  padding-left: 0;
  list-style: none;
}

.donation-uses li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.donation-uses li:before {
  content: "•";
  color: white;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -2px;
}

.donate-button-container {
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  padding-top: 40px;
}

.donate-button {
  display: inline-block;
  background-color: white;
  color: #001f3f;
  font-size: 20px;
  font-weight: bold;
  padding: 18px 40px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid white;
  margin-bottom: 20px;
}

.donate-button:hover {
  background-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.donate-note {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin: 0;
}

/* footer (very dark navy to match title) */
footer {
  text-align: center;
  color: #fff;
  background-color: #000d1a;
  padding: 24px 0;
  font-size: 28px;
  margin: 0;
}

/* Instagram button in footer styles */
.footer-with-instagram {
  text-align: center;
  color: #fff;
  background-color: #000d1a;
  padding: 24px 0;
  font-size: 28px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-text {
  margin: 0;
}

.instagram-btn-footer {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.instagram-btn-footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(240, 148, 51, 0.4);
}

/* Translation dropdown styles - FIXED POSITIONING */
.translate-section {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  background: white;
  border-left: 1px solid #ddd;
  flex-shrink: 0;
  order: 999; /* Always appears at the end */
}

.translate-dropdown {
  position: relative;
}

.translate-btn {
  background: #001f3f;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.translate-btn:hover {
  background: #003366;
  transform: translateY(-1px);
}

.translate-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 2px solid #001f3f;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  display: none;
  z-index: 1001;
  margin-top: 5px;
}

.translate-menu.show {
  display: block;
}

.translate-option {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.2s ease;
  border-bottom: 1px solid #eee;
}

.translate-option:last-child {
  border-bottom: none;
}

.translate-option:hover {
  background: #f8f9fa;
  color: #001f3f;
}

/* ========== responsive navigation ========== */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    height: auto;
    position: relative;
  }
  
  .nav-logo {
    width: 100%;
    justify-content: space-between;
    padding: 10px 20px;
  }
  
  .nav-buttons {
    display: none;
    flex-direction: column;
    width: 100%;
    height: auto;
  }
  
  .nav-buttons.active {
    display: flex;
  }
  
  .nav-button {
    height: 60px;
    border-right: none;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .site-title {
    font-size: 36px;
  }
  
  .nav-icon {
    height: 55px;
    width: 55px;
  }

  .translate-section {
    padding: 10px 20px;
    justify-content: center;
    border-left: none;
    border-top: 1px solid #ddd;
    width: 100%;
  }

  .footer-with-instagram {
    flex-direction: column;
    gap: 15px;
    font-size: 20px;
    padding: 30px 0;
  }

  .instagram-btn-footer {
    font-size: 16px;
    padding: 10px 18px;
  }
}

/* ========== general responsive ========== */
@media (max-width: 600px) {
  .bottom-section {
    padding: 30px 16px 40px;
  }
  
  .bottom-section h2 {
    font-size: 28px;
  }
  
  .bottom-section p {
    font-size: 16px;
  }

  .leader-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .leader-image {
    width: 150px;
  }
  
  .leader-image img {
    height: 150px;
  }
  
  .leader-info {
    text-align: center;
  }
  
  .leader-info h3 {
    font-size: 22px;
  }
  
  .leader-info h4 {
    font-size: 16px;
  }
  
  .counters-container {
    flex-direction: column;
    gap: 40px;
  }

  footer {
    font-size: 20px;
  }
}

/* --- FIX FOR TRANSLATION BUTTON AND NAV ALIGNMENT --- */

/* Force the header to stay in the English layout (Logo Left, Translate Right) */
[dir="rtl"] .main-header, 
[dir="rtl"] .nav-bar {
  direction: ltr !important;
}

/* Keep the navigation buttons in the same order as the English site */
[dir="rtl"] .nav-buttons {
  direction: ltr !important;
}

/* Ensure the divider line stays on the correct side of the translation button */
[dir="rtl"] .translate-section {
  border-left: 1px solid #ddd;
  border-right: none;
}