/* =====================================================================
   assets/css/style.css
   Tema Warna: Paduan Logo NU Online (Teal & Charcoal)
   ===================================================================== */

:root {
    --primary: #008b7d;         /* Teal / Hijau Kebiruan */
    --primary-dark: #006b60;    /* Teal Gelap */
    --primary-light: #e0f2f1;   /* Teal Sangat Muda */
    --secondary: #2b2b2b;       /* Charcoal / Hitam Keabuan */
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

* { 
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    box-sizing: border-box;
}
body { color: var(--text-dark); background: #fff; }

/* ===== TOPBAR ===== */
.topbar { background: var(--secondary); color: #fff; font-size: 0.8rem; padding: 6px 0; }
.topbar a { color: #fff; text-decoration: none; margin-right: 12px; transition: color 0.2s; }
.topbar a:hover { color: var(--primary-light); }

/* ===== NAVBAR ===== */
.navbar-nu {
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}
.navbar-nu .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-nu .navbar-brand img { height: 42px; }
.navbar-nu .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    transition: all 0.3s;
    font-size: 0.92rem;
}
.navbar-nu .nav-link:hover,
.navbar-nu .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.15); border-radius: 5px; }
.navbar-nu .dropdown-menu {
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 8px;
}
.navbar-nu .dropdown-item { transition: all 0.2s; }
.navbar-nu .dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

/* ===== SEARCH ===== */
.search-box {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 6px 14px;
    color: #fff;
    font-size: 0.85rem;
}
.search-box::placeholder { color: rgba(255,255,255,0.7); }
.search-box:focus {
    background: #fff; color: var(--text-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(224,242,241,0.5);
}

/* ===== HERO HEADLINE ===== */
.hero-section { padding: 30px 0; background: var(--bg-light); }
.headline-card {
    position: relative; border-radius: 12px; overflow: hidden;
    height: 100%; min-height: 420px; background: #000;
}
.headline-card img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0;
    opacity: 0.85; transition: transform 0.5s;
}
.headline-card:hover img { transform: scale(1.05); }
.headline-card .overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 24px 24px; color: #fff;
}
.headline-card .badge-kategori {
    background: var(--primary-light); color: var(--primary-dark);
    font-weight: 600; padding: 4px 10px; border-radius: 4px;
    font-size: 0.75rem; display: inline-block; margin-bottom: 10px;
}
.headline-card h2 {
    font-size: 1.5rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px;
}
.headline-card h2 a { color: #fff; text-decoration: none; }
.headline-card h2 a:hover { color: var(--primary-light); }
.headline-card .meta { font-size: 0.8rem; color: rgba(255,255,255,0.8); }

/* ===== CARD BERITA ===== */
.news-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s; height: 100%; border: 1px solid #eee;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.news-card .img-wrap { position: relative; overflow: hidden; height: 180px; }
.news-card .img-wrap img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.news-card:hover .img-wrap img { transform: scale(1.08); }
.news-card .badge-kategori {
    position: absolute; top: 10px; left: 10px;
    background: var(--primary); color: #fff;
    padding: 3px 10px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 600;
}
.news-card .body { padding: 16px; }
.news-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; min-height: 44px; }
.news-card h3 a { color: var(--text-dark); text-decoration: none; transition: color 0.3s; }
.news-card h3 a:hover { color: var(--primary); }
.news-card .meta {
    font-size: 0.75rem; color: var(--text-muted);
    display: flex; gap: 12px; align-items: center;
}
.news-card .meta i { color: var(--primary); }

/* ===== SECTION TITLE ===== */
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}
.section-title h2 {
    font-size: 1.25rem; font-weight: 700; color: var(--primary);
    margin: 0; position: relative;
}
.section-title h2::before {
    content: ''; display: inline-block;
    width: 6px; height: 22px; background: var(--secondary);
    margin-right: 10px; vertical-align: middle; border-radius: 3px;
}
.section-title a { color: var(--primary); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.section-title a:hover { text-decoration: underline; }

/* ===== SIDEBAR ===== */
.sidebar-widget {
    background: #fff; border-radius: 10px; padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 24px;
    border: 1px solid #eee;
}
.sidebar-widget h4 {
    font-size: 1rem; font-weight: 700; color: var(--primary);
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}
.popular-item {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.popular-item:last-child { border-bottom: none; }
.popular-item .num {
    background: var(--primary); color: #fff;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.popular-item .title {
    font-size: 0.85rem; font-weight: 500; line-height: 1.4;
    color: var(--text-dark); text-decoration: none; transition: color 0.3s;
}
.popular-item .title:hover { color: var(--primary); }

/* ===== STATISTIK ===== */
.stats-section {
    background: var(--primary); color: #fff;
    padding: 30px 0; margin: 30px 0; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 139, 125, 0.2);
}
.stat-box { text-align: center; padding: 10px; }
.stat-box i { font-size: 2rem; color: var(--primary-light); margin-bottom: 8px; }
.stat-box .num { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.stat-box .label { font-size: 0.8rem; opacity: 0.9; margin-top: 4px; }

/* ===== DOWNLOAD ===== */
.download-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 8px; background: var(--bg-light);
    margin-bottom: 10px; text-decoration: none; color: var(--text-dark);
    transition: all 0.3s; border: 1px solid transparent;
}
.download-item:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.download-item .icon {
    width: 40px; height: 40px; background: var(--secondary); color: #fff;
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.download-item .info { flex: 1; min-width: 0; }
.download-item .info .name {
    font-size: 0.85rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.download-item .info .meta { font-size: 0.7rem; color: var(--text-muted); }

/* ===== KHUTBAH ===== */
.khutbah-card {
    background: #fff; border-left: 4px solid var(--primary);
    border-radius: 8px; padding: 16px; margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.khutbah-card h5 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.khutbah-card h5 a { color: var(--text-dark); text-decoration: none; }
.khutbah-card h5 a:hover { color: var(--primary); }
.khutbah-card .meta { font-size: 0.75rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary); color: rgba(255,255,255,0.8);
    padding: 50px 0 0; margin-top: 40px;
}
.footer h5 { color: #fff; font-weight: 700; margin-bottom: 20px; font-size: 1rem; display: flex; align-items: center; }
.footer a {
    color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 0.85rem; display: block; padding: 4px 0; transition: color 0.3s;
}
.footer a:hover { color: var(--primary-light); }
.footer .social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: rgba(255,255,255,0.1);
    border-radius: 50%; margin-right: 8px; color: #fff; transition: all 0.3s;
}
.footer .social a:hover {
    background: var(--primary); color: #fff; transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0; margin-top: 30px;
    font-size: 0.8rem; text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .headline-card { min-height: 320px; }
    .headline-card h2 { font-size: 1.2rem; }
}
@media (max-width: 576px) {
    .hero-section { padding: 16px 0; }
    .headline-card { min-height: 280px; }
    .headline-card h2 { font-size: 1rem; }
    .headline-card .overlay { padding: 20px 16px 16px; }
    .section-title h2 { font-size: 1.05rem; }
    .stat-box .num { font-size: 1.4rem; }
    .stat-box i { font-size: 1.4rem; }
}

/* ===== SCROLL ANIMATION ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }