 /* Global Styles */
 :root {
  --liberian-red: #bf0a30;
  --liberian-white: #ffffff;
  --liberian-blue: #002868;
  --moroccan-red: #c1272d;
  --moroccan-green: #006233;
  --dark-gray: #333333;
  --light-gray: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
}

body {
  line-height: 1.6;
  color: var(--dark-gray);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--liberian-red);
  color: white;
}

.btn-primary:hover {
  background-color: #9e0828;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--liberian-blue);
  color: white;
}

.btn-secondary:hover {
  background-color: #001b4d;
  transform: translateY(-2px);
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container-span {
  color: var(--liberian-blue);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h1 {
  font-size: 24px;
  color: #bf0a30; /* Liberian red */
  margin-left: 10px;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #bf0a30; /* Liberian red */
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 1170px) {
  .header-container-span {
    display: none;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-container-span {
    display: none;
  }

  /* Mobile menu styles */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin-left: 0;
  }

  /* Show mobile menu button */
  .mobile-menu-toggle {
    display: block;
  }

  /* Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Dropdown */
.drop-down ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

.drop-down li a,
.dropbtn {
  display: inline-block;
  color: white;
  text-align: center;
  text-decoration: none;
}

.drop-down li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(Images/Oujda_with_national_team.jpeg);
  background-size: cove;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 60px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Quick Access Section */
.quick-access {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--liberian-blue);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.access-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.access-card:hover {
  transform: translateY(-10px);
}

.access-icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--liberian-red);
}

.access-card h3 {
  margin-bottom: 15px;
  color: var(--liberian-blue);
}

/* Events Section */
.events {
  padding: 60px 0;
}

.events-container {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.event-card {
  min-width: 300px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
}

.event-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.event-details {
  padding: 20px;
}

.event-date {
  color: var(--liberian-red);
  font-weight: 600;
  margin-bottom: 10px;
}

.event-card h3 {
  margin-bottom: 15px;
}

.view-all {
  text-align: center;
  margin-top: 30px;
}

.view-all a {
  color: var(--liberian-blue);
  font-weight: 600;
  text-decoration: none;
}

/* Stats Section */
.stats {
  background: linear-gradient(
    135deg,
    var(--liberian-red) 50%,
    var(--liberian-blue) 50%
  );
  padding: 80px 0;
  color: white;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.stat-item {
  margin: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Testimonial Slider */
.testimonials {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  animation: fade 1.5s ease;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.testimonial-slide.active {
  display: block;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.testimonial-text {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--liberian-blue);
}

.slide-controls {
  text-align: center;
  margin-top: 20px;
}

.slide-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
}

.slide-dot.active {
  background-color: var(--liberian-red);
}

/* Videos Section */
.videos {
  padding: 60px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  color: var(--liberian-blue);
  margin-bottom: 10px;
}

/* Video Modal Styles (added to existing CSS) */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #ccc;
}

/* Existing Video Thumbnail Styles */
.video-thumbnail-container {
  position: relative;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 50px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
}

.video-thumbnail-container:hover .video-play-btn {
  color: var(--liberian-red);
  transform: translate(-50%, -50%) scale(1.1);
}

/* News Ticker */
.news-ticker {
  background-color: var(--liberian-blue);
  color: white;
  padding: 15px 0;
}

.ticker-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticker-label {
  font-weight: 600;
  margin-right: 15px;
}

.ticker-content {
  display: flex;
  align-items: center;
}

.ticker-item {
  margin-right: 30px;
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo h2 {
  font-size: 20px;
  color: white;
  margin-left: 10px;
}

.footer-about p {
  margin-bottom: 20px;
}

.social-links a {
  color: white;
  font-size: 20px;
  margin-right: 15px;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--liberian-red);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--liberian-red);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-icon {
  margin-right: 10px;
  color: var(--liberian-red);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 80%;
    margin-bottom: 10px;
  }

  .header-container-span {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .access-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    flex-direction: column;
  }
}

/* Gallery Styles */
.gallery {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.gallery-filter {
  text-align: center;
  margin-bottom: 30px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 8px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-gray);
  border-radius: 4px;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--liberian-red);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(191, 10, 48, 0.8);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-overlay h3 {
  margin-bottom: 15px;
  text-align: center;
  padding: 0 15px;
}

.gallery-overlay i {
  font-size: 30px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  margin: 5% auto;
  display: block;
}

.lightbox-caption {
  color: white;
  padding: 10px 0;
  font-size: 18px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

.newsletter {
  padding: 80px 0;
  background-color: var(--liberian-blue);
  color: white;
  text-align: center;
}

.newsletter .section-title h2 {
  color: white;
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

.newsletter-btn {
  background-color: var(--liberian-red);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-btn:hover {
  background-color: #9e0828;
}

.newsletter-success {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background-color: var(--moroccan-green);
  border-radius: 4px;
}

/* Leadership Section */
.leadership {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.leader-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.leader-card:hover {
  transform: translateY(-10px);
}

.leader-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.leader-info {
  padding: 25px;
  text-align: center;
}

.leader-name {
  color: var(--liberian-blue);
  margin-bottom: 5px;
}

.leader-position {
  color: var(--liberian-red);
  font-weight: 600;
  margin-bottom: 15px;
}

.leader-bio {
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  color: var(--liberian-blue);
  font-size: 18px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--liberian-red);
}

/* Resources Section */
.resources {
  padding: 80px 0;
  background-color: white;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.resource-card {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-icon {
  font-size: 50px;
  color: var(--liberian-red);
  margin-bottom: 20px;
}

.resource-card h3 {
  color: var(--liberian-blue);
  margin-bottom: 15px;
}

.resource-card p {
  margin-bottom: 20px;
}

.download-btn,
.visit-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.download-btn {
  background-color: var(--liberian-blue);
  color: white;
}

.download-btn:hover {
  background-color: #001b4d;
}

.visit-btn {
  background-color: var(--moroccan-green);
  color: white;
}

.visit-btn:hover {
  background-color: #004d26;
}

/* Official Links Section */
.official-links {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.official-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.official-card:hover {
  transform: translateY(-5px);
}

.official-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f9f9f9;
}

.official-logo img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.official-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.official-info h3 {
  color: var(--liberian-blue);
  margin-bottom: 10px;
}

.official-info p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.official-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--liberian-red);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
  text-align: center;
}

.official-link:hover {
  background-color: #9e0828;
}

.official-link i {
  margin-left: 5px;
}

/* Clean Leadership Section Styles (Flags Removed) */
.leadership-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.leadership-section h2 {
  text-align: center;
  color: #bf0a30;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.leader-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.leader-image {
  height: 320px;
  overflow: hidden;
}

.leader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.leader-card:hover .leader-image img {
  transform: scale(1.05);
}

.leader-info {
  padding: 1.5rem;
}

.leader-info h3 {
  color: #002868;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.position {
  color: #bf0a30;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.leader-contact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  color: #555;
}

.leader-contact i {
  color: #bf0a30;
  width: 20px;
  text-align: center;
}

@media (max-width: 1024px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .leader-image {
    height: 280px;
  }
}