{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #333;
    background-color: #fff;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 60px;
    margin-right: 15px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #173f33d3;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #E6A400;
}

/* FORMATION SECTION */
.formation {
    padding: 80px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

.formation-content {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.formation img {
    width: 1000px;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.formation-text {
    max-width: 600px;
    
}

.formation-text h2 {
    color: #00563F;
    margin-bottom: 20px;
}

/*FORMATION GALLERY*/
 /* Base reset for safety */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Gallery Section Layout */
.gallery-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gallery-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

/* The Grid Container */
/* Default for mobile: 1 column */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

/* Tablets (768px and up): 2 columns */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktops (1024px and up): Exactly 4 columns */
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* The Grid Items */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0;
  aspect-ratio: 4 / 3; /* Forces all images to share the same proportions */
}

/* The Images */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops and centers the image without stretching it */
  transition: transform 0.3s ease; /* Smooth hover transition */
  display: block;
}

/* Hover Effect */
.gallery-item:hover img {
  transform: scale(1.05); /* Gentle zoom effect */
}

/*FORMATION JOIN US TODAY BUTTON*/
.btn-outline {
    display: inline-block;
    padding: 10px 24px; /* Medium sizing */
    font-size: 16px;
    font-weight: 500;
    color: #007bff; /* Primary color */
    text-decoration: none;
    border: 2px solid #007bff;
    border-radius: 20px;
    transition: all 0.3s ease;
    }

    .btn-outline:hover {
    background-color: #007bff;
    color: #ffffff;
    }

/* FOOTER */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 70px;
}

.footer-links a {
    color: #E6A400;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    .about-content {
        flex-direction: column;
    }
    .mission-cards, .program-list {
        flex-direction: column;
    }
}
