/* Global Root Variables */
:root {
    /* Tanjung Puting Earth & Forest Palette */
    --primary-green: #008B8B;
    /* Deep Forest Green */
    --secondary-green: #FF6347;
    /* Lush Jungle Green */
    --accent-gold: #FFD700;
    /* Official Government Gold */
    --accent-orange: #FF4500;
    /* Orangutan Fur Tone (Subtle Accent) */
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #E0FFFF;
    /* Very subtle mint/grey tint */
    --bg-white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary-green);
}

/* Top Bar Government */
.top-bar {
    background: var(--primary-green);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 2px solid var(--accent-gold);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--accent-gold);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--primary-green) !important;
}

.navbar-brand img {
    height: 55px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 5px;
    padding: 8px 15px !important;
    transition: all 0.3s;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-green) !important;
}

.navbar-nav .nav-link.active {
    color: var(--secondary-green) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(27, 67, 50, 0.75), rgba(45, 106, 79, 0.4)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 0 140px;
    text-align: center;
    margin-bottom: 0;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-section p.lead {
    font-size: 1.35rem;
    margin-bottom: 35px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Buttons */
.btn-custom-primary {
    background: var(--accent-gold);
    color: #0f291e;
    font-weight: 700;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-custom-primary:hover {
    background: #e5bd3d;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #0f291e;
}

.btn-custom-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-custom-secondary:hover {
    background: white;
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* Bootstrap Blue Overrides */
.btn-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-green) !important;
    border-color: var(--secondary-green) !important;
}

.btn-outline-primary {
    color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-green) !important;
    color: white !important;
}

/* Section Styling */
section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

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

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

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 25px auto 0;
    border-radius: 2px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    transition: all 0.5s ease;
}

.card:hover .card-icon {
    transform: rotateY(180deg);
}

.card h4 {
    color: var(--primary-green);
    font-size: 1.25rem;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-green), #0f291e);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

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

/* Destinations */
.destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 41, 30, 0.95), rgba(15, 41, 30, 0));
    color: white;
    padding: 40px 30px 25px;
    transition: all 0.3s;
}

.destination-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
    transform: translateY(0);
    transition: transform 0.3s;
}

.destination-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    transform: translateY(0);
}

/* News Section Cards */
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background: white;
    transition: all 0.3s;
}

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

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

.news-content {
    padding: 25px;
}

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

.news-date,
.news-meta {
    color: var(--secondary-green);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.news-card h3 a:hover,
.news-title a:hover {
    color: var(--secondary-green);
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-green);
}

.btn-link-custom {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link-custom:hover {
    color: var(--accent-gold);
}

/* Gallery Section */
#galeri .row>div {
    height: 200px;
    padding: 5px;
}

#galeri .img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

#galeri .img-fluid:hover {
    filter: brightness(0.8);
    transform: scale(0.98);
}

/* Footer */
footer {
    background: #0f291e;
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

footer h5 {
    color: var(--accent-gold);
    font-size: 1.25rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-block;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
    color: white;
    padding: 0;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    justify-content: center;
    padding: 0;
    margin-top: 15px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--accent-gold);
}

/* Article Detail Page Specifics */
.article-hero {
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    color: white;
    text-align: center;
    margin-bottom: 0;
}

.article-hero h1 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    color: var(--primary-green);
    font-family: 'Merriweather', serif;
    margin-top: 40px;
}

.related-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-img {
    height: 200px;
    object-fit: cover;
}

.related-body {
    padding: 20px;
    background: white;
}

.related-title {
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
}

/* Legacy Article Styles (for backward compatibility) */
.article-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.author-box {
    background: #fff;
    border-left: 4px solid var(--accent-gold);
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-badge {
    display: inline-block;
    background: #e8f5e9;
    color: var(--primary-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.content-body {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-top: 0;
    position: relative;
}

/* Responsive adjustments for header images */
@media (max-width: 768px) {
    .article-header {
        padding: 30px 0;
    }
}

/* Nature/Feature Cards */
.nature-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    color: white;
    height: 300px;
}

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

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

.nature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
}