/* ================= ROOT ================= */
:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-yellow-light: #f3d64e;
  --color-yellow-dark: #fcb50f;
  --color-blue-dark: #5182cd;
  --color-blue-light: #54c4fc;
  --color-blue-pale: #88d8ff;
  --font-primary: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
}

/* ================= HEADER HALAMAN ================= */
/* FIX: selector spesifik ke elemen halaman, bukan card */
.oprec > .oprec-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/abstract-coloured-background-with-variety-transparent-raindrops.jpeg")
    center / cover no-repeat;
  color: var(--color-white);
  text-align: center;
  padding: 100px 20px;
}

.oprec > .oprec-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--color-yellow-light);
}

/* ================= CONTAINER ================= */
.container-oprec {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  width: 80%;
  margin: 3rem auto;
}

/* ================= CARD ================= */
.box-oprec {
  background-color: var(--color-white);
  border: 1px solid var(--color-blue-light);
  border-top: 4px solid var(--color-blue-light);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 1.5rem 2rem;
  width: 35%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box-oprec:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ================= BADGE DIVISI ================= */
/* FIX: ganti dari .oprec-header (konflik) ke .deadline-box sesuai HTML */
.deadline-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.deadline-box span,
.oprec-divisi,
.oprec-status {
  display: inline-block;
  background-color: var(--color-yellow-light);
  color: #333;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ================= JUDUL ================= */
.box-oprec h2.title-box {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.3rem;
  color: var(--color-blue-dark);
  line-height: 1.4;
}

/* ================= DESKRIPSI ================= */
.box-oprec p.description-box {
  font-size: 0.9rem;
  color: #555;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-height: 150px;
  overflow-y: auto;

  /* Scrollbar tipis supaya tidak mengganggu tampilan */
  scrollbar-width: thin;
  scrollbar-color: var(--color-blue-light) transparent;
}

.box-oprec p.description-box::-webkit-scrollbar {
  width: 4px;
}
.box-oprec p.description-box::-webkit-scrollbar-thumb {
  background: var(--color-blue-light);
  border-radius: 4px;
}

/* ================= TOMBOL DAFTAR ================= */
.box-oprec .box-link {
  margin-top: auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
  background-color: var(--color-blue-dark);
  padding: 8px 20px;
  border-radius: 10px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.box-oprec .box-link:hover {
  background-color: #2b9ee8;
  transform: scale(1.02);
}

/* ================= EMPTY STATE ================= */
.not-found {
  display: flex;
  flex-direction: column;
  background: #f3f3f3;
  border: 1px solid #f0f0f0;
  border-radius: 30px;
  padding: 2rem;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {
  .container-oprec {
    width: 90%;
    gap: 2rem;
  }

  .box-oprec {
    width: 45%;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .container-oprec {
    width: 95%;
    gap: 1.5rem;
    margin: 2rem auto;
  }

  .box-oprec {
    width: 100%;
    padding: 1.5rem;
  }

  .oprec > .oprec-header h1 {
    font-size: 2rem;
  }

  .box-oprec h2.title-box {
    font-size: 1.2rem;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {
  .box-oprec {
    padding: 1.25rem;
  }

  .box-oprec h2.title-box {
    font-size: 1.1rem;
  }

  .box-oprec .box-link {
    font-size: 0.85rem;
    padding: 7px 14px;
  }
}