/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Mengubah font */
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Warna latar belakang umum */
}

.container {
    width: 90%; /* Sedikit lebih lebar */
    max-width: 1200px; /* Batasi lebar maksimal */
    margin: auto;
    overflow: hidden;
}

/* Header Styles */
header {
    background: #222; /* Warna header lebih gelap */
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Bayangan pada header */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 45px; /* Sesuaikan tinggi logo */
    vertical-align: middle;
}

/* Jika ingin logo berupa teks */
/*
header .logo-text {
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}
*/

header .desktop-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header .desktop-nav ul li {
    display: inline;
    margin-left: 25px; /* Jarak antar menu */
}

header .desktop-nav a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600; /* Sedikit lebih tebal */
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

header .desktop-nav a:hover {
    color: #00c067; /* Warna biru saat hover */
    border-bottom: 2px solid #00c067;
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none; /* Sembunyikan secara default di desktop */
    font-size: 1.8em;
    cursor: pointer;
    color: #fff;
}

/* Mobile Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* Sembunyikan di luar layar */
    width: 250px;
    height: 100%;
    background: #333;
    color: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0; /* Tampilkan sidebar */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}

.sidebar-header .logo img {
    height: 40px;
}

.sidebar-header .close-btn {
    font-size: 1.8em;
    cursor: pointer;
    color: #fff;
}

.sidebar .mobile-nav ul {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar .mobile-nav ul li {
    margin-bottom: 10px;
}

.sidebar .mobile-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.sidebar .mobile-nav a:hover {
    background: #00c067;
    color: #fff;
}

/* Overlay for Sidebar */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none; /* Sembunyikan secara default */
}

.overlay.active {
    display: block; /* Tampilkan saat sidebar aktif */
}

/* Hero Section */
.hero {
    background: transparent url('bg3.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 0; /* Padding lebih besar */
    position: relative;
    overflow: hidden; /* Pastikan konten tidak keluar */
}

.hero::before { /* Overlay gelap pada gambar hero */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Semakin gelap */
}

.hero .container {
    position: relative; /* Agar konten hero di atas overlay */
    z-index: 1;
}

.hero h1 {
    font-size: 3.5em; /* Ukuran font lebih besar */
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.hero-buttons button {
    background: #00ff88; /* Warna biru */
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-buttons button:hover {
    background: #000000;
    transform: translateY(-2px); /* Efek sedikit naik */
}

/* Section Styling */
.section-padded {
    padding: 80px 0; /* Padding lebih besar */
}

.bg-light {
    background: #f4f4f4;
}

h2 {
    text-align: center;
    margin-bottom: 50px; /* Margin bawah lebih besar */
    color: #222; /* Warna judul lebih gelap */
    font-size: 2.8em; /* Ukuran font lebih besar */
    text-transform: uppercase;
    position: relative;
}

h2::after { /* Garis bawah pada judul */
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #00bd65;
    border-radius: 2px;
}


/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Bayangan lebih halus */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px); /* Efek naik saat hover */
}

.article-placeholder {
    width: 100%;
    height: 180px; /* Placeholder untuk gambar artikel */
    background-color: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 1.2em;
}
/* Anda bisa mengganti .article-placeholder dengan img tag jika ada gambar */
/* .article-item img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
} */


.article-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.article-item p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    min-height: 45px; /* Pastikan tinggi sama untuk deskripsi */
}

.article-item .read-more {
    display: inline-block;
    background: #444; /* Warna tombol baca lebih gelap */
    color: #fff;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.article-item .read-more:hover {
    background: #00bd65;
}

/* Product Grid */
.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Kolom lebih fleksibel */
    gap: 30px;
    margin-bottom: 40px;
}

.website-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.website-item:hover {
    transform: translateY(-5px);
}

.website-item img {
    max-width: 100%;
    height: 200px; /* Tinggi gambar produk tetap */
    object-fit: cover; /* Pastikan gambar mengisi area tanpa terdistorsi */
    margin-bottom: 15px;
    border-radius: 8px;
}

.website-item h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.4em;
}

.website-item p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    min-height: 40px; /* Pastikan tinggi sama untuk deskripsi */
}

.website-item .buy-button {
    background: #28a745; /* Green for buy button */
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    margin-top: auto; /* Dorong tombol ke bawah */
    transition: background 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.website-item .buy-button:hover {
    background: #218838;
}

/* View All Buttons */
.view-all-button {
    display: block;
    width: fit-content;
    margin: 50px auto 0 auto;
    background: #00bd65;
    color: #fff;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.view-all-button:hover {
    background: #00bd65;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    background: #00c067; /* Yellow for submit button */
    color: #ffffff;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 8px;
    transition: background 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.contact-form button[type="submit"]:hover {
    background: #000000;
}

/* Custom Hero for Article List Page */
.hero.small-hero {
    padding: 80px 0; /* Padding lebih kecil dari hero utama */
}

/* Article List Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Sidebar 1 bagian, konten artikel 3 bagian */
    gap: 40px;
}

.sidebar-categories {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-categories h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.sidebar-categories ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.sidebar-categories ul li {
    margin-bottom: 10px;
}

.sidebar-categories ul li a {
    color: #555;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.sidebar-categories ul li a:hover {
    color: #00c067;
    font-weight: bold;
}

.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 10px 15px;
    flex-grow: 1;
    outline: none;
}

.search-box button {
    background: #00c067;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #00c067;
}

/* Full Article Item Styling */
.full-article-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    overflow: hidden; /* Penting untuk gambar */
}

.full-article-item img {
    width: 100%;
    height: 300px; /* Tinggi gambar artikel */
    object-fit: cover;
    display: block;
}

.full-article-item .article-info {
    padding: 25px;
}

.full-article-item .article-info h4 {
    color: #00c067; /* Kategori berwarna biru */
    font-size: 0.9em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.full-article-item .article-info h3 {
    font-size: 2em;
    margin-bottom: 10px;
}

.full-article-item .article-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.full-article-item .article-info h3 a:hover {
    color: #00c067;
}

.full-article-item .article-info .meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 15px;
}

.full-article-item .article-info .meta .author,
.full-article-item .article-info .meta .date {
    font-weight: bold;
}

.full-article-item .article-info p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.full-article-item .read-more {
    display: inline-block;
    background: #444;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.full-article-item .read-more:hover {
    background: #00c067;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.pagination a {
    color: #555;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a.active {
    background-color: #00c067;
    color: white;
    border: 1px solid #00c067;
}

.pagination a:hover:not(.active) {
    background-color: #eee;
}

/* Custom Hero for Product List Page */
.hero.small-hero {
    padding: 80px 0;
}

/* Product List Layout */
.website-layout {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Sidebar 1 bagian, konten produk 3 bagian */
    gap: 40px;
}

.sidebar-website-filters {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-website-filters h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.sidebar-website-filters .filter-group {
    margin-bottom: 30px;
}

.sidebar-website-filters .filter-group h4 {
    font-size: 1.2em;
    color: #444;
    margin-bottom: 15px;
}

.sidebar-website-filters .filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-website-filters .filter-group ul li {
    margin-bottom: 8px;
}

.sidebar-website-filters .filter-group ul li label {
    color: #555;
    cursor: pointer;
}

.sidebar-website-filters .filter-group ul li input[type="checkbox"] {
    margin-right: 8px;
}

.sidebar-website-filters input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.sidebar-website-filters select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background-color: #fff;
}

.apply-filter-button {
    display: block;
    width: 100%;
    background: #28a745; /* Green for apply filter */
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.apply-filter-button:hover {
    background: #218838;
}

/* Adjust product grid for full page */
.main-products-content .product-grid.full-page-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 3-4 kolom di desktop */
    gap: 30px;
    margin-bottom: 40px;
}

/* Single Article Specific Styles */
.blog-post {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}

.article-title {
    font-size: 3em;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap; /* Untuk responsif */
    gap: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta span i {
    margin-right: 8px;
    color: #00c067;
}

.article-meta .category {
    background-color: #e0f2f7;
    color: #00c067;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}


.article-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body h2,
.article-body h3 {
    color: #333;
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 2em; /* Atur ukuran h2 */
}
.article-body h3 {
    font-size: 1.6em; /* Atur ukuran h3 */
}


.article-body blockquote {
    border-left: 5px solid #00c067;
    padding: 15px 25px;
    margin: 30px 0;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
}

.article-body blockquote footer {
    margin-top: 10px;
    font-size: 0.9em;
    color: #888;
}

.article-secondary-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0 10px 0;
}

.image-caption {
    font-size: 0.9em;
    color: #888;
    text-align: center;
    margin-bottom: 30px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.share-buttons span {
    font-weight: bold;
    color: #555;
}

.share-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.share-icon:hover {
    transform: translateY(-3px);
}

.share-icon.facebook { background-color: #3b5998; }
.share-icon.twitter { background-color: #00acee; }
.share-icon.linkedin { background-color: #0e76a8; }
.share-icon.whatsapp { background-color: #25d366; }


/* Comments Section */
.comments-section {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 50px;
}

.comments-section h2 {
    text-align: left; /* Sesuaikan judul agar tidak center */
    margin-bottom: 30px;
    font-size: 2.2em;
    color: #333;
}
.comments-section h2::after {
    left: 0; /* Sesuaikan garis bawah judul */
    transform: translateX(0);
}

.comments-section h3 {
    margin-top: 40px;
    font-size: 1.8em;
    color: #333;
}

.comment {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.comment-author span {
    font-weight: normal;
    font-size: 0.9em;
    color: #777;
    margin-left: 10px;
}

.comment p {
    color: #555;
    line-height: 1.6;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.comment-form textarea {
    resize: vertical;
}

.comment-form button[type="submit"] {
    background: #00c067;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background 0.3s ease;
}

.comment-form button[type="submit"]:hover {
    background: #00c067;
}

/* Related Articles Section */
.related-articles {
    margin-top: 60px;
}

.related-articles h2 {
    text-align: left;
    margin-bottom: 40px;
    font-size: 2.2em;
    color: #333;
}
.related-articles h2::after {
    left: 0;
    transform: translateX(0);
}

.related-articles .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 2-3 kolom */
}
.related-articles .article-item {
    padding: 20px;
}
.related-articles .article-item h3 {
    font-size: 1.3em;
}
.related-articles .article-item p {
    font-size: 0.9em;
}

.article-item .article-image {
    width: 100%; /* Agar gambar mengisi lebar container-nya */
    height: 200px; /* Tinggi tetap */
    object-fit: cover; /* Memastikan gambar terisi penuh tanpa distorsi */
    margin-bottom: 15px; /* Memberikan sedikit jarak di bawah gambar */
    border-radius: 8px; /* Sudut sedikit membulat */
}

/* Jika Anda ingin menghilangkan placeholder sebelumnya */
.article-item .article-placeholder {
    display: none;
}

/* ===================================== */
/* Template Details Page Specific Styles */
/* (Fokus pada Galeri Gambar Desktop/Mobile) */
/* ===================================== */

/* Small Hero Section for template pages */
.small-hero {
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #333; /* Ganti dengan warna header Anda */
    color: white;
    margin-bottom: 0;
}

.small-hero h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: inherit;
}

.small-hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    color: inherit;
}

/* Section untuk konten utama template, yang sekarang hanya galeri */
#template-gallery-section { /* Mengubah ID selector sesuai HTML baru */
    padding: 60px 0;
    background-color: #f8f9fa; /* Latar belakang terang untuk section ini, sesuaikan jika Anda punya variabel */
}

/* Template Gallery Section (container utama galeri) */
.template-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
    max-width: 960px; /* Lebar maksimal container galeri */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Padding horizontal untuk responsivitas */
}

.gallery-main-image {
    width: 100%;
    max-width: 900px; /* Lebar maksimal container untuk gambar utama */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Mengatur tinggi container tetap untuk gambar desktop/mobile */
    height: 550px; /* Tinggi default untuk desktop */
    display: flex; /* Untuk memusatkan gambar di dalamnya */
    justify-content: center;
    align-items: center;
}

.gallery-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Agar gambar tidak terpotong */
    display: none; /* Sembunyikan semua secara default */
    transition: opacity 0.3s ease;
    opacity: 0;
}

.gallery-main-image img.active-view {
    display: block; /* Tampilkan yang aktif */
    opacity: 1;
    position: relative; /* Override absolute untuk gambar aktif agar object-fit berfungsi baik */
    width: auto; /* Biarkan lebar menyesuaikan dengan max-width di bawah */
    height: auto; /* Biarkan tinggi menyesuaikan dengan max-height di bawah */
}

/* Spesifik untuk gambar desktop */
.gallery-main-image img.desktop-view.active-view {
    max-width: 100%; /* Lebar maksimal sesuai container */
    max-height: 550px; /* Batasi tinggi gambar desktop */
    object-fit: contain;
}

/* Spesifik untuk gambar mobile (misalnya, simulasi tampilan ponsel) */
.gallery-main-image img.mobile-view.active-view {
    max-width: 350px; /* Lebar maksimal seperti ponsel */
    max-height: 600px; /* Tinggi maksimal yang lebih panjang untuk ponsel */
    object-fit: contain;
    border: 10px solid #333; /* Bingkai mirip ponsel */
    border-radius: 30px; /* Sudut melengkung */
    margin: 0 auto; /* Pusatkan gambar mobile */
}


.gallery-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active-thumb {
    opacity: 1;
    border-color: #0bca61; /* Ganti dengan primary-color Anda */
    transform: translateY(-3px);
}

/* Button Group (tombol "PESAN" dan "KEMBALI") */
.button-group {
    text-align: center; /* Pusatkan tombol */
    margin-top: 40px; /* Margin atas dari galeri */
    padding: 0 15px; /* Padding horizontal untuk responsivitas */
}

.button-group .button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-top: 10px; /* Sedikit margin jika ada dua tombol */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.button-group .primary-button {
    background-color: #0bca61; /* Ganti dengan primary-color Anda */
    color: white;
    border: none;
    margin-right: 15px; /* Jarak antara tombol */
}

.button-group .primary-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.button-group .secondary-button {
    background-color: #6c757d; /* Ganti dengan secondary-color Anda */
    color: white;
    border: none;
}

.button-group .secondary-button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .small-hero h1 {
        font-size: 2em;
    }

    .small-hero p {
        font-size: 1em;
    }

    /* Ukuran container utama gambar di tablet */
    .gallery-main-image {
        height: 500px;
    }

    /* Ukuran gambar desktop sedikit lebih kecil di tablet */
    .gallery-main-image img.desktop-view.active-view {
        max-height: 450px;
    }

    /* Ukuran gambar mobile sedikit lebih kecil di tablet */
    .gallery-main-image img.mobile-view.active-view {
        max-width: 300px;
        max-height: 550px;
        border-width: 8px; /* Bingkai lebih tipis */
        border-radius: 25px;
    }

    .button-group .button {
        display: block; /* Tombol jadi satu kolom */
        width: calc(100% - 30px); /* Sesuaikan dengan padding container */
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 10px;
    }

    .button-group .primary-button {
        margin-right: auto; /* Hilangkan margin kanan jika sudah block */
    }

    .template-gallery {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .small-hero {
        height: 25vh;
    }

    .small-hero h1 {
        font-size: 1.8em;
    }

    .small-hero p {
        font-size: 0.9em;
    }

    /* Ukuran container utama gambar di ponsel */
    .gallery-main-image {
        height: 400px;
    }

    /* Gambar desktop di ponsel */
    .gallery-main-image img.desktop-view.active-view {
        max-height: 250px; /* Lebih kecil di mobile */
    }

    /* Gambar mobile di ponsel */
    .gallery-main-image img.mobile-view.active-view {
        max-width: 250px; /* Lebar ponsel lebih kecil */
        max-height: 450px; /* Tinggi ponsel lebih pendek */
        border-width: 5px; /* Bingkai lebih tipis */
        border-radius: 20px; /* Sudut lebih kecil */
    }

    .gallery-thumbnails img {
        width: 60px;
        height: 45px;
    }

    .button-group {
        padding: 0;
    }
}

/* Responsive Adjustments for Single Article */
@media (max-width: 768px) {
    .blog-post {
        padding: 25px;
    }
    .article-title {
        font-size: 2.2em;
    }
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .article-body {
        font-size: 1em;
    }
    .article-body h2 {
        font-size: 1.8em;
    }
    .article-body h3 {
        font-size: 1.4em;
    }
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .share-buttons span {
        margin-bottom: 10px;
    }

    .comments-section, .related-articles {
        padding: 25px;
        margin: 40px 15px 0 15px; /* Tambahkan margin samping */
    }
    .comments-section h2, .related-articles h2 {
        font-size: 1.8em;
    }
    .related-articles .article-grid {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8em;
    }
    .article-body h2 {
        font-size: 1.5em;
    }
    .article-body h3 {
        font-size: 1.2em;
    }
    .comments-section h2, .related-articles h2 {
        font-size: 1.5em;
    }
}

/* Override existing product-item margin from index if necessary */
/* .main-products-content .product-item {
    margin: 0;
} */



/* Mobile Responsiveness for Product List */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr; /* Stack sidebar dan produk */
    }

    .sidebar-product-filters {
        margin-bottom: 40px; /* Jarak antara sidebar dan produk utama */
    }

    .main-products-content .product-grid.full-page-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 2 kolom di tablet */
    }
}

@media (max-width: 768px) {
    .main-products-content .product-grid.full-page-grid {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
    }
    .sidebar-product-filters {
        margin: 0 15px; /* Beri margin samping */
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .sidebar-product-filters .filter-group h4 {
        font-size: 1.1em;
    }
    .apply-filter-button {
        padding: 10px 15px;
    }
}

/* Mobile Responsiveness for Article List */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr; /* Stack sidebar dan artikel */
    }

    .sidebar-categories {
        margin-bottom: 40px; /* Jarak antara sidebar dan artikel utama */
    }
}

@media (max-width: 768px) {
    .full-article-item img {
        height: 250px;
    }
    .full-article-item .article-info h3 {
        font-size: 1.7em;
    }
}

@media (max-width: 480px) {
    .full-article-item img {
        height: 200px;
    }
    .full-article-item .article-info h3 {
        font-size: 1.5em;
    }
    .sidebar-categories {
        margin: 0 15px; /* Beri margin samping */
        padding: 15px;
    }
}

/* Styling for active navigation link */
nav ul li a.active {
    color: #00c067 !important; /* Gunakan !important untuk menimpa hover di desktop nav */
    border-bottom: 2px solid #00c067;
}

.sidebar .mobile-nav a.active {
    background: #00c067;
    color: #fff;
}

/* Footer Styles */
footer {
    background: #222; /* Warna footer gelap */
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2.3em;
    }
}

@media (max-width: 768px) {
    header .desktop-nav {
        display: none; /* Sembunyikan navigasi desktop */
    }

    .menu-toggle {
        display: block; /* Tampilkan tombol burger */
    }

    header .container {
        justify-content: space-between;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .hero-buttons button {
        padding: 10px 20px;
        font-size: 1em;
        margin: 5px;
    }

    h2 {
        font-size: 2em;
    }
    h2::after {
        bottom: -10px;
        width: 60px;
        height: 3px;
    }

    .section-padded {
        padding: 50px 0;
    }

    .article-grid, .product-grid {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
    }

    .article-item, .product-item {
        margin: 0 15px; /* Beri sedikit margin samping */
    }

    .view-all-button {
        padding: 12px 25px;
        font-size: 1em;
        margin-top: 30px;
    }

    .contact-form {
        margin: 0 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header .logo img {
        height: 40px;
    }

    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons button {
        width: 80%;
        margin: 0 auto;
    }

    h2 {
        font-size: 1.8em;
    }
    h2::after {
        width: 50px;
    }

    .sidebar {
        width: 220px; /* Lebar sidebar lebih kecil di layar sangat kecil */
    }
}