/* CSS KHUSUS HALAMAN KEGIATAN & BERITA */

/* Hero Section Berita (Nuansa Ungu/Indigo) */

/* Global Section */
.berita-section {
    padding: 80px 0;
    background-color: #FAFAFA;
}

.berita-search-wrap {
    margin-bottom: 36px;
}

.berita-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.berita-search-shell {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 28px;
    border-radius: 999px;
    border: 1.5px solid rgba(15, 23, 42, 0.22);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.berita-search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

.berita-search-input::placeholder {
    color: #6b7280;
    font-weight: 500;
}

.berita-search-btn,
.berita-search-reset {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.berita-search-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.berita-search-reset {
    padding: 12px 18px;
    border-radius: 999px;
    background: white;
    color: var(--slate);
    border: 1px solid #dbe3ee;
}

.berita-search-info {
    margin-top: 12px;
    color: var(--slate);
    font-size: 14px;
}

.berita-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
}

.berita-page-glass {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4c1d95;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(76, 29, 149, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.berita-page-glass:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(76, 29, 149, 0.14);
    background: rgba(255, 255, 255, 0.8);
}

.berita-page-glass.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.berita-page-status {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate);
}

/* Berita Grid */
.berita-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}
@media (min-width: 640px) {
    .berita-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .berita-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Berita Card */
.berita-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(76, 29, 149, 0.08); /* violet shadow */
    border-color: #ede9fe;
}
.berita-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.berita-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.berita-card:hover .berita-img {
    transform: scale(1.05);
}
.berita-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    color: #6d28d9;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.berita-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.berita-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.berita-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.berita-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}
.berita-card:hover .berita-title {
    color: #6d28d9;
}
.berita-snippet {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}
.berita-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6d28d9;
    transition: gap 0.3s;
}
.berita-readmore:hover {
    gap: 12px;
}
