/**
 * Theme Name:      GeneratePress Child
 * Author:          Tom Usborne
 * Template:        generatepress
 * Text Domain:     generatepress-child
 */

/* ==========================================================================
   1. GLOBAL ELEMENTS (Tombol Playful)
   ========================================================================== */
button, .button, .wp-block-button__link, input[type="submit"] {
    background-color: #383464;
    color: #ffffff;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid #2b3a67;
    box-shadow: 0 5px 0 #2b3a67;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background-color: #ff9a8b;
    color: #ffffff;
    border-color: #e87a69;
    box-shadow: 0 2px 0 #e87a69;
    transform: translateY(3px);
}

/* ==========================================================================
   2. HEADER KAPSUL & SEARCH SALMON (KIDS FRIENDLY STYLE)
   ========================================================================== */
.ma-header-area { 
    width: 100%; 
    padding: 30px 20px; 
    background-color: transparent; 
    box-sizing: border-box; 
}

.ma-header-capsule { 
    max-width: 1200px; 
    margin: 0 auto; 
    background-color: #ffffff; 
    border-radius: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 6px 0 #e6e9f0; 
    padding-right: 0 !important; 
    overflow: hidden; 
}

.ma-logo-container { padding-left: 25px; } 
.ma-site-logo { max-width: 70px; display: block; }

.ma-manual-menu { 
    list-style: none; 
    display: flex; 
    margin: 0; 
    padding: 0; 
    align-items: center; 
}

.ma-manual-menu li { margin: 0 5px; } 

.ma-manual-menu a { 
    text-decoration: none; 
    color: #2b3a67; 
    font-weight: 700; 
    font-size: 16px; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    padding: 10px 22px; 
    border-radius: 50px; 
    transition: all 0.3s ease; 
}

.ma-manual-menu a:hover { 
    background-color: #ff9a8b; 
    color: #ffffff;            
    transform: translateY(-2px); 
}

.ma-dropdown-icon { font-size: 20px; line-height: 0; position: relative; top: 4px; }

.ma-search-container { 
    background-color: #ff9a8b; 
    padding: 25px 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
}

.ma-search-container:hover { background-color: #2b3a67; }
.ma-search-icon { color: #ffffff !important; font-size: 22px; display: flex; align-items: center; }

/* ==========================================================================
   3. ARCHIVE TITLE (CAPSULE)
   ========================================================================== */
.ma-page-header-v2 { width: 100%; padding: 50px 20px 20px 20px; text-align: center; box-sizing: border-box; }
.ma-header-content { 
    display: inline-block; 
    background-color: #ffffff; 
    padding: 15px 40px; 
    border-radius: 50px; 
    border: none; 
    box-shadow: 0 5px 0 #e6e9f0; 
}
.ma-label-top { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #ff9a8b; font-weight: 700; margin-bottom: 5px; }
.ma-main-title { font-size: 32px; color: #2b3a67; font-weight: 850; margin: 0; line-height: 1.2; }

/* ==========================================================================
   4. ARCHIVE GRID & BLUEY CARDS (STYLE HEADER - NO BORDER)
   ========================================================================== */
.blog .site-main, .archive .site-main, .search .site-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; width: 100%; }

.search .page-header, .archive .page-header, 
.blog .entry-header, .archive .entry-header, .search .entry-header,
.blog .entry-meta, .archive .entry-meta, .search .entry-meta,
.blog .entry-summary, .archive .entry-summary, .search .entry-summary,
.blog .entry-content, .archive .entry-content, .search .entry-content { display: none !important; }

.blog .post, .archive .post, .search .post { 
    background-color: #ffffff; 
    border-radius: 20px; 
    overflow: hidden; 
    margin-bottom: 0; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    transition: all 0.3s ease; 
    border: none; 
    box-shadow: 0 5px 0 #e6e9f0; 
}

.blog .post:hover, .archive .post:hover, .search .post:hover {
    transform: translateY(-3px); 
    box-shadow: 0 8px 0 #e6e9f0; 
}

.blog .post .inside-article, .archive .post .inside-article, .search .post .inside-article { padding: 0 !important; display: flex; flex-direction: column; height: 100%; }
.ma-card-thumbnail { width: 100%; line-height: 0; }
.ma-card-thumbnail img { width: 100%; height: 250px; object-fit: cover; display: block; border-radius: 20px 20px 0 0; }
.ma-card-content { background: #ffffff; padding: 25px 25px 35px 25px; flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; }
.ma-cat-label { 
    margin-bottom: 15px; 
}

.ma-cat-label a { 
    background-color: #383464; /* Warna Indigo yang tegas */
    color: #ffffff; 
    padding: 6px 18px; 
    border-radius: 50px; 
    font-size: 14px; 
    font-weight: 800; 
    text-decoration: none; 
    display: inline-block; 
    transition: all 0.2s ease; 
    border: none;
    box-shadow: 0 4px 0 #1f1d38; /* Bayangan Indigo yang lebih gelap */
}

.ma-cat-label a:hover { 
    background-color: #ff9a8b; /* Tetap Salmon ceria saat disentuh */
    color: #ffffff; 
    box-shadow: 0 1px 0 #c96b5e; 
    transform: translateY(3px); 
}
.ma-card-title { font-size: 24px; color: #575475; font-weight: 800; margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
.ma-card-title a { color: #575475; text-decoration: none; transition: color 0.3s ease; }
.ma-card-title a:hover { color: #ff9a8b; }

/* ==========================================================================
   5. PAGINATION (CENTERED)
   ========================================================================== */
.ma-pagination-container { grid-column: 1 / -1; width: 100%; display: flex; justify-content: center; align-items: center; margin: 60px 0; clear: both; }
.ma-pagination-container .navigation.pagination, .ma-pagination-container .nav-links { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.ma-pagination-container .page-numbers { 
    display: inline-flex; align-items: center; justify-content: center; 
    min-width: 45px; height: 45px; padding: 0 15px; 
    background: #f4fbfb; color: #383464; text-decoration: none; 
    font-weight: 800; border-radius: 50px; margin: 0 5px; 
    transition: all 0.2s ease;
    border: 2px solid #e6e9f0;
    box-shadow: 0 4px 0 #e6e9f0;
}
.ma-pagination-container .page-numbers.current { 
    background: #383464; color: #ffffff; 
    border-color: #2b3a67;
    box-shadow: 0 4px 0 #2b3a67;
}
.ma-pagination-container .page-numbers:hover:not(.current) { 
    background: #ff9a8b; color: #ffffff; 
    border-color: #e87a69;
    box-shadow: 0 2px 0 #e87a69; 
    transform: translateY(2px); 
}

/* ==========================================================================
   6. FOOTER KOTAK & AWAN (GRID 40:30:30)
   ========================================================================== */
.ma-footer-area { background-color: #fbf8f1; position: relative; padding-top: 120px; }
.ma-footer-clouds { position: absolute; top: 0; left: 0; width: 100%; height: 150px; background-image: url('URL_GAMBAR_AWAN_KAMU.png'); background-repeat: repeat-x; background-position: top center; z-index: 1; }
.ma-footer-wrapper { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; padding: 0 20px 40px 20px; }

.ma-footer-box { 
    background-color: #ffffff; 
    border-radius: 30px; 
    padding: 60px 50px; 
    display: grid; 
    grid-template-columns: 4fr 3fr 3fr; 
    gap: 50px; 
    align-items: start; 
    border: none;
    box-shadow: 0 8px 0 #e6e9f0; 
}
.logo-column p { max-width: 90%; }

.ma-widget-title { color: #2b3a67; margin-bottom: 25px; font-size: 18px; font-weight: 800; }
.ma-footer-widget ul { list-style: none; padding: 0; margin: 0; }
.ma-footer-widget ul li { margin-bottom: 12px; }
.ma-footer-widget a { color: #4a4e69; text-decoration: none; transition: 0.3s; font-weight: 500; }
.ma-footer-widget a:hover { color: #ff9a8b; }
.ma-footer-widget p { color: #4a4e69; line-height: 1.7; font-size: 15px; }
.ma-footer-copyright { text-align: center; padding: 25px 0; color: #888888; border-top: 1px solid #eeeeee; margin-top: 20px; }

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES (MOBILE)
   ========================================================================== */
@media only screen and (max-width: 900px) {
    .ma-header-area { padding: 15px 10px; }
    .ma-header-capsule { border-radius: 40px; padding-right: 0 !important; }
    .ma-logo-container { padding-left: 15px; } .ma-site-logo { max-width: 60px; }
    .ma-nav-container { display: none; }
    .ma-search-container { padding: 15px 25px; border-radius: 0 40px 40px 0; }
    
    .blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: 1fr; gap: 25px; padding: 0 15px; }
    .ma-card-thumbnail img { height: 200px; } .ma-card-title { font-size: 22px; }
    
    .ma-footer-area { padding-top: 80px; }
    .ma-footer-box { grid-template-columns: 1fr; padding: 40px 30px; gap: 40px; text-align: center; }
    .logo-column p { max-width: 100%; } .ma-footer-widget img { margin: 0 auto; }
}

@media only screen and (max-width: 768px) {
    .ma-page-header-v2 { padding: 30px 15px 10px 15px; }
    .ma-header-content { padding: 10px 25px; width: 100%; box-sizing: border-box; border-radius: 30px; }
    .ma-main-title { font-size: 24px; }
    
    .ma-search-field { font-size: 24px; } .ma-close-search { top: 20px; right: 25px; font-size: 45px; }
    .ma-pagination-container { margin: 40px 0; }
    .ma-pagination-container .page-numbers { min-width: 40px; height: 40px; font-size: 14px; padding: 0 10px; }
}

/* ==========================================================================
   8. SEARCH OVERLAY (YANG SEMPAT HILANG)
   ========================================================================== */
.ma-search-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ma-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ma-close-search {
    position: absolute;
    top: 30px; right: 40px;
    font-size: 60px;
    color: #2b3a67;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.ma-close-search:hover { color: #ff9a8b; }
.ma-search-inner { width: 80%; max-width: 700px; }
.ma-search-form { display: flex; border-bottom: 3px solid #2b3a67; padding-bottom: 5px; }
.ma-search-field { width: 100%; border: none; background: transparent; font-size: 32px; color: #2b3a67; outline: none; }
.ma-search-field::placeholder { color: #cccccc; }
.ma-search-submit { background: transparent; border: none; font-size: 24px; color: #2b3a67; cursor: pointer; font-weight: 600; }
/* ==========================================================================
   9. SINGLE POST (HEADER, CONTENT, RELATED, & SEARCH)
   ========================================================================== */
/* Header & Judul Artikel */
.ma-single-header { text-align: center; margin-bottom: 50px; padding-top: 20px; }
.ma-single-title { font-size: 42px; color: #2b3a67; font-weight: 850; margin-bottom: 25px; line-height: 1.2; }

/* Breadcrumbs Kancing */
.ma-single-breadcrumbs { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.ma-btn-breadcrumb { background-color: #383464; color: #ffffff; padding: 8px 25px; border-radius: 50px; font-size: 14px; font-weight: 700; text-decoration: none; border: none; box-shadow: 0 4px 0 #2b3a67; transition: all 0.2s ease; }
.ma-btn-breadcrumb:hover { background-color: #ff9a8b; color: #ffffff; box-shadow: 0 2px 0 #e87a69; transform: translateY(2px); }

/* Bingkai Putih Gambar Utama */
.ma-single-image-frame { background-color: #ffffff; padding: 15px; border-radius: 30px; box-shadow: 0 8px 0 #e6e9f0; max-width: 1000px; margin: 0 auto; }
.ma-single-image-frame img { width: 100%; height: auto; border-radius: 15px; display: block; }

/* REVISI: Area Konten Menjorok ke Dalam (Sempit & Terpusat) */
.single .inside-article .entry-content {
    max-width: 750px !important; /* Dipersempit (sebelumnya 750px) agar sangat menjorok */
    margin: 100px auto 80px auto !important; /* Jarak atas dijauhkan jadi 100px */
    font-size: 18px;
    line-height: 1.8;
    color: #4a4e69;
}
.single .inside-article .entry-content h2,
.single .inside-article .entry-content h3 { color: #2b3a67; font-weight: 800; margin-top: 40px; }

/* Related Posts (2 Kolom) */
.ma-related-section { margin-top: 80px; padding-top: 60px; border-top: 4px dashed #e6e9f0; }
.ma-related-title { text-align: center; font-size: 32px; color: #2b3a67; font-weight: 850; margin-bottom: 40px; }
.ma-related-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }

.ma-related-card { background-color: #ffffff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: all 0.3s ease; border: none; box-shadow: 0 5px 0 #e6e9f0; }
.ma-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #e6e9f0; }

/* CTA Button Kategori */
.ma-related-cta { text-align: center; margin-top: 40px; }
.ma-btn-primary { 
    background-color: #383464; /* Warna Indigo yang tegas */
    color: #ffffff; 
    border-radius: 50px; 
    padding: 15px 40px; 
    font-weight: 800; 
    font-size: 18px; 
    text-decoration: none; 
    display: inline-block; 
    transition: all 0.2s ease; 
    border: none; 
    box-shadow: 0 5px 0 #1f1d38; /* Bayangan Indigo yang lebih gelap */
}

.ma-btn-primary:hover { 
    background-color: #ff9a8b; /* Tetap Salmon ceria saat disentuh */
    color: #ffffff; 
    box-shadow: 0 2px 0 #c96b5e; 
    transform: translateY(3px); 
}

/* Bagian Bottom Search (Kapsul Pencarian Bawah) */
.ma-bottom-search-section { background-color: #fbf8f1; padding: 60px 20px; border-radius: 40px; margin-top: 80px; text-align: center; box-shadow: 0 6px 0 #e6e9f0; }
.ma-search-title { font-size: 28px; color: #2b3a67; font-weight: 850; margin-bottom: 30px; }
.ma-bottom-search-form { 
    display: flex; 
    max-width: 600px; 
    margin: 0 auto; 
    background-color: #ffffff; 
    border-radius: 50px; 
    padding: 8px; 
    /* Tambahan border dan shadow agar bentuknya tegas seperti mainan 3D */
    border: 2px solid #e6e9f0; 
    box-shadow: 0 5px 0 #e6e9f0; 
    align-items: center; /* Memastikan isinya sejajar */
}

.ma-bottom-search-field { 
    flex-grow: 1; 
    /* Paksa matikan gaya kaku bawaan WordPress/GeneratePress */
    border: none !important; 
    background: transparent !important; 
    box-shadow: none !important; 
    padding: 10px 25px; 
    font-size: 18px; 
    color: #2b3a67; 
    outline: none; 
}
.ma-bottom-search-submit { background-color: #ff9a8b; color: #ffffff; border: none; border-radius: 40px; padding: 12px 30px; font-weight: 800; font-size: 16px; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 0 #e87a69; }
.ma-bottom-search-submit:hover { background-color: #2b3a67; box-shadow: 0 2px 0 #2b0b2c; transform: translateY(2px); }

/* Responsif HP untuk Single Post */
@media only screen and (max-width: 768px) {
    .ma-single-title { font-size: 28px; }
    .ma-single-image-frame { padding: 10px; border-radius: 20px; }
    .single .inside-article .entry-content { padding: 0 15px !important; margin: 40px auto !important; }
    .ma-related-title { font-size: 24px; }
    .ma-related-grid-2 { grid-template-columns: 1fr; }
    
    .ma-bottom-search-form { flex-direction: column; border-radius: 25px; padding: 15px; }
    .ma-bottom-search-submit { width: 100%; margin-top: 10px; }
}
/* ==========================================================================
   10. BACK TO TOP (INDIGO 3D STYLE)
   ========================================================================== */
.generate-back-to-top, 
.generate-back-to-top:visited {
    background-color: #383464; /* Indigo */
    color: #ffffff;
    border-radius: 50px; /* Bentuk kapsul/lingkaran */
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    
    /* Efek 3D Kancing */
    border: none;
    box-shadow: 0 5px 0 #1f1d38; 
    
    /* Posisi sedikit lebih naik agar tidak menempel di pojok */
    bottom: 40px;
    right: 40px;
    transition: all 0.2s ease;
    z-index: 100;
}

.generate-back-to-top:hover, 
.generate-back-to-top:focus {
    background-color: #ff9a8b; /* Salmon saat hover */
    color: #ffffff;
    box-shadow: 0 2px 0 #c96b5e; /* Bayangan mengecil seolah ditekan */
    transform: translateY(3px); /* Turun sedikit */
}

/* Memastikan ikon panah di dalamnya berada di tengah */
.generate-back-to-top i {
    position: relative;
    top: -2px; 
}
/* ================================================================
   LAZYBLOCK SETTING
   ================================================================ */
/* Container Utama */
.ma-pdf-horizontal-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

/* Card: Model Horizontal (Desktop) */
.ma-pdf-card-horizontal {
    display: flex;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
    min-height: 220px;
}

/* Kolom Kiri: Area Gambar */
.ma-pdf-col-image {
    flex: 0 0 35%; /* Lebar area warna 35% */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ma-pdf-frame-bluey {
    width: 80%;
    background: #fff;
    padding: 10px;
    transform: rotate(-3deg); /* Efek miring khas Bluey */
    box-shadow: 5px 5px 0 rgba(0,0,0,0.05);
}

.ma-pdf-frame-bluey img {
    width: 100%;
    height: auto;
    display: block;
    border: none !important; /* Tanpa border sesuai instruksi kamu */
}

/* Kolom Kanan: Area Teks */
.ma-pdf-col-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.ma-pdf-text-title {
    font-family: 'Comfortaa', cursive;
    font-weight: 800;
    font-size: 20px;
    color: #383464;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.ma-pdf-text-caption {
    font-family: 'Comfortaa', cursive;
    font-size: 15px;
    color: #4a4e69;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.ma-pdf-button-download {
    background: #43a047; /* Hijau Segar agar menonjol dari Indigo theme */
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
    /* Efek 3D Hijau Tua agar konsisten dengan gaya Bluey */
    box-shadow: 0 5px 0 #2e7031; 
    transition: all 0.2s ease;
    text-transform: uppercase;
    display: inline-block;
    font-family: 'Comfortaa', cursive;
}

/* Efek saat tombol disentuh (Hover) */
.ma-pdf-button-download:hover {
    background: #ff914d; /* Berubah jadi Orange saat hover agar sangat mencolok */
    box-shadow: 0 2px 0 #cc743d; /* Bayangan mengecil saat ditekan */
    transform: translateY(3px); /* Efek seperti tombol ditekan nyata */
    color: #fff !important;
}

/* RESPONSIVE: Mobile Mode (Tumpuk) */
@media (max-width: 768px) {
    .ma-pdf-card-horizontal {
        flex-direction: column; /* Gambar di atas, teks di bawah */
    }
    
    .ma-pdf-col-image {
        width: 100%;
        padding: 35px;
    }
    
    .ma-pdf-col-content {
        padding: 25px;
        text-align: center;
        align-items: center;
    }

    .ma-pdf-text-title { font-size: 18px; }
}