/* ============================================================
   HEADER & GLOBAL – TETAP SEPERTI SEBELUMNYA
   ============================================================ */
body {
    background:
        radial-gradient(circle at 10% 20%, rgba(58, 145, 99, 0.08), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(26, 86, 219, 0.06), transparent 30%),
        linear-gradient(135deg, #f3f7f5 0%, #eef4f1 50%, #f7faf8 100%);
}

.page-header {
    padding: 8rem 0 3rem;
    background: transparent !important;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpHeader 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.page-header h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1E2A20;
}
.page-header h1 span {
    background: linear-gradient(135deg, #2E7D57, #5DAE8B, #1A56DB, #3B82F6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 5s ease-in-out infinite, glowPulse 2.5s ease-in-out infinite;
}
@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(46, 125, 87, 0.2)); }
    50% { filter: drop-shadow(0 0 25px rgba(26, 86, 219, 0.5)); }
}
.page-header p {
    color: #6B7A73;
    max-width: 600px;
    margin: 0.5rem 0 0;
    font-size: 1.15rem;
}
@keyframes fadeUpHeader {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   KARTU PENGUMUMAN – ANIMASI SAMA SEPERTI CARD UMKM
   ============================================================ */
.announcement-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.78),
            rgba(232, 245, 240, 0.70),
            rgba(226, 239, 250, 0.72)
        );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(46, 125, 87, 0.05), 0 2px 12px rgba(26, 86, 219, 0.03);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease,
                background 0.45s ease;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(35px);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    position: relative;
}
.announcement-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 86, 219, 0.10), transparent 70%);
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.6;
}
.announcement-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2E7D57, #5DAE8B, #3B82F6, #1A56DB);
    background-size: 250% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: cardGradientFlow 5s ease-in-out infinite;
}
@keyframes cardGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.announcement-card.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}
.announcement-card:hover {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.88),
            rgba(228, 244, 238, 0.82),
            rgba(224, 237, 249, 0.84)
        );
    border-color: rgba(46, 125, 87, 0.28);
    box-shadow: 0 18px 45px rgba(46, 125, 87, 0.12),
                0 8px 30px rgba(26, 86, 219, 0.08),
                0 0 25px rgba(46, 125, 87, 0.06);
    transform: translateY(-10px);
}
.announcement-card:hover::before {
    transform: scale(1.25);
    opacity: 1;
}
.announcement-card:hover::after {
    opacity: 1;
}

/* Delay animasi kartu, sama seperti UMKM */
.announcement-card:nth-child(1) { transition-delay: 0.02s; }
.announcement-card:nth-child(2) { transition-delay: 0.06s; }
.announcement-card:nth-child(3) { transition-delay: 0.10s; }
.announcement-card:nth-child(4) { transition-delay: 0.14s; }
.announcement-card:nth-child(5) { transition-delay: 0.18s; }
.announcement-card:nth-child(6) { transition-delay: 0.22s; }

/* Isi kartu – tetap seperti sebelumnya */
.announcement-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.announcement-card .badge-custom {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    display: inline-block;
    align-self: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.announcement-card:hover .badge-custom {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.badge-custom.badge-info {
    background: #E3F2FD;
    color: #1A56DB;
}
.badge-custom.badge-important {
    background: #FFF3E0;
    color: #E65100;
}
.badge-custom.badge-event {
    background: #E8F5E9;
    color: #2E7D57;
}
.badge-custom.badge-service {
    background: #F3E5F5;
    color: #7B1FA2;
}

.announcement-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    color: #1E2A20;
    transition: color 0.3s ease;
}
.announcement-card:hover .card-title {
    color: #2E7D57;
}

.announcement-card .card-desc {
    color: #74817B;
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
}

.announcement-card .card-footer-actions {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.announcement-card .card-date {
    font-size: 0.78rem;
    color: #7e8a82;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.announcement-card .card-date i {
    color: #2E7D57;
    font-size: 0.8rem;
}

/* Tombol Baca Selengkapnya – GRADIEN HIJAU-BIRU + EFEK KILAU (sama seperti layanan) */
.announcement-card .btn-read {
    border-radius: 40px;
    padding: 0.4rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #2E7D57, #398D72, #3B82F6);
    background-size: 200% 200%;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(46, 125, 87, 0.14);
    position: relative;
    overflow: hidden;
}
.announcement-card .btn-read::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -70%;
    width: 45%;
    height: 300%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: rotate(20deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 2;
}
.announcement-card .btn-read:hover::before {
    left: 125%;
}
.announcement-card .btn-read:hover {
    background-position: 100% 50%;
    color: #fff;
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 8px 22px rgba(46, 125, 87, 0.20), 0 4px 16px rgba(26, 86, 219, 0.12);
}
.announcement-card .btn-read i {
    transition: transform 0.3s ease;
}
.announcement-card .btn-read:hover i {
    transform: translateX(4px);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.empty-state:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(46,125,87,0.06);
}
.empty-state .empty-icon {
    font-size: 4rem;
    color: #9CA3AF;
    margin-bottom: 1rem;
    transition: transform 0.4s ease, color 0.4s ease;
}
.empty-state:hover .empty-icon {
    transform: scale(1.08) rotate(-4deg);
    color: #2E7D57;
}
.empty-state h5,
.empty-state .h5 {
    color: #1E2A20;
    font-weight: 700;
}
.empty-state p {
    color: #6B7A73;
}

/* ============================================================
   FOOTER – SAMA DENGAN LAYANAN / UMKM
   ============================================================ */
@keyframes footerRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
@keyframes shimmerText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-brand:hover {
    transform: translateY(-3px) scale(1.02);
}

.footer-brand-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(46, 125, 87, 0.10);
    color: #2E7D57;
    font-size: 0.9rem;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    animation: footerIconFloat 4s ease-in-out infinite;
}
.footer-brand-icon i {
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-brand:hover .footer-brand-icon i {
    transform: scale(1.15) rotate(-8deg);
}
@keyframes footerIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.footer-ring-1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border-radius: 50%;
    border: 1.5px solid rgba(46, 125, 87, 0.15);
    animation: footerPulse 2.8s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}
.footer-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 50%;
    border: 1px solid rgba(46, 125, 87, 0.08);
    animation: footerPulse 3.6s ease-in-out infinite 0.6s;
    pointer-events: none;
    will-change: transform, opacity;
}
.footer-ring-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 26px);
    height: calc(100% + 26px);
    border-radius: 50%;
    border: 1px solid rgba(26, 86, 219, 0.05);
    animation: footerPulse 4.4s ease-in-out infinite 1.2s;
    pointer-events: none;
    will-change: transform, opacity;
}
@keyframes footerPulse {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
}
.footer-brand:hover .footer-ring-1 {
    border-color: rgba(46, 125, 87, 0.35);
    animation-duration: 1.8s;
}
.footer-brand:hover .footer-ring-2 {
    border-color: rgba(26, 86, 219, 0.20);
}
.footer-brand:hover .footer-ring-3 {
    border-color: rgba(26, 86, 219, 0.12);
}

.footer-brand-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #1E2A20, #2E7D57, #1A56DB, #2E7D57, #1E2A20);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 5s ease-in-out infinite;
    transition: filter 0.4s ease;
    will-change: background-position;
}
.footer-brand:hover .footer-brand-text {
    filter: drop-shadow(0 0 12px rgba(46, 125, 87, 0.25));
    animation-duration: 2.5s;
}
@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-copy {
    display: inline-block;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: #6B7A73;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
}
.footer-copy .copy-text {
    display: inline-block;
    background: linear-gradient(135deg, #6B7A73, #2E7D57, #1A56DB, #6B7A73);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: copyrightShine 6s ease-in-out infinite;
    transition: filter 0.4s ease;
    font-weight: 700;
}
.footer-copy:hover .copy-text {
    filter: drop-shadow(0 0 18px rgba(46, 125, 87, 0.6)) drop-shadow(0 0 40px rgba(26, 86, 219, 0.3));
    animation-duration: 2s;
}
@keyframes copyrightShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive */
@media (max-width: 767.98px) {
    .page-header {
        text-align: center;
        padding: 6rem 0 2rem;
    }
    .page-header p {
        margin: 0.5rem auto 0;
        font-size: 1rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .announcement-card {
        padding: 1.25rem;
    }
    .announcement-card .card-title {
        font-size: 1rem;
    }
    .announcement-card .card-desc {
        font-size: 0.85rem;
    }
}
@media (max-width: 480px) {
    .announcement-card .btn-read {
        width: 100%;
        justify-content: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
