/* Reset dan Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
header {
    background-color: #fbbf24;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.menu a,
.menu button {
    font-weight: bold;
    padding: 0.5rem 1rem;
    color: #000;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s, background 0.3s;
}

.menu a:hover,
.menu button:hover {
    color: #fff;
    background: #333;
    border-radius: 4px;
}

/* Slider */
.slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Section */
section {
    padding: 2rem 1rem;
}

/* Card Layout */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #000;
}

.card-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #666;
}

.card-content a {
    color: #fbbf24;
    font-weight: bold;
    transition: color 0.3s;
}

.card-content a:hover {
    color: #000;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-content button {
    padding: 0.75rem 1.5rem;
    background: #fbbf24;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.modal-content button:hover {
    background: #333;
}

.modal-content .close-modal {
    background: #ccc;
    margin-top: 1rem;
}

.modal-content .close-modal:hover {
    background: #999;
}

/* Responsiveness */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .slider img {
        height: 250px;
    }

    .modal-content {
        margin: 1rem;
    }
}
