/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --hijau-sawit: #2F7A3E;
    --krem-tanah: #D9C9A6;
    --putih: #FFFFFF;
    --hitam-elegan: #1F1F1F;
    --akses-mustard: #D07B1B;
    --gray-light: #F5F5F5;
    --gray-medium: #666666;
    --gray-dark: #333333;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--hitam-elegan);
    background-color: var(--putih);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--hijau-sawit);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--akses-mustard);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--putih);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--hijau-sawit);
    color: var(--putih);
    padding: 8px 0;
    font-size: 14px;
}

.header-main {
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    color: var(--hijau-sawit);
    font-size: 2rem;
    margin: 0;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: var(--hijau-sawit);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--putih);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
    border-top: 1px solid var(--krem-tanah);
}

nav a {
    color: var(--hitam-elegan);
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--hijau-sawit);
    border-bottom-color: var(--hijau-sawit);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--putih);
    padding: 40px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--hijau-sawit);
    color: var(--putih);
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--akses-mustard);
    transform: translateY(-2px);
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: var(--putih);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.news-card-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    background-color: var(--krem-tanah);
    color: var(--hitam-elegan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--hitam-elegan);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray-medium);
    font-size: 14px;
    margin-bottom: 15px;
}

.news-excerpt {
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--hijau-sawit);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-medium);
    font-size: 1.1rem;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 40px auto;
}

.search-form {
    display: flex;
    gap: 10px;
    background: var(--putih);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.search-btn {
    background-color: var(--hijau-sawit);
    color: var(--putih);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: var(--akses-mustard);
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--gray-light);
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-medium);
}

.breadcrumb-list a {
    color: var(--hijau-sawit);
}

.breadcrumb-list span {
    color: var(--gray-medium);
}

/* Article Page */
.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.article-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.5rem;
    color: var(--hitam-elegan);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray-medium);
    margin-bottom: 20px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.article-content p {
    margin-bottom: 20px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: var(--putih);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.sidebar-title {
    font-size: 1.3rem;
    color: var(--hijau-sawit);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--krem-tanah);
}

.sidebar-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.sidebar-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.sidebar-news-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.sidebar-news-content .date {
    font-size: 12px;
    color: var(--gray-medium);
}

/* Profile Page */
.profile-header {
    text-align: center;
    margin-bottom: 50px;
}

.profile-title {
    font-size: 3rem;
    color: var(--hijau-sawit);
    margin-bottom: 15px;
}

.profile-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.profile-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.profile-text p {
    margin-bottom: 20px;
}

.profile-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Documentation Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--putih);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-form {
    background: var(--putih);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--hitam-elegan);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--hijau-sawit);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    background: var(--hijau-sawit);
    color: var(--putih);
    padding: 40px;
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--putih);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37,211,102,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

/* Footer */
footer {
    background-color: var(--hitam-elegan);
    color: var(--putih);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--hijau-sawit);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--putih);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--krem-tanah);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--hijau-sawit);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--akses-mustard);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: var(--gray-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero {
        height: 300px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-container,
    .profile-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .profile-title {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-light);
    border-radius: 50%;
    border-top-color: var(--hijau-sawit);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--hijau-sawit);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--akses-mustard);
}