* {
  box-sizing: border-box;
}

body {
  /* font-family: "Poppins", sans-serif; */
  font-family: "Cairo", sans-serif;
  background: linear-gradient(135deg, #eef2f3, #8e9eab);
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  width: 90%;
  max-width: 800px;
  margin: 30px auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
}

h1 {
  text-align: center;
  color: #2a2a72;
  font-size: 1.6rem;
}

.section {
  margin-top: 30px;
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1rem;
}

select, input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
  font-size: 15px;
}

.select:focus, input:focus, textarea:focus {
  border-color: #2a2a72;
  box-shadow: 0 0 6px rgba(42, 42, 114, 0.3);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.option {
  flex: 1 1 30%;
  background: #f4f4f9;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.option:hover {
  background: #2a2a72;
  color: white;
  transform: scale(1.05);
}

.option.selected {
  background: #2a2a72;
  color: white;
}

.buttons {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

button {
  flex: 1;
  padding: 12px;
  background: #2a2a72;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

button:hover {
  background: #4f58a6;
}

.progress {
  height: 10px;
  background: #ccc;
  border-radius: 5px;
  margin-bottom: 25px;
  overflow: hidden;
}

.progress-bar {
  height: 10px;
  width: 0;
  background: #2a2a72;
  border-radius: 5px;
  transition: width 0.3s;
}

.summary-box {
  background: #f4f4f9;
  padding: 15px;
  border-radius: 10px;
}

.course-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f4f9;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  gap: 10px;
}

.course-left {
  display: flex;
  align-items: center;
  gap: 10px;
}


@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .course-item {
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: #f7f7fc;
    padding: 15px;
    /* border-radius: 12px; */
    /* margin-bottom: 15px; */
  }

  .course-left {
    width: 50%;
    display: contents;
    /* align-items: center; */
    /* gap: 12px; */
    /* font-size: 1rem; */
  }

  .grade-select,
  .course-item select {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
  }

  .option {
    flex: 1 1 100%;
    /* width: 100%; */
    /* padding: 15px; */
    /* font-size: 1rem; */
  }
}

@media (max-width: 480px) {
  .course-item {
    padding: 12px;
  }

  .course-left {
    font-size: 0.95rem;
  }

  .grade-select {
    font-size: 0.9rem;
  }
}
/* king of software*/


