* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f5f5f5;
    color: #222;
}

.hero {
    position: relative;
    height: 50vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(80%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    animation: fadeIn 1s ease-in-out;
}

.hero-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 38px 0 20px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .5);
    letter-spacing: 1px;
}

.hero-overlay a {
    background: #fff;
    color: #333;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    transition: all .3s ease;
}

.hero-overlay a:hover {
    background: #0f6d04;
    color: #fff;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

h2.title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.event-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .1);
}

.event-img {
    flex: 1 1 300px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-size: 0.85em;
    font-weight: 500;
}

.event-status.upcoming {
    background-color: #2196F3;
}

.event-status.ongoing {
    background-color: #4CAF50;
}

.event-info {
    flex: 2 1 400px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-info h3 {
    color: var(--oranye);
    font-size: 1.3rem;
    /* margin-bottom: 10px; */
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;

    color: #666;
    font-size: 0.9rem;
}

.event-desc {
    font-size: .95rem;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.6;
}

.btn {
    background: #117139;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    align-self: flex-start;
    transition: all .3s;
}

.btn:hover {
    background: #16a34a;
    transform: scale(1.05);
}


.no-events {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.no-events p {
    color: #666;
    font-size: 1.1em;
}


.card {
    position: relative;
}

.card.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 12px;
}

.status-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-overlay i {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

.status-overlay.rusak {
    border: 2px solid #dc3545;
}

.status-overlay.rusak i {
    color: #dc3545;
}

.status-overlay.perbaikan {
    border: 2px solid #ffc107;
}

.status-overlay.perbaikan i {
    color: #ffc107;
}

.status-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.status-overlay p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.status-badge-card {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-card.tersedia {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.status-badge-card.rusak {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.status-badge-card.perbaikan {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.btn-book.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-book.disabled:hover {
    background: #6c757d;
    transform: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-content h3 {
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 20px;
}

.btn-login-modal {
    background-color: #057107;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-login-modal:hover {
    background-color: #057107;

}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}


.card {
    position: relative;
}

.card.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 12px;
}

.status-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-overlay i {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

.status-overlay.rusak {
    border: 2px solid #dc3545;
}

.status-overlay.rusak i {
    color: #dc3545;
}

.status-overlay.perbaikan {
    border: 2px solid #ffc107;
}

.status-overlay.perbaikan i {
    color: #ffc107;
}

.status-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.status-overlay p {
    margin: 0;
    font-size: 13px;
    color: #666;
}


.no-events {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd; 
    border-left: 6px solid #ffc107; 
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    font-size: 1.1em;
    color: #856404;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

.no-events::before {
    content: "⚠️"; 
    font-size: 2rem;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.no-events p {
    margin-left: 40px; 
    color: #856404;
    font-size: 1.1em;
    font-weight: 500;
}
