/* ===========================
   FAIZAL RAHMAN THEME STYLE
   Modern, Minimalist, Responsive
=========================== */

/* BASIC */
body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background: #ffffff;
    color: #222;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo .text-logo {
    font-size: 22px;
    font-weight: 700;
}

/* NAV */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: .3s;
}

.nav-menu li a:hover {
    color: #0073ff;
}

/* MOBILE NAV */
.mobile-menu-toggle {
    display: none;
    font-size: 25px;
    background: none;
    border: none;
}

/* SHOW MOBILE TOGGLE ONLY ON MOBILE */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }
}

/* =======================
   MOBILE OFF-CANVAS MENU
======================= */

/* default: jangan tampil di desktop */
.mobile-menu,
.mobile-overlay {
    display: none;
}

/* HANYA di mobile */
@media (max-width: 768px) {

    /* sembunyikan menu desktop, tampilkan tombol */
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(6px);
        background: rgba(0, 0, 0, 0.4);
        z-index: 900;
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 60%;
        max-width: 320px;
        height: 100%;
        background: #ffffff;
        z-index: 1000;
        padding: 40px 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transform: translateX(-100%);      /* parkir di luar layar */
        transition: transform 0.35s ease;   /* animasi slide */
        display: block;
    }

    .mobile-menu.active {
        transform: translateX(0);           /* slide masuk */
    }

    .mobile-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-menu li {
        margin-bottom: 15px;
    }

    .mobile-nav-menu a {
        text-decoration: none;
        color: #222;
        font-size: 18px;
        font-weight: 600;
    }
}


/* FOOTER */
.site-footer {
    text-align: center;
    padding: 40px 0;
    background: #fafafa;
    margin-top: 50px;
    font-size: 14px;
}


/* =======================
   BLOG GRID
======================= */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: .3s;
}

.post-card:hover {
    border-color: #0073ff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.post-card img {
    width: 100%;
    display: block;
}

.post-content {
    padding: 15px 20px 25px;
}

.post-title {
    margin: 0 0 10px;
    font-size: 20px;
}

.post-title a {
    text-decoration: none;
    color: #222;
}

.post-title a:hover {
    color: #0073ff;
}

.post-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}


/* =======================
   SINGLE POST STYLE
======================= */

.single-container {
    max-width: 780px;
    margin: 50px auto;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
}

.single-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.single-meta {
    color: #555;
    font-size: 15px;
    margin-bottom: 25px;
}

.single-thumbnail img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.single-content {
    font-size: 17px;
    line-height: 1.8;
    color: #222;
}

.single-content p {
    margin-bottom: 20px;
}

/* Navigasi post */
.single-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.single-navigation a {
    text-decoration: none;
    color: #0073ff;
    font-weight: 600;
}

.single-navigation a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) { 
    .single-title {
        font-size: 26px;
    }
    .single-container {
        margin: 30px auto;
    }
}


/* =======================
   PAGE TEMPLATE STYLE
======================= */

.page-container {
    max-width: 900px;
    margin: 50px auto;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-content {
    font-size: 17px;
    line-height: 1.8;
    color: #222;
}

.page-content p {
    margin-bottom: 20px;
}

/* Elementor compatibility */
.elementor-page .site-header,
.elementor-page .site-footer {
    width: 100%;
}


/* =======================
   FULL WIDTH TEMPLATE
======================= */

.fullwidth-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.page-template-template-fullwidth .container {
    max-width: 100%;
    padding: 0;
}


/* =======================
   WOOCOMMERCE SHOP GRID
======================= */

.shop-title {
    margin-top: 40px;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-grid .product {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: .3s;
}

.product-grid .product:hover {
    border-color: #0073ff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.product-grid img {
    width: 100%;
    border-radius: 5px;
}

.product-grid .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

.product-grid .price {
    color: #0073ff;
    font-weight: bold;
}

/* =======================
   SINGLE PRODUCT
======================= */

.single-product-container {
    margin-top: 40px;
}

.single-product .product_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.single-product .price {
    font-size: 24px;
    color: #0073ff;
    font-weight: bold;
    margin-bottom: 20px;
}

/* ==============================
   HOMEPAGE STYLE
============================== */

/* HERO */
.hero {
    padding: 120px 0;
    text-align: center;
    background: #f5f7fa;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.hero-button {
    padding: 14px 28px;
    background: #0073ff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    transition: .3s;
}

.hero-button:hover {
    background: #005fd4;
}

/* SECTION */
.homepage-section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 700;
}

/* CTA */
.cta-section {
    background: #0073ff;
    text-align: center;
    padding: 80px 0;
    color: white;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.cta-button {
    background: #fff;
    color: #0073ff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.cta-button:hover {
    background: #e6e6e6;
}

/* POST GRID (reuse existing style) */
.homepage-section .post-grid {
    margin-top: 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-btn {
    background: #0073ff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
}

.logo-center {
    flex: 1;
    text-align: center;
}

.logo {
    margin-right: auto;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}


@media (max-width: 768px) {
    .custom-logo {
        max-height: 40px;
    }
    .header-btn {
        display: none !important;
    }    
}
/* =====================================
   HEADER LAYOUT: FAIZAL DEFAULT
===================================== */

.header-inner.faizal-default {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-inner.faizal-default .main-nav {
    margin-left: auto;
    margin-right: 20px;
}

.header-inner.faizal-default .header-btn-wrapper {
    margin-left: 10px;
}

/* Wrap menu + button in one flex container */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: block;
    background: #007bff;
    color: white;
    padding: 14px 20px;
    margin: 20px 20px 20px 0px;;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.mobile-menu-btn:hover {
    background: #0066d6;
}
