/* =========================
   BLOG PAGE FULL WIDTH
========================= */

body.blog .site.grid-container {
    max-width: 100% !important;
    width: 100% !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* remove default spacing */

body.blog .site-content,
body.blog .content-area,
body.blog .site-main,
body.blog .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}

/* =========================
   WRAPPER
========================= */

.blogpage-wrapper {
    width: 100%;
    overflow: hidden;
}

/* =========================
   BLOGPAGE HERO
========================= */

.blogpage-hero {
    position: relative;

    overflow: hidden;

    margin-bottom: 30px;

    background: #ffffff;
}

/* =========================
   TOP NAV
========================= */

.blogpage-topnav {
    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}

.blogpage-topnav-container {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    max-width: 1600px;

    margin: 0 auto;
    padding: 10px 16px;

    overflow-x: auto;

    scrollbar-width: none;
}

.blogpage-topnav-container::-webkit-scrollbar {
    display: none;
}

.blogpage-topnav-container a {
    white-space: nowrap;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    color: #475569;

    transition: color 0.3s ease;
}

.blogpage-topnav-container a:hover {
    color: #0070f3;
}

/* =========================
   SEARCH
========================= */

.blogpage-search-wrapper {
    padding: 10px 16px;

    background:
        linear-gradient(
            135deg,
            #1d9bf0 0%,
            #1e88e5 100%
        );
}

.blogpage-search-container {
    max-width: 1050px;
    margin: 0 auto;
}

.blogpage-search-form {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 8px;

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
}

.blogpage-search-form input {
    flex: 1;

    border: none;
    outline: none;

    padding: 10px 12px;

    background: transparent;

    font-size: 16px;

    color: #0f172a;
}

.blogpage-search-form input::placeholder {
    color: #94a3b8;
}

.blogpage-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    background: #0357a0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.blogpage-search-form button:hover {
    background: #000000;

    transform: translateY(-2px);
}

/* =========================
   HERO MAIN
========================= */

.blogpage-hero-main {
    position: relative;

    padding: 60px 24px 80px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #0f4c81 0%,
            #0b3a63 100%
        );

    clip-path: ellipse(85% 100% at 50% 0%);
}

/* =========================
   CONTAINER
========================= */

.blogpage-hero-container {
    position: relative;
    z-index: 2;

    max-width: 900px;

    margin: 0 auto;
}

/* =========================
   BREADCRUMB
========================= */

.blogpage-breadcrumb {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 16px;

    font-size: 15px;
    font-weight: 700;

    color: #dbeafe;
}

/* =========================
   TITLE
========================= */

.blogpage-hero-title {
    margin-bottom: 18px;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
}

/* =========================
   DESCRIPTION
========================= */

.blogpage-hero-description {
    max-width: 760px;

    margin: 0 auto;

    font-size: 18px;
    line-height: 1.8;

    color: #dbeafe;
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px) {

    .blogpage-topnav-container {
        justify-content: flex-start;
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    /*
    =========================
    HIDE TOP NAV
    =========================
    */

    .blogpage-topnav {
        display: none;
    }

    /*
    =========================
    SEARCH
    =========================
    */

    .blogpage-search-wrapper {
        padding: 12px 16px;
    }

    .blogpage-search-form {
        flex-direction: column;

        align-items: stretch;
    }

    .blogpage-search-form input {
        width: 100%;
    }

    .blogpage-search-form button {
        width: 100%;
    }

    /*
    =========================
    HERO
    =========================
    */

    .blogpage-hero-main {
        padding: 50px 20px 70px;
        clip-path: ellipse(120% 100% at 50% 0%);
    }

    .blogpage-breadcrumb {
        font-size: 14px;
    }

    .blogpage-hero-description {
        font-size: 16px;
        line-height: 1.7;
    }

}
/* =========================
   ADS SECTION
========================= */

.blogpage-ads {

    position: relative;
    margin-top: -20px;
    padding: 0 20px 10px;
    z-index: 5;
}

.blogpage-ads-container {
    max-width: 1050px;
    margin: 0 auto;
}

/* billboard */

.blogpage-ads-box {
    width: 100%;
    max-width: 970px;
    height: 90px;
    margin: 0 auto;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fafc 100%
        );

    border: 1px solid #e2e8f0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #64748b;

    font-size: 18px;
    font-weight: 700;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.08);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {

    .blogpage-ads-box {

        height: 180px;
    }
}

@media (max-width: 768px) {

    .blogpage-ads {

        margin-top: -40px;

        padding: 0 16px 30px;
    }

    .blogpage-ads-box {

        height: 120px;

        border-radius: 18px;

        font-size: 14px;
    }
}
/* =========================
   FEATURED MENU
========================= */

.featured-menu-section {
    position: relative;
    z-index: 20;
    margin-top: 5px;
    padding: 0 20px 30px;
    background:black;

}

.featured-menu-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    padding: 0 10px 20px 30px;
    gap: 14px;
}

/* CARD */

.featured-menu-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 10px 25px 0px 20px;
    margin-top:20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    border: 1px solid #e2e8f0;
}

.featured-menu-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.08);
}

/* IMAGE */

.featured-menu-image {
    width:120px;
    height: 30px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TITLE */

.featured-menu-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

/* MOBILE */

@media (max-width: 768px) {
    .featured-menu-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

}
/* =========================
   LATEST SECTION
========================= */

.latest-section {
    padding: 50px 20px;
    background: #f8fafc;
}

.latest-container {
    max-width: 1800px;
    margin: 0 auto;
}

/* =========================
   LAYOUT
========================= */

.latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;

    gap: 30px;
    align-items: start;
}

/* =========================
   POSTS WRAPPER
========================= */

.latest-posts-wrapper {
    min-width: 0;
}

/* =========================
   POSTS GRID
========================= */

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}

/* =========================
   CARD
========================= */

.latest-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid #e5e7eb;
    border-radius: 22px;

    background: #ffffff;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.latest-card:hover {
    transform: translateY(-6px);

    border-color: #0070f3;

    box-shadow:
        0 18px 40px rgba(0,0,0,0.08);
}

/* =========================
   THUMB
========================= */

.latest-thumb {
    display: block;

    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.latest-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform 0.5s ease;
}

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

/* =========================
   CONTENT
========================= */

.latest-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    padding: 24px;
}

/* =========================
   CATEGORY
========================= */
.latest-category {
    /* Mengubah sifat block menjadi inline agar lebar kotak otomatis 
       mengikuti panjang teks kategori */
    display: inline-flex;
    align-self: flex-start;

    margin-bottom: 16px;
    padding: 6px 12px;

    border-radius: 999px; /* Membuat sudut membulat sempurna seperti kapsul */

    background: #0044c4;

    font-size: 12px;
    font-weight: 700;
    line-height: 1; /* Menjaga teks tetap simetris di tengah secara vertikal */

    text-transform: uppercase;

    color: #ffffff;
    
    /* Proteksi tambahan agar teks tidak turun ke bawah jika ada spasi */
    white-space: nowrap; 
}


/* =========================
   TITLE
========================= */

.latest-title {
    margin: 0 0 14px;

    font-size: 24px;
    line-height: 1.35;
    font-weight: 800;
}

.latest-title a {
    color: #111827;
    text-decoration: none;

    transition: color 0.3s ease;
}

.latest-title a:hover {
    color: #0070f3;
}

/* =========================
   EXCERPT
========================= */

.latest-excerpt {
    margin-bottom: 20px;

    font-size: 15px;
    line-height: 1.8;

    color: #667085;
}

/* =========================
   READ MORE
========================= */

.latest-readmore {
    margin-top: auto;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    color: #0070f3;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.latest-readmore:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

/* =========================
   SIDEBAR
========================= */

.latest-sidebar {
    display: flex;
    flex-direction: column;

    gap: 24px;
}

/* =========================
   SIDEBAR ADS
========================= */

.latest-sidebar-ad {
    min-height: 280px;

    border-radius: 20px;

    background: #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   DESKTOP INLINE ADS
========================= */

.latest-inline-desktop-ad {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 280px;

    margin-top: 40px;

    border-radius: 24px;

    background: #e5e7eb;
}

/* =========================
   MOBILE INLINE ADS
========================= */

.mobile-inline-ad {
    display: none;
}

/* =========================
   PAGINATION
========================= */

.latest-pagination {
    display: flex;
    justify-content: center;

    margin-top: 50px;
}

.latest-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 46px;
    height: 46px;

    margin: 0 6px;
    padding: 0 16px;

    border-radius: 12px;
    border: 1px solid #e5e7eb;

    background: #ffffff;
    color: #111827;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.latest-pagination .page-numbers:hover {
    background: #0070f3;
    border-color: #0070f3;

    color: #ffffff;

    transform: translateY(-2px);
}

.latest-pagination .page-numbers.current {
    background: #0070f3;
    border-color: #0070f3;

    color: #ffffff;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1200px) {

    .latest-layout {
        grid-template-columns: 1fr;
    }

    .latest-sidebar {
        display: none;
    }

    .latest-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .latest-section {
        padding: 50px 16px;
    }

    .latest-posts-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .latest-content {
        padding: 20px;
    }

    .latest-title {
        font-size: 22px;
        line-height: 1.4;
    }

    .latest-excerpt {
        font-size: 14px;
        line-height: 1.7;
    }

    /*
    =========================
    MOBILE MOTION
    =========================
    */

    .latest-card {
        animation:
            mobileFadeUp 0.7s ease both;
    }

    .latest-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .latest-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .latest-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .latest-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    /*
    =========================
    MOBILE INLINE ADS
    =========================
    */

    .mobile-inline-ad {
        display: flex;

        align-items: center;
        justify-content: center;

        min-height: 280px;

        border-radius: 20px;

        background: #e5e7eb;
    }

    /*
    =========================
    HIDE DESKTOP INLINE ADS
    =========================
    */

    .latest-inline-desktop-ad {
        display: none;
    }

    /*
    =========================
    PAGINATION
    =========================
    */

    .latest-pagination {
        margin-top: 40px;

        flex-wrap: wrap;
        gap: 10px;
    }

    .latest-pagination .page-numbers {
        min-width: 42px;
        height: 42px;

        font-size: 14px;
    }

}

/* =========================
   MOBILE FADE UP
========================= */

@keyframes mobileFadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}
/* =========================
   PREFOOTER
========================= */

.blogpage-prefooter {

    position: relative;

    padding: 100px 24px;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #0b3a63 100%
        );

    overflow: hidden;
}

/* =========================
   CONTAINER
========================= */

.blogpage-prefooter-container {

    max-width: 1700px;

    margin: 0 auto;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 32px;

    padding: 80px 60px;

    backdrop-filter: blur(10px);
}

/* =========================
   CONTENT
========================= */

.blogpage-prefooter-content {

    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}

/* =========================
   BADGE
========================= */

.prefooter-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(59,130,246,0.15);

    color: #93c5fd;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 24px;
}

/* =========================
   TITLE
========================= */

.prefooter-title {

    font-size: clamp(38px, 5vw, 64px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -2px;

    color: #ffffff;

    margin-bottom: 24px;
}

/* =========================
   DESCRIPTION
========================= */

.prefooter-description {

    max-width: 760px;

    margin: 0 auto;

    font-size: 18px;

    line-height: 1.9;

    color: #cbd5e1;
}

/* =========================
   BUTTON
========================= */

.prefooter-actions {

    margin-top: 40px;
}

.prefooter-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 18px 34px;

    border-radius: 16px;

    background: #2563eb;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.prefooter-btn:hover {

    background: #1d4ed8;

    transform: translateY(-3px);
}

/* =========================
   TOPICS
========================= */

.prefooter-topics {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 14px;

    margin-top: 60px;
}

.prefooter-topics a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 22px;

    border-radius: 999px;

    background: rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.08);

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.prefooter-topics a:hover {

    background: #2563eb;

    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .blogpage-prefooter-container {

        padding: 60px 30px;
    }

    .prefooter-title {

        font-size: 42px;
    }
}

@media (max-width: 768px) {

    .blogpage-prefooter {

        padding: 70px 20px;
    }

    .blogpage-prefooter-container {

        border-radius: 24px;

        padding: 50px 24px;
    }

    .prefooter-title {

        font-size: 34px;
    }

    .prefooter-description {

        font-size: 16px;
    }

    .prefooter-topics {

        gap: 10px;
    }

    .prefooter-topics a {

        font-size: 14px;

        padding: 10px 18px;
    }
}