/*
Theme Name: Digital Classe
Theme URI: https://example.com/digital-classe
Author: Digital Classe
Description: A premium-feeling, editorial-style blog theme for personal finance, optimized for speed and AdSense.
Version: 1.1.0
Text Domain: digital-classe
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #FAFAF8;
    --bg-deep: #F0EFE9;
    --fg: #1A1A1A;
    --fg-muted: #6B6B6B;
    --fg-light: #9A9A9A;
    --accent: #16A34A;
    --accent-dark: #A67A2E;
    --accent-light: #F5ECD7;
    --card: #FFFFFF;
    --border: rgba(27, 42, 61, 0.08);
    --border-light: rgba(27, 42, 61, 0.04);
    --navy: #1B2A3D;
    --navy-light: #2A3F57;
    --success: #2D7A4F;
    --ad-bg: #FAF9F6;
    --ad-border: rgba(27, 42, 61, 0.06);
    --radius: 8pxpx;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark {
    --bg: #121212;
    --bg-deep: #1A1A1A;
    --fg: #E0E0E0;
    --fg-muted: #A0A0A0;
    --fg-light: #707070;
    --card: #1E1E1E;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --navy: #2A3F57;
    --navy-light: #3A4F67;
    --ad-bg: #1A1A1A;
    --ad-border: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

/* Custom Text Selection */
::selection {
    background: rgba(200, 150, 62, 0.22);
    color: inherit;
}
::-moz-selection {
    background: rgba(200, 150, 62, 0.22);
    color: inherit;
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 1000;
    width: 0%;
    transition: width 0.1s ease-out;
}
.admin-bar .reading-progress-bar {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .reading-progress-bar {
        top: 46px;
    }
}

/* ===== TOPO BAR ===== */
.top-bar { background: var(--navy); color: rgba(255,255,255,0.7); font-size: 0.78rem; letter-spacing: 0.03em; padding: 6px 0; text-align: center; }
.top-bar span { color: var(--accent); font-weight: 600; }

/* ===== HEADER ===== */
.header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; transition: box-shadow var(--transition), background var(--transition), border-color var(--transition); }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.logo-mark { width: 38px; height: 38px; background: var(--navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.1rem; }
.logo-text { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; color: var(--accent); }

.nav-desktop > ul, .nav-desktop > div > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { position: relative; margin: 0; padding: 0; }
.nav-desktop a { text-decoration: none; color: var(--fg-muted); font-size: 0.88rem; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: all var(--transition); display: flex; align-items: center; gap: 4px; }
.nav-desktop a:hover, .nav-desktop a.active, .nav-desktop li.current-menu-item > a, .nav-desktop li.current-menu-ancestor > a { color: var(--fg); background: var(--bg-deep); }

/* Submenu Dropdown Styles */
.nav-desktop li ul.sub-menu, .nav-desktop li ul.children {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.nav-desktop li:hover > ul.sub-menu,
.nav-desktop li:hover > ul.children,
.nav-desktop li.current-menu-item > ul.sub-menu,
.nav-desktop li.current_page_item > ul.children,
.nav-desktop li.menu-item-has-children:hover > ul.sub-menu,
.nav-desktop li.page_item_has_children:hover > ul.children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-desktop li ul.sub-menu li, .nav-desktop li ul.children li {
    width: 100%;
}

.nav-desktop li ul.sub-menu a, .nav-desktop li ul.children a {
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--fg-muted);
    width: 100%;
    border-radius: 0;
    display: block;
    text-align: left;
}

.nav-desktop li ul.sub-menu a:hover, .nav-desktop li ul.children a:hover {
    color: var(--accent);
    background: var(--bg-deep);
    padding-left: 20px;
}

.nav-search, .nav-theme { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--fg-muted); cursor: pointer; transition: all var(--transition); background: transparent; margin-left: 12px; font-size: 0.85rem; outline: none; }
.nav-search:focus, .nav-theme:focus, .menu-toggle:focus { outline: none; box-shadow: none; }
.nav-search:hover, .nav-theme:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--fg); cursor: pointer; padding: 8px; outline: none; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav.open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 60px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
.search-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.search-overlay-inner {
    max-width: 768px;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.search-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.search-overlay-header span {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}
.search-overlay-close {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.search-overlay-close:hover {
    background: rgba(255,255,255,0.2);
}
.search-overlay-form {
    margin-bottom: 32px;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon-input {
    position: absolute;
    left: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 1.25rem;
}
.search-overlay .search-field {
    width: 100%;
    padding: 16px 20px 16px 56px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all var(--transition);
    font-family: inherit;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
}
.search-overlay .search-field:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}
.search-overlay-suggestions {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}
.search-overlay-suggestions p {
    margin-bottom: 12px;
}
.search-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.search-tag {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition);
}
.search-tag:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.mobile-nav-panel { width: 280px; height: 100%; background: var(--card); padding: 24px; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel .logo { margin-bottom: 28px; }
.mobile-nav-panel ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav-panel li { position: relative; margin: 0; padding: 0; }
.mobile-nav-panel a { display: block; text-decoration: none; color: var(--fg); font-size: 1.05rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border-light); transition: color var(--transition); }
.mobile-nav-panel a:hover { color: var(--accent); }

/* WordPress Mobile Submenus */
.mobile-nav-panel ul.sub-menu, .mobile-nav-panel ul.children {
    padding-left: 16px;
    background: var(--bg-deep);
    border-radius: 6px;
    margin: 4px 0 12px 0;
    list-style: none;
    display: none;
}
.mobile-nav-panel li.menu-item-has-children.open > ul.sub-menu,
.mobile-nav-panel li.page_item_has_children.open > ul.children,
.mobile-nav-panel li.current-menu-ancestor > ul.sub-menu,
.mobile-nav-panel li.current_page_ancestor > ul.children {
    display: block;
}
.mobile-nav-panel ul.sub-menu a, .mobile-nav-panel ul.children a {
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: none;
    color: var(--fg-muted);
}
.mobile-nav-panel ul.sub-menu a:hover, .mobile-nav-panel ul.children a:hover {
    color: var(--accent);
}
.mobile-nav-panel li.menu-item-has-children > a, .mobile-nav-panel li.page_item_has_children > a {
    padding-right: 48px;
}
.mobile-nav-panel .sub-menu-toggle {
    position: absolute;
    right: 0;
    top: 4px;
    background: none;
    border: none;
    padding: 12px;
    color: var(--fg-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.2s;
    z-index: 2;
}
.mobile-nav-panel li.menu-item-has-children.open > .sub-menu-toggle,
.mobile-nav-panel li.page_item_has_children.open > .sub-menu-toggle {
    transform: rotate(180deg);
}

.mobile-close { position: absolute; top: 20px; right: 20px; background: var(--bg-deep); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: var(--fg); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO / DESTAQUE ===== */
.hero { padding: 40px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; min-height: 440px; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-main:hover img { transform: scale(1.04); }
.hero-main-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); color: #fff; }
.hero-tag { display: inline-block; background: var(--accent); color: var(--navy); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; text-decoration:none; }
.hero-main-overlay h2 { font-family: 'Inter', sans-serif; font-size: 1.65rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.hero-main-overlay p { font-size: 0.88rem; opacity: 0.8; line-height: 1.5; }
.hero-meta { font-size: 0.78rem; opacity: 0.6; margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;}

.hero-side { display: flex; flex-direction: column; gap: 20px; }
.hero-side-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; flex: 1; min-height: 210px; }
.hero-side-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-side-card:hover img { transform: scale(1.04); }
.hero-side-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%); color: #fff; }
.hero-side-overlay h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.hero-side-overlay .hero-meta { margin-top: 6px; }

/* ===== AD BANNER ===== */
.ad-banner { background: var(--ad-bg); border: 1px dashed var(--ad-border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--fg-light); font-size: 0.6rem !important; letter-spacing: 0.25em !important; text-transform: uppercase; margin: 32px 0; min-height: 90px; position: relative; overflow: hidden !important; flex-direction: column; text-align: center; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; font-weight: 500;}
.ad-banner--leaderboard { min-height: 90px; }
.ad-banner--rectangle { min-height: 250px; }
.ad-banner--inline { min-height: 100px; margin: 24px 0; }
.ad-banner, .ad-banner * { max-width: 100% !important; box-sizing: border-box !important; }
.ad-banner img, .ad-banner iframe, .ad-banner ins, .ad-banner embed, .ad-banner object { max-width: 100% !important; height: auto !important; object-fit: contain; }

/* ===== SECTION TITLE ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--fg); }
.section-header h2 { font-family: 'Inter', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.section-header a { text-decoration: none; color: var(--accent); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.section-header a:hover { gap: 8px; }

.title-left-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  font-family: var(--font-serif, serif);
  font-weight: 700;
  margin-bottom: 24px;
}
h1.title-left-bar {
  font-size: 2.25rem;
  line-height: 1.2;
}
div.title-left-bar, span.title-left-bar {
  font-size: 1.25rem;
}

/* ===== MAIN LAYOUT ===== */
.main-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 40px 0 60px; }

/* ===== POST CARDS ===== */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); transition: all var(--transition); cursor: pointer; display: flex; flex-direction: column;}
.post-card:hover { box-shadow: var(--shadow-md); border-color: var(--border); transform: translateY(-3px); }
.post-card-img { position: relative; height: 180px; overflow: hidden; display: block;}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-category { position: absolute; top: 12px; left: 12px; background: var(--card); color: var(--navy); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 4px; z-index: 10; text-decoration:none;}
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1;}
.post-card-body h3 { font-family: 'Inter', sans-serif; font-size: 1.08rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--fg); transition: color var(--transition); }
.post-card-body h3 a { color: inherit; text-decoration: none; }
.post-card:hover .post-card-body h3 { color: var(--accent-dark); }
.post-card-body p { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-light); font-size: 0.76rem; color: var(--fg-light); }
.post-card-author { display: flex; align-items: center; gap: 8px; }
.post-card-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.post-card-read { color: var(--accent); font-weight: 600; }

/* ===== POST LIST (full width) ===== */
.post-list-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: all var(--transition); text-decoration: none; color: inherit;}
.post-list-item:hover { padding-left: 6px; }
.post-list-item img { width: 160px; height: 110px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; transition: transform 0.4s ease; }
.post-list-item:hover img { transform: scale(1.03); }
.post-list-item h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px; transition: color var(--transition); }
.post-list-item:hover h3 { color: var(--accent-dark); }
.post-list-item p { font-size: 0.83rem; color: var(--fg-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list-item .hero-meta { margin-top: 8px; color: var(--fg-light); }

/* ===== SINGLE POST ===== */
.single-header { margin-bottom: 56px; text-align: center; max-width: 850px; margin-left: auto; margin-right: auto; padding: 16px 0 0; }
.single-title { font-family: 'Inter', sans-serif; font-size: 2.85rem; line-height: 1.25; margin: 20px 0 24px; letter-spacing: -0.02em; }
.single-meta { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 0.92rem; color: var(--fg-muted); }
.single-featured-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 56px; }

.single-content { max-width: 740px; margin: 0 auto; font-size: 1.15rem; line-height: 1.85; color: var(--fg); font-family: 'Merriweather', 'Georgia', serif; letter-spacing: -0.003em; }
.single-content p { margin-bottom: 2em; line-height: 1.85; }
.single-content p:first-of-type::first-letter { font-family: 'Inter', sans-serif; float: left; font-size: 4rem; line-height: 0.8; padding-top: 4px; padding-right: 8px; padding-left: 3px; font-weight: 700; color: var(--navy); }
html.dark .single-content p:first-of-type::first-letter { color: var(--accent); }
.single-content h2, .single-content h3, .single-content h4 { font-family: 'Inter', sans-serif; margin-top: 2em; margin-bottom: 0.8em; color: var(--fg); line-height: 1.3; font-weight: 700; }
.single-content h2 { font-size: 2.2rem; }
.single-content h3 { font-size: 1.6rem; }
.single-content h4 { font-size: 1.3rem; }
.single-content ul, .single-content ol { margin-bottom: 1.8em; padding-left: 24px; font-size: 1.1rem; }
.single-content li { margin-bottom: 0.8em; }
.single-content a { color: var(--accent-dark); text-decoration: none; border-bottom: 2px solid rgba(228, 168, 83, 0.4); transition: border-color 0.2s ease; }
html.dark .single-content a { color: var(--accent); border-bottom-color: rgba(228, 168, 83, 0.3); }
.single-content a:hover { border-bottom-color: var(--accent-dark); }
html.dark .single-content a:hover { border-bottom-color: var(--accent); }
.single-content blockquote { margin: 2em 0; padding: 1.5em 2em; border-left: 4px solid var(--accent); background: var(--bg-alt); font-style: italic; font-size: 1.25rem; color: var(--fg); border-radius: 0 var(--radius) var(--radius) 0; }
html.dark .single-content blockquote { background: rgba(255, 255, 255, 0.03); }
.single-content blockquote p { margin-bottom: 0; }
.single-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 2em 0; box-shadow: var(--shadow-sm); }
.single-content figcaption, .single-content .wp-caption-text { text-align: center; font-size: 0.85rem; color: var(--fg-muted); margin-top: -1.5em; margin-bottom: 2em; font-family: 'Inter', sans-serif; font-style: italic; }
.single-content pre, .single-content code { background: var(--bg-alt); padding: 0.2em 0.4em; border-radius: 4px; font-family: monospace; font-size: 0.9em; }
html.dark .single-content pre, html.dark .single-content code { background: rgba(255, 255, 255, 0.08); }
.single-content pre { padding: 1.5em; overflow-x: auto; margin-bottom: 1.8em; }

/* ===== ARTICLE VISUAL HIGHLIGHTS ===== */
/* Callout Boxes */
.single-content .callout-box {
    margin: 2em 0;
    padding: 1.5em;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--accent);
    background: var(--bg-deep);
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    overflow: hidden;
}
.single-content .callout-box p {
    margin-bottom: 0.8em;
}
.single-content .callout-box p:last-child {
    margin-bottom: 0;
}
.single-content .callout-box.callout-tip {
    border-left-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}
html.dark .single-content .callout-box.callout-tip {
    background: rgba(16, 185, 129, 0.1);
}
.single-content .callout-box.callout-warning {
    border-left-color: #F59E0B;
    background: rgba(245, 158, 11, 0.05);
}
html.dark .single-content .callout-box.callout-warning {
    background: rgba(245, 158, 11, 0.1);
}
.single-content .callout-box.callout-info {
    border-left-color: var(--accent);
    background: rgba(228, 168, 83, 0.05);
}
html.dark .single-content .callout-box.callout-info {
    background: rgba(228, 168, 83, 0.1);
}

.single-content .callout-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 0 !important;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
}
.single-content .callout-tip .callout-title {
    color: #059669;
}
html.dark .single-content .callout-tip .callout-title {
    color: #34D399;
}
.single-content .callout-warning .callout-title {
    color: #D97706;
}
html.dark .single-content .callout-warning .callout-title {
    color: #FBBF24;
}
.single-content .callout-info .callout-title {
    color: var(--accent-dark);
}
html.dark .single-content .callout-info .callout-title {
    color: var(--accent);
}

/* Elegant Pull Quotes */
.single-content .pull-quote {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--navy);
    font-style: italic;
    font-weight: 600;
    margin: 2.2em 0;
    padding: 0 1.5em;
    border-left: none;
    text-align: center;
    position: relative;
    border-radius: 0;
    background: transparent;
}
html.dark .single-content .pull-quote {
    color: var(--accent);
}
.single-content .pull-quote::before {
    content: "“";
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: -0.4em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    color: var(--accent-light);
    opacity: 0.3;
    z-index: -1;
    line-height: 1;
}

/* Custom Text Highlights */
.single-content .text-highlight {
    background: linear-gradient(120deg, rgba(228, 168, 83, 0.22) 0%, rgba(228, 168, 83, 0.12) 100%);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-weight: 600;
}
html.dark .single-content .text-highlight {
    background: linear-gradient(120deg, rgba(228, 168, 83, 0.32) 0%, rgba(228, 168, 83, 0.18) 100%);
}

/* Custom Lists */
.single-content ul.check-list {
    list-style: none;
    padding-left: 0;
}
.single-content ul.check-list li {
    position: relative;
    padding-left: 30px;
}
.single-content ul.check-list li::before {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 2px;
    color: #10B981;
    font-weight: 800;
    font-size: 1.1rem;
}
.single-content ul.cross-list {
    list-style: none;
    padding-left: 0;
}
.single-content ul.cross-list li {
    position: relative;
    padding-left: 30px;
}
.single-content ul.cross-list li::before {
    content: "✗";
    position: absolute;
    left: 6px;
    top: 2px;
    color: #EF4444;
    font-weight: 800;
    font-size: 1rem;
}

/* Stylized Decorative Divider */
.single-content hr.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 3em 0;
    position: relative;
    overflow: visible;
}
.single-content hr.section-divider::after {
    content: "◆";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    color: var(--accent);
    padding: 0 15px;
    font-size: 0.8rem;
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-widget-title { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--fg); display: inline-block; }

/* Newsletter */
.newsletter-widget { background: var(--navy); border-color: transparent; color: #fff; }
.newsletter-widget .sidebar-widget-title { color: #fff; border-bottom-color: var(--accent); }
.newsletter-widget p { font-size: 0.88rem; opacity: 0.75; margin-bottom: 16px; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { padding: 12px 16px; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); background: rgba(255,255,255,0.08); color: #fff; font-size: 0.88rem; font-family: inherit; outline: none; transition: border-color var(--transition); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button { padding: 12px; background: var(--accent); color: var(--navy); border: none; border-radius: var(--radius); font-size: 0.88rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: all var(--transition); letter-spacing: 0.02em; }
.newsletter-form button:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Popular posts */
.popular-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: all var(--transition); text-decoration:none; color:inherit; }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-item:first-child { padding-top: 0; }
.popular-item:hover { padding-left: 4px; }
.popular-num { font-family: 'Inter', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--border); line-height: 1; min-width: 28px; }
.popular-item:hover .popular-num { color: var(--accent); }
.popular-item h4 { font-size: 0.88rem; font-weight: 600; line-height: 1.4; transition: color var(--transition); margin:0;}
.popular-item:hover h4 { color: var(--accent-dark); }
.popular-item span { font-size: 0.74rem; color: var(--fg-light); margin-top: 4px; display: block; }

/* Categories */
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 0; padding:0; margin:0;}
.cat-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; transition: all var(--transition); }
.cat-list li:last-child { border-bottom: none; }
.cat-list li:hover { padding-left: 6px; }
.cat-list li a { text-decoration: none; color: inherit; flex: 1; transition: color var(--transition); }
.cat-list li:hover a { color: var(--accent-dark); }
.cat-list li span { background: var(--bg-deep); font-size: 0.72rem; font-weight: 600; padding: 2px 10px; border-radius: 10px; color: var(--fg-muted); }

/* Tags */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 14px; background: var(--bg-deep); border-radius: 20px; font-size: 0.78rem; font-weight: 500; color: var(--fg-muted); cursor: pointer; transition: all var(--transition); text-decoration: none; }
.tag:hover { background: var(--accent-light); color: var(--accent-dark); }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--navy); padding: 48px 0; margin-top: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; color: #fff; }
.stat-number { font-family: 'Inter', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.82rem; opacity: 0.6; margin-top: 6px; font-weight: 400; }

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section { padding: 60px 0; text-align: center; }
.newsletter-section h2 { font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.newsletter-section p { color: var(--fg-muted); font-size: 1rem; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-inline { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-inline input { flex: 1; padding: 14px 20px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; font-family: inherit; outline: none; transition: border-color var(--transition); background: var(--card); }
.newsletter-inline input:focus { border-color: var(--accent); }
.newsletter-inline button { padding: 14px 28px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.newsletter-inline button:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo .logo-mark { background: rgba(255,255,255,0.1); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; text-decoration: none; transition: all var(--transition); }
.footer-social a:hover { background: var(--accent); color: var(--navy); }
.footer-col h4 { color: #fff; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding:0; margin:0;}
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.88rem; padding: 5px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 24px; left: 24px; width: 44px; height: 44px; background: var(--card); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--fg-muted); cursor: pointer; opacity: 0; pointer-events: none; transition: all var(--transition); z-index: 90; font-size: 0.9rem; box-shadow: var(--shadow-md); }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ===== PAGINATION ===== */
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.nav-links a, .nav-links span { padding: 8px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--fg); font-weight: 600; font-size: 0.9rem; transition: all var(--transition); }
.nav-links a:hover { background: var(--bg-deep); border-color: var(--accent); color: var(--accent-dark); }
.nav-links .current { background: var(--navy); color: #fff; border-color: var(--navy); }


/* ===== COMMENTS ===== */
.comments-area { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.comments-title { font-family: 'Inter', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px 0; }
.comment-item { display: flex; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.comment-item:last-child { border-bottom: none; padding-bottom: 0; }
.comment-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; color: var(--fg-muted); font-weight: 600; flex-shrink: 0; overflow: hidden; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-content-wrap { flex: 1; }
.comment-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment-author { font-weight: 600; color: var(--fg); font-size: 0.95rem; }
.comment-date { font-size: 0.75rem; color: var(--fg-light); }
.comment-text { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.6; }

.comment-respond { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.comment-reply-title { font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; display: block; }
.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width: 640px) { .comment-form-grid { grid-template-columns: 1fr 1fr; } }
.comment-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--fg); }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 0.9rem; outline: none; transition: all var(--transition); background: var(--bg); color: var(--fg); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); background: var(--card); }
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form-submit { padding: 14px 24px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; }
.comment-form-submit:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: block; }
    .mobile-nav.open { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { min-height: 320px; }
    .hero-side { flex-direction: row; }
    .hero-side-card { min-height: 180px; }
    .hero-main-overlay h2 { font-size: 1.3rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .post-list-item { flex-direction: column; }
    .post-list-item img { width: 100%; height: 180px; }
    .sidebar { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .newsletter-inline { flex-direction: column; }
    .newsletter-section h2 { font-size: 1.5rem; }
    .section-header h2 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
    .hero-side { flex-direction: column; }
    .header-inner { height: 58px; }
    .logo-text { font-size: 1.15rem; }
    .logo-mark { width: 32px; height: 32px; font-size: 0.95rem; }
    .stat-number { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ===== WORDPRESS ADMIN BAR ADJUSTMENTS ===== */
.admin-bar .header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* ===== STICKY SIDEBAR ELEMENTS ===== */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 92px;
    z-index: 10;
}
.admin-bar .sidebar-sticky {
    top: 124px; /* 92px + 32px for admin bar */
}
@media (max-width: 1024px) {
    .sidebar-sticky {
        position: static !important;
    }
}
@media screen and (max-width: 782px) {
    .admin-bar .sidebar-sticky {
        top: 138px; /* 92px + 46px for admin bar */
    }
}

/* ===== FLOATING SPONSORED BANNER ===== */
.floating-widget-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 260px;
    height: 270px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    z-index: 999;
    font-family: 'Inter', sans-serif;
    transition: transform var(--transition), opacity var(--transition);
}
.floating-widget-banner.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}
.floating-widget-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bg-deep);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--fg-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}
.floating-widget-close:hover {
    background: var(--border);
    color: var(--fg);
}
.floating-widget-img {
    position: relative;
    height: 110px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.floating-widget-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.floating-widget-banner:hover .floating-widget-img img {
    transform: scale(1.05);
}
.floating-widget-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: var(--navy);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.floating-widget-text h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
    color: var(--fg);
    margin: 0;
}
.floating-widget-text p {
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin-top: 4px;
    line-height: 1.4;
}
.floating-widget-btn {
    display: block;
    text-align: center;
    background: var(--navy);
    color: #fff;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition);
    margin-top: 12px;
}
.floating-widget-btn:hover {
    background: var(--navy-light);
}
@media (max-width: 1200px) {
    .floating-widget-banner {
        display: none !important;
    }
}

/* ===== AUTHOR BOX ===== */
.author-box {
    margin: 48px 0;
    padding: 24px;
    background: var(--bg-deep);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 20px;
}
@media (max-width: 576px) {
    .author-box {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
        gap: 16px !important;
    }
    .author-box .author-avatar {
        margin: 0 auto;
    }
}

