/* ============================================
   WEBSITE KELURAHAN KUNINGAN TIMUR
   Main Stylesheet - Professional Government Design
   ============================================ */

:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --accent-gold: #d4af37;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.top-bar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.top-bar i {
    margin-right: 5px;
}

.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-img {
    width: 80px;
    height: 80px;
}

.logo-text h1 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Navigation */
.navbar {
    background: var(--primary-blue);
    padding: 0;
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent-gold);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, rgba(30,60,114,0.95) 0%, rgba(42,82,152,0.95) 100%),
                url('../img/hero-bg.jpg') center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-hero {
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

/* ============================================
   CARDS & CONTENT
   ============================================ */

.section-title {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 60px;
}

.section-title h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* News Card */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 30px;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-card-body {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-meta i {
    margin-right: 5px;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.news-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.news-card-title a:hover {
    color: var(--primary-blue);
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.btn-read-more {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-read-more:hover {
    color: var(--accent-gold);
}

/* ============================================
   PENGUMUMAN
   ============================================ */

.pengumuman-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.pengumuman-box.penting {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.pengumuman-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pengumuman-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 60px 0;
    margin: 60px 0;
}

.stat-box {
    text-align: center;
    padding: 30px;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.bg-light-blue {
    background: var(--bg-light);
}

.text-primary-blue {
    color: var(--primary-blue);
}

.badge-kategori {
    background: var(--primary-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.mb-60 {
    margin-bottom: 60px;
}

.py-60 {
    padding: 60px 0;
}
