/* === Dynamic Background Blobs === */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #f8f9fa;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(74, 124, 93, 0.1), rgba(45, 122, 74, 0.05));
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: move-blobs 20s infinite alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.blob-2 {
    bottom: -150px;
    right: -100px;
    background: linear-gradient(135deg, rgba(244, 208, 63, 0.08), rgba(74, 124, 93, 0.05));
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 60%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(74, 124, 93, 0.05), rgba(45, 122, 74, 0.1));
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes move-blobs {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(100px, 50px) scale(1.1) rotate(90deg); }
    66% { transform: translate(-50px, 100px) scale(0.9) rotate(180deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

/* === Typing Effect === */
.cursor {
    display: inline-block;
    width: 2px;
    margin-left: 2px;
    background-color: #4a7c5d;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === Hero Specific Polishes === */
.hero-logo {
    animation: float-logo 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: fadeInUp 1s ease both;
    animation-delay: 0.5s;
}

.btn-hero {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(45, 122, 74, 0.2);
}

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

@media (max-width: 768px) {
    .hero-section { padding: 60px 20px; }
    .hero-logo { width: 120px !important; margin-bottom: 24px !important; }
    .hero-title { font-size: 26px !important; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; margin: 40px auto 0; gap: 12px; }
    .btn-hero { width: 100%; justify-content: center; padding: 14px 20px !important; border-radius: 12px !important; font-size: 15px !important; }
}

/* === Latest Articles Section === */
.latest-articles {
    padding: 100px 0;
    background: transparent;
}

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

.section-header { text-align: center; margin-bottom: 60px; }
.section-title { 
    font-size: var(--text-2xl); 
    font-weight: 800; 
    color: var(--slate-900); 
    margin-bottom: 12px; 
    letter-spacing: -0.04em; 
}
.section-subtitle { 
    color: var(--slate-600); 
    font-size: var(--text-base); 
    max-width: 600px; 
    margin: 0 auto; 
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 124, 93, 0.1);
}

.article-card-image { width: 100%; height: 200px; background: #f1f5f9; position: relative; overflow: hidden; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.article-card:hover .article-card-image img { transform: scale(1.1); }

.article-card-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-badge { display: inline-block; padding: 4px 12px; background: #e9f5ec; color: #4a7c5d; font-size: 11px; font-weight: 700; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.article-card-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* === PROGRAM HIGHLIGHTS === */
.program-highlights { padding: 80px 0; background: #ffffff; }
.highlights-wrapper { display: flex; flex-direction: column; gap: 40px; }
.highlights-badge { display: inline-block; padding: 6px 14px; background: #e9f5ec; color: #2D7A4A; border-radius: 99px; font-size: 0.75rem; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.highlights-title { font-size: var(--text-2xl); font-weight: 800; color: var(--slate-900); margin-bottom: 12px; letter-spacing: -0.05em; }
.highlights-description { font-size: var(--text-base); color: var(--slate-600); max-width: 600px; line-height: 1.7; }

/* === Premium Countdown Card === */
.highlights-countdown {
    margin-top: 28px;
    padding: 28px 24px 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 60%, #064e3b 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.05);
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

.highlights-countdown::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.highlights-countdown::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Status badge row */
.program-countdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.program-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.program-countdown-badge.upcoming {
    background: rgba(16,185,129,0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,0.2);
}

.program-countdown-badge.live {
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.2);
}

.program-countdown-badge.done {
    background: rgba(148,163,184,0.12);
    color: #94a3b8;
    border: 1px solid rgba(148,163,184,0.2);
}

.countdown-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.program-countdown-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

/* Timer grid */
.program-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 4px 0;
    position: relative;
    z-index: 1;
    background: none;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.program-countdown-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 80px;
}

.program-countdown-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    min-width: 60px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.06);
    letter-spacing: 0.02em;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.program-countdown-val::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.04);
}

.program-countdown-unit {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(148,163,184,0.8);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Separator dots between segments */
.countdown-sep {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding-bottom: 22px;
}

.countdown-sep-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(16,185,129,0.6);
    box-shadow: 0 0 8px rgba(16,185,129,0.3);
    animation: sep-pulse 1s ease-in-out infinite;
}

.countdown-sep-dot:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes sep-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Sub info */
.program-countdown-sub {
    font-size: 0.78rem;
    color: rgba(148,163,184,0.9);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    z-index: 1;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.program-countdown-sub strong {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.program-countdown-sub i {
    font-size: 0.7rem;
    color: rgba(16,185,129,0.6);
}

.program-countdown-state {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #6ee7b7;
    text-align: center;
    padding: 20px 0;
}

/* Mobile responsive */
@media (max-width: 380px) {
    .program-countdown-val {
        font-size: 1.5rem;
        min-width: 48px;
        height: 52px;
        border-radius: 10px;
    }
    .program-countdown-timer {
        gap: 4px;
    }
    .countdown-sep-dot {
        width: 4px;
        height: 4px;
    }
    .program-countdown-title {
        font-size: 1.05rem;
    }
}

.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.highlight-item {
    background: #f8fafc;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.highlight-item::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: #2D7A4A; opacity: 0; transition: opacity 0.3s; }
.highlight-item:hover { transform: translateY(-5px); border-color: #2D7A4A; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
.highlight-item:hover::before { opacity: 1; }

.highlight-date { font-size: 0.85rem; font-weight: 600; color: #2D7A4A; display: flex; align-items: center; gap: 8px; }
.highlight-item-title { font-size: 1.4rem; font-weight: 700; color: #1e293b; line-height: 1.2; }
.highlight-item-snippet { font-size: 0.95rem; color: #64748b; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.skeleton-highlight-card { height: 220px; background: #f8fafc; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; border: 1px solid #e2e8f0; }
.skeleton-line { background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
.skeleton-line.sm { width: 40%; height: 12px; }
.skeleton-line.md { width: 80%; height: 16px; }
.skeleton-line.lg { width: 100%; height: 20px; }

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

@media (max-width: 768px) {
    .highlights-title { font-size: 1.8rem; }
    .section-title { font-size: 28px; }
    .featured-grid { grid-template-columns: 1fr; }
}

.article-card-meta { font-size: 12px; color: #888; margin-top: auto; display: flex; align-items: center; gap: 12px; }
.section-footer { text-align: center; }
.btn-text { display: inline-flex; align-items: center; gap: 8px; color: #4a7c5d; font-weight: 700; text-decoration: none; font-size: 16px; transition: all 0.2s ease; }
.btn-text:hover { gap: 12px; color: #2d7a4a; }

.skeleton-card { height: 350px; background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 20px; }

/* === Premium Landing Upgrades === */
.hero-title {
    background: linear-gradient(to right, #0f172a, #2D7A4A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
}

.btn-hero.btn-hero-primary {
    background: linear-gradient(135deg, #0984e3, #1e3a8a);
    border: none;
    color: white;
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-hero.btn-hero-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: shine-hero 4s infinite;
}

@keyframes shine-hero {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* === PWA Install Banner === */
.pwa-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 380px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
    z-index: 9999;
    color: white;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwa-banner.show { transform: translateX(-50%) translateY(0); }
.pwa-banner-icon { width: 50px; height: 50px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 6px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.pwa-banner-icon img { max-width: 100%; max-height: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));}
.pwa-banner-text { flex: 1; }
.pwa-banner-text h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 700; color: #fff;}
.pwa-banner-text p { margin: 0; font-size: 0.72rem; color: #94a3b8; line-height: 1.4;}
.pwa-banner-actions { display: flex; flex-direction: column; gap: 6px; }

.btn-pwa { border: none; border-radius: 8px; font-weight: 700; cursor: pointer; padding: 8px 14px; font-size: 0.8rem; transition: all 0.2s; white-space: nowrap;}
.btn-pwa.primary { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-pwa.secondary { background: transparent; color: #64748b; font-size: 1.1rem; padding: 4px; align-self: flex-end;}
.btn-pwa.primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
