/*
Theme Name: Katen Child
Template: katen
Theme URI: https://themeforest.net/user/themeger/portfolio
Author: ThemeGer
Author URI: https://themeger.shop
Description: Minimal Blog & Magazine WordPress Theme with Pixelline Main Site Header & Footer Unification
Template Version: 1.1.0
License: GNU General Public License
License URI: https://themeforest.net/licenses
*/

/* =========================================================
   1. Core Reset & Font Family
   ========================================================= */
.pixelline-header,
.pixelline-footer,
.sticky-wrap,
.scroll-progress {
    font-family: 'Pretendard Variable', 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    box-sizing: border-box !important;
}
.pixelline-header *,
.pixelline-footer *,
.sticky-wrap *,
.scroll-progress * {
    box-sizing: border-box !important;
}

/* Fix WP admin bar offset & pointer events */
body.admin-bar .pixelline-header.sticky-active {
    top: 32px !important;
}

/* Prevent duplicate header clones or overlays inside content */
.site-wrapper .pixelline-header,
.entry-content .pixelline-header {
    display: none !important;
}

/* =========================================================
   2. Header Navigation (Clickable & Sticky)
   ========================================================= */
.pixelline-header {
    width: 100% !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #eeeeee !important;
    position: relative !important;
    top: 0;
    left: 0;
    z-index: 999999 !important;
    transition: all 0.3s ease !important;
}

.pixelline-header.sticky-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.header-inner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Switching on Scroll */
.header-logo-wrap {
    position: relative;
    z-index: 1000000 !important;
}
.header-logo-wrap a {
    display: inline-block;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.header-logo-img {
    height: 42px;
    width: auto;
    display: block;
}
.header-logo-img.logo-initial {
    display: block !important;
}
.header-logo-img.logo-sticky {
    display: none !important;
}

/* When Sticky Active: Show Full Logo, Hide Icon Logo */
.pixelline-header.sticky-active .header-logo-img.logo-initial {
    display: none !important;
}
.pixelline-header.sticky-active .header-logo-img.logo-sticky {
    display: block !important;
}

/* Navigation Links */
.header-nav-wrap {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000000 !important;
}
.header-nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 32px !important;
}
.header-nav-list .nav-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.header-nav-list .nav-link {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1c1d1f !important;
    text-decoration: none !important;
    padding: 8px 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1000000 !important;
    transition: color 0.2s ease !important;
}
.header-nav-list .nav-link:hover,
.header-nav-list .nav-item.active .nav-link {
    color: #0056b3 !important;
}

/* Dropdown Menu */
.dropdown-item-wrap {
    position: relative !important;
}
.header-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px !important;
    background-color: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    list-style: none !important;
    margin: 10px 0 0 0 !important;
    padding: 10px 0 !important;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000005 !important;
}
.header-dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.header-dropdown-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}
.header-dropdown-menu li a:hover {
    background-color: #f8f9fa !important;
    color: #0056b3 !important;
}

/* Right Widgets & Phone Icon Circle */
.header-right-widget {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    position: relative !important;
    z-index: 1000000 !important;
}
.phone-widget-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.phone-icon-circle {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background-color: #dbdbdb !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1c1d1f !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}
.phone-icon-circle i {
    color: #1c1d1f !important;
    font-size: 13px !important;
}
.phone-link {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1c1d1f !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.btn-webtrends {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #1c1d1f !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transition: all 0.2s ease !important;
}
.btn-webtrends:hover {
    background-color: #333333 !important;
    transform: translateY(-2px) !important;
}

/* Mobile Toggler */
.pixelline-mobile-toggler {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000001 !important;
}
.toggler-bar {
    width: 100%;
    height: 3px;
    background-color: #1c1d1f;
    border-radius: 3px;
}

/* =========================================================
   3. Blog Post Subpage & Sidebar Styling Improvements
   ========================================================= */

/* Blog Content Column Typography */
.single-post .entry-header .post-title,
.post-single .post-header .post-title {
    font-size: 32px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #1c1d1f !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.5px !important;
}

.entry-content,
.post-content {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #333333 !important;
}

.entry-content p,
.post-content p {
    margin-bottom: 24px !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
}

.entry-content h2,
.post-content h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1c1d1f !important;
    margin-top: 44px !important;
    margin-bottom: 20px !important;
    padding-left: 14px !important;
    border-left: 4px solid #1c1d1f !important;
    line-height: 1.4 !important;
}

.entry-content h3,
.post-content h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1c1d1f !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
}

.entry-content img,
.post-content img {
    border-radius: 12px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 20px 0 !important;
}

/* Sidebar Styling */
.sidebar .widget {
    background-color: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

.sidebar .widget-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1c1d1f !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #1c1d1f !important;
    letter-spacing: -0.3px !important;
}

/* =========================================================
   WordPress Gutenberg Block Latest Posts (.wp-block-latest-posts)
   & Katen Recent Posts Widgets Flex Fix
   ========================================================= */
ul.wp-block-latest-posts,
ul.wp-block-latest-posts__list,
.sidebar .widget_recent_entries ul,
.sidebar .widget_katen_recent_posts ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.wp-block-latest-posts > li,
ul.wp-block-latest-posts__list > li,
.sidebar .widget_recent_entries ul > li,
.sidebar .widget_katen_recent_posts ul > li {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
}

ul.wp-block-latest-posts > li:last-child,
ul.wp-block-latest-posts__list > li:last-child,
.sidebar .widget_recent_entries ul > li:last-child,
.sidebar .widget_katen_recent_posts ul > li:last-child {
    border-bottom: none !important;
}

/* Arrow Icon on li::before (Flex Item 1: Fixed 10px width) */
ul.wp-block-latest-posts > li::before,
ul.wp-block-latest-posts__list > li::before,
.sidebar .widget_recent_entries ul > li::before,
.sidebar .widget_katen_recent_posts ul > li::before {
    content: "›" !important;
    font-family: inherit !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    width: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0056b3 !important;
    line-height: 1.4 !important;
    margin-top: 1px !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

/* Post Title Link (Flex Item 2: flex 1) */
ul.wp-block-latest-posts > li a,
ul.wp-block-latest-posts__list > li a,
a.wp-block-latest-posts__post-title,
.sidebar .widget_recent_entries ul > li a,
.sidebar .widget_katen_recent_posts ul > li a,
.sidebar .widget_katen_recent_posts .post-title a {
    flex: 1 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    color: #2b2c2e !important;
    text-decoration: none !important;
    word-break: keep-all !important;
    transition: color 0.2s ease !important;
}

/* Remove any inner pseudoelement on a tag */
ul.wp-block-latest-posts > li a::before,
ul.wp-block-latest-posts__list > li a::before,
a.wp-block-latest-posts__post-title::before,
.sidebar .widget_recent_entries ul > li a::before,
.sidebar .widget_katen_recent_posts ul > li a::before {
    content: none !important;
    display: none !important;
}

ul.wp-block-latest-posts > li a:hover,
ul.wp-block-latest-posts__list > li a:hover,
a.wp-block-latest-posts__post-title:hover,
.sidebar .widget_recent_entries ul > li a:hover,
.sidebar .widget_katen_recent_posts ul > li a:hover {
    color: #0056b3 !important;
}

/* Sidebar Search Widget */
.sidebar .widget_search .search-form input[type="text"],
.sidebar .widget_search input.form-control {
    border-radius: 30px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}
.sidebar .widget_search .search-form button,
.sidebar .widget_search btn-default {
    border-radius: 30px !important;
    background-color: #1c1d1f !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
}

/* Sidebar Tag Cloud Chips */
.sidebar .tagcloud a,
.sidebar .widget_tag_cloud a {
    display: inline-block !important;
    background-color: #f5f6f8 !important;
    color: #444444 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    margin: 3px !important;
    text-decoration: none !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.2s ease !important;
}
.sidebar .tagcloud a:hover,
.sidebar .widget_tag_cloud a:hover {
    background-color: #1c1d1f !important;
    color: #ffffff !important;
    border-color: #1c1d1f !important;
}

/* =========================================================
   4. Footer Component
   ========================================================= */
.pixelline-footer {
    background-color: #1c1d1f !important;
    color: #ffffff !important;
    margin-top: 60px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-top-tag-bar {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tag-cloud-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-tag-btn {
    display: inline-block !important;
    background-color: #2b2c2e !important;
    color: #dbdbdb !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.footer-tag-btn:hover {
    background-color: #ffffff !important;
    color: #1c1d1f !important;
}

.footer-bottom-bar {
    background-color: #161718 !important;
    padding: 25px 0 !important;
}
.footer-bottom-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
}
.footer-nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 24px !important;
}
.footer-nav-links li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.footer-nav-links li a {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
}
.footer-nav-links li a:hover {
    opacity: 0.7 !important;
}
.footer-copyright {
    font-size: 14px !important;
    color: #888888 !important;
}

/* =========================================================
   5. Vertical Sticky Elements (Left & Right - Appears on Scroll)
   ========================================================= */
.sticky-wrap {
    position: fixed !important;
    top: 50% !important;
    left: 20px !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: rotate(-90deg) translate(-50%, 0) !important;
    transform-origin: left top !important;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

.sticky-wrap.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.sticky-wrap ul {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 16px !important;
    white-space: nowrap !important;
}

.sticky-wrap ul li {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    list-style: none !important;
}

.sticky-wrap .sticky-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1c1d1f !important;
}

.sticky-wrap ul li a {
    color: #1c1d1f !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.sticky-wrap ul li a:hover {
    color: #0056b3 !important;
}

.sticky-wrap .separator-line-1px {
    display: inline-block !important;
    width: 10px !important;
    height: 1px !important;
    background-color: #1c1d1f !important;
    margin-left: 12px !important;
    vertical-align: middle !important;
}

/* Right Side Vertical Scroll Progress Bar */
.scroll-progress {
    position: fixed !important;
    right: 25px !important;
    top: 50% !important;
    z-index: 99999 !important;
    transform: translateY(-50%) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
}
.scroll-progress.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.scroll-progress .scroll-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.scroll-progress .scroll-text {
    transform: rotate(180deg) !important;
    writing-mode: vertical-lr !important;
    margin-bottom: 12px !important;
    color: #1c1d1f !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.scroll-progress .scroll-line {
    width: 2px !important;
    height: 60px !important;
    position: relative !important;
    background-color: rgba(28, 29, 31, 0.15) !important;
    display: block !important;
}
.scroll-progress .scroll-point {
    display: inline-block !important;
    width: 2px !important;
    height: 0px;
    position: absolute !important;
    background-color: #1c1d1f !important;
    top: 0px !important;
    left: 0px !important;
    transition: height 0.1s ease !important;
}

/* =========================================================
   6. Blog Container
   ========================================================= */
.pixelline-blog-container {
    max-width: 1240px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

/* =========================================================
   7. Mobile Media Queries
   ========================================================= */
@media (max-width: 1199px) {
    .sticky-wrap,
    .scroll-progress {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .header-inner-container {
        padding: 12px 20px;
    }
    .pixelline-mobile-toggler {
        display: flex !important;
    }
    .header-nav-wrap {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #eeeeee !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
        display: none !important;
        padding: 20px !important;
    }
    .header-nav-wrap.active {
        display: block !important;
    }
    .header-nav-list {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    .header-dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8f9fa !important;
        margin-top: 8px !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .header-right-widget {
        display: none !important;
    }
    .footer-bottom-flex {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
    .footer-nav-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}