/*
Theme Name: BlockNest Child
Theme URI: https://krefstudio.com/blocknest
Author: Kref Studio
Author URI: https://krefstudio.com/
Description: BlockNest Child Theme
Template: blocknest
Version: 0.1.0
Text Domain: blocknest-child
*/

/* ==========================================================================
   SECTION 4: EDITOR KLASIK - COMPATIBILITY
   ========================================================================== */

/* Fix Paragraph Spacing */
.entry-content p {
    margin-bottom: 1.5em;
}

/* Tables */
.entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
    border: 1px solid #ddd;
}

.entry-content th,
.entry-content td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.entry-content th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Code Blocks (ChatGPT Style) */
.entry-content pre {
    background: #0d0d0d;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    margin-bottom: 1.5em;
    font-size: 14px;
    line-height: 1.4;
}

.entry-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

.entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    border-radius: 0;
}

/* Blockquotes: Design 1 (Soft Card) */
.kref-blockquote-design-1 .entry-content blockquote,
.entry-content .quote-style-1,
.entry-content .quote-style-3 {
    margin: 0 0 1.75em 0;
    position: relative;
    padding: 22px 40px 42px 124px;
    background: #ffffff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    color: #1f2937;
    font-size: 20pt;
    line-height: 1.6;
    font-style: italic;
    overflow: visible;
}

.kref-blockquote-design-1 .entry-content blockquote::before,
.entry-content .quote-style-1::before,
.entry-content .quote-style-3::before {
    content: "\201C";
    position: absolute;
    left: 56px;
    top: 24px;
    font-size: 88px;
    line-height: 1;
    font-weight: 700;
    font-style: normal;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    color: var(--ast-global-color-0, #4a90e2);
}

.kref-blockquote-design-1 .entry-content blockquote p,
.entry-content .quote-style-1 p,
.entry-content .quote-style-3 p {
    margin: 0;
}

.kref-blockquote-design-1 .entry-content blockquote>*:not(:first-child),
.entry-content .quote-style-1>*:not(:first-child),
.entry-content .quote-style-3>*:not(:first-child) {
    margin-top: 20px;
}

.kref-blockquote-design-1 .entry-content blockquote cite,
.kref-blockquote-design-1 .entry-content blockquote footer,
.entry-content .quote-style-1 cite,
.entry-content .quote-style-1 footer,
.entry-content .quote-style-3 cite,
.entry-content .quote-style-3 footer {
    display: block;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
    font-style: normal;
    color: #6b7280;
}

@media (max-width: 767px) {

    .kref-blockquote-design-1 .entry-content blockquote,
    .entry-content .quote-style-1,
    .entry-content .quote-style-3 {
        padding: 12px 24px 32px 80px;
        font-size: 20pt;
        border-radius: 18px;
    }

    .kref-blockquote-design-1 .entry-content blockquote::before,
    .entry-content .quote-style-1::before,
    .entry-content .quote-style-3::before {
        left: 42px;
        top: 20px;
        font-size: 68px;
    }
}

/* Blockquotes: Design 2 (Editorial Note) */
.kref-blockquote-design-2 .entry-content blockquote,
.entry-content .quote-style-2 {
    margin: 0 0 1.75em 0;
    padding: 22px 24px;
    background: #fff;
    border: 1px dashed #b9bec7;
    border-radius: 16px;
    box-shadow: none;
    color: #6f7782;
    font-size: inherit;
    line-height: 1.85;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
}

.kref-blockquote-design-2 .entry-content blockquote::before,
.entry-content .quote-style-2::before {
    content: none;
}

.kref-blockquote-design-2 .entry-content blockquote p,
.entry-content .quote-style-2 p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.kref-blockquote-design-2 .entry-content blockquote strong,
.kref-blockquote-design-2 .entry-content blockquote b,
.entry-content .quote-style-2 strong,
.entry-content .quote-style-2 b {
    color: #4f5661;
    font-weight: 700;
}

.kref-blockquote-design-2 .entry-content blockquote mark,
.entry-content .quote-style-2 mark {
    background: #fff15a;
    color: inherit;
    padding: 0 0.12em;
}

.kref-blockquote-design-2 .entry-content blockquote cite,
.kref-blockquote-design-2 .entry-content blockquote footer,
.entry-content .quote-style-2 cite,
.entry-content .quote-style-2 footer {
    display: block;
    margin-top: 14px;
    font-size: 0.95em;
    line-height: 1.6;
    font-style: normal;
    color: #6b7280;
}

@media (max-width: 767px) {

    .kref-blockquote-design-2 .entry-content blockquote,
    .entry-content .quote-style-2 {
        padding: 18px 18px;
        border-radius: 14px;
        line-height: 1.75;
    }
}

/* ==========================================================================
   SECTION 2: MY ACCOUNT - USER PROFILE & AVATAR
   ========================================================================== */
.kref-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.kref-user-profile .kref-avatar {
    flex-shrink: 0;
}

.kref-user-profile .kref-avatar img {
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.kref-user-profile .kref-avatar img:hover {
    border-color: #4a90e2;
}

.kref-user-profile .user-info {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.kref-user-profile .user-info .greeting {
    font-size: 14px;
    color: #888;
}

.kref-user-profile .user-info .username {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* --- BlocNest1 --- */
/* Header */
.site-header {
    border-bottom: 1px solid #f1f1f1;
}

.inside-header {
    position: relative;
    flex-direction: row !important;
}

.top_nav {
    position: absolute;
    right: 0;
}

.inside-navigation.grid-container {
    justify-content: center;
}

.toggle_button,
.search_button {
    position: absolute;
}

.top_toggle {
    margin-top: 6px;
    position: absolute;
    right: 0;
    z-index: 991;
}

.toggle_button {
    left: 0;
}

.search_button {
    right: 0;
}

a.search-icon {
    color: var(--tax-color);
}

.main-navigation .menu-toggle {
    padding-right: 0;
    padding-left: 0;
    font-size: 23px;
}

/* Social Link */
.wp-block-social-links {
    margin: 0 !important;
}

.wp-block-social-links li a {
    font-size: 18px;
}

/* Breadcrumb */
.rank-math-breadcrumb p {
    margin-bottom: 0;
}

.breadcrumb {
    line-height: 18px;
}

/* Main Nav Sub */
.main-navigation ul.sub-menu {
    background: #fff;
    border-radius: 8px;
    padding: 8px 5px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 6px solid var(--accent);
}

.sub-menu.toggled-on {
    box-shadow: none !important;
    border: 0px solid #f1f1f1 !important;
    border-radius: 0;
    margin-left: 30px;
    width: 100% !important;
    padding: 0 !important;
}

.sub-menu.toggled-on li a {
    position: relative;
    padding-left: 25px !Important;
}

.sub-menu.toggled-on li a::before {
    width: 5px;
    height: 5px;
    content: " ";
    position: absolute;
    left: 12px;
    background: var(--accent);
    border-radius: 50px;
    top: 16px;
}


/* Content Area */
.site-content {
    padding: 40px 0;
}

/* owl caraousel styling */
.owl-carousel {
    visibility: hidden;
}

.owl-carousel.owl-loaded {
    visibility: visible;
}

.owl-carousel .owl-stage::after {
    display: none;
}

/* Slide Nav */
.owl-dots {
    text-align: center;
    margin: 10px auto 20px;
    position: static;
    bottom: 20px;
    right: 20px;
}

.owl-dots button,
.owl-dot {
    width: 14px;
    height: 8px;
    opacity: 0.3;
    border-radius: 100px;
    margin: 0 2px;
    background: var(--base-3) !important;
}

.owl-dots button.active,
.owl-dot.active {
    opacity: 0.75;
    width: 30px;
}

.owl-stage {
    display: flex;
}

/* Owl Nav */
.owl-nav button {
    position: absolute;
    top: 38%;
    width: 35px;
    opacity: 1;
    height: 35px;
    transition: all .2s ease-in-out;
    background-repeat: no-repeat;
    background-position: center center !important;
}

.owl-nav button:hover {
    opacity: 1;
}

.owl-nav button span {
    display: none;
}

.owl-nav button.owl-prev {
    left: -20px;
    background-image: url(images/arrow-left.svg) !important;
}

.owl-nav button.owl-next {
    right: -20px;
    background-image: url(images/arrow-right.svg) !important;
}

.owl-dots {}

.owl-carousel .owl-stage::after {
    display: none !important;
}

.latest_post .owl-dots {
    position: absolute;
    margin: 0;
    top: auto;
    bottom: 20px;
}

/* Archive */
.site-content .content-area {
    padding-right: 40px;
}

.post-categories {
    display: flex;
    gap: 5px;
    padding: 0;
    margin-left: 0;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.post-categories span,
.post-categories span a {
    padding: 0 5px;
    font-size: 12px;
    line-height: 20px;
    border-radius: 50px;
    background: var(--tax-bg);
    color: var(--tax-color);
    display: inline-block;
    transition: all .3s ease-in-out;
}

.term_list {
    display: flex;
    gap: 8px;
}

.term_list a {
    padding-bottom: 3px;
    border-bottom: 1.5px solid var(--contrast-2);
}

/* Archice Layout */
.featured-column .arc_box {
    display: block !important;
}

.featured-column .arc_left,
.featured-column .arc_right,
.generate-columns.tablet-grid-50.featured-column,
.generate-columns.grid-50 {
    width: 100% !important;
}

.featured-column .acr_img {
    height: 330px;
}

.gb-block-image a {
    display: block;
    height: 100%;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-gap: 25px;
}

.featured-column .grid {
    grid-template-columns: 1fr;
}

.grid-small,
.grid-list {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-gap: 15px;
}

.small-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-gap: 20px;
}

.grid-list {
    min-height: 70px;
}

/* masonry-load-more */
.masonry-load-more {
    display: flex;
    justify-content: center;
    margin: 10px 0 25px;
}

.masonry-load-more a {
    border-radius: 8px;
}

.more-link:before {
    height: 30px;
    width: 30px;
    content: " ";
    background: #fff;
}

.more-link {
    position: absolute;
    top: 0;
    right: 0;
}

.more-link a {
    padding: 0 15px !important;
    border-radius: 50px;
    font-size: 12px !important;
    background: #fff !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    line-height: 13px;
    display: flex !important;
    align-items: center;
}

/* Limite Title */
.limit {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.limit_three {
    -webkit-line-clamp: 3;
}

.limit_two {
    -webkit-line-clamp: 2;
}

/* Stories Slider */
.stories_slider .owl-stage-outer {
    overflow: visible;
}

img.slide {
    width: inherit !important;
}

.stories_slider .owl-dots {
    margin-top: 0;
}


/* Page Pagination */
.paging-navigation {
    margin: 0;
    border-top: 1px solid #f1f1f1;
    background: none !important;
    text-align: center;
    font-size: 14px;
    padding: 15px 0 !important;
}

.paging-navigation span,
.paging-navigation a {
    border: 1px solid #ccc;
    padding: 5px 10px !important;
    color: #333333 !important;
    border-radius: 4px;
}

.paging-navigation span.current {
    background: #fff;
    color: #fff !important;
    background: var(--contrast-2);
    border: 1px solid var(--contrast-2);
    font-weight: normal !important;
}

.container.grid-container {
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

a.prev,
a.next,
a.prev span,
a.next span {
    display: none;
}

/* Comment */
.comments-area {
    border: 0px solid #f1f1f1;
    padding: 0px !important;
    border-radius: 8px;
    margin-top: 25px;
    font-size: 14px;
    background: none !important;
}

.comment-content {
    padding: 0;
    border: none;
    margin: 8px 0;
    padding: 10px 0 !Important;
    border-radius: 8px;
}

.comment-content p {
    margin-bottom: 10px;
    line-height: 21px;
}

.comment-list .reply a {
    border-radius: 20px;
    padding: 2px 10px;
    border: 1px solid #f1f1f1;
}

.comment-list article {
    border: none;
    padding: 0 !important;
    margin: 0 !important;
}

.comment-list li.depth-1 {
    border: 1px solid #f1f1f1 !important;
    padding: 20px !important;
    border-radius: 8px !important;
}

.comment .children {
    padding-left: 30px;
    margin: 20px 0 20px 20px !important;
    border-left: 0 dotted rgba(0, 0, 0, .09) !important;
    border-bottom: none !important;
}

.comment-respond {
    margin-top: 40px;
}

input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
    border: 1px solid #f1f1f1 !important;
    border-radius: 5px !important;
    padding: 10px 15px !important;
    margin: 0 0 10px !important;
    width: 100%;
}

.comments-area .form-submit input.submit {
    border-radius: 8px !important;
    background: var(--accent) !important;
    padding: 10px 35px !important;
}

.comment-form-cookies-consent {
    font-size: 12px;
    line-height: 18px;
}

.comment-list li.depth-1 {
    border-bottom: 0px solid #f1f1f1;
    margin-bottom: 20px;
}

h3.comments-title {
    font-size: 18px;
}

.comment-meta .avatar {
    padding-top: 1px;
}

.comments-area footer.comment-meta {
    display: block;
    grid-template-columns: 30px 1fr;
    grid-gap: 10px;
}

.comments-area footer.comment-meta img.avatar {
    display: none;
}

.entry-meta.comment-metadata {
    margin-top: -1.5px;
}

.entry-meta.comment-metadata a {
    color: #000;
    opacity: 0.5;
}

.comment-content {
    margin: 10px 0;
    border: 0px solid #f1f1f1;
}

/* Footer */
.site-footer ul.wp-block-navigation__container {
    margin: 10px 0;
    column-gap: 15px;
    row-gap: 0px;
}

.site-footer ul.wp-block-navigation__container li a {
    font-size: 14px;
}

.site-footer ul.wp-block-navigation__container li:hover a {
    color: var(--accent);
}


/* Search Modal */
.search-modal-form {
    background: transparent !important;
}

.gp-modal__container input.search-field {
    margin: 0 !important;
    border: none !important;
}

.search-modal-fields {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Sidebar */
.inside-right-sidebar {
    position: sticky;
    top: 20px;
}

/* List Custom */
.list_custom {
    list-style: none;
    counter-reset: my-awesome-counter;
}

.list_custom .gb-query-loop-item {
    counter-increment: my-awesome-counter;
    position: relative;
}

.list_custom .gb-query-loop-item::before {
    content: "#" counter(my-awesome-counter) "";
    position: absolute;
    top: 4px;
    left: 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list_custom .generate-columns.grid-50 {
    width: 100% !important;
    margin: 0;
}

.list_custom p.gb-headline-text {
    min-height: 50px;
}


/* Title Header */
.page-header {
    margin-bottom: 30px;
}

h1.widget-title,
h1.page-title,
h2.widget-title {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

h1.widget-title:after,
h1.page-title:after,
h2.widget-title:after {
    content: " ";
    margin-left: 30px;
    flex: 1 1 auto;
    border-top: 2px solid #f1f1f1;
    background: #f1f1f1;
}

.search h1.page-title {
    border-bottom: 1px solid #f1f1f1;
    display: block;
    padding-bottom: 15px;
}

.search h1.page-title span {
    display: block;
    font-size: 16px;
    line-height: 22px;
    font-weight: bold;
    color: var(--accent);
}

.search h1.page-title:after {
    display: none;
}

/* Author */
.author .page-header {
    padding: 20px;
    font-size: 15px;
    line-height: 22px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.08);
}

.author .page-header .page-title:after {
    display: none;
}

.author .page-header .avatar {
    margin-right: 20px;
    border-radius: 50px;
}

body.author h1.page-title {
    margin-bottom: 10px;
}

/* Box Shadow */
.shadow {
    box-shadow: 0px -10px 20px rgba(0, 0, 0, 0.08)
}

/* Popular Post */
.nq_number {
    display: none;
}

.popular_item a {
    color: var(--contrast);
    font-weight: 500;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
    display: block;
    border-bottom: 1px solid var(--tax-bg);
}

.popular_item a:hover {
    color: var(--contrast-2);
}

.popular_item:last-child a {
    border-bottom: none;
}

/* Single Post Content */
.dynamic-entry-content ul,
.dynamic-entry-content ol {
    margin: 0 0 1.5em 2em;
}

.dynamic-entry-content ul li {
    list-style: circle;
}

.also-read {
    background: #f1f1f1;
    padding: 15px;
    border-left: 5px solid var(--accent);
    padding-left: 20px;
    margin: 20px 0;
}

.also-read h2 {
    margin-bottom: 8px;
}

.also-read p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 18px;
}

/* Blockquote */
.wp-block-pullquote {
    padding: 0;
}

blockquote {
    border-left: 5px solid var(--accent);
    padding: 20px;
    font-size: 18px;
    font-style: italic;
    margin: 0 0 1.5em;
    position: relative;
    text-align: left;
    line-height: 24px;
}

blockquote p {
    margin-bottom: 5px;
}

.wp-block-pullquote cite {
    font-size: 14px;
    font-weight: bold;
}

/* Pre */
pre {
    background: #eee;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 15px;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

/* table */
.wp-block-table {
    margin-bottom: 25px;
}

.wp-block-table table {
    margin-bottom: 0;
}

.wp-block-table .wp-element-caption {
    font-size: 13px;
    margin-top: 5px;
}

/* Featured Image Caption */
.gb-block-image figcaption,
.wp-block-image figcaption {
    font-size: 13px;
    text-align: center;
    margin: 10px 0 0;
    line-height: 19px;
}

.wp-block-image {
    margin-bottom: 25px;
}

.wp-block-image img {
    border-radius: 5px;
}

/* Tag List */
.taxonomy-post_tag {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.taxonomy-post_tag a {
    color: #fff;
    position: relative;
    background: var(--accent);
    padding: 2px 13px;
    font-size: 14px;
    line-height: 20px;
    border-radius: 50px;
    display: inline-block;
    transition: all .3s ease-in-out;
}

.taxonomy-post_tag a:hover {
    background: var(--contrast-2);
}

.taxonomy-post_tag a:before {
    content: "#";
}

.wp-block-post-terms__separator {
    display: none;
}

/* Search Form */
.search-form .search-submit {
    display: none;
}

/* 404 */
body.error404 .inside-article {
    margin: 40px auto;
    text-align: center;
}

/* Limit */
.limit-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}



@media only screen and (max-width: 768px) {
    .gb-button.slideout-toggle span.gb-button-text {
        display: none;
    }

    .toggle_button,
    .search_button {
        top: 33px;
    }

    .toggle_button {
        left: 20px;
    }

    .search_button {
        right: 20px;
    }

    .top_toggle {
        right: 20px;
    }

    .inside-right-sidebar {
        position: static;
        padding: 0;
        border: none;
    }

    .featured-column {
        margin-bottom: 25px;
    }

    .site-content {
        padding: 20px;
    }

    .site-content .content-area {
        padding-right: 0;
    }

    .is-right-sidebar {
        margin-top: 40px;
    }

    .grid {
        grid-template-columns: 100px 1fr;
        grid-gap: 20px;
    }

    .featured-column .grid {
        margin-bottom: 0;
    }

    .comments-area {
        border: none;
        padding: 20px 0 !important;
    }

    .owl-carousel .owl-stage-outer {
        overflow: visible;
    }

    .owl-nav button {
        top: 30%;
    }

    .owl-nav button.owl-prev {
        left: -16px;
    }

    .owl-nav button.owl-next {
        right: -16px;
    }

    .center_nav .owl-dots {
        margin: 0 auto;
        right: 0;
        left: 0;
    }

    .gp-search-modal .gp-modal__overlay {
        padding-left: 30px !important;
        padding-right: 30px !important;
        background: rgba(0, 0, 0, 0.65) !important;
    }

    .post-abs,
    .post-abs-r {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .post-abs-r {
        right: 20px;
        left: auto;
    }

}

@media only screen and (max-width: 767px) {
    body {
        background: #fff !important;
    }

    .featured-column .acr_img {
        height: 200px;
    }

    .grid-small {
        grid-template-columns: 80px 1fr;
    }

    .small-grid {
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }

    .cat_grid_desc {
        position: relative;
    }

    .cat_grid_desc:before {
        content: " ";
        position: absolute;
        top: -10px;
        left: 30px;
        border-left: solid 10px transparent;
        border-right: solid 10px transparent;
        border-bottom: solid 10px #f1f1f1;
        height: 0;
        width: 0;
    }
}
