/* =========================================
   CSS KHUSUS HALAMAN KEGIATAN
   ========================================= */

/* Hero Section */
.kegiatan-hero {
    position: relative;
    min-height: 40vh; /* slightly more compact, elegant height */
    background: #0A1128; /* Base color perfectly matching navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* subtle separation */
}

/* Subtle modern radial glow effect instead of heavy stock photo */
.kegiatan-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(58, 110, 165, 0.15) 0%, rgba(10, 17, 40, 0) 60%);
    z-index: 1;
}

/* Second subtle glow for depth on the right side */
.kegiatan-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(74, 136, 183, 0.1) 0%, rgba(10, 17, 40, 0) 50%);
    z-index: 1;
}

.hero-overlay {
    display: none; /* Remove the old generic dark purple overlay entirely */
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px; /* Tighter letter spacing for a modern look */
    /* Clean white/silver gradient text */
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; /* Removing generic drop shadow */
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #94a3b8; /* Sleek slate gray instead of bright white */
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Main Content */
.kegiatan-main {
    padding: 80px 0;
    background: #f8fafc;
    min-height: 50vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Kategori Section */
.kategori-section {
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease;
}

.kategori-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.kategori-icon {
    display: none;
}

.kategori-text {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.kategori-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

.kategori-text p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    padding: 4px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-weight: 500;
}

/* Grid Layout */
.kegiatan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Card Design */
.kegiatan-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.kegiatan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

/* Card Image */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.kegiatan-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 11, 84, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.kegiatan-card:hover .overlay-content {
    transform: translateY(0);
}

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

.overlay-content span {
    font-size: 13px;
    font-weight: 500;
}

/* Card Content */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-label {
    display: inline-flex;
    align-items: center;
    color: #270B54;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    background: #f3f0f8;
    padding: 4px 10px;
    border-radius: 6px;
    align-self: flex-start;
}

.card-label i {
    display: none;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 20px;
}

.card-date i {
    font-size: 13px;
    color: #94a3b8;
}

.card-action {
    margin-top: auto;
    border-top: 1px solid #f8fafc;
    padding-top: 15px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #270B54;
    background: transparent;
    padding: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-primary:hover {
    color: #4a1c40;
    transform: none;
    box-shadow: none;
    gap: 12px;
}

.btn-primary i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    margin: 40px auto;
    max-width: 500px;
}

.empty-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.empty-state p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Footer styles are inherited from main style.css */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .kegiatan-main {
        padding: 60px 0;
    }
    
    .kegiatan-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kategori-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .kategori-icon {
        margin: 0 auto;
    }
    
    .kategori-text h2 {
        font-size: 1.5rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .kategori-header {
        padding: 15px;
    }
    
    .kegiatan-card {
        margin: 0 10px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 15px;
    }
}
