* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --orange: #f59e0b;
  --orange-soft: #fff3df;
  --orange-light: #ffd89b;
  --cream: #fffaf2;
  --dark: #2f241c;
  --muted: #7c6f64;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(245, 158, 11, 0.16);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 155, 0.65), transparent 35%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.20), transparent 30%),
    linear-gradient(135deg, #fffaf2, #fff3df);
  color: var(--dark);
}

.page-wrapper {
  width: min(1120px, 92%);
  margin: auto;
  padding: 34px 0 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.20);
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  margin-bottom: 28px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  background: linear-gradient(135deg, #ffd89b, #f59e0b);
  border-radius: 50%;
  right: -70px;
  top: -70px;
  opacity: 0.36;
}

.hero::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: #fff1cc;
  border-radius: 40px;
  left: -40px;
  bottom: -40px;
  transform: rotate(18deg);
  opacity: 0.75;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 20px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff3df;
  color: #b45309;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 650px;
  line-height: 1.7;
}

.summary-card {
  background: linear-gradient(160deg, #ffffff, #fff3df);
  border-radius: 26px;
  padding: 24px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.12);
  text-align: center;
}

.summary-card h2 {
  font-size: 46px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.summary-card p {
  font-size: 14px;
  color: var(--muted);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-title h2 {
  font-size: 25px;
  margin-bottom: 5px;
}

.section-title p {
  color: var(--muted);
  font-size: 14px;
}

.search-box {
  width: min(340px, 100%);
}

.search-box input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08);
}

.search-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exam-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.11);
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.exam-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(245, 158, 11, 0.18);
}

.exam-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #f59e0b, #ffd89b);
  border-radius: 999px;
}

.date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-left: 8px;
}

.date-badge {
  background: var(--orange-soft);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.22);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.exam-type {
  background: #fff7ed;
  color: #9a3412;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(154, 52, 18, 0.12);
}

.exam-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  padding-left: 8px;
  color: #31251c;
}

.lecturer {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  padding-left: 8px;
}

.info-list {
  display: grid;
  gap: 10px;
  padding-left: 8px;
}

.info-item {
  color: #55483f;
  font-size: 14px;
  background: rgba(255, 243, 223, 0.62);
  padding: 11px 13px;
  border-radius: 16px;
}

.empty-state {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  padding: 34px;
  border-radius: 28px;
  color: var(--muted);
  border: 1px dashed rgba(245, 158, 11, 0.35);
}

.motivation-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 216, 155, 0.10));
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 18px;
  margin-top: 12px;
}

.motivation-text {
  color: #b45309;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.6;
}

.motivation-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.exam-status {
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.08), rgba(245, 158, 11, 0.08));
  border: 1.5px solid rgba(239, 68, 68, 0.20);
  border-radius: 24px;
  padding: 18px 24px;
  margin-bottom: 22px;
}

.status-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.status-badge.active {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-info {
  color: var(--muted);
  font-size: 14px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #fff3df 100%);
  border-radius: 32px;
  padding: 36px;
  max-width: 480px;
  width: 90%;
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 25px 60px rgba(245, 158, 11, 0.25);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--orange);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.modal-date {
  background: var(--orange-soft);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.22);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.modal-type {
  background: #fff7ed;
  color: #9a3412;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(154, 52, 18, 0.12);
}

.modal-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: #31251c;
  margin-bottom: 12px;
  line-height: 1.3;
}

.modal-lecturer {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.modal-info {
  display: grid;
  gap: 16px;
}

.modal-info-item {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.info-value {
  color: #31251c;
  font-size: 16px;
  font-weight: 700;
}

.exam-progress-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 158, 11, 0.15);
}

.progress-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-info {
  color: #31251c;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

footer {
  margin-top: 34px;
  text-align: center;
  color: #8b6f55;
  font-weight: 600;
  font-size: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.14);
}

@media (max-width: 820px) {
  .hero {
    padding: 30px 24px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .summary-card {
    text-align: left;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .date-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .modal-content {
    padding: 28px;
    max-width: 90%;
  }

  .modal-content h2 {
    font-size: 22px;
  }

  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
}