:root {
    --primary: #5a7a3a;
    --secondary: #8b6914;
    --bg: #f9f6f0;
    --text: #2c2c2c;
    --accent: #e8f5e9;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(44, 44, 44, 0.08);
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--secondary);
}

.top-bar {
    background: var(--accent);
    color: var(--text);
}

.top-bar .social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(90, 122, 58, 0.12);
    color: var(--primary);
    transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.site-header .navbar {
    background: var(--primary);
    padding: 0.85rem 0;
}

.site-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px;
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-toggle {
    color: rgba(255, 255, 255, 0.95) !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.navbar .dropdown-toggle.active {
    color: #ffe9a8 !important;
}

.dropdown-menu {
    border: 0;
    box-shadow: var(--shadow);
}

.hero-section {
    min-height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(90, 122, 58, 0.88), rgba(44, 44, 44, 0.48));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    background: var(--secondary);
    border-radius: 999px;
    margin-top: 0.5rem;
}

.card,
.service-card,
.news-card,
.gallery-card,
.admin-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.service-card,
.news-card,
.gallery-card {
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.service-card:hover,
.news-card:hover,
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(44, 44, 44, 0.13);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--primary);
    font-size: 1.5rem;
}

.news-card img,
.gallery-card img,
.object-cover {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-card img {
    cursor: pointer;
}

.gallery-filter .btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.cta-box {
    background: linear-gradient(135deg, var(--accent), #fff);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.content-box {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.page-banner {
    background: linear-gradient(120deg, rgba(90, 122, 58, 0.95), rgba(139, 105, 20, 0.82));
    color: var(--white);
    padding: 4rem 0;
}

.site-footer {
    background: #2f4020;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-links li + li {
    margin-top: 0.5rem;
}

.admin-wrapper {
    min-height: 100vh;
    background: #f5f5f5;
}

.admin-sidebar {
    width: 280px;
    background: #24311a;
    color: var(--white);
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.35rem;
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
    background: rgba(232, 245, 233, 0.12);
    color: var(--white);
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: var(--white);
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.06);
}

.stat-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.form-section {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.table thead th {
    white-space: nowrap;
}

.badge-soft {
    background: rgba(90, 122, 58, 0.1);
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 400px;
    }

    .admin-sidebar {
        width: 100%;
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 360px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .content-box,
    .cta-box {
        padding: 1.5rem;
    }

    .news-card img,
    .gallery-card img,
    .object-cover {
        height: 220px;
    }
}
