:root {
    --primary-color: #e91e63;
    --secondary-color: #2196f3;
    --tertiary-color: #4caf50;
    --quaternary-color: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* <-- Ganti font */
    line-height: 1.6;
    color: #333; /* <-- Tambahkan warna teks default */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

/* Header */
header {
    background-color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(54, 1, 1, 0.5), rgba(101, 3, 3, 0.5)),
                url('https://res.cloudinary.com/dn2kwhwgz/image/upload/v1730083828/mr89rggon5dtjxwflxbo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* About Section */
#about {
    background-color: #f5f5f5;
    padding: 4rem 0;
}

.about-content {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.text-content {
    flex: 1;
    text-align: left;
}

.video-container {
    flex: 1;
}

.video-container iframe {
    width: 100%;
    height: 315px;
}

/* FAQ Section */
#faq {
    background-color: #fff;
    padding: 4rem 0;
}

.accordion {
    max-width: 800px;
    margin: 2rem auto;
}

.accordion-item {
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #d81b60;
}

.accordion-content {
    display: none;
    padding: 1rem;
    background-color: #f5f5f5;
}

.accordion-content.active {
    display: block;
}

/* Contact Section */
#contact {
    background-color: #f5f5f5;
    padding: 4rem 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.qr-code img {
    max-width: 200px;
}

/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.regular-article {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.25rem;
    font-weight: bold;
}

.article-content p {
    color: #666;
    margin-bottom: 1rem;
}

.read-more, 
.read-more, 
.product-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--tertiary-color); /* Warna hijau dari root */
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-out;
}

.read-more:hover, 
.product-link:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Articles additional styles */
.articles {
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}
.articles h1 {
    color: #1d4720;
    margin-top: 100px;
    padding-bottom: 10px;
    font-size: 2em;
}
.articles h2 {
    color: #1d4720;
    margin-top: 10px;
    padding-bottom: 10px;
}
.articles ul {
    margin: 10px 0;
    padding-left: 20px;
}
.articles .highlight {
    color: #2c5f2d;
    font-weight: bold;
}
.articles .contact-box {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}
.articles .keywords {
    font-size: 0.9em;
    color: #666;
    margin-top: 30px;
}

.video-container iframe {
    width: 100%;
    height: 315px;
    border: none;
}

/* Products Section */
#products {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.product-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-link {
    /* ... properti lain ... */
    background-color: var(--tertiary-color); /* <-- Gunakan variabel */
    /* ... properti lain ... */
}

.product-link:hover {
    background-color: #45a049; /* Boleh tetap atau dibuat lebih gelap dari variabel */
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav ul {
        margin-top: 1rem;
    }

    .about h2 {
        margin-top: 3rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-info {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .articles h1 {
        margin-top: 120px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* -- Tambahan untuk Peningkatan UI/UX -- */

/* Tombol Utama (Call-to-Action / Oranye) */
.cta-button {
    display: inline-block;
    background-color: var(--quaternary-color); /* Warna oranye dari root */
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #ffaf33;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Penyesuaian Header agar lebih modern */
header {
    transition: background-color 0.3s ease;
}

/* Efek hover pada navigasi */
nav ul li a {
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease-out;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* Perbaikan Kartu Produk */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card p {
    flex-grow: 1;
}

/* Menambahkan Footer */
footer {
    background-color: #333;
    color: #f5f5f5;
    text-align: center;
    padding: 2rem;
}

footer p {
    margin: 0;
}

/* Memberi jarak pada judul seksi */
#about h2, #products h2, #faq h2, #contact h2 {
    margin-bottom: 2rem;
}