/* =========================================
   LAYOUT CONTAINER
========================================= */
.main-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
}

/* =========================================
   LEFT SIDEBAR FORM
========================================= */
.left-sidebar {
  width: 300px;
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #d0e3f5;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.left-sidebar h3 {
  text-align: center;
  color: #013c74;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #d0e3f5;
  padding-bottom: 8px;
  font-size: 1.15em;
}

.left-sidebar label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: #013c74;
  font-size: 0.95em;
}

.left-sidebar input,
.left-sidebar select,
.left-sidebar textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  font-size: 0.95em;
  background: #f9fbff;
  outline: none;
  transition: all 0.3s ease;
}

.left-sidebar input:focus,
.left-sidebar select:focus,
.left-sidebar textarea:focus {
  border-color: #013c74;
  box-shadow: 0 0 5px rgba(1, 60, 116, 0.25);
  background: #fff;
}

.left-sidebar button {
  margin-top: 18px;
  width: 100%;
  background: #013c74;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.left-sidebar button:hover {
  background: #0254a2;
  transform: translateY(-2px);
}

/* =========================================
   MAIN CONTENT
========================================= */
main {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

main h2 {
  color: #013c74;
  font-weight: 600;
  margin-bottom: 25px;
}

/* =========================================
   COURSE GRID
========================================= */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* =========================================
   COURSE CARD
========================================= */
.course-card {
  background: #fff;
  border: 1px solid #d0e3f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(1, 60, 116, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(1, 60, 116, 0.15);
  border-color: #0254a2;
}

/* COURSE IMAGE */
.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid #d0e3f5;
}

/* COURSE CONTENT */
.course-card .content {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card h3 {
  color: #012a56;
  font-weight: 700;
  font-size: 1.05em;
  margin-bottom: 8px;
}

.course-card p {
  color: #2e4a6b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* BUTTON */
.course-card button {
  align-self: flex-start;
  background: #ffd700;
  color: #013c74;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.course-card button:hover {
  background: #013c74;
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
  .main-container {
    flex-direction: column;
  }

  .left-sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }

  .course-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 600px) {
  main {
    padding: 20px;
  }

  .course-card img {
    height: 160px;
  }

  .left-sidebar {
    padding: 18px;
  }
}
