/* ============================================
   PENGUMUMAN PAGE - MODERN SCHOOL WEBSITE
   ============================================ */

/* Main Section */
.pengumuman-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 80px 0 60px;
}

.pengumuman-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.header-content {
    padding-top: 20px;
}

.page-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Pengumuman Grid */
.pengumuman-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Pengumuman Card */
.pengumuman-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pengumuman-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pengumuman-card:hover .card-image img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pengumuman-card:hover .image-overlay {
    opacity: 1;
}

/* Card Content */
.card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Card Meta */
.card-meta {
    margin-bottom: 16px;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.date-badge .icon {
    width: 14px;
    height: 14px;
}

/* Card Title */
.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.pengumuman-card:hover .card-title {
    color: #3498db;
}

/* Card Description */
.card-description {
    font-size: 0.95rem;
    color: #5d6d7e;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Button Detail */
.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 12px 0;
    border-top: 1px solid #ecf0f1;
    margin-top: auto;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    gap: 12px;
    color: #2980b9;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-detail:hover .arrow-icon {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    color: #bdc3c7;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-state p {
    font-size: 1rem;
    color: #7f8c8d;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background: #ffffff;
    color: #2c3e50;
    border: 2px solid #ecf0f1;
}

.pagination a:hover {
    background: #3498db;
    color: #ffffff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pagination .active span {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.pagination .disabled span {
    background: #f8f9fa;
    color: #bdc3c7;
    border: 2px solid #ecf0f1;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pengumuman-page {
        padding: 60px 0 40px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .pengumuman-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin-bottom: 40px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .card-image {
        height: 180px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.85rem;
    }
}