/*
 Theme Name:   MoneyLogiq Child
 Theme URI:    https://moneylogiq.id
 Description:  Tema kustom untuk MoneyLogiq
 Author:       Dera
 Author URI:   https://moneylogiq.id
 Template:     kadence
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         lightweight, custom
*/

/* === Mulai Kode CSS Kustom Anda === */

/* === GOOGLE FONT === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === CSS RESET & GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ... (LANJUTKAN DENGAN SEMUA KODE CSS LAINNYA YANG SAYA BERIKAN SEBELUMNYA) ... */
/* ... (body, .container, .header, .btn, .hero, .tools-grid, .footer, etc.) ... */
/* === GOOGLE FONT === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === CSS RESET & GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa; /* Latar belakang abu-abu sangat muda */
    color: #343a40; /* Warna teks utama */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

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

h1, h2, h3, h4, h5, h6 {
    color: #1e293b; /* Biru tua untuk judul */
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 20px;
}

a {
    color: #22c55e; /* Hijau dari logo Anda */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #16a34a;
}

ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* === HEADER / NAVIGASI === */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-link img {
    height: 40px;
}

.main-menu {
    list-style: none;
    display: none; /* Disembunyikan di mobile */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px; /* Tepat di bawah header */
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 0;
}

.main-menu.active {
    display: flex; /* Ditampilkan saat di-klik */
}

.main-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
}

.main-menu li:last-child {
    border-bottom: none;
}

.main-menu a {
    display: block;
    padding: 15px 20px;
    color: #343a40;
    font-weight: 500;
}

.main-menu a:hover {
    background-color: #f8f9fa;
    color: #22c55e;
}

.menu-toggle {
    display: block; /* Tampil di mobile */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1e293b;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #22c55e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #16a34a;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #22c55e;
    border: 2px solid #22c55e;
}

.btn-secondary:hover {
    background-color: #22c55e;
    color: #ffffff;
    transform: translateY(-2px);
}

/* === HERO (Homepage) === */
.hero {
    background-color: #ffffff;
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* === TOOLS (Homepage) === */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.tools-grid, .features-list {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 30px;
}

.tool-card, .feature-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.tool-card h3 {
    color: #8b5cf6; /* Ungu dari logo Anda */
    margin-bottom: 15px;
}

/* === CTA (Homepage) === */
.cta-blog {
    background-color: #1e293b;
    color: #ffffff;
    text-align: center;
    padding: 60px 0;
    border-radius: 10px;
    margin: 20px 0;
}

.cta-blog h2 {
    color: #ffffff;
}

/* === CONTENT PAGES (Tentang, Kontak, etc.) === */
.content-section {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* === CONTACT FORM === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
}

/* === FOOTER === */
.footer {
    background-color: #1e293b;
    color: #adb5bd;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #adb5bd;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copyright {
    font-size: 0.9rem;
}

/* === MEDIA QUERIES (Desktop - Mobile-First) === */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .menu-toggle {
        display: none; /* Sembunyikan hamburger di desktop */
    }

    .main-menu {
        display: flex;
        flex-direction: row;
        width: auto;
        position: static;
        box-shadow: none;
        background: none;
        padding: 0;
    }

    .main-menu li {
        width: auto;
        border-bottom: none;
    }

    .main-menu a {
        padding: 10px 15px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .tools-grid, .features-list {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di desktop */
    }

    .cta-blog {
        margin: 60px 0;
    }

    .content-section {
        padding: 40px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
}
/* === BLOG GRID STYLES === */
.blog-header {
    text-align: center;
    padding: 60px 0 40px;
    background-color: #f8f9fa;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blog-thumb-link {
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumb {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: #1e293b;
}

.blog-title a:hover {
    color: #22c55e;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #343a40;
    font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 Kolom di Desktop */
    }
}
/* === SINGLE POST STYLES === */
.single-post-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.post-title {
    font-size: 2.5rem; /* Judul besar */
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 20px;
}

.post-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
    object-fit: cover;
    max-height: 500px; /* Batasi tinggi agar tidak terlalu panjang */
}

/* Typography Konten Artikel */
.post-content {
    font-size: 1.1rem; /* Ukuran font nyaman baca */
    line-height: 1.8;
    color: #334155;
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
    color: #1e293b;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.5rem; }

.post-content p {
    margin-bottom: 25px;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.post-content blockquote {
    border-left: 4px solid #22c55e;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #4b5563;
    background: #f9fafb;
    padding: 20px;
    border-radius: 0 5px 5px 0;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .single-post-container {
        padding: 20px;
    }
    .post-title {
        font-size: 1.8rem;
    }
}