
    :root {
      --bg:#0f1724; 
      /* background-image: url('img/sdg.png'); */
      --card:#0b1220; 
      --accent:#7c3aed; --muted:#9aa4b2;
      --success:#10b981; --danger:#ef4444;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
      
    }
    * { box-sizing: border-box; }
    body { margin:0; background:var(--bg); color:#e6eef6; min-height:100vh; }

    /* ---------- LOGIN PAGE ---------- */
    
/* video section incase i want to remove it */
    .sdg-logo-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px; /* Adjust size as needed */
    height: auto;
    z-index: 10; /* Ensures logo is on top of everything */
}
#bgVideo {
    position: fixed; /* Use fixed positioning relative to the viewport */
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100; /* Pushes the video behind all other content */
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ensures video fills screen neatly */
    opacity: 0.8; /* Dims the video slightly */
}

    .login-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Hides any video overflow */
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-card {
    position: relative; /* Must be relative or absolute so z-index works over video */
    z-index: 1; /* Puts the card above the video (which is z-index -100) */
    background: rgba(0, 0, 0, 0.75); /* Add a dark, semi-transparent background */
    padding: 30px;
    border-radius: 10px;
    color: white; /* Ensures text is readable */
    /* Add any other styling you had for the card */
}
.login-card h1, .login-card p {
    color: inherit; /
}

.dg-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10; /* Above everything else */
}

.dg-portrait {
    width: 100px; /* Adjust size to match the SDG logo size */
    height: auto;
    border-radius: 50%; 
    /* Optional: Makes the image circular for a modern look */
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* video section incase i want to remove it. it end here */

/* .login-page {
      position:relative;
      height:100vh;
      display:flex;
      align-items:center;
      justify-content:center;
      text-align:center;
      overflow:hidden;
    } */

    /* .login-bg {
      position:absolute;
      inset:0;
      background:url('img/cbtimg.jpg') center/cover no-repeat;
      filter:brightness(0.4);
      z-index:0;
    } */
    /* .login-card {
      position:relative;
      z-index:1;
      background:rgba(15,23,36,0.9);
      padding:32px;
      border-radius:12px;
      width:90%;
      max-width:420px;
      box-shadow:0 8px 30px rgba(0,0,0,0.6);
    } */


    .login-card h1 { margin:0 0 12px; font-size:20px; color:#fff; }
    .login-card p { font-size:13px; color:var(--muted); margin-bottom:20px; }
    .login-card input {
      width:100%; padding:12px; margin-bottom:12px;
      border:none; border-radius:8px; font-size:14px;
    }
    .cta {
      background:linear-gradient(90deg,var(--accent), #4f46e5);
      border:none; color:#fff; padding:12px 18px;
      border-radius:10px; cursor:pointer; font-weight:600;
      width:100%;
    }

    /* ---------- MAIN LAYOUT ---------- */
    .wrap { width:100%; max-width:980px; margin:auto; padding:30px 16px; background-image: url(image/deeperfect.jpg);}
    /* .card {  background:rgb(30, 31, 30); padding:26px; border-radius:14px; } */

    header { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
    .logo { width:56px; height:56px; border-radius:12px;
      background:linear-gradient(135deg,var(--accent), #4f46e5);
      display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; }

    h3 { margin-top:0; }

    .grid { display:contents; grid-template-columns:320px 1fr; gap:20px; }
    @media(max-width:880px){ .grid{grid-template-columns:1fr;} }

    .panel { padding:18px; border-radius:12px; background-color: rgb(6, 6, 24);}

    select { width:100%; padding:10px; border-radius:8px; background:rgba(255,255,255,0.04); color:red; margin-bottom:10px; }
    .btn-secondary { padding:10px 12px; border-radius:8px; background:transparent; border:1px solid rgba(255,255,255,0.2); color:var(--muted); cursor:pointer; }

    .instructions { background:rgba(255,255,255,0.02); padding:14px; border-radius:10px; font-size:14px; color:var(--muted); }

    /* Exam */
    .topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
    .timer { font-weight:700; background:rgba(255,255,255,0.08); padding:6px 12px; border-radius:6px; }
    .progress { height:6px; background:#333; border-radius:4px; overflow:hidden; margin-bottom:14px; }
    .progress-bar { height:100%; background:var(--accent); width:0%; transition:width 0.3s; }
    .question { padding:14px; border-radius:10px; margin-bottom:12px; background:rgba(255,255,255,0.02); }
    .pagination { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
    .page-btn { padding:6px 10px; border-radius:6px; border:1px solid rgba(255,255,255,0.2); background:transparent; color:#fff; cursor:pointer; font-size:13px; }
    .page-btn.active { background:var(--accent); border:none; }
    .page-btn.unanswered { border-color:var(--danger); color:var(--danger); }

    .score { font-weight:700; padding:12px; border-radius:10px; margin-bottom:16px; }
    .score.pass { background:rgba(16,185,129,0.1); color:var(--success); }
    .score.fail { background:rgba(239,68,68,0.1); color:var(--danger); }

    img.feature { width:100%; border-radius:10px; margin-top:16px; }
.nysc-branding {
  background: #1e1b4b; /* Deep Navy Blue */
  color: #ffffff;
  padding: 10px 20px;
  border-bottom: 3px solid #7c3aed; /* Purple Accent */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.branding-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.badge {
  background: #7c3aed;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.branding-content p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Fix for your login page alignment */
.login-page {
  height: calc(100vh - 50px) !important;
}


/* ================= MODAL STYLE ================= */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 900px;
  margin: 4% auto;
  padding: 50px;
  border-radius: 12px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.close-btn {
  position: absolute;
  right: 25px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #0a7d35;
  font-weight: bold;
}

/* About Styling */
.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: #0a7d35;
}

.underline {
  width: 80px;
  height: 4px;
  background: #0a7d35;
  margin: 10px auto 0;
  border-radius: 2px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.about-objectives {
  background: #f4f6f9;
  padding: 25px;
  border-left: 5px solid #0a7d35;
  border-radius: 8px;
  margin: 30px 0;
  color: rgb(58, 56, 56);
}

.about-objectives h3 {
  margin-bottom: 15px;
  color: #0a7d35;

}

.about-objectives ul {
  padding-left: 20px;
}

.about-objectives ul li {
  margin-bottom: 10px;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}
a{
  text-decoration: none;
  color: white;
  
}
.project-impact {
  margin-top: 40px;
}

.project-impact h3 {
  color: #0a7d35;
  margin-bottom: 15px;
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
  margin-top: 20px;
}

.school-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.school-card img,
.school-card video {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.school-card h4 {
  padding: 10px;
  font-size: 16px;
  color: #1c3d2f;
}

.school-card p {
  padding: 0 10px 15px 10px;
  font-size: 14px;
  color: #555;
}


/* gallary css */
/* ================= GALLERY AND BUTTON STYLES ================= */

/* Container for the link button inside the modal */
.view-more-container {
  text-align: center;
  margin-top: 25px;
}

/* Styled link to act like a green action button */
.view-more-btn {
  display: inline-block;
  background-color: #008751; /* Official NYSC Green color */
  color: #ffffff;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.view-more-btn:hover {
  background-color: #005c36;
}

/* Base structural styles for the dedicated gallery file template */
.gallery-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.gallery-header {
  margin-bottom: 30px;
}

.gallery-header h2 {
  font-size: 28px;
  color: #333;
  margin-top: 10px;
}

/* Back navigation anchor element */
.back-btn {
  display: inline-block;
  color: #008751;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: #005c36;
  text-decoration: underline;
}
