* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  color: #1d2a49;
}

/* NAVBAR */
.navbar {
  width: 100%;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1002;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 100px;
  height: auto;
}

/* Nav Links */
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links ul {
  display: flex;
  font-size: 1.2em;
  gap: 50px;
}

.nav-links ul li a {
  color: #1d2a49;
  transition: 0.3s;
}

.nav-links ul li.active a {
  color: #bfdcec;
  font-weight: 600;
}

/* Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 25px;
}

.social-icons a {
  font-size: 30px;
  color: #1d2a49;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons a:hover i.fa-instagram { color: #e244a0; }
.social-icons a:hover i.fa-linkedin  { color: #0077b5; }
.social-icons a:hover i.fa-envelope  { color: #ab6bc5; }

/* Language Switch */
.language-switch .lang-btn,
.lang-button {
  font-size: 16px;
  padding: 6px 14px;
  border: 2px solid #1d2a49;
  border-radius: 20px;
  color: #1d2a49;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-button {
  background-color: transparent;
  width: auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.lang-button:hover {
  background-color: #1d2a49;
  color: white;
}

/* Device Visibility */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* Hamburger */
.menu-hamburger { display: none; width: 35px; cursor: pointer; }

/* Close Button */
.close-btn { display: none; }

/* RESPONSIVE NAVBAR */
@media screen and (max-width: 900px) {
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }

  .navbar { padding: 10px 20px; }
  .navbar .logo { margin-right: auto; }
  .menu-hamburger { display: block; margin-left: auto; }

  /* Mobile Menu Overlay */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 1000;
  }

  .nav-links.mobile-menu {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links ul { flex-direction: column; gap: 30px; text-align: center; }

  /* Show social icons & language switch inside mobile menu */
  .nav-links.mobile-menu .social-icons,
  .nav-links.mobile-menu .lang-button {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 1005;
  }
}
/* CSS: Actualités Page with Filters and Pagination */
.news-section {
  padding: 60px 20px;
  background: #d3dbe5;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.section-title {
  font-size: 36px;
  color: #1d2a49;
  margin-bottom: 10px;
}

.section-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
  font-family: "DM Sans", sans-serif;
}

.filters {
  margin-bottom: 30px;
}

.filter-btn {
  background: #fff;
  color: #1d2a49;
  border: 2px solid #1d2a49;
  padding: 8px 16px;
  margin: 0 8px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1d2a49;
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.news-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: none; /* hidden initially */
  cursor: pointer;
}

.news-card.visible {
  display: block;
}

.news-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.news-card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  text-align: left;
}

.card-content h3 {
  font-size: 18px;
  color: #1d2a49;
  margin: 10px 0;
  font-family: "DM Sans", sans-serif;
}

.card-content .excerpt {
  font-size: 14px;
  color: #1d2a49;
  line-height: 1.5;
}

.tag {
  background-color: #d6f1ff;
  color: #1d2a49;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
}

.tag.podcast {
  background-color: #ffc3e5;
}

.load-more-container {
  margin-top: 30px;
}

#loadMoreBtn {
  padding: 10px 20px;
  background: #1d2a49;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#loadMoreBtn:hover {
  background: #162038;
}

@media screen and (max-width: 600px) {
  .card-content {
    text-align: center;
  }
}


/* footer code */
.footer {
  background-color: #ffffff;
  color: #1d2a49;
  padding: 25px 20px 20px;
  font-size: 15px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-left .logo-img {
  width: 150px;
  margin-bottom: 10px;
}

.footer-left p {
  line-height: 1.5;
  max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 12px;
  font-weight: 600;
  color: #1d2a49;
}

.footer-links ul {
  padding: 0;
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #1d2a49;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #bfdcec;
}

.footer-social .social-icons a {
  color: #1d2a49;
  margin-right: 15px;
  font-size: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #ffffff;
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid #1d2a49;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-left .logo-img {
    margin-bottom: 15px;
  }

  .footer-left p {
    max-width: 100%;
  }

  .footer-links,
  .footer-social {
    margin-top: 30px;
  }

  .footer-social .social-icons a {
    margin-right: 10px;
  }
}
