/* Base Styles and Variables */
:root {
    --primary-color: #D4AF37;
    --primary-dark: #B8860B;
    --primary-light: #FFD700;
    --secondary-color: #222222;
    --secondary-light: #444444;
    --accent-color: #8B4513;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #F9F9F9;
    --background-dark: #111111;
    --border-color: #EEEEEE;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    --font-primary: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 16px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-kontak {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-kontak:hover {
    background-color: var(--primary-dark);
}

/* Header and Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    text-align: center;
    margin-bottom: 16px;
}

.logo {
    height: 60px;
    display: inline-block;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--secondary-color);
}

/* Banner Section */
.banner {
    padding: 80px 0;
    background-color: var(--background-light);
}

.banner-content {
    max-width: 600px;
    margin-bottom: 40px;
}

.banner h1 {
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.banner p {
    margin-bottom: 32px;
    font-size: 1.1rem;
    color: #444444;
}

.banner-image {
    display: flex;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.banner-image img {
    margin: auto;
    border-radius: 8px;
    box-shadow: 0px 10px 10px;
}

/* Intro Section */
.intro {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    color: var(--secondary-color);
    margin-bottom: 16px;
    text-align: left;
}

.subtitle {
    color: #444444;
    font-size: 1.1rem;
    text-align: left;
}

.section-header p {
    color: #444444;
    margin-bottom: 16px;
    text-align: left;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.feature-card .icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--secondary-color);
}

/* Recent Blog Section */
.recent-blog {
    padding: 80px 0;
    background-color: var(--background-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 32px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 24px;
}

.category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-light);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 12px;
    font-weight: 600;
}

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

.blog-card p {
    color: #444444;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-right: 24px;
    display: inline-block;
}

.read-more::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translate(5px, -50%);
}

.blog-view-all {
    text-align: center;
    margin-top: 48px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 0 32px;
}

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

.footer-logo .logo {
    height: 60px;
    margin-bottom: 16px;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h4, .footer-contact h4 {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    margin-bottom: 12px;
    color: #ccc;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444444;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.whatsapp-icon {
    background-color: #25D366 !important;
}

.whatsapp-icon:hover {
    background-color: #128C7E !important;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #444444;
    color: #999;
}

/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url('https://pohonemas33shop.com/images/pohonemas33-blog.webp') center/cover no-repeat;
    padding: 100px 0;
    color: var(--text-light);
    text-align: center;
}

.blog-hero h1 {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.blog-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.blog-categories {
    padding: 40px 0;
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.blog-categories .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.categories-menu h2 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-list a {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--border-color);
    color: var(--secondary-color);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-list a:hover, .category-list a.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.blog-search {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.blog-search input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.blog-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 48px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.blog-content {
    padding: 60px 0;
}

/* Blog Meta Info */
.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #444444;
}

.blog-meta i {
    margin-right: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    gap: 8px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a:hover:not(.active) {
    background-color: var(--border-color);
}

.pagination a.next {
    width: auto;
    padding: 0 16px;
}

/* Blog Post Styles */
.blog-post {
    padding: 40px 0;
}

.post-header {
    margin-bottom: 40px;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.post-meta {
    text-align: center;
}

.post-meta h1 {
    margin: 16px 0;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.post-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #444444;
    font-size: 0.9rem;
}

.post-info i {
    margin-right: 8px;
    color: var(--primary-color);
}

.post-content {
    max-width: 800px;
    margin: 5px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin: 40px 0 20px;
    color: var(--secondary-color);
}

.post-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.post-content ul li {
    margin-bottom: 10px;
}

.cta-box {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
    color: white;
}

.cta-box h3 {
    color: white;
    margin-bottom: 16px;
}

.cta-box .btn-primary {
    background: white;
    color: var(--primary-color);
    margin-top: 20px;
}

.cta-box .btn-primary:hover {
    background: var(--background-light);
}

.share-post {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin: 40px 0;
    text-align: center;
}

.share-post h4 {
    margin-bottom: 20px;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 16px;
}

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

.social-share a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 40px;
}

.related-posts .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Media Queries */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    header {
        padding: 12px 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 16px;
        box-shadow: 0 5px 10px var(--shadow-color);
    }
    
    .main-nav.active ul {
        flex-direction: column;
        gap: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .categories-menu, .blog-search {
        width: 100%;
    }
    
    .category-list {
        overflow-x: auto;
        padding-bottom: 8px;
        max-width: 100%;
        white-space: nowrap;
    }

    .post-meta h1 {
        font-size: 2rem;
    }

    .post-info {
        flex-direction: column;
        gap: 12px;
    }

    .post-content {
        font-size: 1rem;
    }

    .related-posts .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner, .intro, .recent-blog {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        text-align: center;
    }
    
    .footer-logo .logo {
        margin: 0 auto 16px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Ensure there's proper spacing between and responsiveness */
@media (min-width: 992px) {
    .logo-container {
        margin-bottom: 0;
    }
    
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .banner .container {
        display: flex;
        align-items: center;
        gap: 48px;
    }
    
    .banner-content {
        flex: 1;
        margin-bottom: 0;
    }
    
    .banner-image {
        flex: 1;
    }
}