/* GANTI SELURUH ISI FILE rekom-home.css DENGAN KODE INI */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.main-title {
    color: #333;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
}

#quiz-container {
    text-align: left;
}

.question-card {
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.25em;
    font-weight: 500;
    margin-bottom: 15px;
    color: #555;
}

.options-list {
    list-style: none;
    padding: 0;
}

.option-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background-color: #1e40af;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
}

.option-button:hover {
    background-color: #007bff;
}

.option-button.active {
    background-color: #fff;
    color: #1e40af;
    border-color: #1e40af;
}

.navigation-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.nav-btn {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #1e40af;
    color: #fff;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: #0056b3;
}

.nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.results-title {
    color: #333;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

#course-list {
    margin-bottom: 20px;
}

.course-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 15px;
    text-align: left;
    background-color: #f9f9f9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Bagian baru untuk efek hover di gambar saja --- */
.image-container {
    position: relative;
    overflow: hidden;
}

.course-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.image-container:hover .course-image {
    filter: brightness(70%);
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    color: white; 
    opacity: 0;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    z-index: 1; /* Penting agar overlay bisa diklik */
}

.image-container:hover .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.overlay-text {
    background-color: transparent; 
    color: white; 
    font-weight: 500;
    transition: color 0.3s ease;
}

.overlay-text:hover {
    color: #f0f0f0;
}

.course-content {
    padding: 15px;
    text-align: left;
}

.course-content h3 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.4;
}

.course-content p {
    color: #666;
    margin: 8px 0 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.course-content .score {
    font-style: italic;
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

.no-recommendation {
    color: #dc3545;
    font-style: italic;
}

#restart-btn {
    width: 100%;
    margin-top: 20px;
    background-color: #1e40af;
    color: #fff;
}

#restart-btn:hover {
    background-color: #1e40af;
}