/* ===============================
   ACHIEVEMENTS PAGE STYLING
   =============================== */
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #0f172a; /* dark theme like landing page */
  color: #e2e8f0; /* light text */
  line-height: 1.6;
}

/* ===============================
   NAVBAR (Desktop + Mobile Fixed)
   =============================== */

nav {
    background: #0f1218;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 12px rgba(86, 116, 221, 0.7);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= DESKTOP MENU ================= */

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: #D7D9DC;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.4rem 0.6rem;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
}

.nav-links li a:hover {
    color: #F79E1B;
}

/* ================= HAMBURGER BUTTON ================= */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    height: 3px;
    width: 100%;
    background: #89A9FF;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* ================= MOBILE MENU ================= */

@media (max-width: 768px) {

    .nav-container {
        padding: 1rem;
    }

    /* Show hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Hide menu by default */
    .nav-links {
        position: absolute;
        top: 65px;
        right: 0;
        width: 220px;
        background: #0f1218;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 1rem;

        display: none;  /* 🔥 important */
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    }

    /* Show when active */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        width: 100%;
        display: block;
        font-size: 1rem;
    }
}
/* Page Header */
.section-header {
    text-align: center;
    padding: 100px 20px 40px;
}

.section-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-header p {
    color: #bbb;
    font-size: 16px;
}

/* Achievements Grid */
.achievements-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 10%;
}

/* Certificate Card */
.certificate-card {
    background: #111;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-8px);
    border-color: #00bcd4;
}

.certificate-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.certificate-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.certificate-card p {
    color: #aaa;
    font-size: 14px;
}
/* Footer */
footer {
  background-color: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 25px 0;
  margin-top: 50px;
  border-top: 1px solid #334155;
}
/* ===============================
   Achievements Page - Mobile / Small Screens
   =============================== */
@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }
    header .nav-links {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .certificate-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10%;
    }
    .certificate-card h3 {
        font-size: 1.1rem;
    }
    .certificate-card p {
        font-size: 0.85rem;
    }
}
