/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-main: #2e7d32;
  --green-light: #66bb6a;
  --blue-main: #0d47a1;
  --bg-light: #f4fbf6;
  --text-dark: #263238;
  --don-orange: #ff6f00;
}


/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #22398c, #073352);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 16px 32px;
  gap: 24px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 55px;
}

.logo span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-main);
}


/* NAVIGATION */
.modules {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.modules a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

/* Hover underline */
.modules a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--green-main);
  transition: width 0.3s ease;
}

.modules a:hover::after {
  width: 100%;
}

.modules a:hover {
  color: var(--green-main);
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1000;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 52px;
}

.logo span {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green);
}

/* NAVIGATION */
.modules {
  display: flex;
  gap: 30px;
}

.modules a {
  text-decoration: none;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  padding-bottom: 6px;
}

.modules a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.modules a:hover::after {
  width: 100%;
}

/* ================= MEGA MENU ================= */

.mega-wrapper {
  width: 100%;
}

.mega-menu {
  display: none;
  width: 100vw;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  padding: 50px 0;
}

.mega-container {
  max-width: 1300px;
  margin: auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
}

.mega-col h4 {
  color: var(--green);
  margin-bottom: 14px;
}

.mega-col a {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--dark);
  position: relative;
}

.mega-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #ffb300;
  transition: width 0.3s ease;
}

.mega-col a:hover::after {
  width: 100%;
}
.mega-col a:hover {
  color: var(--green);
}

/* ACTION COLUMN */
.mega-col.action {
  background: #f1f8f4;
  padding: 24px;
  border-radius: 16px;
}

.mega-btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--green);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .mega-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .modules {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mega-container {
    grid-template-columns: 1fr;
  }
}

/* ACTION BUTTONS */
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* DEVENIR MEMBRE */
.member-btn {
  text-decoration: none;
  border: 2px solid var(--green-main);
  color: var(--green-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.member-btn:hover {
  background: var(--green-main);
  color: #fff;
}

/* DON */
.don-btn {
  text-decoration: none;
  background: linear-gradient(135deg, var(--don-orange), #ff9100);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 800;
  animation: blink 1.5s infinite;
  transition: transform 0.3s ease;
}

.don-btn:hover {
  transform: scale(1.08);
}

/* ANIMATION DON */
@keyframes blink {
  0% { box-shadow: 0 0 0 rgba(255, 61, 0, 0.5); }
  50% { box-shadow: 0 0 15px rgba(255, 61, 0, 0.9); }
  100% { box-shadow: 0 0 0 rgba(255, 61, 0, 0.5); }
}

/* RESPONSIVE MOBILE */
@media (max-width: 992px) {
  .header {
    flex-wrap: wrap;
    padding: 16px;
  }

  .modules {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .actions {
    order: 2;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .logo span {
    font-size: 1.1rem;
  }

  .modules a {
    font-size: 0.95rem;
  }
}

/* ===== MENU TOGGLE ===== */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-main);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .header {
    position: relative;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  /* Afficher le bouton */
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  /* Cacher la navigation par défaut */
  .modules {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    margin-top: 12px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    overflow: hidden;
  }

  .modules a {
    padding: 16px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 1.05rem;
  }

  .modules a:last-child {
    border-bottom: none;
  }

  /* MENU OUVERT */
  .modules.active {
    display: flex;
    animation: slideDown 0.35s ease;
  }
}

/* ANIMATION */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   CARROUSEL
========================= */
.carousel {
  position: relative;
  overflow: hidden;
  height: 500px;
  margin-top: 5px;
  background: #f5faff;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}


.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: fill;
  filter: brightness(0.75);
}

/* contenu texte */
.slide-content {
  position: absolute;
  top: 70%;
  left: 8%;
  transform: translateY(-50%);
  background: rgba(46, 125, 50, 0.9);
  padding: 24px;
  border-radius: 16px;
  color: #fff;
  max-width: 500px;
}

/* bouton slide */
.slide-btn {
  display: inline-block;
  background: #ffffff;
  color: var(--green-main);;
  padding: 10px 22px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 12px;
}
.slide-btn:hover {
  background: var(--green-main);
  color: #ffffff;
}

/* =========================
   BOUTONS GAUCHE / DROITE
========================= */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  color: #0d47a1;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: #0d47a1;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .carousel,
  .slide img {
    height: 300px;
  }

  .slide-content {
    left: 5%;
    right: 5%;
  }
}


/* =========================
   ongoing projects
========================= */
.banner-activities {
  width: 100%;
  background: linear-gradient(135deg, #0d47a1, #2e7d32); /* couleurs AFAD */
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.banner-activities h1 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner-activities p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-activities h1 {
    font-size: 28px;
  }

  .banner-activities p {
    font-size: 16px;
  }
}

.ongoing-projects {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.project {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 80vh;
}

.project.reverse {
  flex-direction: row-reverse;
}

.project-image {
  flex: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.project-text {
  flex: 1;
}

.project-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #0d47a1;
}

.project-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .project {
    flex-direction: column;
    height: auto;
  }

  .project.reverse {
    flex-direction: column;
  }

  .project-image {
    height: 250px;
    width: 100%;
  }

  .project-text h2 {
    font-size: 22px;
  }

  .project-text p {
    font-size: 14px;
  }
}

/* =========================
   PARTENAIRES
========================= */
.partners {
  background-color: #fff;
  padding: 50px 60px;
  text-align: center;
}

.partners-title {
  font-size: 2.2rem;
  color: var(--green-main);
  margin-bottom: 60px; /* 👈 espace sous le titre */
  font-weight: 800;
}

.partners-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
}


.partners-track {
  display: flex;
  align-items: center;
  margin: 10px;
  gap: 60px;
  will-change: transform;
}

.partners-track img {
  height: 90px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.partners-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
/* =========================
   BOUTONS FLÈCHES
========================= */
.partners-btn {
  background: var(--green-main);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  transition: all 0.3s ease;
}

.partners-btn:hover {
  background: #0d47a1;
  transform: scale(1.1);
}

.partners-btn.left {
  margin-right: 20px;
}

.partners-btn.right {
  margin-left: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .partners {
    padding: 60px 20px;
  }

  .partners-track img {
    height: 70px;
  }
}

/* =========================
   REALISATIONS – VERSION PRO
========================= */
.projects {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
  padding: 20px 30px;
}

/* TITRE */
.projects-title {
  text-align: center;
  font-size: 2.6rem;
  color: var(--green-main);
  margin-bottom: 30px;
  font-weight: 900;
  position: relative;
}

.projects-title::after {
  content: "";
  width: 70px;
  height: 4px;
  background: var(--green-main);
  display: block;
  margin: 18px auto 0;
  border-radius: 20px;
}

/* WRAPPER */
.projects-wrapper {
  position: relative;
  max-width: 1250px;
  margin: auto;
  display: flex;
  align-items: center;
}

/* TRACK */
.projects-track {
  display: flex;
  gap: 32px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 10px 8px;
}

/* CARTE */
.project-card {
  background: #ffffff;
  border-radius: 22px;
  width: 300px;
  min-height: 450px;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.08),
    0 25px 45px rgba(0,0,0,0.06);
  overflow: hidden;
  flex-shrink: 0;
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.project-card:hover {
  transform: translateY(-14px);
  box-shadow:
    0 20px 45px rgba(0,0,0,0.18),
    0 35px 60px rgba(0,0,0,0.12);
}

/* IMAGE */
.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* CONTENU */
.project-content {
  padding: 12px;
}

.project-content h3 {
  font-size: 1.35rem;
  color: var(--green-main);
  margin-bottom: 12px;
  font-weight: 800;
}

.project-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 22px;
}

/* BOUTON */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--green-main),
    #1b5e20
  );
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.project-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(27,94,32,0.4);
}

/* BOUTONS FLÈCHES */
.projects-btn {
  background: #0d47a1;
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.projects-btn:hover {
  background: #08306b;
  transform: scale(1.12);
  box-shadow: 0 10px 25px rgba(13,71,161,0.4);
}

.projects-btn.left {
  margin-right: 22px;
}

.projects-btn.right {
  margin-left: 22px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .project-card {
    width: 270px;
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 80px 20px;
  }

  .projects-title {
    font-size: 2.1rem;
  }

  .project-card {
    width: 240px;
  }
}

/* =========================
   CARROUSSEL DU BAS
========================= *//* ================================
   SECTION DOMAINES – GLOBAL
================================ */
.domains-carousel {
  background-color: #bbf5be;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ================================
   CAROUSEL À GAUCHE
================================ */
.domains-carousel-wrapper {
  flex: 1;
  position: relative;
  max-width: 600px;
  overflow: hidden;
}

/* TRACK */
.domains-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

/* SLIDE */
.domains-slide {
  min-width: 100%;
}

.domains-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

/* ================================
   FLÈCHES
================================ */
.domains-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 26px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 10;
}

.domains-prev { left: 10px; }
.domains-next { right: 10px; }

/* ================================
   TEXTE À DROITE
================================ */
.domains-content {
  flex: 1;
}

.domains-content h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.domains-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
}

.domains-link {
  display: inline-block;
  padding: 12px 25px;
  background: #2e7d32;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

/* ================================
   RESPONSIVE MOBILE
================================ */
@media (max-width: 768px) {
  .domains-carousel {
    flex-direction: column;
    text-align: center;
  }

  .domains-carousel-wrapper,
  .domains-content {
    max-width: 100%;
  }

  .domains-slide img {
    height: 320px;
  }
}



/* =========================
   FOOTER
========================= */
.footer {
  background: linear-gradient(135deg, #0d47a1, #08306b);
  color: #fff;
  padding-top: 70px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 60px 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* LOGO */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 50px;
}

.footer-logo span {
  font-size: 1.3rem;
  font-weight: 800;
}

/* TEXTES */
.footer-col p {
  line-height: 1.7;
  opacity: 0.9;
}

/* TITRES */
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #ffb300;
  display: block;
  margin-top: 8px;
  border-radius: 10px;
}

/* LISTES */
.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #e3f2fd;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ffb300;
  padding-left: 5px;
}

/* CONTACT */
.footer-contact li {
  opacity: 0.9;
}

/* RÉSEAUX */
.footer-socials {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: #ffb300;
  color: #08306b;
  transform: scale(1.1);
}

/* BOUTON DON */
.footer-don-btn {
  display: inline-block;
  background: #ff3d00;
  color: green;
  padding: 10px 22px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s ease, background 0.3s ease;
}

.footer-don-btn:hover {
  transform: scale(1.08);
  background: #ff6d00;
}

/* BAS FOOTER */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  text-align: center;
  padding: 18px;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }

  .footer {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }
}



/* COMING SOON css */
/* SECTION EN CONSTRUCTION */
.coming-soon-container {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.coming-soon-img {
  max-width: 250px;
  width: 100%;
  margin-bottom: 30px;
  animation: bounce 2s infinite;
}

.coming-soon-container h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #0d47a1;
}

.coming-soon-container p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #555;
}

.btn-home {
  display: inline-block;
  padding: 12px 25px;
  background-color: #0d47a1;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-home:hover {
  background-color: #08306b;
  transform: scale(1.05);
}

/* Animation pour l'image */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 600px) {
  .coming-soon-container h1 {
    font-size: 22px;
  }
  
  .coming-soon-container p {
    font-size: 14px;
  }

  .coming-soon-img {
    max-width: 180px;
  }
}







































/* ======================================================
   RUBRIQUE ACTIONS – AFAD
   ====================================================== */

.rubrique-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 70px 8%;
  background: linear-gradient(135deg, #1fa36a, #1c7ed6);
  align-items: center;
  overflow: hidden;
}

/* ======================================================
   SLIDER ACTIONS
   ====================================================== */

.actions-slider {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.actions-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.actions-slide.active {
  opacity: 1;
}

/* ======================================================
   TEXTE ANIMÉ
   ====================================================== */

.rubrique-texte {
  color: #ffffff;
}

.rubrique-texte h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 15px;
}

.rubrique-texte p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #fff;
}

/* Animation */
.rubrique-texte h2,
.rubrique-texte p,
.rubrique-texte a {
  opacity: 0;
  transform: translateY(18px);
}

.rubrique-texte.active h2,
.rubrique-texte.active p,
.rubrique-texte.active a {
  animation: fadeUp 0.45s ease forwards;
}

.rubrique-texte.active h2 { animation-delay: 0.1s; }
.rubrique-texte.active p  { animation-delay: 0.25s; }
.rubrique-texte.active a  { animation-delay: 0.4s; }

/* ======================================================
   BOUTON
   ====================================================== */

.btn-action {
  display: inline-block;
  padding: 13px 32px;
  background: #ffffff;
  color: #1c7ed6;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-action:hover {
  background: #e6f4ff;
  transform: translateY(-2px);
}

/* ======================================================
   ANIMATION KEYFRAMES
   ====================================================== */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 900px) {
  .rubrique-actions {
    grid-template-columns: 1fr;
    padding: 50px 6%;
    text-align: center;
  }

  .actions-slider {
    height: 260px;
  }

  .rubrique-texte h2 {
    font-size: 26px;
  }
}

































/* Container for the gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: #f9f9f9;
}

/* Individual cards */
.card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Card hover effect */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Media inside card */
.card img,
.card iframe {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.card:hover img,
.card:hover iframe {
  transform: scale(1.03);
}

/* Card content */
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem;
  color: #333;
}

.card p {
  font-size: 0.95rem;
  margin: 0 1rem 1rem;
  color: #555;
  line-height: 1.4;
}

.card small {
  display: block;
  margin: 0 1rem 1rem;
  color: #999;
  font-size: 0.85rem;
}

/* Document / link styling */
.doc-link {
  display: inline-block;
  margin: 1.5rem auto;
  padding: 0.8rem 1.6rem;
  text-align: center;
  font-size: 1.05rem;
  color: #fff;
  background: #0a7cff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.doc-link:hover {
  background: #065ecb;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery {
    gap: 1.5rem;
  }
  .card img,
  .card iframe {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .card h3 {
    font-siz
