/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    color: #333;
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
    box-shadow: 0 3px 8px rgba(255, 179, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.5);
}

/* ===== SLIDER SECTION ===== */
.slider-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.carousel-inner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-caption {
    background: linear-gradient(to top, rgba(27, 94, 32, 0.9) 0%, rgba(27, 94, 32, 0.6) 100%);
    padding: 2rem;
    border-radius: 15px;
    bottom: 2rem;
    left: 5%;
    right: 5%;
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #43a047 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
    border-color: #4caf50;
}

.stat-icon {
    font-size: 3rem;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1b5e20;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #558b2f;
    font-weight: 600;
}

/* ===== NEWS SECTION ===== */
.news-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1b5e20;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32 0%, #66bb6a 100%);
    border-radius: 2px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.2);
}

.news-image {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image i {
    font-size: 4rem;
    color: white;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-date {
    color: #757575;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-date i {
    color: #4caf50;
    margin-right: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== INFO DESA SECTION ===== */
.info-desa-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
    border-left: 5px solid #4caf50;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.2);
}

.info-card h4 {
    color: #1b5e20;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.info-card h4 i {
    color: #4caf50;
    margin-right: 0.5rem;
}

.info-card p {
    color: #555;
    margin-bottom: 0.5rem;
}

.info-card strong {
    color: #2e7d32;
}

.profile-img {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* ===== QUICK LINKS ===== */
.quick-links {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
}

.link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 2.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    margin-bottom: 1.5rem;
    min-height: 150px;
}

.link-btn:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.4);
    color: white;
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
}

.link-btn i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.link-btn div {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-logo {
        height: 40px;
        width: 40px;
    }
    
    .nav-link {
        margin: 0.3rem 0;
    }
    
    .carousel-item img {
        height: 400px;
    }
    
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-logo {
        height: 35px;
        width: 35px;
    }
    
    .btn-warning {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .slider-section {
        padding: 1rem 0;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 1rem;
        bottom: 1rem;
    }
    
    .carousel-caption h5 {
        font-size: 1.1rem;
    }
    
    .carousel-caption p {
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .stats-section {
        padding: 2rem 0;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .news-section,
    .info-desa-section,
    .quick-links {
        padding: 2.5rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title h2::after {
        width: 70px;
        height: 3px;
    }
    
    .news-image {
        height: 150px;
    }
    
    .news-image i {
        font-size: 3rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card h4 {
        font-size: 1.1rem;
    }
    
    .profile-img {
        font-size: 4rem;
    }
    
    .link-btn {
        padding: 2rem 1rem;
        min-height: 130px;
    }
    
    .link-btn i {
        font-size: 2.5rem;
    }
    
    .link-btn div {
        font-size: 1rem;
    }
    
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .carousel-item img {
        height: 200px;
    }
    
    .carousel-caption h5 {
        font-size: 0.95rem;
    }
    
    .carousel-caption p {
        font-size: 0.75rem;
        display: none;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.85rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.news-card,
.info-card,
.link-btn {
    animation: fadeIn 0.6s ease-out;
}