    :root {
      --sky-blue: #4da3ff;
      --gold: #f2b705;
      --green: #1fa97a;
      --dark: #0f172a;
      --light-bg: #f5f9ff;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Poppins', sans-serif;
    }

    body {
      min-height: 100vh;
      background: linear-gradient(135deg, var(--sky-blue), var(--green));
      display: flex;
      flex-direction: column;
    }

    /* HEADER */
    header {
      background: #ffffff;
      padding: 15px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }

    header .brand {
      font-size: 1.4rem;
      font-weight: 600;
      color: var(--green);
    }

    header nav a {
      margin-left: 20px;
      text-decoration: none;
      font-weight: 500;
      color: var(--dark);
      transition: color 0.3s ease;
    }

    header nav a:hover {
      color: var(--sky-blue);
    }

    /* MAIN */
    main {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 40px 20px;
    }

    .register-card {
      background: #ffffff;
      width: 100%;
      max-width: 480px;
      padding: 40px 30px;
      border-radius: 16px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .logo {
      text-align: center;
      margin-bottom: 25px;
    }

    .logo img {
      max-width: 90px;
      margin-bottom: 10px;
    }

    .logo h2 {
      color: var(--green);
      font-weight: 600;
    }

    form {
      display: grid;
      gap: 15px;
    }

    input, select {
      width: 100%;
      padding: 12px 14px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      font-size: 0.95rem;
      transition: border 0.3s ease;
    }

    input:focus, select:focus {
      outline: none;
      border-color: var(--sky-blue);
    }

    button {
      margin-top: 10px;
      padding: 14px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--gold), var(--green));
      color: #ffffff;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    button:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

    /* FOOTER */
    footer {
      background: #ffffff;
      padding: 15px 20px;
      text-align: center;
      box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    }

    footer a {
      margin: 0 10px;
      text-decoration: none;
      font-size: 0.9rem;
      color: var(--dark);
    }

    footer a:hover {
      color: var(--green);
    }

    /* RESPONSIVE */
    @media (max-width: 600px) {
      header {
        flex-direction: column;
        gap: 10px;
      }

      header nav a {
        margin-left: 10px;
        margin-right: 10px;
      }

      .register-card {
        padding: 30px 20px;
      }
    }



/* =========================
   Study Section – Global
========================= */
.study {
  background: #eef3f8;
  padding: 3.5rem 1.25rem;
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #111827;
}

.study-container {
  max-width: 1200px;
  margin: auto;
}

/* =========================
   Title
========================= */
.study-title {
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 2.5rem;
  color: #1f3b64;
  font-weight: 700;
}

/* =========================
   Filters
========================= */
.study-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 boxes per row */
  gap: 1.25rem;
  max-width: 1000px; /* keeps it clean and centered */
  margin: 0 auto;
}

.study-filters select {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.study-filters select:focus {
  outline: none;
  border-color: #1f3b64;
  box-shadow: 0 0 0 3px rgba(31, 59, 100, 0.15);
}


/* =========================
   Search Button
========================= */
.study-search {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 3rem;
}

.study-search button {
  width: min(100%, 280px);
  padding: 1.05rem 2.5rem;
  background: #1f3b64;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.study-search button:hover {
  background: #162d4f;
  transform: translateY(-1px);
}

/* =========================
   Programs Header
========================= */
.study-programs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.study-programs-header h3 {
  font-size: 1.5rem;
  color: #1f3b64;
  font-weight: 600;
}

/* =========================
   Cards Grid
========================= */
.study-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.study-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.study-card h4 {
  font-size: 1.25rem;
  color: #1f3b64;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.study-institute {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1.1rem;
}

.study-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}

.study-card ul li {
  margin-bottom: 0.45rem;
}

.study-card a {
  margin-top: auto;
  align-self: flex-end;
  font-size: 0.95rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.study-card a:hover {
  text-decoration: underline;
}

/* =========================
   Pagination
========================= */
.study-pagination {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.study-pagination button {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.study-pagination button:hover {
  background: #d1d5db;
}

.study-pagination button.active {
  background: #1f3b64;
  color: #ffffff;
}

/* =========================
   Mobile Optimizations
========================= */
@media (max-width: 768px) {
  .study {
    padding: 3rem 1rem;
    font-size: 1.02rem;
  }

  .study-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .study {
    padding: 2.5rem 0.75rem;
    font-size: 1rem;
  }

  .study-search button {
    width: 100%;
  }

  .study-programs-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Tablet: 2 per row */
@media (max-width: 900px) {
  .study-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 per row */
@media (max-width: 480px) {
  .study-filters {
    grid-template-columns: 1fr;
  }
}

/* Cards Grid */
.study-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
  gap: 1.75rem;
  margin-top: 1.5rem;
}

/* Responsive tweaks */
/* Tablet: 2 per row */
@media (max-width: 1024px) {
  .study-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 per row */
@media (max-width: 480px) {
  .study-cards {
    grid-template-columns: 1fr;
  }
}

.error-message {
    background-color: #ffe5e5;
    color: #b30000;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
}


.success-message {
    background-color: #e6fff2;
    color: #0f5132;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
}


