/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ===== BODY ===== */
body {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../Image/calendar.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 30px;
    color: #fff;
}

/* BACK BUTTON */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    background: linear-gradient(135deg,#ff4d4d,#b30000);
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition: 0.3s;
}

.back-btn:hover {
    background:#fff;
    color:#b30000;
}

.title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color:#ffffff;
    font-family: 'Lobster Two', cursive;

    text-shadow: 
        0 1px 2px rgb(255, 255, 255),
        1px 2px 4px rgb(74, 63, 46);
}

/* ===== CONTAINER GRID ===== */
.container {
   display:grid;
    grid-template-columns:repeat(auto-fill, minmax(230px,1fr));
    gap:25px;
    max-width:1000px;
    margin:auto;
}

/* ===== CARD ===== */
.card {
   background:rgba(255,255,255,0.12);
    backdrop-filter:blur(12px);
    border-radius:18px;
    padding:20px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    box-shadow:0 8px 25px rgba(0,0,0,0.3);
    transition:0.3s;
    position:relative;

    /* square */
    aspect-ratio:1/1;
}

/* CARD HOVER */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* CARD TOP LINE */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #ff5252, #ff1e1e);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

/* CARD CONTENT */
.card-content {
    padding: 25px;
    z-index: 1;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.date {
    font-size: 14px;
    color: #ffb3b3;
    margin-bottom: 10px;
}

.desc {
    font-size: 15px;
    color: #ddd;
    line-height: 1.6;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* CARD FOOTER */
.card-footer {
    margin-top: auto;
    padding: 10px 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0 0 20px 20px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff5252, #ff1e1e);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* NO FILE */
.no-file {
    color: #ccc;
    font-style: italic;
}

/* NO FILES MESSAGE */
.no-files {
    text-align: center;
    font-style: italic;
    color: #ddd;
    font-size: 18px;
    padding: 50px;
}



/* Responsif */
@media (max-width:768px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .card {
        max-width: 200px;
    }

    .card-content {
        padding: 15px;
    }

    .card h3 {
        font-size: 16px;
    }

    .desc {
        font-size: 12px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}