/* --- Import Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

/* --- Variabel Warna & Reset Dasar --- */
:root {
    --primary-green: #2d6a4f;
    --secondary-green: #40916c;
    --light-green: #d8f3dc;
    --dark-text: #1b4332;
    --light-text: #f7f7f7;
    --grey-bg: #f8f9fa;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--grey-bg);
    color: #333;
    padding-top: 80px; /* Ruang untuk sticky header */
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header Modern --- */
.site-header {
    background-color: var(--card-bg);
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header .logo-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.site-header .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-left: 0.75rem;
}

.site-header .main-nav a {
    color: var(--dark-text);
    text-decoration: none;
    margin: 0 1.2rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.site-header .main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.site-header .main-nav a:hover:after {
    width: 100%;
    left: 0;
}

.site-header .main-nav a:hover {
    color: var(--primary-green);
}

/* --- Footer Modern --- */
.site-footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 4rem 2rem 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--secondary-green);
}

.footer-column h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--card-bg);
}

.footer-column p, .footer-column a {
    color: #b0d4c2;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--card-bg);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }

.social-icons { display: flex; gap: 1rem; }
.social-icons a { font-size: 1.5rem; color: #b0d4c2; transition: transform 0.3s ease, color 0.3s ease; }
.social-icons a:hover { transform: scale(1.2); color: var(--card-bg); }

.footer-bottom { text-align: center; padding: 1.5rem 0; font-size: 0.9rem; color: #b0d4c2; }

/* --- Card Style untuk Galeri --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    display: block;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.gallery-card:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.gallery-card .card-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-image {
    transform: scale(1.1);
}

.gallery-card .card-content {
    padding: 1.5rem;
}

.gallery-card .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Detail Page Style --- */
.article-container {
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    color: #555;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    font-size: 0.9rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    
    /* Tambahan untuk pemenggalan kata otomatis */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.article-body p { margin-bottom: 1.5rem; }

/* --- Tombol Berbagi Media Sosial --- */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.social-share-label {
    font-weight: 600;
    color: #333;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s ease;
}
.share-btn:hover {
    transform: scale(1.1);
}
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.whatsapp { background-color: #25D366; }

/* --- Paginasi --- */
.pagination { 
    display: flex; 
    justify-content: center; 
    padding: 2rem 0; 
    margin-top: 2rem; 
    list-style: none; 
}
.pagination a { 
    color: var(--primary-green); 
    text-decoration: none; 
    padding: 0.75rem 1rem; 
    margin: 0 0.25rem; 
    border: 1px solid #ddd; 
    border-radius: 0.25rem; 
    transition: all 0.2s ease; 
}
.pagination a:hover { 
    background-color: var(--light-green); 
    border-color: var(--secondary-green); 
}
.pagination a.active { 
    background-color: var(--primary-green); 
    color: white; 
    border-color: var(--primary-green); 
}
.pagination a.disabled { 
    color: #aaa; 
    pointer-events: none; 
    background-color: #f0f0f0; 
}

/* --- Responsif --- */
@media (max-width: 768px) {
    .site-header { flex-direction: column; height: auto; padding: 1rem; }
    .main-nav { margin-top: 1rem; width: 100%; text-align: center; }
    .main-nav a { margin: 0 0.5rem; font-size: 0.9rem; }
    body { padding-top: 130px; }
    .article-title { font-size: 2rem; }
    .article-container { padding: 1.5rem; }
}