/* ============================================
   WEBSITE DESA GUYANGAN - Bootstrap 5 Custom Styles
   Custom overrides and additions to Bootstrap
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ============================================
   CSS Variables - Custom Design Tokens
   ============================================ */
:root {
    /* Primary Colors */
    --bs-primary: #1B5E20;
    --bs-primary-rgb: 27, 94, 32;
    --primary-green: #1B5E20;
    --primary-green-light: #2E7D32;
    --primary-green-dark: #0D3B12;

    /* Secondary Colors */
    --secondary-green: #4CAF50;
    --secondary-green-light: #81C784;

    /* Accent Colors */
    --accent-gold: #FFA000;
    --accent-gold-light: #FFD54F;
    --accent-gold-dark: #FF8F00;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ============================================
   Global Overrides
   ============================================ */
body {
    font-family: var(--font-body);
    color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    color: var(--primary-green);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-green);
}

/* ============================================
   Navbar Custom Styles
   ============================================ */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #666;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--primary-green);
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: var(--primary-green);
    padding-left: 1.25rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    margin-top: 76px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.85) 0%, rgba(27, 94, 32, 0.6) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #fff;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #fff;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* ============================================
   Stat Cards
   ============================================ */
.stats-section {
    margin-top: -80px;
    position: relative;
    z-index: 30;
}

.stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    background: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* ============================================
   News Cards
   ============================================ */
.news-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-gold);
    color: #212529;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-body {
    padding: 1.5rem;
}

.news-title {
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: #666;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Section Headers
   ============================================ */
.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    position: relative;
    padding: 8rem 0 4rem;
    margin-top: 76px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.9), rgba(27, 94, 32, 0.7));
}

.page-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f5f5f5;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #666;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background: #f5f5f5;
    color: var(--primary-green);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-green);
    color: #fff;
}

/* ============================================
   Content Card
   ============================================ */
.content-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-header {
    padding: 1rem 2rem;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.content-body {
    padding: 2rem;
}

.content-body h2 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body h2:first-child {
    margin-top: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--accent-gold);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: #212529;
}

/* ============================================
   Button Overrides
   ============================================ */
.btn-primary {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--primary-green-light);
    border-color: var(--primary-green-light);
}

.btn-warning {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #212529;
}

.btn-warning:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold-light);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-green);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================
   Utilities
   ============================================ */
.bg-light-green {
    background: rgba(27, 94, 32, 0.05);
}

.text-primary-green {
    color: var(--primary-green) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.bg-gradient-green {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
}

/* ============================================
   Animations
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 100vh;
        margin-top: 56px;
    }

    .stats-section {
        margin-top: -40px;
    }

    .page-header {
        padding: 6rem 0 3rem;
        margin-top: 56px;
    }
}