/*
Theme Name:   GeneratePress Child
Theme URI:    https://generatepress.com
Description:  AndroidScroll Child Theme
Template:     generatepress
Version:      3.0
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1.  GLOBAL VARIABLES
   2.  FONT LOADING
   3.  BASE TYPOGRAPHY & RESETS
   4.  ARTICLE CONTAINER
   5.  FORMS, BUTTONS & SELECTIONS
   6.  IMAGES & GALLERIES
   7.  HEADER & NAVIGATION
   7b. NAV OVERLAY & LIVE SEARCH
   8.  POST META & BREADCRUMBS
   9.  POST CONTENT
   10. TABLES
   11. AUTHOR BOX & ARCHIVE HERO
   12. ARCHIVE PAGE
   13. RELATED POSTS & COMMENTS
   14. FOOTER
   15. UI UTILITIES
   16. HOMEPAGE
   17. DARK MODE
   ========================================================================== */


/* ==========================================================================
   1. GLOBAL VARIABLES
   ========================================================================== */
:root {
    /* Brand */
    --brand-primary:          #00A88F;
    --brand-hover:            #008c72;
    --brand-light:            #eef9f6;

    /* Typography */
    --font-heading:           'Space Grotesk', Arial, sans-serif;
    --font-body:              'Inter', Arial, sans-serif;

    /* Text */
    --text-main:              #1a1a1a;
    --text-dark:              #000000;
    --text-muted:             #555555;

    /* Backgrounds */
    --bg-body:                #f5f5f5;  /* GP grey page background */
    --bg-surface:             #ffffff;  /* Cards, posts */
    --bg-surface-2:           #f0f8f8;  /* TOC, comment boxes, hover */
    --bg-footer:              #f5fdfd;
    --bg-header:              #ffffff;
    --bg-overlay:             rgba(0, 0, 0, 0.05);

    /* Borders & Shadows */
    --border-light:           #e1eaea;
    --border-dark:            #c8d3d3;
    --shadow-soft:            0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-surface:         0 6px 18px rgba(0, 0, 0, 0.3);

    /* UI */
    --radius-main:            5px;
    --container-side-padding: 23px;
    --table-cells-padding:    16px;
}


/* ==========================================================================
   2. FONT LOADING
   ========================================================================== */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal; font-weight: 700; font-display: swap;
    src: url('fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal; font-weight: 600; font-display: swap;
    src: url('fonts/space-grotesk-v22-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal; font-weight: 600; font-display: swap;
    src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}


/* ==========================================================================
   3. BASE TYPOGRAPHY & RESETS
   ========================================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

html, body {
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust:    100% !important;
    text-size-adjust:         100% !important;
    max-width: 100%;
    overflow-x: hidden;
    word-spacing: 0.125em;
}
body {
    font-family: var(--font-body);
    font-weight: 400;
font-size: 18px;
    line-height: 1.75;
    color: var(--text-main);
    letter-spacing: -0.01em;
    padding-top: 51px;
}
@media (min-width: 769px) {
    body { padding-top: 50px; }
    body, .entry-content ul, .entry-content ol { font-size: 18.5px; }
}

p { margin-bottom: 1.4em; }
code { font-size: 0.85em; font-style: italic; }
pre { background: var(--bg-surface-2); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0.9em;
    line-height: 1.55;
    letter-spacing: -0.03em;
    word-spacing: 0.175em;
}
h1, .entry-title { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.5; }
h2 { font-size: 26.75px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.7; }
h4 { font-size: 18.75px; font-weight: 500; }
h2, h3, h4 { scroll-margin-top: 70px; }
h2[id] { scroll-margin-top: 100px; }

@media (min-width: 769px) {
    h1, .entry-title { font-size: 38.5px; }
    h2 { font-size: 34.5px; }
    h3 { font-size: 26.5px; }
    h4 { font-size: 22.5px; }
}

.single .entry-title { margin-bottom: 0.25em; }
.single .entry-header { margin-top: 0; }

.entry-content p, .entry-content li { text-align: left; }
.entry-content strong { font-weight: 600; color: var(--text-dark); }

.premium-lede {
    font-size: 1.25rem; line-height: 1.6;
    color: var(--text-main); font-weight: 400; margin-bottom: 25px;
}

/* Custom list icons */
.entry-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}
.entry-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    line-height: 1.6;
}
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 4px;
    width: 22px; height: 22px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231B3A6B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="10 16 14 12 10 8"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}
.entry-content ul ul { margin-top: 12px; margin-bottom: 0; }

/* Custom numbered lists */
.entry-content ol {
    list-style: none;
    counter-reset: custom-step-counter;
    padding-left: 0;
    margin-bottom: 1.5em;
}
.entry-content ol li {
    counter-increment: custom-step-counter;
    position: relative;
    padding-left: 45px;
    margin-bottom: 16px;
    line-height: 1.6;
}
.entry-content ol li::before {
    content: counter(custom-step-counter);
    position: absolute;
    left: 0; top: 2px;
    width: 28px; height: 28px;
    background-color: var(--brand-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
.entry-content ol ol { margin-top: 12px; margin-bottom: 0; }
.entry-content li { margin-bottom: 0.7em; color: var(--text-main); }

::-moz-selection { color: #fff; background: var(--brand-primary); }
::selection      { color: #fff; background: var(--brand-primary); }


/* ==========================================================================
   4. ARTICLE CONTAINER
   ========================================================================== */
.inside-article {
    box-sizing: border-box !important;
    padding-left:  var(--container-side-padding) !important;
    padding-right: var(--container-side-padding) !important;
    overflow-x: hidden;
    display: block;
}
.inside-article > * { max-width: 100% !important; box-sizing: border-box !important; }
.inside-article img { height: auto !important; max-width: 100% !important; }
.inside-article p { overflow-wrap: break-word; word-wrap: break-word; hyphens: manual; }
.entry-content { max-width: 72ch; margin-left: auto; margin-right: auto; }


/* ==========================================================================
   5. FORMS, BUTTONS & SELECTIONS
   ========================================================================== */
button, .button, input[type="submit"] {
    margin-bottom: 20px !important;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--radius-main);
}
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"],
textarea, select, label, ::placeholder {
    font-family: var(--font-body);
    border-radius: var(--radius-main);
}


/* ==========================================================================
   6. IMAGES & GALLERIES
   ========================================================================== */
.wp-block-image { margin: 20px 0 40px; }
.wp-block-gallery { margin-bottom: 2em; }
.wp-block-gallery .wp-block-image { margin-bottom: 1em !important; }
img { -webkit-user-drag: none; user-select: none; }

.featured_ish img, .featured-image img {
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-soft);
    margin-bottom: 0;
    transition: transform 0.3s ease;
}
.featured-image img:hover { transform: translateY(-3px); }
.inside-article .entry-content img { border-radius: var(--radius-main); }

img.emoji, img.wp-smiley, .wp-block-image img[src*="emoji"] {
    width: 1.2em !important; height: 1.2em !important;
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
    border-radius: 0 !important;
}

@media screen and (min-width: 600px) {
    .entry-content .wp-block-image img,
    .entry-content img:not(.emoji),
    .wp-block-gallery img,
    .wp-block-gallery .wp-block-image img {
        display: block !important;
        margin: 0 auto !important;
        width: auto !important;
        max-width: 350px !important;
    }
}

.entry-content img { opacity: 0; animation: fadeImg 0.4s ease forwards; }
@keyframes fadeImg { to { opacity: 1; } }

figure.wp-block-image,
.wp-block-gallery .wp-block-image,
.gallery-item { border-radius: var(--radius-main) !important; }


/* ==========================================================================
   7. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 9999;
    margin-bottom: -14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}
.site-header.is-hidden { transform: translateY(-100%); }

.inside-header { padding: 2px var(--container-side-padding) !important; }
@media (min-width: 769px) { .inside-header { padding: 0 20px !important; } }

/* Menu toggle — remove Samsung grey box */
.menu-toggle,
button#mobile-header-menu-trigger,
.mobile-menu-control-wrapper .menu-toggle,
button.menu-toggle,
button.menu-toggle:hover,
button.menu-toggle:focus,
button.menu-toggle:active,
#mobile-header .menu-toggle,
#mobile-header .menu-toggle:hover,
#mobile-header .menu-toggle:focus,
#mobile-header .menu-toggle:active,
.main-navigation .menu-toggle:hover,
.main-navigation .menu-toggle:focus {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.menu-toggle { margin-bottom: -1px !important; margin-right: -15px !important; }
#mobile-header .menu-toggle .gp-icon,
.main-navigation .menu-toggle .gp-icon { background-color: transparent !important; }

/* Nav links */
.main-navigation .main-nav ul li a {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.main-navigation .main-nav ul li > a { position: relative; }
.main-navigation .main-nav ul li > a:after {
    content: '';
    position: absolute;
    bottom: 15px; left: 50%;
    width: 0; height: 2px;
    background: var(--brand-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.main-navigation .main-nav ul li:hover > a:after,
.main-navigation .main-nav ul li.current-menu-item > a:after { width: 60%; }

/* Start Here button */
.main-navigation .main-nav ul li:first-child a {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 8px 20px !important;
    margin-right: 15px;
    line-height: 1 !important;
    box-shadow: var(--shadow-soft);
}
.main-navigation .main-nav ul li:first-child a:after { display: none; }
.main-navigation .main-nav ul li:first-child a:hover {
    background-color: var(--brand-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-surface);
}
@media (max-width: 769px) { .main-navigation .main-nav ul li:first-child a { margin-bottom: 20px; } }

.main-navigation.toggled .main-nav ul li a {
    width: 100%;
    border-top: 1px solid var(--border-dark);
    background: #fff;
}
.main-navigation .main-nav ul:first-child { background: #fff !important; }


/* ==========================================================================
   7b. NAV OVERLAY & LIVE SEARCH
   ========================================================================== */
body.as-no-scroll { overflow: hidden; }

/* Nav overlay */
.as-overlay {
    position: fixed; inset: 0;
    z-index: 99999;
    background: var(--bg-header);
    display: flex; flex-direction: column;
    padding: 12px var(--container-side-padding) 28px;
    pointer-events: none; opacity: 0;
    transition: opacity 0.25s ease;
}
.as-overlay--open { opacity: 1; pointer-events: all; }

.as-overlay-top {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; flex-shrink: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4px;
    padding: 40px 0;
}
.as-ov-logo {
    display: flex; align-items: center;
    text-decoration: none !important;
    opacity: 0.35; pointer-events: none;
    overflow: hidden; max-width: 55%}
.as-ov-logo img { height: 30px !important; width: auto !important; max-width:100%; display: block}
.as-ov-logo-text {
    font-family: var(--font-heading); font-size: 17px; font-weight: 700;
    color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.as-overlay-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    border: none; background: transparent;
    border-radius: var(--radius-main); cursor: pointer;
    color: var(--text-muted); padding: 0;
    transition: color 0.18s; -webkit-appearance: none; -webkit-tap-highlight-color: transparent;
    margin: 20px 0 0;
    margin-left:20px
}
.as-overlay-close:hover { color: var(--brand-primary);
    background: var(--brand-light);
}

.as-overlay-nav {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 2px 0;
}
.as-overlay-nav::-webkit-scrollbar { display: none; }

.as-overlay-group { border-bottom: 1px solid var(--border-light); }
.as-overlay-group:last-child { border-bottom: none; }

/* Parent items (with children) */
.as-overlay-item {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 0; color: var(--text-dark);
    transform: translateY(14px); opacity: 0;
    transition: transform 0.38s ease, opacity 0.38s ease;
    -webkit-tap-highlight-color: transparent;
}
.as-overlay--open .as-overlay-item { transform: translateY(0); opacity: 1; }

.as-oi-num {
    font-family: var(--font-heading); font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; color: var(--border-dark); width: 18px; flex-shrink: 0; padding-top: 2px;
}
.as-oi-label { flex: 1; min-width: 0; }
.as-oi-label a.as-oi-link {
    display: block; font-family: var(--font-heading);
    font-size: clamp(24px, 8vw, 44px); font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.15;
    color: var(--text-dark) !important; text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}
.as-oi-label a.as-oi-link:hover { color: var(--brand-primary) !important; }
.as-oi-arrow { color: var(--border-dark); flex-shrink: 0; transition: transform 0.2s, color 0.18s; }
.as-overlay-item:hover .as-oi-arrow { transform: translateX(3px); color: var(--brand-primary); }

/* Flat nav items — full row is the link */
.as-overlay-group:not(.has-children) .as-overlay-item.as-oi-link {
    display: flex; align-items: center; gap: 12px; padding: 15px 0;
    text-decoration: none !important; color: var(--text-dark) !important;
    -webkit-tap-highlight-color: transparent;
}
.as-overlay-group:not(.has-children) .as-overlay-item.as-oi-link .as-oi-label {
    font-family: var(--font-heading); font-size: clamp(24px, 8vw, 44px);
    font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
}
.as-overlay-group:not(.has-children) .as-overlay-item.as-oi-link:hover { color: var(--brand-primary) !important; }
.as-overlay-group:not(.has-children) .as-overlay-item.as-oi-link:hover .as-oi-arrow { transform: translateX(3px); color: var(--brand-primary); }

/* Chevron button */
.as-oi-chevron-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0;
    border: none; background: transparent; border-radius: 50%;
    cursor: pointer; color: var(--text-muted); padding: 0;
    transition: color 0.18s, background 0.18s;
    -webkit-appearance: none; -webkit-tap-highlight-color: transparent;
}
.as-oi-chevron-btn:hover { color: var(--brand-primary); background: var(--brand-light); }
.as-overlay-group.is-open .as-oi-chevron-btn { color: var(--brand-primary); }
.as-oi-chevron { display: block; transition: transform 0.25s ease; }
.as-overlay-group.is-open .as-oi-chevron { transform: rotate(180deg); }

/* Submenu accordion */
.as-submenu { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; padding-left: 30px; }
.as-submenu-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 0; font-family: var(--font-body); font-size: 15px; font-weight: 500;
    color: var(--text-main) !important; text-decoration: none !important;
    border-bottom: 1px solid var(--border-light);
    transition: color 0.15s, padding-left 0.15s; -webkit-tap-highlight-color: transparent;
}
.as-submenu-item:last-child { border-bottom: none; margin-bottom: 10px; }
.as-submenu-item svg { color: var(--border-dark); flex-shrink: 0; transition: color 0.15s, transform 0.15s; }
.as-submenu-item:hover { color: var(--brand-primary) !important; padding-left: 4px; }
.as-submenu-item:hover svg { color: var(--brand-primary); transform: translateX(2px); }

/* Overlay footer */
.as-overlay-foot {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; padding-top: 16px;
    border-top: 1px solid var(--border-light); flex-shrink: 0; margin-top: 4px;
}
.as-overlay-cta {
    display: inline-flex; align-items: center;
    padding: 9px 20px; background: var(--brand-primary);
    color: #ffffff !important; text-decoration: none !important;
    border-radius: 50px; font-family: var(--font-body); font-size: 13px; font-weight: 600;
    box-shadow: var(--shadow-soft); transition: background 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.as-overlay-cta:hover { background: var(--brand-hover); transform: translateY(-1px); }
.as-overlay-tagline { font-family: var(--font-body); font-size: 12px; color: var(--text-muted); margin: 0; }

/* Overlay ad slot */
.as-overlay-ad { padding: 12px 0 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.as-overlay-ad ins, .as-overlay-ad > * { max-width: 100%; border-radius: var(--radius-main); overflow: hidden; }

/* Affiliate ad card */
.as-affiliate-ad {
    display: flex; align-items: center; gap: 12px; width: 100%;
    background: var(--bg-surface); border: 1px solid var(--border-light);
    border-radius: var(--radius-main); padding: 10px 12px;
    text-decoration: none !important; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s; -webkit-tap-highlight-color: transparent;
}
.as-affiliate-ad:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.1); transform: translateY(-1px); }
.as-ad-img { width: 68px; height: 68px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--bg-surface-2); }
.as-ad-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; }
.as-ad-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.as-ad-label { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.as-ad-headline { font-family: var(--font-heading); font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--text-dark); margin: 0; }
.as-ad-cta { flex-shrink: 0; background: #F5A623; color: #fff; font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 6px; white-space: nowrap; }
.as-affiliate-ad:hover .as-ad-cta { background: #e6951a; }

/* Live search overlay */
.as-search-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg-header); display: flex; flex-direction: column;
    pointer-events: none; opacity: 0; transition: opacity 0.22s ease;
}
.as-so--open { opacity: 1; pointer-events: all; }
.as-so-top {
    display: flex; align-items: center; gap: 12px;
    padding: 22px 16px 12px; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.as-so-input-wrap {
    flex: 1; display: flex; align-items: center; gap: 9px;
    background: var(--bg-surface-2); border-radius: 10px; padding: 10px 13px;
    color: var(--text-muted); min-width: 0;
}
.as-so-input-wrap svg { flex-shrink: 0; }
.as-so-input-wrap input[type="search"] {
    flex: 1; min-width: 0;
    border: none !important; outline: none !important; box-shadow: none !important;
    background: transparent !important; font-family: var(--font-body); font-size: 16px;
    color: var(--text-dark) !important;
    padding: 0 !important; margin: 0 !important; height: auto !important;
    border-radius: 0 !important; -webkit-appearance: none;
}
.as-so-input-wrap input::placeholder { color: var(--text-muted); }
.as-so-input-wrap input::-webkit-search-cancel-button,
.as-so-input-wrap input::-webkit-search-decoration { display: none; }
.as-so-clear {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; flex-shrink: 0;
    border: none; background: var(--text-muted); border-radius: 50%;
    cursor: pointer; color: #fff; padding: 0;
    -webkit-tap-highlight-color: transparent; transition: background 0.15s;
    margin-top:18px
}
.as-so-clear:hover { background: var(--text-dark)}
.as-so-dismiss {
    border: none; background: transparent; cursor: pointer;
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    color: var(--brand-primary); padding: 8px 0 8px 4px;
    flex-shrink: 0; white-space: nowrap; -webkit-tap-highlight-color: transparent;margin-top: 18px;
}
.as-so-dismiss:hover{background: var(--brand-light);}
.as-so-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 16px; }
.as-so-hint { font-family: var(--font-body); font-size: 14px; color: var(--text-muted); text-align: center; margin-top: 50px; }
.as-so-loading { display: flex; align-items: center; justify-content: center; padding-top: 60px; }
.as-so-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--border-light); border-top-color: var(--brand-primary);
    border-radius: 50%; animation: as-spin 0.65s linear infinite;
}
@keyframes as-spin { to { transform: rotate(360deg); } }
.as-so-empty { text-align: center; padding-top: 50px; font-family: var(--font-body); color: var(--text-muted); font-size: 15px; }
.as-so-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (max-width: 360px) { .as-so-cards { grid-template-columns: 1fr; } }
.as-so-card {
    display: flex; flex-direction: column;
    background: var(--bg-surface); border: 1px solid var(--border-light);
    border-radius: var(--radius-main); overflow: hidden;
    text-decoration: none !important;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
    -webkit-tap-highlight-color: transparent;
}
.as-so-card:hover { border-color: var(--brand-primary); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.as-so-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-surface-2); }
.as-so-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-so-card-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.as-so-card-type { font-family: var(--font-heading); font-size: 9px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand-primary); }
.as-so-card-title { font-family: var(--font-heading); font-size: 12.5px; font-weight: 600; color: var(--text-dark); line-height: 1.4; letter-spacing: -0.02em; }
.as-so-card-title mark { background: transparent; color: var(--brand-primary); font-weight: 700; }
.as-so-full-link { display: block; text-align: center; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--brand-primary) !important; text-decoration: none !important; padding: 14px 0 4px; border-top: 1px solid var(--border-light); }
.as-so-full-link:hover { text-decoration: underline !important; }


/* ==========================================================================
   8. POST META & BREADCRUMBS
   ========================================================================== */
.bread_ish { margin: 0 0 30px; font-size: 0.8em; font-weight: 500; color: #8a8f98; letter-spacing: 0.1px; }
.bread_ish a { color: #8a8f98; text-decoration: none; transition: color 0.2s ease; }
.bread_ish a:hover { color: var(--brand-primary); }
.bread_ish span.separator { opacity: 0.5; margin: 0 6px; font-size: 1.05em; }

.category_meta a, .entry-header .category_meta a {
    background-color: var(--brand-light); color: var(--brand-primary);
    border: none !important; border-radius: var(--radius-main);
    padding: 8px 5px; font-size: 9px; font-weight: 600; text-transform: uppercase;
    text-decoration: none; margin-right: 5px; margin-bottom: 20px;
    display: inline-block; letter-spacing: 0.6px;
}

.entry-meta { margin: 37px 0 40px; }
.scrollable-meta {
    display: flex; align-items: center; flex-wrap: nowrap;
    white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 0; padding-bottom: 5px; padding-right: 20px;
    max-width: 100%; font-size: 0.75em; color: var(--text-muted);
    -ms-overflow-style: none; scrollbar-width: none;
}
.scrollable-meta::-webkit-scrollbar { display: none; }
.scrollable-meta > * { flex-shrink: 0; }
.meta-author-wrapper, .meta-comments-wrapper { font-weight: 700; color: var(--text-main); }
.meta-author-wrapper a, .meta-comments-wrapper a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.meta-author-wrapper img { border-radius: 50%; width: 24px; height: 24px; margin: 0; }
.meta-sep { opacity: 0.4; font-size: 12px; margin: 0 10px; display: inline-block; }
.meta-date-wrapper, .meta-read-time, .meta-comments-wrapper { display: inline-flex; align-items: center; gap: 4px; }
.meta-scroll-wrapper { border-top: 1px solid var(--text-dark); border-bottom: 1px solid var(--text-dark); padding: 17.5px 0; }
@media (max-width: 600px) {
    .meta-scroll-wrapper { position: relative; margin: 25px 0; }
    .meta-scroll-wrapper::after {
        content: ''; position: absolute; top: 0; right: 0;
        height: 100%; width: 30px;
        background: linear-gradient(to right, transparent, var(--bg-surface));
        pointer-events: none;
    }
    .scrollable-meta { padding-bottom: 0; padding-right: 30px; animation: scroll-nudge 1.5s ease-in-out 0.5s 1; }
}
@keyframes scroll-nudge { 0% { transform: translateX(0); } 40% { transform: translateX(-30px); } 100% { transform: translateX(0); } }


/* ==========================================================================
   9. POST CONTENT
   ========================================================================== */
blockquote {
    background-color: var(--bg-surface-2);
    border-left: 5px solid var(--brand-primary);
    padding: 25px 45px; margin: 40px 0;
    border-radius: var(--radius-main);
    position: relative; font-family: var(--font-body);
    font-size: 0.95em; line-height: 1.7; font-style: normal;
}
blockquote p { color: #2c3e50; font-size: 1em; margin: 0; }
blockquote::before {
    content: "\201C"; font-family: Georgia, serif; font-size: 72.5px;
    color: var(--brand-primary); opacity: 0.15;
    position: absolute; top: -12.5px; left: 7.5px;
}
blockquote strong, blockquote b { color: var(--brand-primary) !important; text-transform: uppercase; font-weight: 800; }

.inline-read-also { padding: 25px; margin: 38px 0; background: var(--bg-surface-2); border-left: 4px solid var(--brand-primary); font-size: 0.925em; line-height: 1.7; border-radius: var(--radius-main); }
.read-also-label { font-weight: 800; color: var(--text-dark); margin-right: 5px; }
.inline-read-also a { color: var(--brand-primary); text-decoration: underline; font-weight: 500; }

figcaption { font-size: 0.95em !important; margin-bottom: 5px !important; color: #555; }

/* TOC */
.android-scroll-toc {
    background: var(--bg-surface-2); border: 1px solid var(--border-light);
    border-left: 4px solid var(--brand-primary); border-radius: var(--radius-main);
    padding: 17px; margin: 38px 0; font-family: inherit; clear: both; display: block;
}
.toc-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.toc-title { font-weight: 700; font-size: 1.1rem; color: var(--text-dark); }
.toc-toggle::after { content: "\2212"; color: var(--brand-primary); font-weight: bold; font-size: 1.2rem; }
.android-scroll-toc.toc-collapsed .toc-toggle::after { content: "\002B"; }
.android-scroll-toc.toc-collapsed .toc-list { display: none; }
.toc-list { list-style: none !important; margin: 15px 0 0 !important; padding: 10px 0 0 !important; border-top: 1px solid rgba(0,0,0,0.05); }
.toc-list li { margin-bottom: 15px !important; line-height: 1.4; display: flex; align-items: flex-start; }
.toc-list li::before { content: "\25BB"; padding-right: 8px; flex-shrink: 0;  color: var(--brand-primary)}
.toc-list a { text-decoration: none; color: var(--text-main); font-size: 1.15rem; transition: color 0.2s; }
.toc-list a:hover { color: var(--brand-primary); }

/* Quick Summary */
.quick_summary ul, .quick_summary ol { margin: 10px 25px 25px 30px; padding-left: 10px; }
.quick_summary p { margin: 15px 20px 0; }
.quick_summary li { padding-bottom: 0; line-height: 1.4; }
p.first-p { margin-top: -22.5px !important; }
.quick_summary { background-color: var(--bg-surface-2); border-radius: var(--radius-main); overflow: hidden; margin: 2em 0; }
.quick_summary > p:first-child { background-color: var(--brand-primary); color: #ffffff; padding: 12px 16px; margin: 0; font-size: 1.175em; width: 100%; font-family:var(--font-heading)}
.quick_summary > p:first-child strong { color: #ffffff; }
.quick_summary ul.wp-block-list li { line-height: 1.6; color: var(--text-main); }
.quick_summary ul.wp-block-list li strong { color: var(--brand-primary); }
.quick_summary > p:last-child { padding: 0 20px 30px; margin: 0; }

/* Sticky sidebar */
@media (min-width: 769px) { .sidebar-main { position: sticky; top: 20px; } }

.native-share-trigger { display: none; align-items: center; cursor: pointer; border: none; padding: 8px 16px; width: 100%; border-radius: var(--radius-main); margin-bottom: -20px !important; }


/* ==========================================================================
   10. TABLES
   ========================================================================== */
figure.wp-block-table {
    display: block !important; width: 100% !important; overflow-x: auto !important;
    margin: 30px 0 !important; border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-main); font-size: 0.9em; -webkit-overflow-scrolling: touch;
}
figure.wp-block-table table { border-collapse: collapse !important; border: none !important; width: 100% !important; min-width: 600px !important; background-color: var(--bg-surface); margin: 0 !important; }
figure.wp-block-table thead { background-color: var(--bg-surface-2) !important; border-bottom: 1px solid var(--border-light) !important; }
figure.wp-block-table thead th { font-family: var(--font-heading); padding: var(--table-cells-padding) !important; color: var(--brand-primary) !important; text-transform: uppercase; font-weight: 700; font-size: 0.975rem; text-align: left; border: none !important; border-right: 1px solid var(--border-light) !important; }
table thead tr strong, table thead tr p { color: var(--brand-primary) !important; }
figure.wp-block-table tbody td { padding: var(--table-cells-padding) !important; color: var(--text-main); border: none !important; border-bottom: 1px solid var(--border-light) !important; border-right: 1px solid var(--border-light) !important; }
figure.wp-block-table tbody td:first-child { background-color: var(--bg-surface-2) !important; font-weight: 600; }
figure.wp-block-table tfoot { background-color: var(--bg-surface-2) !important; border-top: 1px solid var(--border-light) !important; }
figure.wp-block-table tfoot td { padding: var(--table-cells-padding) !important; font-weight: 700; color: var(--text-main) !important; border: none !important; border-right: 1px solid var(--border-light) !important; }
figure.wp-block-table th:last-child, figure.wp-block-table td:last-child { border-right: none !important; }
figure.wp-block-table tbody tr:last-child td { border-bottom: none !important; }
figure.wp-block-table::-webkit-scrollbar { height: 5px; width: 5px; }
figure.wp-block-table::-webkit-scrollbar-track { background: var(--border-light) !important; border-radius: var(--radius-main); }
figure.wp-block-table::-webkit-scrollbar-thumb { background: var(--brand-primary) !important; border-radius: var(--radius-main); }
figure.wp-block-table th img { max-width: 50px !important; width: 100% !important; height: auto !important; margin: 5px auto !important; display: block !important; }


/* ==========================================================================
   11. AUTHOR BOX & ARCHIVE HERO
   ========================================================================== */
.page-header .author-info, .archive.author .page-header { display: none !important; }

.custom-author-box { margin: 40px 0; font-family: var(--font-body); }
.cab-inner { display: flex; background: #fff; padding: 30px; border: 1px solid rgba(0,0,0,0.03); align-items: flex-start; gap: 30px; transition: transform 0.3s ease; }
.cab-avatar-wrapper { flex-shrink: 0; position: relative; }
.cab-avatar-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.cab-content { flex-grow: 1; display: flex; flex-direction: column; }
.cab-header { margin-bottom: 12px; }
.cab-label { display: block; font-size: 11px; text-transform: uppercase; color: #999; font-weight: 700; margin-bottom: 4px; }
.cab-name { margin: 0; font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.cab-bio p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 0 0 20px; }
.cab-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0f0f0; padding-top: 15px; margin-top: auto; }
.cab-more-link { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--brand-primary); text-decoration: none; display: inline-flex; align-items: center; }
.cab-more-link:hover { color: var(--brand-hover); }
.cab-socials { display: flex; gap: 12px; align-items: center; }
.cab-social-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f4f6f7; transition: all 0.3s ease; }
.cab-social-icon svg { width: 14px; height: 14px; fill: #666; transition: fill 0.3s ease; }
.cab-social-icon:hover { transform: translateY(-2px); }
.cab-social-icon.twitter:hover { background: #000; }
.cab-social-icon.twitter:hover svg { fill: #fff; }
.cab-social-icon.facebook:hover { background: #1877F2; }
.cab-social-icon.facebook:hover svg { fill: #fff; }
@media (max-width: 768px) { .cab-inner { flex-direction: column; text-align: center; padding: 25px; gap: 20px; } .cab-avatar-wrapper { margin: 0 auto; } .cab-footer { flex-direction: column; gap: 15px; } .cab-more-link { order: 2; } .cab-socials { order: 1; width: 100%; justify-content: center; } }

.archive-author-hero { background: #fff; border-radius: var(--radius-main); box-shadow: 0 10px 30px -5px rgba(0,0,0,0.06); margin-bottom: 40px; border: 1px solid rgba(0,0,0,0.04); overflow: hidden; position: relative; font-family: var(--font-body); }
.archive-author-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--brand-primary); }
.aah-container { display: flex; padding: 40px; gap: 40px; align-items: center; }
.aah-avatar img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.12); }
.aah-details { flex: 1; }
.aah-subtitle { display: inline-block; font-size: 11px; text-transform: uppercase; color: var(--brand-primary); font-weight: 700; margin-bottom: 5px; }
.aah-title { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--text-dark); margin: 0 0 15px; line-height: 1.1; }
.aah-bio { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 25px; max-width: 600px; }
.aah-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.aah-stats span { font-size: 13px; color: #999; font-weight: 600; }
.aah-socials { display: flex; gap: 10px; }
.aah-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f4f6f7; transition: all 0.3s ease; }
.aah-icon svg { width: 16px; height: 16px; fill: #666; transition: fill 0.3s ease; }
.aah-icon:hover { transform: translateY(-3px); }
.aah-icon.twitter:hover { background: #000; }
.aah-icon.twitter:hover svg { fill: #fff; }
.aah-icon.facebook:hover { background: #1877F2; }
.aah-icon.facebook:hover svg { fill: #fff; }
@media (max-width: 768px) { .aah-container { flex-direction: column; text-align: center; padding: 30px 20px; gap: 20px; } .aah-avatar img { width: 120px; height: 120px; } .aah-bio { margin: 0 auto 20px; } .aah-footer { flex-direction: column; gap: 15px; width: 100%; } }


/* ==========================================================================
   12. ARCHIVE PAGE
   ========================================================================== */
.archive .page-header { padding-left: var(--container-side-padding); padding-right: var(--container-side-padding); }
.archive .inside-article, .blog .inside-article, .search .inside-article { background: none; }
.blog .site-main, .archive .site-main, .search .site-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; max-width: 100%; overflow-x: hidden; }
.blog .site-main > *:not(article), .archive .site-main > *:not(article), .search .site-main > *:not(article) { grid-column: 1 / -1; }

/* Archive card — border only, never box-shadow */
.as-archive-card {
    background: var(--bg-surface);
    border-radius: var(--radius-main);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: .25s;
    display: flex;
    flex-direction: column;
}
.as-archive-card:hover { transform: translateY(-4px); border-color: var(--brand-primary); }

.as-thumb { position: relative; overflow: hidden; }
.as-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.as-content { padding: 5px 22px 0 !important; }
.as-title { font-family: var(--font-heading); font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.as-title a { color: var(--text-dark); text-decoration: none; }
.as-title a:hover { color: var(--brand-primary); }
.as-excerpt { font-family: var(--font-body); font-size: 15px; color: var(--text-muted); line-height: 1.6; }

.as-cat-container { position: absolute !important; top: 15px !important; left: 15px !important; display: flex !important; flex-wrap: wrap !important; gap: 8px !important; z-index: 10 !important; }
.as-cat { position: relative !important; background-color: var(--brand-primary); padding: 4px 12px; border-radius: var(--radius-main); font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.as-cat a { color: #ffffff !important; text-decoration: none !important; display: inline-block; }
.as-cat a:hover { opacity: 0.9; }

/* No results */
.search-no-results .site-main, .archive .site-main { background: var(--bg-body); }
.as-no-results { background: var(--bg-body); min-height: 60vh; display: flex; justify-content: center; align-items: center; padding: 80px 20px; text-align: center; }
.as-no-results-inner { max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.as-no-results-icon { font-size: 3.5rem; margin-bottom: 8px; }
.as-no-results-inner h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-dark); }
.as-no-results-inner p { color: var(--text-muted); font-size: 0.9rem; }
.as-back-home { margin-top: 8px; display: inline-block; padding: 12px 28px; background: var(--brand-primary); color: var(--bg-body) !important; border-radius: var(--radius-main); font-weight: 700; font-size: 0.88rem; text-decoration: none; transition: opacity 0.2s; letter-spacing: 0.03em; }
.as-back-home:hover { opacity: 0.85; }


/* ==========================================================================
   13. RELATED POSTS & COMMENTS
   ========================================================================== */
.related-posts-container { background: #fff; padding: 20px 30px; }
.related-posts-section { margin-top: 50px; border-top: 1px solid #eee; padding-top: 30px; }
.related-posts-section h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 25px; color: #222; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-thumb img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-main) }
.related-meta { font-size: 12px; color: var(--brand-primary); font-weight: 700; margin: 10px 0 5px; text-transform: uppercase; }
.related-title { font-size: 16px; font-weight: 700; line-height: 1.4; color: #111; margin: 0; }
.related-card a { text-decoration: none; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } .related-thumb img { height: 200px; } }

.comment-intro { margin-bottom: 10px; padding-bottom: 10px; }
.comment-intro h4 { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin-bottom: 8px; color: #111; }
.comment-intro a { color: var(--brand-primary); text-decoration: none; font-weight: 700; border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.comment-intro a:hover { border-bottom-color: var(--brand-primary); }
.gp-comment-toggle-wrapper { text-align: center; margin: 40px 0 0; clear: both; }
.gp-comment-toggle-wrapper button { background: #fff; color: var(--text-dark); }
.gp-premium-square-btn { background-color: #fff; color: #2c3e50; font-family: var(--font-heading); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; padding: 16px var(--container-side-padding); border-radius: 0; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 12px; }
.gp-premium-square-btn:hover { color: var(--text-dark); }
.comments-area { margin-top: 20px; transition: opacity 0.3s ease; }
.comment-body { background: #fff; border-radius: 0 !important; padding: 24px; margin-bottom: 20px; padding-top: 20px !important; }
.comment-author cite { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: #000; }
.comment-metadata a { font-family: var(--font-body) !important; font-size: 13px; color: #999; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.reply a { font-family: var(--font-heading); font-weight: 700; font-size: 11px; text-transform: uppercase; background: #f0f0f0; padding: 8px 16px; border-radius: 0; color: var(--text-dark); text-decoration: none; transition: background 0.2s; border: 1px solid #ddd; }
.reply a:hover { background: #000; color: #fff; border-color: #000; }
.children { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.children > .comment { margin-left: 0; padding-left: 20px; border-left: 1px solid var(--text-dark); margin-top: 20px; }
.parent { margin-bottom: 20px; }
.comment-list > li.comment.parent > .comment-body,
.comment-list li.comment.parent > .comment-body { padding: 1px; margin-bottom: 29px; position: relative; }

.avatar-badge-wrap { position: relative; display: inline-block; line-height: 1; }
.avatar-badge-wrap img { display: block; border-radius: 50%; }
.avatar-badge { position: absolute; bottom: 0; right: 0; width: 38%; height: 38%; display: flex; align-items: center; justify-content: center; }
.avatar-badge svg { width: 100%; height: 100%; fill: var(--brand-primary); }

#comments { display: flex; flex-direction: column; }
#respond { order: -1; margin-bottom: 40px; }

@media (max-width: 600px) { .gp-premium-square-btn { width: 100%; justify-content: space-between; } .children > .comment { padding-left: 15px; } }
@media (max-width: 768px) { .site-main .comments-area { padding-left: var(--container-side-padding); padding-right: var(--container-side-padding); } }


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer, .site-footer a, .site-footer footer, .footer-widgets-container { background: var(--text-dark); color: #fff; border: none; }
.site-footer a { color: var(--brand-primary); text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.site-footer h2 { color: #fff; }
.site-footer h3.wp-block-heading { color: #fff; }
.site-footer { background: var(--text-dark) !important; border-top: 20px solid var(--brand-primary); overflow-wrap: break-word; word-break: break-word; }
.site-footer .inside-site-info { flex-wrap: wrap; }
.site-footer .androidscroll-sub-box { background-color: var(--text-dark) !important; border: none; box-shadow: none; }
.site-footer .androidscroll-sub-box h3, .site-footer .androidscroll-sub-box p, .site-footer .androidscroll-sub-box .sub-disclaimer { color: #ffffff !important; }
.site-footer .androidscroll-sub-input { background-color: #2d2d2d !important; border-color: #444444 !important; color: #ffffff !important; }
.wplogout-social-wrapper { margin: 30px 0; font-size: 0; }
.wplogout-social-wrapper span { font-weight: bold; padding-right: 10px; font-size: 16px; }
.wplogout-social-sharing { font-size: 17px; padding: 7px 20px; }
.wplogout-social-sharing svg { position: relative; top: 0.15em; display: inline-block; }


/* ==========================================================================
   15. UI UTILITIES
   ========================================================================== */
/* Progress bar */
.as-progress-container, .reading-progress-container { width: 100%; height: 4px; background: transparent; position: fixed; top: 0; z-index: 9999; }
.as-progress-bar, .progress-bar { height: 4px; background: var(--brand-primary); width: 0%; transition: width 0.1s ease; }
.progress-bar { background: linear-gradient(90deg, var(--brand-hover), var(--brand-primary)); transition: width 0.15s ease-out, opacity 0.3s ease; }

/* Share buttons */
.scriptlesssocialsharing { margin-bottom: 10px; }
.scriptlesssocialsharing .twitter { border-radius: var(--radius-main) 0 0 var(--radius-main) !important; }
.scriptlesssocialsharing .telegram { border-radius: 0 var(--radius-main) var(--radius-main) 0 !important; }
.scriptlesssocialsharing__buttons { display: flex !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
.scriptlesssocialsharing__buttons a.button { flex: 1; display: flex; justify-content: center; align-items: center; padding: 15px 0; text-decoration: none; }
.scriptlesssocialsharing__buttons a.button svg, .scriptlesssocialsharing__buttons a.button .ss-icon { width: 20px !important; height: 20px !important; font-size: 20px !important; }
.scriptlesssocialsharing .button { background: var(--brand-primary); border-radius: 0; border: 0 solid var(--border-light); }

/* 404 & Search */
.error404 .search-form, .no-results .search-form { display: flex; max-width: 100%; width: 500px; margin-top: 25px; }
.error404 .search-form label, .no-results .search-form label { flex-grow: 1; margin-bottom: 0; }
.error404 .search-field, .no-results .search-field { width: 100%; height: 50px; background-color: #f7f7f7; border: 2px solid #e6e6e6; border-right: none; border-radius: 4px 0 0 4px; padding: 0 20px; font-size: 16px; transition: all 0.3s ease; }
.error404 .search-field:focus, .no-results .search-field:focus { border-color: var(--brand-primary); background-color: #ffffff; outline: none; }
.error404 .search-submit, .no-results .search-submit { height: 50px; background-color: var(--brand-primary); color: #ffffff; border: 2px solid var(--brand-primary); border-radius: 0 4px 4px 0; padding: 0 25px; cursor: pointer; transition: background-color 0.3s ease; }
.error404 .search-submit:hover, .no-results .search-submit:hover { background-color: var(--brand-hover); border-color: var(--brand-hover); }

/* Ad slots */
.custom-ad-slot { display: block; clear: both; margin: 20px auto; text-align: center; max-width: 100%; }
.custom-ad-slot::before { content: 'Advertisement'; display: block; font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }

/* Sticky footer ad */
.as-sticky-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000; padding: 10px var(--container-side-padding); background: var(--bg-surface); border-top: 1px solid var(--border-light); box-shadow: 0 -4px 20px rgba(0,0,0,0.08); transform: translateY(100%); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease; pointer-events: none; }
.as-sticky-footer.as-sf--show { transform: translateY(0); opacity: 1; pointer-events: all; }
.as-sf-close { position: absolute; top: -11px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-light); background: var(--bg-surface); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.1); -webkit-tap-highlight-color: transparent; }
.as-sf-inner { display: flex; align-items: center; gap: 12px; text-decoration: none !important; -webkit-tap-highlight-color: transparent; }
.as-sf-img { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-main); overflow: hidden; background: var(--bg-surface-2); }
.as-sf-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; }
.as-sf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.as-sf-label { font-family: var(--font-body); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.as-sf-headline { font-family: var(--font-heading); font-size: 14px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-dark); margin: 0; }
.as-sf-sub { font-family: var(--font-body); font-size: 11px; color: var(--text-muted); }
.as-sf-cta { flex-shrink: 0; background: #F5A623; color: #fff; font-family: var(--font-body); font-size: 12px; font-weight: 700; padding: 9px 16px; border-radius: var(--radius-main); white-space: nowrap; transition: background 0.18s; }
.as-sf-inner:hover .as-sf-cta { background: #e6951a; }

/* Back to top */
#as-back-to-top { position: fixed; bottom: 90px !important; right: 40px; width: 42.5px; height: 42.5px; background-color: var(--brand-primary); color: var(--bg-body); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.15); cursor: pointer; z-index: 9999; text-decoration: none; opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.4s ease; }
#as-back-to-top:hover { background-color: var(--brand-hover); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
#as-back-to-top svg { width: 23px; height: 23px; fill: currentColor; stroke: var(--bg-body); transition: transform 0.5s ease; }
#as-back-to-top.show { opacity: 0.6; visibility: visible; pointer-events: auto; bottom: 30px; }
@media (hover: hover) { #as-back-to-top.show:hover { opacity: 1; transform: scale(1.1); } }
#as-back-to-top:active { opacity: 1; transform: scale(0.95); }
#as-back-to-top:active svg { animation: arrowDrop 0.6s ease forwards; }
@keyframes arrowDrop { 0% { transform: translateY(-8px); } 50% { transform: translateY(0); } 100% { transform: translateY(0); } }


/* ==========================================================================
   16. HOMEPAGE
   ========================================================================== */
.wrapper { max-width: 1180px; margin: auto; padding: 0 var(--container-side-padding); }
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.section-label h2 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dark); }
.section-label::before { content: ""; width: 3.5px; height: 18px; background: var(--brand-primary); border-radius: var(--radius-main); margin-bottom: 17px; }
.hero { padding: 60px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; grid-template-rows: auto auto; gap: 16px; }
.card-hero { grid-column: 1; grid-row: 1 / 3; border-radius: var(--radius-main); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-light); transition: .25s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-hero:hover { transform: translateY(-4px); border-color: var(--brand-primary); }
.card-hero img { width: 100%; height: 300px; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; background: var(--bg-surface); }
.card-title { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; line-height: 1.25; color: var(--text-dark); }
.home-tag { display: inline-flex; align-items: center; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-main); background: var(--brand-light); border: 1px solid var(--brand-primary); color: var(--brand-primary); width: fit-content; margin-bottom: 10px; }
.card-meta { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 12px; margin-top: auto; }
.dot { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }
.card-side { grid-column: 2; border-radius: var(--radius-main); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-light); transition: .25s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-side:hover { transform: translateY(-3px); border-color: var(--brand-primary); }
.card-side img { width: 100%; height: 170px; object-fit: cover; }
.card-side .card-body { padding: 16px; gap: 8px; }
.card-side .card-title { font-size: 1rem; }
.categories-section { padding: 50px 0; border-top: 1px solid var(--border-light); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-main); padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: .25s; position: relative; overflow: hidden; }
.cat-card:hover { transform: translateY(-3px); background: var(--bg-surface-2); border-color: var(--brand-primary); }
.cat-card::before { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--brand-primary); transform: scaleX(0); transition: .3s; transform-origin: left; }
.cat-card:hover::before { transform: scaleX(1); }
.cat-name { font-family: var(--font-heading); font-size: .95rem; font-weight: 700; }
.cat-count { font-size: .75rem; color: var(--text-muted); }
.cat-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 4px; }
.popular-section { padding: 50px 0; border-top: 1px solid var(--border-light); }
.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-popular { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-main); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: .25s; }
.card-popular:hover { transform: translateY(-4px); border-color: var(--brand-primary); }
.card-popular img { width: 100%; height: 180px; object-fit: cover; }
.card-popular .card-body { padding: 18px; gap: 8px; }
.card-popular .card-title { font-size: 1rem; }
.latest-section { padding: 50px 0; border-top: 1px solid var(--border-light); }
.latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: var(--radius-main); overflow: hidden; border: 1px solid var(--border-light); }
.card-latest { display: flex; gap: 16px; padding: 18px 20px; background: var(--bg-surface); text-decoration: none; color: inherit; border-bottom: 1px solid var(--border-light); border-right: 1px solid var(--border-light); transition: .2s; }
.card-latest:hover { background: var(--bg-surface-2); }
.card-latest:nth-child(even) { border-right: none; }
.card-latest:nth-last-child(-n+2) { border-bottom: none; }
.card-latest img { width: 70px; height: 70px; border-radius: var(--radius-main); object-fit: cover; }
.card-info { flex: 1; min-width: 0; }
.card-info .card-title { font-family: var(--font-heading); font-size: .9rem; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .card-hero { grid-row: auto; } .card-side { grid-column: 1; } .popular-grid { grid-template-columns: 1fr 1fr; } .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .popular-grid { grid-template-columns: 1fr; } .latest-grid { grid-template-columns: 1fr; } .card-latest { border-right: none; } }

/* Fire emoji */
.fire-container { position: relative; display: inline-block; font-size: 1.1rem; line-height: 1; filter: contrast(120%); }
.core { position: relative; display: inline-block; z-index: 3; animation: flicker 0.1s infinite alternate; filter: drop-shadow(0 0 5px #ffcc00); }
.mid, .outer { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; }
.mid { z-index: 2; opacity: 0.8; filter: blur(2px) drop-shadow(0 0 15px #ff6600); animation: sway 0.6s infinite ease-in-out alternate-reverse; }
.outer { z-index: 1; opacity: 0.5; filter: blur(6px) drop-shadow(0 0 20px #ff3300); animation: lick 1.2s infinite ease-in-out; }
@keyframes flicker { 0% { transform: scale(1, 1); } 100% { transform: scale(1.05, 0.95); } }
@keyframes sway { 0% { transform: rotate(-5deg) scale(1.1); } 100% { transform: rotate(5deg) scale(0.9); } }
@keyframes lick { 0% { transform: scale(1) translateY(0); opacity: 0.6; } 50% { transform: scale(1.2, 1.4) translateY(-15px); opacity: 0.2; } 100% { transform: scale(1) translateY(0); opacity: 0.6; } }


/* ==========================================================================
   17. DARK MODE
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-main:      #e9ecec;
        --text-dark:      #ffffff;
        --text-muted:     #9aa3a3;
        --brand-primary:  #00a88f;
        --brand-hover:    #00c9a6;
        --brand-light:    rgba(0, 224, 186, 0.18);
        --bg-body:        #080b0b;
        --bg-surface:     #0f1414;
        --bg-surface-2:   #171d1d;
        --bg-footer:      #050707;
        --bg-header:      #0a0f0f;
        --bg-overlay:     rgba(0, 0, 0, 0.75);
        --bg-black:       #000000;
        --border-dark:    #1f2727;
        --border-light:   #2a3333;
        --shadow-surface: 0 8px 24px rgba(0, 0, 0, 0.45);
    }

    html, body, .site, .site-wrapper, .site-content { background-color: var(--bg-body) !important; color: var(--text-main); }
    .separate-containers .inside-article, .one-container .site-content, .inside-page-header, .page-header, .comments-area, .sidebar .widget { background-color: var(--bg-surface) !important; color: var(--text-main); border-color: var(--border-dark); }
    .archive .inside-article, .blog .inside-article, .search .inside-article { background: transparent !important; }

    .site-header, .inside-header, .mobile-menu-control-wrapper { background-color: var(--bg-surface) !important; }
    .site-header { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); }
    button.menu-toggle, .menu-toggle, .mobile-menu-control-wrapper .menu-toggle, .menu-bar-items .search-item a, .navigation-search, .navigation-search input { background-color: var(--bg-surface) !important; color: var(--brand-primary) !important; }
    .main-navigation, .main-navigation .main-nav ul, .main-navigation .main-nav ul:first-child, .main-navigation.toggled .main-nav ul li, .main-navigation.toggled .main-nav ul li a { background-color: var(--bg-surface) !important; border-color: var(--brand-primary) !important; color: var(--text-main) !important; }
    .main-navigation .main-nav ul li a:hover { color: var(--brand-primary) !important; }
    .main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li > a:hover, .main-navigation .main-nav ul li.sfHover > a { background-color: var(--bg-surface-2) !important; color: var(--brand-primary) !important; }
    .main-navigation .main-nav ul li[class*="current-menu-"] > a, .main-navigation .main-nav ul li[class*="current-page-"] > a, .main-navigation .main-nav ul li[class*="current-category-"] > a { background-color: var(--bg-surface) !important; color: var(--brand-primary) !important; }
    .main-navigation .main-nav ul li[class*="current-menu-"]:hover > a, .main-navigation .main-nav ul li[class*="current-page-"]:hover > a, .main-navigation .main-nav ul li[class*="current-category-"]:hover > a, .main-navigation .main-nav ul li[class*="current-menu-"].sfHover > a { background-color: var(--bg-surface-2) !important; color: var(--brand-hover) !important; }
    .navigation-stick .main-navigation .main-nav ul li:hover > a, .navigation-stick .main-navigation .main-nav ul li[class*="current-menu-"] > a { background-color: var(--bg-surface-2) !important; }
    .main-navigation .main-nav ul li:first-child a { background-color: var(--brand-primary) !important; color: var(--text-dark) !important; }
    .main-navigation .main-nav ul li:first-child a:hover { background-color: var(--brand-hover) !important; }
    .menu-toggle { background-color: transparent !important; }

    .paging-navigation, .nav-links, .page-numbers { background-color: var(--bg-body) !important; color: var(--text-main) !important; }
    .nav-links .current, .nav-links a:hover { background-color: transparent !important; color: var(--brand-primary) !important; }

    h1, h2, h3, h4, h5, h6, .entry-title, .site-title a, .widget-title, .cab-name, .aah-title, .related-title, .comment-intro h4 { color: var(--text-dark) !important; }
    p, li, .entry-content, figcaption, .cab-bio p, .aah-bio { color: var(--text-main) !important; }
    strong, b, .meta-author-wrapper { color: var(--text-dark); }
    .meta-date-wrapper, .meta-read-time, .scrollable-meta, .cab-label { color: var(--text-muted) !important; }

    /* BUG FIX: archive card gets background + border only — no box-shadow */
    .as-archive-card { background-color: var(--bg-surface) !important; border: 1px solid var(--border-dark); }
    /* Other cards/components that legitimately get shadow */
    .custom-author-box .cab-inner, .archive-author-hero, .related-posts-container, .comment-body, .comment-content { background-color: var(--bg-surface) !important; border: 1px solid var(--border-dark); box-shadow: var(--shadow-surface); }
    .comment-content { box-shadow: none; }
    .as-title a { color: var(--text-dark); }
    .as-title a:hover { color: var(--brand-primary); }
    .as-excerpt { color: var(--text-muted); }
    .cat-card, .card-hero, .card-side, .card-popular, .card-latest { background: var(--bg-surface); }

    blockquote, .inline-read-also { background-color: var(--bg-surface-2); color: var(--text-main); border-left-color: var(--brand-primary); }
    blockquote p, .read-also-label { color: var(--text-dark) !important; }

    input[type="text"], input[type="email"], input[type="search"], textarea, select, .error404 .search-field { background-color: var(--bg-surface-2); border: 1px solid var(--border-dark); color: var(--text-dark) !important; }
    ::placeholder { color: var(--text-muted); }
    .gp-premium-square-btn, .reply a { background-color: var(--bg-surface-2); border-color: var(--border-dark); color: var(--text-dark); }
    .gp-premium-square-btn:hover, .reply a:hover { background-color: var(--brand-primary); border-color: var(--brand-primary); color: var(--text-dark); }

    .cab-social-icon, .aah-icon { background-color: var(--bg-surface-2); }
    .cab-social-icon svg, .aah-icon svg { fill: var(--text-main); }

    .android-scroll-toc { background-color: var(--bg-surface-2) !important; border: 1px solid var(--border-light) !important; border-left: 4px solid var(--brand-primary) !important; }
    .toc-title { color: var(--text-dark) !important; }
    .toc-list { border-top: 1px solid var(--border-light) !important; }
    .toc-list a { color: var(--text-main) !important; }
    .toc-list a:hover { color: var(--brand-primary) !important; }
    .toc-toggle::after { color: var(--brand-primary) !important; }

    .gp-comment-toggle-wrapper button { background-color: var(--bg-surface) !important; border: 1px solid var(--border-light) !important; color: var(--text-dark) !important; }
    #reply-title, .comment-reply-title, .comment-respond { color: var(--text-dark) !important; }
    .comment-notes, .comment-form-comment label { color: var(--text-main) !important; }
    .comment-form textarea, .comment-form input { background-color: var(--bg-surface) !important; border: 1px solid var(--border-light) !important; color: var(--text-dark) !important; }
    .comment-author, .comment-author .fn, .comment-author cite, .comment-author b, .comment-author a { color: var(--text-dark) !important; }
    .comment-author a:hover { color: var(--brand-primary) !important; }
    .comment-metadata, .comment-metadata a, .comment-metadata time { color: var(--text-muted) !important; }
    #commentform input#submit { background: var(--brand-primary) !important; border-radius: var(--radius-main); }
    #commentform input#submit:hover { background: var(--bg-surface-2) !important; }
    .comment-body { border: none; box-shadow: none; }
    .comment-content { border: 1px solid var(--border-dark) !important; }
    .children > .comment { border-bottom: 1px solid var(--border-dark); border-left: 1px solid var(--text-dark); }

    .site-footer, .footer-widgets-container, .site-info { background-color: var(--bg-black) !important; border-top-color: var(--brand-primary); color: var(--text-main); }
    .footer-widgets a, .footer-bar a, .site-footer a { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; color: var(--brand-primary); padding: 0 !important; }
    .footer-widgets a:hover, .footer-bar a:hover, .site-footer a:hover { color: var(--brand-hover); text-decoration: underline; }
    @media (max-width: 600px) { .meta-scroll-wrapper::after { background: linear-gradient(to right, transparent, var(--bg-surface)); } }
    .scriptlesssocialsharing .button { border-color: var(--border-dark) !important; }
    .as-sticky-footer { background: var(--bg-surface); }
    .as-back-home { color: var(--text-dark); }
}
