/*
Theme Name: MRKhabri Fast
Theme URI: https://mrkhabri.com/
Description: Fast, clean and AdSense-friendly GeneratePress Child Theme for MRKhabri.
Author: MRKhabri
Version: 4.0
Template: generatepress
Text Domain: mrkhabri-fast
*/

/* =========================================================
   COLOR SYSTEM
========================================================= */

:root {
    --mrk-orange: #ff6a06;
    --mrk-green: #5ec92a;
    --mrk-dark: #202020;
    --mrk-text: #333333;
    --mrk-muted: #777777;
    --mrk-border: #e8e8e8;
    --mrk-light: #f7f8f9;
    --mrk-white: #ffffff;
}


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: #f6f7f8;
    color: var(--mrk-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--mrk-orange);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--mrk-green);
}


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

.site.grid-container {
    max-width: 1200px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--mrk-border);
    z-index: 1000;
}

.inside-header {
    position: relative;
    padding: 20px 25px;
}


/* =========================================================
   LOGO
========================================================= */

.site-branding .main-title,
.site-branding .main-title a {
    color: var(--mrk-orange);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.site-branding .main-title a:hover {
    color: var(--mrk-green);
}

.site-description {
    color: var(--mrk-muted);
    font-size: 13px;
}


/* =========================================================
   SEARCH - DESKTOP
========================================================= */

.mrk-header-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
}

.mrk-search-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: var(--mrk-orange);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}

.mrk-search-toggle:hover {
    background: var(--mrk-green);
    color: #fff;
    transform: scale(1.05);
}


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

.mrk-search-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    width: 330px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--mrk-border);
    border-top: 3px solid var(--mrk-green);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.14);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.mrk-search-dropdown.mrk-search-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mrk-search-dropdown form {
    display: flex;
    width: 100%;
    margin: 0;
}

.mrk-search-dropdown input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #fff;
    color: #222;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.mrk-search-dropdown input:focus {
    border-color: var(--mrk-green);
}

.mrk-search-dropdown button {
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: var(--mrk-green);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.mrk-search-dropdown button:hover {
    background: var(--mrk-orange);
}


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

.mrk-mobile-search {
    display: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-navigation {
    background: #fff;
    border-bottom: 1px solid var(--mrk-border);
}

.main-navigation .main-nav ul li a {
    color: var(--mrk-dark);
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    padding: 15px 16px;
    transition: color .2s ease;
}

.main-navigation .main-nav ul li a:hover {
    color: var(--mrk-orange);
    background: transparent;
}

.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
    color: var(--mrk-orange);
    background: transparent;
}


/* =========================================================
   SUBMENU
========================================================= */

.main-navigation .main-nav ul ul {
    background: #fff;
    border-top: 3px solid var(--mrk-green);
    border-radius: 0 0 7px 7px;
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
}

.main-navigation .main-nav ul ul li a {
    color: var(--mrk-dark);
    background: #fff;
    padding: 11px 15px;
}

.main-navigation .main-nav ul ul li a:hover {
    color: var(--mrk-green);
    background: #fff;
}


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

.site-content {
    padding-top: 30px;
    padding-bottom: 35px;
}

.content-area {
    width: 68%;
    padding-right: 18px;
}

.widget-area {
    width: 32%;
    padding-left: 8px;
}


/* =========================================================
   ARTICLE
========================================================= */

.inside-article {
    background: #fff;
    border: 1px solid var(--mrk-border);
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 3px 15px rgba(0,0,0,.035);
}


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

.entry-title {
    color: var(--mrk-dark);
    font-size: 35px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.entry-title a {
    color: var(--mrk-dark);
}

.entry-title a:hover {
    color: var(--mrk-orange);
}


/* =========================================================
   META
========================================================= */

.entry-meta {
    color: var(--mrk-muted);
    font-size: 13px;
    line-height: 1.5;
}

.entry-meta a {
    color: var(--mrk-green);
}


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

.entry-content {
    color: var(--mrk-text);
    font-size: 18px;
    line-height: 1.85;
}

.entry-content p {
    margin-bottom: 20px;
}


/* =========================================================
   HEADINGS
========================================================= */

.entry-content h2 {
    color: var(--mrk-dark);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 38px;
    margin-bottom: 17px;
    padding: 12px 15px;
    background: #f7f8f8;
    border-left: 5px solid var(--mrk-green);
    border-radius: 0 7px 7px 0;
}

.entry-content h3 {
    color: var(--mrk-dark);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 30px;
    margin-bottom: 14px;
    padding: 10px 13px;
    background: #fafafa;
    border-left: 4px solid var(--mrk-orange);
    border-radius: 0 6px 6px 0;
}

.entry-content h4 {
    color: var(--mrk-dark);
    font-size: 20px;
    font-weight: 700;
    margin-top: 25px;
}


/* =========================================================
   LISTS
========================================================= */

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

.entry-content li {
    margin-bottom: 8px;
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.entry-content blockquote {
    margin: 25px 0;
    padding: 18px 20px;
    background: #f7f8f8;
    border-left: 5px solid var(--mrk-green);
    border-radius: 0 8px 8px 0;
    font-size: 18px;
}


/* =========================================================
   SINGLE POST FEATURED IMAGE
========================================================= */

.single .post-image,
.single .featured-image,
.single .inside-article > .featured-image,
.single .inside-article > .post-image {
    display: none !important;
}


/* =========================================================
   HOMEPAGE / ARCHIVE CARDS
========================================================= */

.blog .inside-article,
.archive .inside-article,
.search .inside-article {
    margin-bottom: 22px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--mrk-border);
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,.035);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.blog .inside-article:hover,
.archive .inside-article:hover,
.search .inside-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.07);
}

.blog .entry-title,
.archive .entry-title,
.search .entry-title {
    font-size: 25px;
    line-height: 1.35;
    margin-bottom: 9px;
}

.blog .entry-summary,
.archive .entry-summary,
.search .entry-summary {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}


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

.widget-area .widget {
    background: #fff;
    border: 1px solid var(--mrk-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 14px rgba(0,0,0,.035);
}

.widget-title {
    position: relative;
    color: var(--mrk-dark);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 15px;
    padding: 0 0 10px 16px;
    border-bottom: 1px solid var(--mrk-border);
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mrk-green);
}

.widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget ul li {
    position: relative;
    padding: 10px 0 10px 15px;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: 0;
}

.widget ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--mrk-green);
    font-size: 18px;
    font-weight: 900;
}

.widget ul li a {
    color: var(--mrk-dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.widget ul li a:hover {
    color: var(--mrk-green);
}


/* =========================================================
   AUTHOR + RECOMMENDED WRAPPER
========================================================= */

.mrk-after-post-sections {
    width: 100%;
    clear: both;
    margin-top: 25px;
}


/* =========================================================
   AUTHOR BOX
========================================================= */

.mrk-author-box {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    padding: 22px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--mrk-border);
    border-top: 4px solid var(--mrk-green);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

.mrk-author-avatar {
    flex: 0 0 85px;
}

.mrk-author-image {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--mrk-green);
}

.mrk-author-label {
    display: block;
    color: var(--mrk-green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.mrk-author-content h3 {
    margin: 0 0 6px;
    color: #222;
    font-size: 21px;
    font-weight: 800;
}

.mrk-author-content p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   RECOMMENDED POSTS
========================================================= */

.mrk-recommended-box {
    width: 100%;
    box-sizing: border-box;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--mrk-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

.mrk-recommended-title {
    margin: 0 0 18px;
    padding-left: 12px;
    color: #222;
    font-size: 21px;
    font-weight: 800;
    border-left: 5px solid var(--mrk-green);
}

.mrk-recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mrk-recommended-post {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--mrk-border);
    border-radius: 8px;
    margin: 0;
}

.mrk-recommended-image {
    display: block;
}

.mrk-recommended-image img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin: 0;
}

.mrk-recommended-content {
    padding: 13px;
}

.mrk-recommended-content h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.45;
}

.mrk-recommended-content h3 a {
    color: #222;
}

.mrk-recommended-content h3 a:hover {
    color: var(--mrk-green);
}

.mrk-recommended-date {
    color: #888;
    font-size: 12px;
}


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

.paging-navigation {
    margin-top: 30px;
    padding-top: 5px;
}

.paging-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.paging-navigation .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: var(--mrk-dark);
    font-size: 14px;
    font-weight: 700;
}

.paging-navigation .page-numbers:hover,
.paging-navigation .page-numbers.current {
    background: var(--mrk-green);
    border-color: var(--mrk-green);
    color: #fff;
}

.paging-navigation .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: #777;
}


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

@media (max-width: 768px) {

    body {
        font-size: 16px;
        line-height: 1.7;
    }

    .inside-header {
        padding: 14px 15px;
    }

    .site-branding .main-title,
    .site-branding .main-title a {
        font-size: 25px;
    }


    /* Hide desktop search */

    .mrk-header-search {
        display: none;
    }


    /* Show mobile search */

    .mrk-mobile-search {
        display: block;
        width: 100%;
        padding: 10px 12px;
        box-sizing: border-box;
        background: #fff;
        border-bottom: 1px solid var(--mrk-border);
    }

    .mrk-mobile-search form {
        display: flex;
        width: 100%;
        margin: 0;
    }

    .mrk-mobile-search input {
        flex: 1;
        min-width: 0;
        height: 44px;
        padding: 0 13px;
        border: 1px solid #ddd;
        border-right: 0;
        border-radius: 7px 0 0 7px;
        background: #fff;
        color: #222;
        font-size: 14px;
        outline: none;
        box-sizing: border-box;
    }

    .mrk-mobile-search input:focus {
        border-color: var(--mrk-green);
    }

    .mrk-mobile-search button {
        width: 52px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 0 7px 7px 0;
        background: var(--mrk-green);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
    }

    .mrk-mobile-search button:hover {
        background: var(--mrk-orange);
    }


    /* Navigation */

    .main-navigation .main-nav ul li a,
    .main-navigation .main-nav ul li.current-menu-item > a {
        background: #fff;
        color: var(--mrk-dark);
    }

    .main-navigation .main-nav ul li a:hover {
        background: #fff;
        color: var(--mrk-orange);
    }


    /* Content */

    .site-content {
        padding-top: 20px;
        padding-bottom: 25px;
    }

    .content-area,
    .widget-area {
        width: 100%;
        padding: 0;
    }

    .inside-article {
        padding: 20px;
        border-radius: 8px;
    }

    .entry-title {
        font-size: 28px;
    }

    .entry-content {
        font-size: 17px;
        line-height: 1.8;
    }

    .entry-content h2 {
        font-size: 24px;
        padding: 10px 12px;
    }

    .entry-content h3 {
        font-size: 21px;
        padding: 9px 11px;
    }


    /* Sidebar */

    .widget-area .widget {
        padding: 17px;
        margin-bottom: 17px;
    }


    /* Author */

    .mrk-author-box {
        align-items: flex-start;
        gap: 14px;
        padding: 17px;
    }

    .mrk-author-avatar {
        flex: 0 0 70px;
    }

    .mrk-author-image {
        width: 70px;
        height: 70px;
    }

    .mrk-author-content h3 {
        font-size: 19px;
    }

    .mrk-author-content p {
        font-size: 14px;
    }


    /* Recommended */

    .mrk-recommended-box {
        padding: 17px;
    }

    .mrk-recommended-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mrk-recommended-post {
        display: flex;
        min-height: 95px;
    }

    .mrk-recommended-image {
        flex: 0 0 110px;
    }

    .mrk-recommended-image img {
        width: 110px;
        height: 100%;
        min-height: 95px;
        object-fit: cover;
    }


    /* Pagination */

    .paging-navigation .page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
}


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

@media (max-width: 480px) {

    .inside-header {
        padding: 12px;
    }

    .site-branding .main-title,
    .site-branding .main-title a {
        font-size: 23px;
    }

    .mrk-mobile-search {
        padding: 8px;
    }

    .mrk-mobile-search input {
        height: 42px;
        font-size: 13px;
    }

    .mrk-mobile-search button {
        width: 48px;
        height: 42px;
        font-size: 16px;
    }

    .inside-article {
        padding: 17px;
    }

    .entry-title {
        font-size: 25px;
    }

    .entry-content {
        font-size: 16.5px;
    }

    .mrk-author-box {
        padding: 15px;
        gap: 12px;
    }

    .mrk-author-avatar {
        flex: 0 0 60px;
    }

    .mrk-author-image {
        width: 60px;
        height: 60px;
    }

    .mrk-author-content h3 {
        font-size: 18px;
    }

    .mrk-author-content p {
        font-size: 13px;
    }

    .mrk-recommended-box {
        padding: 14px;
    }

    .mrk-recommended-image {
        flex: 0 0 105px;
    }

    .mrk-recommended-image img {
        width: 105px;
        min-height: 90px;
    }

    .paging-navigation .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 7px;
        font-size: 12px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 2px solid var(--mrk-green);
    outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
/* =========================================================
   MRKHABRI - CATEGORY PAGE HEADING
========================================================= */

.archive .page-header {
    position:relative;

    margin:0 0 30px;

    padding:28px 25px;

    text-align:left;

    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(85,201,40,.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 5% 90%,
            rgba(255,101,0,.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #fff9f4,
            #ffffff 50%,
            #f7fff4
        );

    border:1px solid #e8e8e8;

    border-radius:16px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.05);

    overflow:hidden;
}


/* Orange + Green small line */

.archive .page-header:before {
    content:"";

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:4px;

    background:
        linear-gradient(
            90deg,
            #ff6500 0%,
            #ff6500 50%,
            #55c928 50%,
            #55c928 100%
        );
}


/* Category heading */

.archive .page-header h1 {
    margin:0 !important;

    color:#222 !important;

    font-size:32px !important;

    line-height:1.3 !important;

    font-weight:850 !important;

    letter-spacing:-.5px;
}


/* Add small label before heading */

.archive .page-header h1:before {
    content:"CATEGORY";

    display:block;

    margin-bottom:7px;

    color:#55a928;

    font-size:11px;

    line-height:1;

    font-weight:800;

    letter-spacing:1.5px;
}


/* Mobile */

@media(max-width:600px) {

    .archive .page-header {
        margin-bottom:22px;

        padding:22px 17px;

        border-radius:13px;
    }

    .archive .page-header h1 {
        font-size:25px !important;
    }

    .archive .page-header h1:before {
        font-size:9px;

        margin-bottom:6px;
    }

}