/* Kegiatan Page Specific Styles */

/* Hero */
.kegiatan-hero {
    height: 60vh;
    background-image: 
        linear-gradient(to bottom, 
            rgba(238, 28, 37, 0.6) 0%, 
            rgba(238, 28, 37, 0.2) 50%,
            transparent 100%), 
        url('../img/bendera-indonesia.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: waveFlag 10s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.kegiatan-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: heroFadeIn 0.8s ease forwards;
}

.kegiatan-hero p {
    font-size: 1.15rem;
    color: #dc2626;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    opacity: 0.9;
    animation: heroFadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

@keyframes waveFlag {
    0% {
        transform: skewX(0deg);
    }
    25% {
        transform: skewX(2deg);
    }
    50% {
        transform: skewX(0deg);
    }
    75% {
        transform: skewX(-1deg);
    }
    100% {
        transform: skewX(0deg);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Activities Section */
.activities-section {
    padding: 5rem 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.activity-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    border: 1px solid #fca5a5;
}

.card-date i {
    font-size: 0.75rem;
    color: #dc2626;
}

.card-content h3 {
    margin-bottom: 0.6rem;
    color: #333;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-link {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220,38,38,0.9) 0%, rgba(185,28,28,0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
    text-align: center;
    gap: 10px;
}

.card-link:hover .card-overlay {
    opacity: 1;
}

.card-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-overlay i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .kegiatan-hero {
        height: auto;
        min-height: 40vh;
        padding: 100px 20px 40px;
    }

    .kegiatan-hero h1 {
        font-size: 2rem;
    }

    .activities-section {
        padding: 3rem 0;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }
}