/* ===== GLOBAL ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
  padding: 0;
}



/* ===== HEADER ===== */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-left img {
  height: 60px;
}

.divider {
  width: 1px; /* lebih jelas */
  height: 40px;
  background-color: #444; /* gelap */
}

.header-title {
  font-size: 22px;
  font-family: Georgia;
  font-weight: bold;
  color: #000;
}

.header-right {
  display: flex;
  gap: 5px;
  align-items: center;
}

.header-link {
  text-decoration: none;
  color: #9c9494ac;
  font-size: 14px;
  padding: 0 10px;
  border-right: 1px solid #aaa;
}

.header-link:last-child {
  border-right: none;
}

/* ===== PAGE TITLE ===== */
.page-title {
  font-family: Tahoma;
  font-weight: bold;
  font-size: 22px;
  margin: 20px 0;
  padding-left: 20px; /* dari kiri */
  padding-bottom: 10px;
  color: #000;
  border-bottom: 3px solid #8a0e07; /* full-width */
  width: calc(100% - 40px);
  box-sizing: border-box;
}

/* ===== MENU BOX ===== */
.menu-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 40px auto;
}

.menu-item {
  background: #4a86c5;
  color: white;
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.menu-item:hover {
  background: #3569a3;
  transform: scale(1.05);
}

/* ===== BACK BUTTON ===== */
.back {
  display: inline-block;
  margin: 20px 0 20px 20px; /* lebih dekat ke kiri */
  padding: 10px 20px;
  background: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.back:hover {
  background: #5a6268;
}

/* ===== SECTIONS COLLAPSIBLE ===== */
.section {
  background: #fff;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
}

.section-header {
  padding: 15px 20px;
  background: #ffffff;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.section-content {
  display: none;
  padding: 20px;
}

/* ===== CHECKLIST ===== */
.section ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.section li {
  margin: 6px 0;
  padding: 10px 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.section li input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
}

.section li span {
  flex: 1;
}

.section li:hover {
  background: #eef6ff;
  transition: 0.2s;
}

input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: rgb(94, 108, 128);
}

/* ===== SECTION HEADINGS ===== */
.section h3 {
  margin-top: 15px;
  padding: 6px 12px;
  background: #dfdac8;
  border-left: 5px solid #a1821b;
  border-radius: 6px;
}

.section h4 {
  margin-top: 15px;
  color: #333;
}

.section p {
  margin: 10px 0;
  line-height: 1.5;
}

/* ===== CLEAR BUTTON ===== */
.clear-btn {
  display: block;
  margin: 20px 0;
  padding: 6px 12px;
  background: #dd796e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.clear-btn:hover {
  background: #c95f54;
}

/* ===== ADDITIONAL BUTTONS ===== */
.btn {
  cursor: pointer;
  display: inline-block;
  margin: 5px;
  padding: 8px 12px;
  background: #2d8cb2;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
}

.btn:hover { background: #5b8fba; }


.checklist {
  display: none;
  margin-top: 20px;
}

.st-btn {
      display: inline-block;
      background: linear-gradient(135deg, #8b045a, #802e79);
      color: #fff;
      padding: 12px 28px;
      font-size: 16px;
      font-weight: bold;
      border: none;
      border-radius: 10px;
      text-decoration: none;
      text-align: center;
      transition: all 0.3s ease;
      box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
      margin-top: 8px;
    }

    .st-btn:hover {
  background-color: #7a1468;
}

    .info-text {
      font-size: 15px;
      color: #ad1699;
      font-weight: 500;
      margin: 0;
    }
  
/* Keep branding in one line */
.header-left {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

/* Allow navigation to wrap */
.header-right {
  display: flex;
  flex-wrap: wrap;
  white-space: normal;
}

/* MOBILE */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    gap: 8px;
  }

  .header-left {
    width: 100%;
    justify-content: flex-start;
  }

  .header-left img {
    height: 48px;
  }

  .divider {
    height: 28px;
  }

  .header-title {
    font-size: 17px;
    line-height: 1.2;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .header-link {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* VERY SMALL PHONES */
@media (max-width: 480px) {

  .header-left img {
    height: 44px;
  }

  .header-title {
    font-size: 15px;
  }

  .divider {
    display: none; /* cleaner fit on tiny screens */
  }

  .header-right {
    justify-content: center;
  }
}

/* BACKGROUND IMAGE WITH OPACITY */
body {
  background:
    linear-gradient(
      rgba(245, 239, 239, 0.5),
      rgba(255, 255, 255, 0.5)
    ),
    url("epfkwasa.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  body {
    background-attachment: scroll; /* smoother on mobile */
    background-position: center top;
  }
}


/* CONTENT WRAPPER */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 360px); /* STANDARD WIDTH */
  gap: 30px;
  justify-content: center;   /* center cards */
  margin: 40px auto;
  max-width: 900px;          /* prevent over-stretch */
  padding: 0 15px;
}



/* CARD */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  min-height: 230px;   /* keeps uniform height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card:hover {
  transform: translateY(-6px);
}


/* ICON */
.card-icon {
  width: 70px;
  height: 70px;
  background: #eef4fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.card-icon i {
  font-size: 32px;     /* safe size for all screens */
  color: #2d6fa3;
}


/* TITLE */
.card h3 {
  font-size: 17px;
  margin-bottom: 20px;
}

/* BUTTON */
.card-btn {
  display: inline-block;
  padding: 10px 26px;
  background: #4a86c5;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  transition: 0.3s;
}

.card-btn:hover {
  background: #3569a3;
}

.card-img {
  width: 100%;
  height: 160px;         /* fixed height = stable */
  object-fit: cover;     /* fills nicely, no stretch */
  display: block;
}

@media (max-width: 480px) {
  .card {
    min-height: 240px;
  }

  .card-img {
    height: 140px;
  }

  .card h3 {
    font-size: 0.95rem;
  }
}


/* ===============================
   MOBILE RESPONSIVE ADJUSTMENTS
   =============================== */
@media (max-width: 768px) {

  /* BACKGROUND FIX FOR MOBILE */
  body {
    background-attachment: scroll; /* fixed causes lag on mobile */
  }

  /* CONTENT WRAPPER */
  .content {
    padding: 0 15px 30px;
  }

  /* CARD GRID - SINGLE COLUMN */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* CARD */
  .card {
    padding: 25px 18px;
  }

  /* ICON */
  .card-icon {
    font-size: 42px;
    margin-bottom: 12px;
  }

  /* TITLE */
  .card h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  /* IMAGE */
  .card-img {
    height: 160px; /* slightly taller for mobile */
  }

  /* BUTTON */
  .card-btn {
    padding: 12px 28px;
    font-size: 14px;
  }
}

/* ================= Header ================= */
header {
  position: relative;
  z-index: 1200;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height: 70px;  /* adjust if header height changes */
}

/* ================= Sidebar ================= */
.sidebar {
  position: fixed;           /* stays fixed on scroll */
  top: 70px;                 /* start below header */
  left: -260px;              /* hidden by default */
  width: 260px;
  height: calc(100vh - 70px); /* viewport height minus header */
  background: #1f3c88;
  color: white;
  padding-top: 20px;
  overflow-y: auto;          /* scroll if content exceeds height */
  transition: left 0.3s ease;
  z-index: 1000;
}

/* Sidebar when active */
.sidebar.active {
  left: 0;                   /* slide in */
}

/* ================= Sidebar Header ================= */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  font-weight: bold;
  font-family: Georgia;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar-header img {
  width: 70px;
}

/* ================= Sidebar Links ================= */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: white;
  text-decoration: none;
  transition: 0.2s;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.15);
}

.sidebar-link.active {
  background: rgba(255,255,255,0.25);
  font-weight: bold;
}

/* Scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

/* ================= Toggle Button ================= */
.sidebar-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  font-size: 22px;
  background: #1f3c88;
  color: white;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1300;  /* above sidebar */
}

/* ================= Optional: Push content when sidebar opens ================= */
body.sidebar-open .content {
  margin-left: 260px;
  transition: margin 0.3s ease;
}




/* ===== FANCY BACK BUTTON ===== */
.back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 20px 20px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #714f8c, #39628c);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Arrow bubble */
.back .back-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Text */
.back .back-text {
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* Hover effects */
.back:hover {
  background: linear-gradient(135deg, #39628c, #714f8c);
  transform: translateX(-4px);
}

.back:hover .back-icon {
  transform: translateX(-4px);
}

/* Click feedback */
.back:active {
  transform: scale(0.96);
}

/* MOBILE */
@media (max-width: 768px) {
  .back {
    margin-left: 15px;
    padding: 10px 18px;
  }

  .back .back-text {
    font-size: 14px;
  }
}


 .favorite-icon {
    color: gold;
    font-size: 20px;
  }

  /* Card layout for syarat-syarat dan dokumen*/
  .card-container2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px 40px;
  }

  .card2 {
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    width: 220px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #444;
  }

  .card:hover2 {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  }

  .card2 i {
    font-size: 2.5rem;
    color: #968a51;
    margin-bottom: 15px;
  }

  .card2 h3 {
    margin: 10px 0;
    font-size: 1.1rem;
  }

  .card2 p {
    font-size: 0.9rem;
    color: #666;
  }


    .section-header {
      cursor: pointer;
      background: #b4ca90;
      padding: 10px;
      margin: 8px 0;
      border-radius: 5px;
      font-weight: bold;
      color: #000000;
    }
    .section-content {
      display: none;
      padding: 10px 20px;
      background: #fafafa;
      border-left: 3px solid #ffffff;
    }

    /* ===== FANCY BACK BUTTON ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 20px 20px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #714f8c, #39628c);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Arrow bubble */
.back-btn .back-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Text */
.back-btn .back-text {
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* Hover effects */
.back-btn:hover {
  background: linear-gradient(135deg, #39628c, #714f8c);
  transform: translateX(-4px);
}

.back-btn:hover .back-icon {
  transform: translateX(-4px);
}

/* Click feedback */
.back-btn:active {
  transform: scale(0.96);
}

/* MOBILE */
@media (max-width: 768px) {
  .back-btn {
    margin-left: 15px;
    padding: 10px 18px;
  }

  .back-btn .back-text {
    font-size: 14px;
  }
}

.section {
  max-width: 750px;
  margin: auto;
}

.helper-text {
  color: #555;
  margin-bottom: 20px;
}

/* Accordion container */
.accordion {
  border-radius: 12px;
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Accordion title */
.accordion summary {
  padding: 18px 22px;
  font-weight: bold;
  cursor: pointer;
  background: #f5f5f5;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

/* Option item (NOT a button) */
.option {
  display: block;
  padding: 16px 22px;
  text-decoration: none;
  color: #333;
  border-left: 5px solid transparent;
  transition: all 0.25s ease;
}

.option span {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 4px;
}

/* Hover feedback */
.option:hover {
  background: #faf8f1;
  border-left: 5px solid #968a51;
  transform: translateX(4px);
}

/* ===============================
   CHECKLIST PAGE – CLEAN OVERRIDE
   =============================== */

/* Center & narrow content for readability */
.section {
  max-width: 780px;
  margin: 25px auto;
  padding: 22px 24px;
}

/* Page title refinement */
.page-title {
  font-size: 20px;
  padding-left: 24px;
  margin-top: 18px;
  font-family: 'Times New Roman';
}

/* Option buttons (Pinjaman / Tanpa Pinjaman) */
#options ul {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

#options li {
  background: none;
  border: none;
  padding: 0;
}

#options .btn {
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  background: linear-gradient(135deg, #2d6fa3, #4a86c5);
}

/* Checklist container */
.checklist .section {
  border-left: 6px solid #2f9f9d;
}

/* Section headings */
.section h3 {
  font-size: 16px;
  background: #f2efe4;
  border-left: 5px solid #8a6b1f;
}

.section h4 {
  font-size: 15px;
  margin-top: 10px;
  color: #444;
}

/* Checklist items – slimmer & cleaner */
.section li {
  padding: 10px 12px;
  font-size: 14px;
  background: #fcfcfc;
  border-radius: 6px;
}

.section li:hover {
  background: #f3f7fb;
}

/* Checkbox alignment */
.section li input[type="checkbox"] {
  transform: scale(1.15);
  margin-top: 3px;
}

/* Checked state */
input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: #7a7a7a;
}

/* Action buttons area */
.clear-btn,
.back-btn {
  margin-top: 15px;
}

/* Clear button softer */
.clear-btn {
  background: #e07a6f;
  padding: 8px 16px;
  font-size: 14px;
}

/* Back button spacing fix */
.back-btn {
  margin-left: 0;
}

/* ===============================
   MOBILE IMPROVEMENTS
   =============================== */
@media (max-width: 768px) {

  .section {
    margin: 18px 12px;
    padding: 18px;
  }

  #options ul {
    flex-direction: column;
  }

  #options .btn {
    width: 100%;
    text-align: center;
  }

  .page-title {
    font-size: 18px;
  }
}
/* ===============================
   CHECKLIST PAGE – HOVER ENHANCEMENTS
   =============================== */

/* Option buttons hover */
#options .btn:hover {
  background: linear-gradient(135deg, #1f4b7a, #3569a3);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(45,111,163,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Checklist items hover – subtle lift + shadow */
.section li:hover {
  background: #f0f4fb;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  transition: all 0.25s ease;
}

/* Clear button hover – pop color effect */
.clear-btn:hover {
  background: #c95f54;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201,95,84,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Back button hover – gradient shift + slight lift */
.back-btn:hover {
  background: linear-gradient(135deg, #5a5f63, #1f2937);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* ===============================
   CHECKLIST CATEGORY CARDS
   =============================== */

.checklist-cards {
  margin-top: 30px;
}

/* Individual option card */
.option-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 6px solid #2d6fa3;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title */
.option-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: bold;
  color: #1f2933;
}

/* Description */
.option-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* Hover effect */
.option-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  border-left-color: #8a6b1f;
  background: #fdfcf8;
}

/* Active / click feedback */
.option-card:active {
  transform: scale(0.98);
}

/* MOBILE */
@media (max-width: 768px) {
  .option-card {
    padding: 22px 18px;
    min-height: auto;
  }

  .option-card h4 {
    font-size: 15px;
  }

  .option-card p {
    font-size: 13.5px;
  }
}
