    @font-face {
      font-family: 'Grandstander';
      src: url('fonts/Grandstander-Regular.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
    }

    :root {
      --bg: #f6fbff;
      --card: #ffffff;
      --accent: #3b82f6;
      --muted: #6b7280;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto;
      margin: 0;
      background: linear-gradient(180deg, var(--bg), #ffffff);
      color: #2C3E50;
      display: grid;
      grid-template-rows: 1fr auto; /* Konten utama mengisi ruang, footer menyesuaikan */
      min-height: 100vh;
      overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
    }

    .container {
      max-width: 980px;
      margin: 20px auto 10px auto;
      padding: 20px;
    }

    header {
      display: block; /* Ubah ke block untuk header di index.html */
      align-items: center;
      text-align: center; /* Pusatkan konten header di index.html */
      gap: 16px;
    }

    .logo {
      width: 64px;
      height: 64px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--accent), #60a5fa);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 700;
      font-size: 20px;
    }

    h1 {
      margin: 0;
      font-size: 26px;
    }

    .home-title {
      font-family: 'Poppins', sans-serif;
      font-size: 42px;
      font-weight: 700;
      color: #2c3e50;
      text-align: center;
    }

    .home-logo-img {
      width: 100%; /* Gunakan lebar sebagai acuan utama */
      height: auto; /* Biarkan tinggi menyesuaikan secara proporsional */
      max-width: 100%; /* Mencegah gambar logo terpotong di layar kecil */
    }

    .page-title {
      display: inline-block;
      background: linear-gradient(90deg, #60a5fa, #a5b4fc);
      color: white;
      padding: 8px 16px;
      border-radius: 999px;
      font-size: 24px;
      box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
      cursor: pointer;
    }

    p.lead {
      margin: 6px 0 22px;
      color: var(--muted);
      text-align: center;
    }

    .card {
      background: var(--card);
      border-radius: 14px;
      padding: 18px;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

    .questions-list {
      list-style: decimal;
      padding-left: 20px;
    }

    .question {
      margin-bottom: 20px;
    }

    .q-title {
      font-weight: 600;
      margin-bottom: 8px;
    }

    .choices {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .choice {
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid #e6eefc;
      cursor: pointer;
      user-select: none;
      transition: 0.15s;
    }

    .choice:hover {
      background: #e8f1ff;
    }

    /* pilihan yang sudah dipilih tidak boleh berubah warna */
    .choice.selected{
      background:linear-gradient(90deg,var(--accent),#60a5fa) !important;
      color:#fff !important;
      border-color:transparent !important;
    }

    .actions {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      margin-top: 50px;
      width: 100%;
    }

    .actions-row {
      display: flex;
      gap: 10px;
      width: 100%;
    }

    .actions-row > button {
      flex: 1;
    }

    button {
      background: var(--accent);
      color: white;
      border: none;
      padding: 15px 15px;
      border-radius: 10px;
      cursor: pointer;
      font-weight:500;
      font-size: 20px;
      transition: 0.2s
    }
    
    button img {
      height: 1.5em;
      vertical-align: middle;
      margin-bottom: 0.2em;
    }

    button.home {
      background: #DE244C;
      color: #fff;
    }

    button#btnResult {
      background: #0098DD;
      color: #fff;
      width: 100%;
      animation: pulse 1s infinite ease-in-out;
      margin-bottom: 25px;
      font-family: 'Grandstander', cursive;
    }

    button.ghost {
      background: #16A085;
      color: #fff;
    }

    .result {
      margin-top: 50px;
      padding: 14px;
      border-radius: 12px;
      background: linear-gradient(180deg, #fff, #fbfeff);
      border: 1px solid #e6f0ff;
      text-align: center;
      background: #4A6B74;
      color: white;
    }

    .result-image {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      margin-bottom: 15px;
    }

    .career {
      font-size: 20px;
      font-weight: 700;
    }

    .explain {
      color: #FAEBB4;
      margin-top: 6px;
    }

    .whatsapp-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 14px;
      background-color: #16A085;
      color: white !important;
      padding: 10px 20px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 600;
      transition: 0.2s;
      border: none;
      box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
    }

    .whatsapp-button img {
      width: 18px;
      height: 18px;
    }

    .ad-banner {
      display: block;
      margin-top: 25px;
      text-align: center;
    }

    .ad-banner img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
    }

    footer {
        text-align: center;
        font-size: 13px;
        background-color: #F6C34C;
        color: #2C3E50;
        padding: 16px;
        margin-top: -5px;
        position: relative;
        border-top: 3px solid #6b8757;
        width: 100%;
        box-sizing: border-box; /* Memastikan padding tidak menambah lebar */
    }

    /* Halaman Depan */
    .home-illustration {
      text-align: center;
      margin-bottom: 24px;
      width: 100%;
      overflow: hidden;
    }

    .home-illustration img {
      max-width: 100%;
      height: auto;
      max-height: 250px;
    }

    .quiz-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .quiz-list .q-title {
      text-align: center;
      margin-bottom: 12px;
    }

    .quiz-button {
      display: flex;
      flex-direction: column;
      padding: 14px 18px;
      border-radius: 12px;
      border: 1px solid #e6eefc;
      text-decoration: none;
      color: inherit;
      transition: 0.2s;
    }

    .quiz-button:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
    }

    .quiz-button span {
      color: var(--muted);
      font-size: 14px;
    }

    #visitor-counter {
    margin: 24px auto 0;
    width: fit-content;
    background: #DF5935;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

.bottom-banner {
  text-align: center;
  margin: 0px;
}

.bottom-banner img {
  width: 70%;
  max-width: 450px;
  height: auto;
}

.ground-container {
  line-height: 0; /* Menghilangkan spasi ekstra di bawah SVG */
  position: relative;
  z-index: 0;
}

.ground-svg {
  width: 100%;
  height: auto;
  max-height: 120px;
}

.q-title-image {
  display: block;
  margin: 0 auto 12px auto;
  max-width: 100%;
  height: auto;
}

    @keyframes pulse {
      0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 152, 221, 0.3);
      }
      50% {
        transform: scale(1.02);
        box-shadow: 0 7px 25px rgba(0, 152, 221, 0.5);
      }
      100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 152, 221, 0.3);
      }
    }
    /* --- */

    @media(max-width: 640px) {
      .choices {
        flex-direction: column;
      }

      .container {
        padding: 15px 10px; /* Kurangi padding horizontal di layar kecil */
      }

      .home-title {
        font-size: 32px; /* Kecilkan font judul di layar kecil */
        margin-bottom: 10px;
      }

      footer {
        font-size: 14px;
        padding: 12px;
      }
    }