/* === GLOBAL RESET & BASE STYLES === */
:root {
    --primary-color: #10B981;          /* Emerald Green */
    --secondary-color: #065F46;        /* Deep Teal */
    --light-text-color: #F0FDF4;       /* Minty Light */
    --dark-text-color: #064E3B;        /* Dark Emerald */
    --meta-text-color: #6B7280;        /* Neutral Gray */
    --body-bg-color: #ECFDF5;          /* Light Mint Background */
    --content-bg-color: #FFFFFF;       /* White */
    --header-bg-color: #047857;        /* Jade Green */
    --footer-bg-color: #1E293B;        /* Midnight Slate */
    --footer-text-color: #E5E7EB;      /* Soft Gray */
    --border-color-light: #D1FAE5;     /* Light Green Border */
    --border-color-medium: #A7F3D0;    /* Medium Mint Border */
    --warning-color: #F59E0B;          /* Golden Amber */
    --warning-hover-color: #D97706;    /* Darker Gold Amber */

    --font-main: 'Poppins', sans-serif;
    --base-font-size: 16px;
    --line-height-base: 1.6;

    --container-width: 84%;
    --container-max-width: 1200px;
    --spacing-unit: 1rem;
}






html {
    box-sizing: border-box;
    font-size: var(--base-font-size);
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: var(--line-height-base);
    background-color: var(--body-bg-color);
    color: var(--dark-text-color);
}

.container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--spacing-unit) * 1.25); /* 20px */
    padding-right: calc(var(--spacing-unit) * 1.25);
    overflow: hidden; /* To contain floats if any, or collapsing margins */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes extra space below image */
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

ul, ol {
    padding-left: calc(var(--spacing-unit) * 1.25); /* 20px */
    margin-bottom: var(--spacing-unit);
}
li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}


/* === HEADER === */
.blog-header {
    background-color: var(--header-bg-color);
    color: var(--light-text-color);
    padding: var(--spacing-unit) 0;
    border-bottom: var(--primary-color) 3px solid;
}

.blog-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-header .logo h1 {
    margin: 0;
    font-size: 1.8rem; /* Adjust as needed */
}
.blog-header .logo a {
    color: var(--light-text-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-nav ul li {
    display: inline;
    margin-left: calc(var(--spacing-unit) * 1.25); /* 20px */
}
.main-nav ul li a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: bold;
}
.main-nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none; /* Optional: remove underline on hover for nav */
}

.search-container input[type="search"] {
    padding: calc(var(--spacing-unit) * 0.5); /* 8px */
    border: none;
    border-radius: 3px;
    margin-right: calc(var(--spacing-unit) * 0.25); /* 4px */
}
.search-container button {
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 0.75); /* 8px 12px */
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.search-container button:hover {
    background-color: darken(var(--primary-color), 10%);
}


/* === MAIN CONTENT AREA === */
.main-content {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.875); /* 30px */
    margin-top: calc(var(--spacing-unit) * 1.25); /* 20px */
    margin-bottom: calc(var(--spacing-unit) * 1.25);
}

.content-area {
    flex: 3;
}

.sidebar {
    flex: 1;
    background-color: var(--content-bg-color);
    padding: calc(var(--spacing-unit) * 1.25); /* 20px */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    align-self: flex-start; /* Prevents sidebar from stretching if content is short */
}

/* === BLOG POST STYLING === */
.blog-post {
    background-color: var(--content-bg-color);
    padding: calc(var(--spacing-unit) * 1.25); /* 20px */
    margin-bottom: calc(var(--spacing-unit) * 1.25);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.post-header h1 {
    color: var(--dark-text-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 2rem; /* Example size */
}

.post-meta {
    font-size: 0.9em;
    color: var(--meta-text-color);
    margin-bottom: var(--spacing-unit);
}
.post-meta a {
    color: var(--primary-color);
    text-decoration: none;
}
.post-meta a:hover {
    text-decoration: underline;
}

.post-thumbnail img {
    border-radius: 5px;
    margin-bottom: var(--spacing-unit);
    width: 100%; /* Ensure it spans the container */
}
.post-thumbnail figcaption {
    font-size: 0.8em;
    color: var(--meta-text-color);
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 0.25);
}

.post-content {
    margin-top: var(--spacing-unit);
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--secondary-color);
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    line-height: 1.3;
}
.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.4rem; }
/* Add h4-h6 if needed */

.post-content p {
    margin-bottom: var(--spacing-unit);
}
.post-content ul, .post-content ol {
    margin-left: calc(var(--spacing-unit) * 1.25); /* Indent lists within content */
}
.post-content strong {
    font-weight: 700; /* Roboto bold */
}

.post-content blockquote {
    border-left: 5px solid var(--primary-color);
    margin: calc(var(--spacing-unit) * 1.5) var(--spacing-unit);
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    background-color: #f9f9f9;
}
.post-content blockquote p {
    font-style: italic;
    margin-bottom: 0; /* Usually only one p in blockquote */
}
.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* If you have a footer for each post (e.g., tags, share buttons) */
.post-footer {
    margin-top: calc(var(--spacing-unit) * 1.25);
    padding-top: var(--spacing-unit);
    border-top: 1px solid var(--border-color-light);
    font-size: 0.9em;
}
/* .tags a, .share-buttons a styling can go here if you add them */


/* === COMMENTS SECTION === */
.comments-section {
    margin-top: calc(var(--spacing-unit) * 1.875); /* 30px */
}
.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-unit);
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: calc(var(--spacing-unit) * 0.5);
}

.comment-form label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.3); /* 5px */
    font-weight: bold;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 0.625); /* 10px */
    margin-bottom: var(--spacing-unit);
    border: 1px solid var(--border-color-medium);
    border-radius: 3px;
    font-family: var(--font-main);
}
.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}
.comment-form button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: calc(var(--spacing-unit) * 0.625) var(--spacing-unit); /* 10px 15px */
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}
.comment-form button:hover {
    background-color: darken(var(--primary-color), 10%);
}

.comment-list .comment {
    border-bottom: 1px solid var(--border-color-light);
    padding: var(--spacing-unit) 0;
}
.comment-list .comment:last-child {
    border-bottom: none;
}
.comment-list .comment strong {
    color: var(--dark-text-color);
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}
.comment-list .comment span { /* Timestamp */
    font-size: 0.8em;
    color: var(--meta-text-color);
    display: block;
    margin-top: calc(var(--spacing-unit) * 0.25);
}
.comment-list .comment p {
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}

/* === SIDEBAR WIDGETS === */
.widget {
    margin-bottom: calc(var(--spacing-unit) * 1.5); /* 25px */
    padding: var(--spacing-unit); /* 15px */
    background-color: #fdfdfd; /* Slightly different from sidebar's main bg if desired */
    border: 1px solid var(--border-color-light);
    border-radius: 4px;
}
.widget:last-child {
    margin-bottom: 0;
}

.widget h2, .widget h3 { /* Widget titles */
    margin-top: 0;
    color: var(--dark-text-color);
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: calc(var(--spacing-unit) * 0.625); /* 10px */
    margin-bottom: calc(var(--spacing-unit) * 0.625);
    font-size: 1.2em;
}

.widget ul {
    list-style: none;
    padding: 0;
}
.widget ul li {
    margin-bottom: calc(var(--spacing-unit) * 0.5); /* 8px */
    padding-bottom: calc(var(--spacing-unit) * 0.5);
    border-bottom: 1px dashed var(--border-color-light);
}
.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.widget ul li a {
    text-decoration: none;
    color: var(--primary-color);
    display: block; /* Make the whole li area clickable */
}
.widget ul li a:hover {
    text-decoration: underline;
}

.responsible-gambling-notice p {
    margin-bottom: calc(var(--spacing-unit) * 0.625); /* 10px */
}
.responsible-gambling-notice .cta-button {
    display: inline-block;
    margin-top: calc(var(--spacing-unit) * 0.625);
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit); /* 8px 15px */
    background-color: var(--warning-color);
    color: var(--light-text-color);
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    text-align: center;
}
.responsible-gambling-notice .cta-button:hover {
    background-color: var(--warning-hover-color);
    text-decoration: none;
}

.recommended-site-widget .recommended-links a {
    display: block;
    padding: calc(var(--spacing-unit) * 0.3) 0; /* 5px */
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--border-color-light);
}
.recommended-site-widget .recommended-links a:last-child {
    border-bottom: none;
}
.recommended-site-widget .recommended-links a:hover {
    text-decoration: underline;
}

/* === FOOTER === */
.blog-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: calc(var(--spacing-unit) * 2.5) 0 calc(var(--spacing-unit) * 1.25); /* 40px 0 20px */
    margin-top: calc(var(--spacing-unit) * 1.875); /* 30px */
    font-size: 0.9em;
}
.footer-widgets {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 1.25); /* 20px */
    margin-bottom: calc(var(--spacing-unit) * 1.875); /* 30px */
    flex-wrap: wrap;
}
.footer-widget {
    flex: 1; /* Distribute space */
    min-width: 250px; /* Minimum width before wrapping */
    margin-bottom: var(--spacing-unit); /* Space when wrapped */
}
.footer-widget h4 {
    color: var(--light-text-color);
    margin-bottom: var(--spacing-unit); /* 15px */
    border-bottom: 1px solid #555; /* Darker border for footer */
    padding-bottom: calc(var(--spacing-unit) * 0.625); /* 10px */
    font-size: 1.1em;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
}
.footer-widget ul li {
    border-bottom: none; /* Remove default widget li border */
    padding-bottom: calc(var(--spacing-unit) * 0.25);
}
.footer-widget ul li a {
    color: var(--footer-text-color);
    text-decoration: none;
    line-height: 1.8;
}
.footer-widget ul li a:hover {
    color: var(--light-text-color);
    text-decoration: underline;
}
.footer-widget p {
    line-height: 1.7;
}
.footer-widget > a { /* "Baca Lebih Lanjut" link */
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    margin-top: calc(var(--spacing-unit) * 0.5);
}
.footer-widget > a:hover {
    color: var(--light-text-color);
}

/* Specific for the scrollable Reccomend Site in footer */
.footer-widget .scrollable-list-container {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #444; /* Darker border for footer */
    padding: var(--spacing-unit);
    border-radius: 8px;
    background-color: rgba(0,0,0,0.1); /* Slightly different background */
}
.footer-widget .scrollable-list-container ul {
    margin: 0; /* Reset margin for ul inside this container */
}
.footer-widget .scrollable-list-container ul li a {
    color: var(--footer-text-color); /* Ensure links inherit footer text color */
}
.footer-widget .scrollable-list-container ul li a:hover {
    color: var(--light-text-color);
}


.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 1.25); /* 20px */
    border-top: 1px solid #444;
}
.footer-bottom .disclaimer {
    margin-top: var(--spacing-unit);
    font-size: 0.8em;
    color: #aaa;
}
.footer-bottom .disclaimer strong {
    color: #ccc;
}



/* === RESPONSIVENESS === */
@media (max-width: 992px) { /* Larger tablets, small laptops */
    .container {
        width: 90%;
    }
}

@media (max-width: 768px) { /* Tablets and below */
    .container {
        width: 95%;
    }
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        margin-top: calc(var(--spacing-unit) * 1.25);
    }

    .blog-header .container {
        flex-direction: column;
        text-align: center;
    }
    .blog-header .logo {
        margin-bottom: var(--spacing-unit);
    }
    .main-nav {
        width: 100%;
        margin-bottom: var(--spacing-unit);
    }
    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .main-nav ul li {
        display: block;
        margin: calc(var(--spacing-unit) * 0.625) 0; /* 10px 0 */
        margin-left: 0; /* Reset inline margin */
    }
    .search-container {
        margin-top: var(--spacing-unit);
        width: 100%;
        display: flex;
    }
    .search-container input[type="search"]{
        flex-grow: 1;
    }

    .footer-widgets {
        flex-direction: column;
        text-align: left; /* Or center if you prefer for mobile */
    }
    .footer-widget {
        margin-bottom: calc(var(--spacing-unit) * 1.25); /* 20px */
        min-width: 100%; /* Full width on mobile */
    }
}

@media (max-width: 480px) { /* Small mobile devices */
    .post-header h1 {
        font-size: 1.7rem;
    }
    .post-content h2 {
        font-size: 1.4rem;
    }
    .search-container {
        flex-direction: column;
    }
    .search-container input[type="search"] {
        margin-right: 0;
        margin-bottom: calc(var(--spacing-unit) * 0.5);
    }
    .search-container button {
        width: 100%;
    }
}