/* ================================================================
   EXAMPORTAL — MASTER STYLESHEET
   Shared across: index, archive, category-posts, single,
                  page-no-sidebar, 404
   ================================================================ */

/* ── Google Fonts (also referenced via <link> — Roboto in each HTML head)
   Roboto 400/500/700/900 — used for both headings and body
   ---------------------------------------------------------------- */

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
    --primary:        #c0392b;
    --primary-dark:   #922b21;
    --primary-light:  #f5e8e7;
    --accent:         #f39c12;
    --bg:             #faf9f7;
    --light:          #f2ede8;
    --surface:        #ffffff;
    --border:         #e8e0d8;
    --text:           #1a1208;
    --gray:           #6b5f52;
    --gray-light:     #b8ad9e;
    --shadow-sm:      0 2px 8px  rgba(26,18,8,.08);
    --shadow-md:      0 4px 20px rgba(26,18,8,.12);
    --shadow-lg:      0 8px 40px rgba(26,18,8,.16);
    --radius:         10px;
}

/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

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

/* ================================================================
   4. HEADER
   ================================================================ */
.site-header {
    background: var(--surface);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.logo-text span { color: var(--primary); }

/* Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray);
    border-radius: 6px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
}

.header-search:focus-within { border-color: var(--primary); }

.header-search input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: .85rem;
    font-family: inherit;
    outline: none;
    width: 180px;
    color: var(--text);
}

.header-search button {
    background: none;
    border: none;
    padding: 8px 12px;
    color: var(--gray);
    cursor: pointer;
    transition: color .2s;
}

.header-search button:hover { color: var(--primary); }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
}

/* Mobile: hide desktop nav & search, show toggle */
@media (max-width: 768px) {
    .site-nav,
    .desktop-search { display: none; }
    .menu-toggle { display: flex; }
}

/* ── Mobile Panel ── */
.mobile-panel {
    display: none;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 12px 0 16px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 0 16px 8px;
}

.mobile-nav .nav-link {
    padding: 12px 14px;
    font-size: .95rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    display: block;
}

.mobile-nav .nav-link:last-child { border-bottom: none; }

.mobile-search {
    padding: 12px 16px 0;
}

.mobile-search .header-search {
    display: flex;
    width: 100%;
    border-radius: 8px;
}

.mobile-search .header-search input {
    width: 100%;
    flex: 1;
    font-size: .9rem;
    padding: 10px 14px;
}

.mobile-search .header-search button {
    padding: 10px 16px;
}

/* ================================================================
   5. BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(192,57,43,.35);
}

.btn-secondary {
    background: #2c3e50;
    color: #fff;
}

.btn-secondary:hover {
    background: #1a252f;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover { background: var(--primary-light); }

/* hero outline overrides */
.btn-hero-outline {
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(255,255,255,.8);
    color: #fff;
}

.btn-hero-outline:hover { background: rgba(255,255,255,.2); }

.btn-sm    { padding: 8px 16px; font-size: .825rem; }
.btn-small { padding: 6px 14px; font-size: .8rem; border-radius: 6px; }

/* ================================================================
   6. BREADCRUMB
   ================================================================ */
.breadcrumb {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.breadcrumb-links a { color: var(--primary); transition: opacity .2s; }
.breadcrumb-links a:hover { opacity: .75; }
.breadcrumb-links .separator { color: var(--gray-light); }
.breadcrumb-links .current { color: var(--text); font-weight: 600; }

/* ================================================================
   7. SECTION TITLE (shared)
   ================================================================ */
.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ================================================================
   8. POST CARD (archive, index, category-posts, related sections)
   ================================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.post-card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .35s;
}

.post-card:hover .post-card-image { transform: scale(1.04); }

.post-card-content {
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-card-category {
    background: var(--primary-light);
    color: var(--primary);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 3px 9px;
    border-radius: 4px;
    display: inline-block;
}

.post-card-date {
    font-size: .78rem;
    color: var(--gray-light);
}

.post-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.post-card-title a:hover { color: var(--primary); }

.post-card-excerpt {
    font-size: .875rem;
    color: var(--gray);
    line-height: 1.6;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.post-card-stats { display: flex; gap: 12px; }

.post-card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    color: var(--gray-light);
}

.post-card-stat i { font-size: .75rem; }

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.meta-item-small {
    font-size: .82rem;
    color: var(--gray-light);
}

.meta-item-small i { margin-right: 4px; }

/* ================================================================
   9. SIDEBAR (archive, category-posts, single)
   ================================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.sidebar-header h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.sidebar-content { padding: 14px 18px; }

/* Category list in sidebar */
.category-list { list-style: none; }

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.category-item:last-child { border-bottom: none; }

.category-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    transition: color .2s;
    flex: 1;
}

.category-item a:hover { color: var(--primary); }
.category-item a i { color: var(--primary); font-size: .85rem; width: 18px; }

/* active category highlight (category-posts page) */
.category-item.active a { color: var(--primary); font-weight: 700; }
.category-item.active { background: var(--primary-light); margin: 0 -18px; padding: 10px 18px; }

.category-count {
    background: var(--primary-light);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

/* Popular posts in sidebar */
.popular-posts { list-style: none; }

.popular-post-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.popular-post-item:last-child { border-bottom: none; }

.popular-post-item a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text);
    transition: color .2s;
}

.popular-post-item a:hover { color: var(--primary); }

.popular-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.popular-post-title {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-post-date {
    font-size: .75rem;
    color: var(--gray-light);
}

/* Tags cloud in sidebar */
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; }

.tags-container a.tag {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all .2s;
}

.tags-container a.tag:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Related posts list in sidebar */
.related-posts { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.related-post-item a {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    transition: color .2s;
}

.related-post-item a:hover { color: var(--primary); }
.related-post-item a i { color: var(--primary); font-size: .7rem; margin-top: 4px; flex-shrink: 0; }

/* Newsletter / Download in sidebar */
.sidebar-content input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: .875rem;
    margin-bottom: 10px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s;
}

.sidebar-content input[type="email"]:focus { border-color: var(--primary); }

/* Author card in sidebar */
.author-info { text-align: center; }

.author-avatar {
    margin: 8px auto 12px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-bio {
    font-size: .82rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ================================================================
   10. PAGINATION
   ================================================================ */
.pagination { display: flex; justify-content: center; margin-top: 8px; }

.page-numbers {
    list-style: none;
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-numbers li a,
.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--surface);
    transition: all .2s;
}

.page-numbers li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.page-numbers li span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-numbers li span.dots {
    border-color: transparent;
    background: transparent;
    width: auto;
    padding: 0 4px;
}

/* ================================================================
   11. FILTERS (archive & category-posts)
   ================================================================ */
.filters-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
}

.filters-title {
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--gray);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.filter-controls form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.filter-label { font-size: .85rem; color: var(--gray); font-weight: 500; }

.filter-select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: .875rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
}

.filter-select:focus { border-color: var(--primary); }

@media (max-width: 600px) {
    .filters-header { flex-wrap: wrap; }
    .filter-controls, .filter-controls form { flex-wrap: wrap; }
}

.active-filters { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(192,57,43,.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .8rem;
    font-weight: 600;
}

.filter-tag .remove {
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: .7;
    transition: opacity .2s;
}

.filter-tag .remove:hover { opacity: 1; }

/* ================================================================
   12. CATEGORY HERO (archive & category-posts)
   ================================================================ */
.category-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    margin: 28px 0;
    padding: 48px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}

.category-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: 20%;
    width: 340px; height: 340px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

.category-hero-content { position: relative; z-index: 1; }

.category-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

.category-hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -.5px;
}

.category-description {
    font-size: 1.05rem;
    opacity: .88;
    max-width: 560px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.category-stats { display: flex; gap: 24px; flex-wrap: wrap; }

.stat-item {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    padding: 14px 22px;
    backdrop-filter: blur(8px);
    min-width: 110px;
}

.stat-number {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: .78rem;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-top: 4px;
}

/* ================================================================
   13. CONTENT WRAPPER — SIDEBAR LAYOUT (archive, category, single)
   ================================================================ */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 32px;
    padding-bottom: 60px;
    min-width: 0;
}

.content-wrapper > main,
.content-wrapper > .sidebar {
    min-width: 0;
}

@media (max-width: 900px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
}

/* single.html uses a narrower sidebar */
.blog-post-page {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    padding: 32px 0 60px;
    min-width: 0;
}

.blog-post-page > .blog-post-content,
.blog-post-page > .sidebar {
    min-width: 0;
}

@media (max-width: 900px) {
    .blog-post-page { grid-template-columns: 1fr; }
    .blog-post-page .sidebar { order: -1; }
}

/* ================================================================
   14. POST HEADER (single, page-no-sidebar)
   ================================================================ */
.post-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.post-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.post-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -.4px;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: .85rem;
    color: var(--gray);
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-item i { color: var(--primary); font-size: .8rem; }
.meta-item a { color: var(--primary); font-weight: 600; }

.post-excerpt {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.7;
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    font-style: italic;
}

/* ================================================================
   15. POST BODY (single, page-no-sidebar)
   ================================================================ */
.post-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.post-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    display: block;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.post-content {
    padding: 32px 36px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Images inside post content */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 16px auto;
}

.post-content figure {
    margin: 20px 0;
}

.post-content figure img {
    margin: 0 auto;
}

.post-content figcaption {
    text-align: center;
    font-size: .82rem;
    color: var(--gray);
    margin-top: 6px;
}

.post-content p { margin-bottom: 18px; }

.post-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.post-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 22px 0 10px;
    color: var(--primary-dark);
}

.post-content ul,
.post-content ol {
    padding-left: 22px;
    list-style: disc;
    margin-bottom: 18px;
}

.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-content strong { font-weight: 700; color: var(--text); }

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    background: var(--primary-light);
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--gray);
}

/* Download Box */
.download-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fef3e2 100%);
    border: 1px solid rgba(192,57,43,.2);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-align: center;
    margin: 28px 0;
}

.download-section h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.download-section p { font-size: .9rem; color: var(--gray); margin-bottom: 0; }

.download-section .btn-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Post Footer Tags */
.post-footer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.post-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-tags > i { color: var(--gray-light); }

.post-tag {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 20px;
    transition: all .2s;
}

.post-tag:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* ================================================================
   16. COMMENTS (single)
   ================================================================ */
.comments-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.comments-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }

.comment-body {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author { display: flex; align-items: center; gap: 10px; }

.avatar-img {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.comment-author .fn { font-weight: 700; font-size: .9rem; }

.comment-metadata time { font-size: .78rem; color: var(--gray-light); }

.comment-content p { font-size: .9rem; color: var(--gray); line-height: 1.7; }

.reply { margin-top: 10px; }

.comment-reply-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    transition: all .2s;
}

.comment-reply-link:hover { background: var(--primary-light); }

/* Comment form */
.comment-respond {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.comment-reply-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.comment-notes { font-size: .85rem; color: var(--gray-light); margin-bottom: 20px; }

.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.comment-form p.comment-form-comment { grid-column: 1 / -1; }
.comment-form p.form-submit { grid-column: 1 / -1; }

.comment-form label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray);
}

.comment-form .required { color: var(--primary); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: .9rem;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--primary); }

.comment-form textarea { resize: vertical; min-height: 130px; }

.comment-form input[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: .9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.comment-form input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .comment-form { grid-template-columns: 1fr; }
}

/* ================================================================
   17. HOMEPAGE — HERO (index)
   ================================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 72px 0 60px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: 5%;
    width: 320px; height: 320px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-image { display: none; }
}

.hero-text h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -.5px;
}

.hero-text p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.88);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image img {
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    width: 100%;
    object-fit: cover;
    max-height: 340px;
}

/* ================================================================
   18. HOMEPAGE — NOTES SECTIONS (index)
   ================================================================ */
.notes-section { padding: 56px 0; background: var(--surface); }
.notes-section:nth-of-type(even) { background: var(--light); }

.section-header { margin-bottom: 28px; }

.view-all-container { text-align: center; margin-top: 32px; }

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

/* Note Card (index page) */
.note-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}

.note-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.note-card-header {
    padding: 20px 20px 14px;
    border-bottom: 1px solid var(--border);
}

.note-card-type {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.note-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.note-card-exam {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    color: var(--gray);
    font-weight: 500;
}

.note-card-exam i { color: var(--primary); font-size: .78rem; }

.note-card-body {
    padding: 14px 20px;
    flex: 1;
    font-size: .875rem;
    color: var(--gray);
    line-height: 1.65;
}

.note-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================================================================
   19. HOMEPAGE — FEATURES (index)
   ================================================================ */
.features {
    padding: 60px 0;
    background: var(--text);
}

.features .section-title { color: #fff; }
.features .section-title::after { background: var(--accent); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.feature-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: background .2s, transform .2s;
}

.feature-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }

.feature-icon {
    width: 58px; height: 58px;
    background: rgba(192,57,43,.25);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 16px;
}

.feature-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.65; }

/* ================================================================
   20. HOMEPAGE — TRENDING (index)
   ================================================================ */
.trending-notes { padding: 60px 0; background: var(--bg); }

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.trending-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}

.trending-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.trending-rank {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
}

.trending-info { flex: 1; min-width: 0; }

.trending-info h4 {
    font-family: 'Roboto', sans-serif;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.trending-info p { font-size: .83rem; color: var(--gray); line-height: 1.55; margin-bottom: 10px; }

.trending-downloads {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--primary);
    font-weight: 600;
}

/* ================================================================
   21. HOMEPAGE — CATEGORIES GRID (index)
   ================================================================ */
.categories { padding: 60px 0; background: var(--light); }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 18px 22px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s, border-color .2s;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.category-card .category-icon {
    width: 56px; height: 56px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 14px;
    transition: background .2s, color .2s;
}

.category-card:hover .category-icon { background: var(--primary); color: #fff; }

.category-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.category-card .category-count { font-size: .78rem; color: var(--gray-light); font-weight: 600; }

/* ================================================================
   22. CTA SECTION (index)
   ================================================================ */
.cta {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.cta h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}

.cta p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
}

/* ================================================================
   23. PAGE-NO-SIDEBAR — AUTHOR BIO & RELATED
   ================================================================ */
.author-bio-section {
    background: var(--light);
    padding: 60px 0;
    margin-top: 12px;
}

.author-bio-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

@media (max-width: 600px) {
    .author-bio-card { flex-direction: column; text-align: center; }
}

.author-bio-avatar { flex-shrink: 0; }

.author-bio-avatar img {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-bio-info h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.author-bio-info p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: .95rem;
}

.related-posts-section { background: var(--light); padding: 60px 0; }

/* ================================================================
   24. 404 PAGE
   ================================================================ */
body.page-404 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 80px 0 100px;
}

.error-container {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.error-icon {
    width: 96px; height: 96px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
    color: var(--primary);
    margin: 0 auto 24px;
    animation: ep-float 3s ease-in-out infinite;
}

@keyframes ep-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.error-code {
    font-family: 'Roboto', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    opacity: .15;
    margin-bottom: -28px;
    letter-spacing: -4px;
    user-select: none;
}

.error-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 14px;
    position: relative;
}

.error-message {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.75;
    margin: 0 auto 36px;
    max-width: 480px;
}

.search-form {
    display: flex;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto 28px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s;
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 22px;
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .2s;
}

.search-btn:hover { background: var(--primary-dark); }

.action-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.helpful-links {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.helpful-links h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 20px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.links-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 18px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    transition: all .2s;
}

.links-grid a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.links-grid a i { font-size: 1.4rem; color: var(--primary); }
.links-grid a:hover i { color: var(--primary-dark); }

@media (max-width: 480px) { .links-grid { grid-template-columns: repeat(2, 1fr); } }

/* ================================================================
   25. FOOTER
   ================================================================ */
.site-footer {
    background: #1a1208;
    color: #c8bfb3;
    margin-top: 0;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .logo-text { color: #fff; }

.footer-tagline {
    font-size: .875rem;
    line-height: 1.7;
    margin: 14px 0 20px;
    opacity: .75;
}

.footer-socials { display: flex; gap: 10px; }

.social-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #c8bfb3;
    font-size: .9rem;
    transition: background .2s, color .2s;
}

.social-btn:hover { background: var(--primary); color: #fff; }

.footer-col h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
    font-size: .875rem;
    color: #c8bfb3;
    opacity: .8;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity .2s, color .2s;
}

.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-links a i { font-size: .7rem; color: var(--primary); }

.footer-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 8px 14px;
    color: #fff;
    font-size: .8rem;
    margin-top: 20px;
    transition: background .2s;
}

.footer-app-btn:hover { background: rgba(255,255,255,.15); }
.footer-app-btn i { color: var(--accent); font-size: 1.1rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p { font-size: .8rem; opacity: .55; }

.footer-bottom-links { display: flex; gap: 20px; }

.footer-bottom-links a {
    font-size: .8rem;
    color: #c8bfb3;
    opacity: .55;
    transition: opacity .2s;
}

.footer-bottom-links a:hover { opacity: 1; }

/* ================================================================
   26. RESPONSIVE — GLOBAL EXTRAS
   ================================================================ */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    .category-hero h1 { font-size: 1.8rem; }
    .post-title { font-size: 1.6rem; }
    .post-content { padding: 22px 20px; }
    .post-header { padding: 24px 20px 18px; }
    .comments-wrapper { padding: 20px; }
    .download-section { padding: 22px 20px; margin: 20px 0; }
    .category-hero { padding: 32px 24px; }
    .cta h2 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn { padding: 9px 16px; font-size: .825rem; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .footer-bottom-links { flex-wrap: wrap; gap: 12px; }
}

/* ================================================================
   27. WORDPRESS WIDGETS
   ================================================================ */

/* ── Base Widget ── */
.widget {
    margin-bottom: 0;
}

/* Widget title rendered via before_title/after_title in functions.php
   already uses .sidebar-header > h3, so we add extra WP-specific targets */
.widget-title,
.widgettitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

/* Close the sidebar-content div opened by after_title */
.widget > .sidebar-content {
    padding: 14px 18px;
}

/* ── Widget: Search ── */
.widget_search .search-form,
.widget_search form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    transition: border-color .2s;
}

.widget_search .search-form:focus-within,
.widget_search form:focus-within {
    border-color: var(--primary);
}

.widget_search input[type="search"],
.widget_search input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 12px;
    font-size: .875rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.widget_search input[type="submit"],
.widget_search button[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 14px;
    font-size: .8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

.widget_search input[type="submit"]:hover,
.widget_search button[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ── Widget: Recent Posts ── */
.widget_recent_entries ul,
.widget_recent_comments ul {
    list-style: none;
}

.widget_recent_entries ul li,
.widget_recent_comments ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
    line-height: 1.5;
}

.widget_recent_entries ul li:last-child,
.widget_recent_comments ul li:last-child {
    border-bottom: none;
}

.widget_recent_entries ul li a,
.widget_recent_comments ul li a {
    color: var(--text);
    font-weight: 500;
    transition: color .2s;
    display: block;
    margin-bottom: 3px;
}

.widget_recent_entries ul li a:hover,
.widget_recent_comments ul li a:hover {
    color: var(--primary);
}

.widget_recent_entries ul li .post-date {
    font-size: .78rem;
    color: var(--gray-light);
}

/* ── Widget: Categories ── */
.widget_categories ul,
.widget_archive ul,
.widget_pages ul,
.widget_nav_menu ul,
.widget_meta ul {
    list-style: none;
}

.widget_categories ul li,
.widget_archive ul li,
.widget_pages ul li,
.widget_nav_menu ul li,
.widget_meta ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .88rem;
}

.widget_categories ul li:last-child,
.widget_archive ul li:last-child,
.widget_pages ul li:last-child,
.widget_nav_menu ul li:last-child,
.widget_meta ul li:last-child {
    border-bottom: none;
}

.widget_categories ul li a,
.widget_archive ul li a,
.widget_pages ul li a,
.widget_nav_menu ul li a,
.widget_meta ul li a {
    color: var(--text);
    font-weight: 500;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.widget_categories ul li a::before,
.widget_archive ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .7rem;
    color: var(--primary);
    flex-shrink: 0;
}

.widget_categories ul li a:hover,
.widget_archive ul li a:hover,
.widget_pages ul li a:hover,
.widget_nav_menu ul li a:hover,
.widget_meta ul li a:hover {
    color: var(--primary);
}

.widget_categories ul li .post-count,
.widget_categories select {
    font-size: .75rem;
    color: var(--gray-light);
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

/* Nested sub-lists */
.widget_categories ul ul,
.widget_nav_menu ul ul,
.widget_pages ul ul {
    padding-left: 16px;
    margin-top: 4px;
}

/* ── Widget: Tag Cloud ── */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: .78rem !important;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 20px;
    transition: all .2s;
    line-height: 1.4;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* ── Widget: Calendar ── */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 6px 4px;
    border: 1px solid var(--border);
}

.widget_calendar th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.widget_calendar caption {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 8px;
    color: var(--text);
}

.widget_calendar td a {
    color: var(--primary);
    font-weight: 700;
}

.widget_calendar td a:hover { text-decoration: underline; }

.widget_calendar #today {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    border-color: var(--primary);
}

.widget_calendar tfoot td {
    padding: 8px 4px;
    background: var(--bg);
}

.widget_calendar tfoot a {
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
}

/* ── Widget: Text / HTML ── */
.widget_text .textwidget,
.widget_custom_html .custom-html-widget {
    font-size: .9rem;
    color: var(--gray);
    line-height: 1.7;
}

.widget_text .textwidget p,
.widget_custom_html .custom-html-widget p {
    margin-bottom: 10px;
}

.widget_text .textwidget p:last-child,
.widget_custom_html .custom-html-widget p:last-child {
    margin-bottom: 0;
}

.widget_text .textwidget a,
.widget_custom_html .custom-html-widget a {
    color: var(--primary);
    font-weight: 500;
}

.widget_text .textwidget a:hover,
.widget_custom_html .custom-html-widget a:hover {
    text-decoration: underline;
}

.widget_text .textwidget img,
.widget_custom_html .custom-html-widget img {
    max-width: 100%;
    border-radius: var(--radius);
}

/* ── Widget: RSS ── */
.widget_rss ul { list-style: none; }

.widget_rss ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.widget_rss ul li:last-child { border-bottom: none; }

.widget_rss .rssSummary {
    font-size: .82rem;
    color: var(--gray);
    margin: 5px 0;
    line-height: 1.55;
}

.widget_rss .rss-date,
.widget_rss cite {
    font-size: .75rem;
    color: var(--gray-light);
    display: block;
}

.widget_rss ul li a {
    font-weight: 600;
    font-size: .875rem;
    color: var(--text);
    transition: color .2s;
}

.widget_rss ul li a:hover { color: var(--primary); }

.widget_rss a.rsswidget {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget_rss .rss-widget-icon { color: var(--accent); }

/* ── Widget: Media Image ── */
.widget_media_image img {
    max-width: 100%;
    border-radius: var(--radius);
    display: block;
}

/* ── Widget: Nav Menu ── */
.widget_nav_menu .menu { list-style: none; }

/* ── Widget: Select (archive dropdown) ── */
.widget_archive select,
.widget_categories select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: .875rem;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    margin-top: 8px;
}

.widget_archive select:focus,
.widget_categories select:focus {
    border-color: var(--primary);
}

/* ── Footer Widgets ── */
.site-footer .widget {
    color: #c8bfb3;
}

.site-footer .widget-title,
.site-footer .widgettitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.site-footer .widget ul { list-style: none; }

.site-footer .widget ul li {
    padding: 7px 0;
    border-color: rgba(255,255,255,.07);
    font-size: .875rem;
}

.site-footer .widget ul li a {
    color: #c8bfb3;
    opacity: .8;
    transition: opacity .2s, color .2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer .widget ul li a::before {
    color: var(--primary);
}

.site-footer .widget ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.site-footer .widget_search .search-form {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.15);
}

.site-footer .widget_search input[type="search"],
.site-footer .widget_search input[type="text"] {
    color: #fff;
}

.site-footer .widget_search input[type="search"]::placeholder { color: rgba(255,255,255,.4); }

/* ── Widget Responsive ── */
@media (max-width: 600px) {
    .widget_calendar table { font-size: .75rem; }
    .widget_tag_cloud .tagcloud a { font-size: .73rem !important; }
}

/* ================================================================
   27. CONTACT FORM 7
   ================================================================ */

/* ── Wrapper ── */
.wpcf7 { width: 100%; }
.wpcf7-form { display: flex; flex-direction: column; gap: 18px; }

/* ── Form rows ── */
.wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Labels ── */
.wpcf7-form label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark);
}

/* ── Text / Email / Tel / URL / Number inputs ── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="search"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: .92rem;
    color: var(--dark);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.wpcf7-form textarea {
    min-height: 130px;
    resize: vertical;
}

.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ── Focus state ── */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form input[type="search"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: #fff;
}

/* ── Submit button ── */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    background: var(--primary);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    width: 100%;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background: var(--primary-dark, #1a56db);
    box-shadow: 0 4px 14px rgba(37,99,235,.25);
    transform: translateY(-1px);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── Checkbox & Radio ── */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-right: 6px;
    flex-shrink: 0;
}

.wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 14px;
    font-size: .9rem;
}

.wpcf7-list-item label { font-weight: 400; cursor: pointer; }

/* ── Acceptance checkbox ── */
.wpcf7-acceptance .wpcf7-list-item {
    margin-right: 0;
}

/* ── Validation: not-valid ── */
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.wpcf7-not-valid-tip {
    font-size: .78rem;
    color: #ef4444;
    margin-top: 4px;
    display: block;
}

/* ── Response messages ── */
.wpcf7-response-output {
    margin: 4px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    border: none !important;
}

/* Success */
.wpcf7-form.sent .wpcf7-response-output {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a !important;
}

/* Error / Invalid */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626 !important;
}

/* Spam */
.wpcf7-form.spam .wpcf7-response-output {
    background: #fff7ed;
    color: #ea580c;
    border-left: 4px solid #ea580c !important;
}

/* ── Spinner (loading) ── */
.wpcf7-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cf7-spin .7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
    visibility: visible !important;
}

@keyframes cf7-spin {
    to { transform: rotate(360deg); }
}

/* ── File upload ── */
.wpcf7-form input[type="file"] {
    font-size: .88rem;
    color: var(--gray);
    cursor: pointer;
}

/* ── Quiz / CAPTCHA ── */
.wpcf7-quiz-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 6px;
}

/* ── Inside sidebar card ── */
.sidebar-card .wpcf7-form input[type="text"],
.sidebar-card .wpcf7-form input[type="email"],
.sidebar-card .wpcf7-form textarea {
    font-size: .85rem;
    padding: 9px 12px;
}

.sidebar-card .wpcf7-form input[type="submit"] {
    padding: 9px 20px;
    font-size: .88rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea,
    .wpcf7-form select {
        font-size: .88rem;
    }
}

/* ================================================================
   28. ALL NOTES PAGE TEMPLATE
   ================================================================ */

/* ── Hero ── */
.an-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #1a56db) 100%);
    padding: 56px 0 52px;
    color: #fff;
}

.an-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.an-hero-text h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.an-hero-text p {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ── Search form ── */
.an-search-form { width: 100%; }

.an-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

.an-search-icon {
    padding: 0 14px 0 18px;
    color: var(--gray);
    font-size: 1rem;
    flex-shrink: 0;
}

.an-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #1f2937;
    padding: 14px 0;
    background: #fff;
    min-width: 0;
}

.an-search-input::placeholder { color: #9ca3af; }
.an-search-input:focus { color: #1f2937; }

.an-search-btn {
    background: var(--accent, #f59e0b);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    border: none;
    padding: 0 26px;
    height: 52px;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.an-search-btn:hover { background: #d97706; }

/* ── Search hints ── */
.an-search-hints {
    margin-top: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    font-size: .83rem;
    color: rgba(255,255,255,.75);
}

.an-hint-tag {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: .8rem;
    font-weight: 500;
    transition: background .2s;
}

.an-hint-tag:hover {
    background: rgba(255,255,255,.32);
    color: #fff;
}

/* ── Browse section ── */
.an-browse {
    padding: 48px 0 36px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.an-browse .section-title { margin-bottom: 24px; }

.an-cats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.an-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.an-cat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(37,99,235,.12);
    transform: translateY(-2px);
}

.an-cat-card.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.an-cat-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}

.an-cat-card.active .an-cat-icon {
    background: var(--primary);
    color: #fff;
}

.an-cat-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.an-cat-count {
    font-size: .75rem;
    color: var(--gray);
    font-weight: 500;
}

.an-cat-card.active .an-cat-name,
.an-cat-card.active .an-cat-count { color: var(--primary); }

/* ── Results section ── */
.an-results { padding: 36px 0 60px; }

/* ── Toolbar ── */
.an-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.an-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.an-count {
    font-size: .9rem;
    color: var(--gray);
}

.an-count strong { color: var(--dark); }
.an-count em { color: var(--primary); font-style: normal; }

.an-clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    transition: all .2s;
}

.an-clear-filter:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}

.an-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── No results ── */
.an-no-results {
    text-align: center;
    padding: 80px 0;
    color: var(--gray);
}

.an-no-results i {
    font-size: 3rem;
    opacity: .25;
    display: block;
    margin-bottom: 18px;
}

.an-no-results h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.an-no-results p {
    font-size: .95rem;
    margin-bottom: 22px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .an-hero { padding: 40px 0 36px; }
    .an-hero-text h1 { font-size: 1.7rem; }
    .an-search-btn { padding: 0 16px; font-size: .85rem; }
    .an-cats-grid { gap: 8px; }
    .an-cat-card { min-width: 80px; padding: 12px 12px; }
    .an-toolbar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .an-hero-text h1 { font-size: 1.4rem; }
    .an-search-input { font-size: .9rem; }
    .an-search-btn { display: none; }
    .an-search-input { padding-right: 14px; }
}


/* ================================================================
   29. CONTENT STYLES — BLOG POST ENHANCED
   (Full-width content styles matching SEO post design)
   ================================================================ */

/* ── Breaking / Alert Banner ── */
.breaking-banner {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: breaking-pulse 2s ease-in-out infinite;
}

@keyframes breaking-pulse {
    0%, 100% { background: var(--primary); }
    50%       { background: var(--primary-light); color: var(--primary); }
}

/* ── Alert / Info Box ── */
.post-content .alert-box,
.alert-box {
    background: #fff8e1;
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.post-content .alert-box .alert-title,
.alert-box .alert-title {
    color: #e67e22;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.post-content .alert-box.alert-success { background: #f0fdf4; border-left-color: #27ae60; }
.post-content .alert-box.alert-danger  { background: #fef2f2; border-left-color: #e74c3c; }
.post-content .alert-box.alert-info    { background: #eff6ff; border-left-color: #3b82f6; }

/* ── Info / Key-Facts Cards Grid ── */
.post-content .cards-grid,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.post-content .info-card,
.info-card {
    background: var(--surface);
    border: none;
    border-top: 3px solid var(--primary);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.post-content .info-card .ic-value,
.info-card .ic-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
}

.post-content .info-card .ic-label,
.info-card .ic-label {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

/* ── Steps Box ── */
.post-content .steps-box,
.steps-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 18px 0;
    box-shadow: var(--shadow-sm);
}

.post-content .step,
.step {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.post-content .step:last-child,
.step:last-child { border-bottom: none; }

.post-content .step-num,
.step-num {
    min-width: 30px;
    height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.post-content .step-content,
.step-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text);
}

/* ── FAQ Box ── */
.post-content .faq-item,
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-content .faq-q,
.faq-q {
    background: var(--bg);
    padding: 13px 16px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s, background .2s;
    user-select: none;
}

.post-content .faq-q:hover,
.faq-q:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.post-content .faq-item.open .faq-q,
.faq-item.open .faq-q { color: var(--primary); background: var(--primary-light); }

.post-content .faq-a,
.faq-a {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.75;
    background: var(--surface);
    color: var(--gray);
    display: none;
    border-top: 1px solid var(--border);
}

.post-content .faq-item.open .faq-a,
.faq-item.open .faq-a { display: block; }

/* ================================================================
   30. TABLE STYLES — COMPLETE
   ================================================================ */

/* ── Base table reset for .post-content ── */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 14.5px;
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* ── Table head ── */
.post-content table thead tr,
.post-content table th {
    background: var(--primary);
    color: #fff;
}

.post-content table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .3px;
    border: none;
    white-space: nowrap;
}

/* ── Table body cells ── */
.post-content table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
    line-height: 1.6;
}

/* ── Zebra striping ── */
.post-content table tbody tr:nth-child(even) td {
    background: var(--bg);
}

/* ── Last row — no bottom border ── */
.post-content table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Hover row ── */
.post-content table tbody tr:hover td {
    background: var(--primary-light);
    transition: background .15s;
}

/* ── Links inside tables ── */
.post-content table a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.post-content table a:hover {
    text-decoration: underline;
}

/* ── Named helper classes for hand-crafted tables ── */
.post-content .result-table,
.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.post-content .result-table th,
.result-table th {
    background: var(--primary);
    color: #fff;
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.post-content .result-table td,
.result-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text);
    line-height: 1.6;
}

.post-content .result-table tr:nth-child(even) td,
.result-table tr:nth-child(even) td { background: var(--bg); }

.post-content .result-table tr:last-child td,
.result-table tr:last-child td { border-bottom: none; }

.post-content .result-table tbody tr:hover td,
.result-table tbody tr:hover td {
    background: var(--primary-light);
    transition: background .15s;
}

.post-content .result-table a,
.result-table a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.post-content .result-table a:hover,
.result-table a:hover { text-decoration: underline; }

/* ── Responsive tables — horizontal scroll on small screens ── */
.post-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 22px 0;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.post-content .table-responsive table {
    margin: 0;
    min-width: 500px;
    box-shadow: none;
    border-radius: 0;
}

/* Auto-wrap ALL tables in WP post content in a responsive container */
@media (max-width: 600px) {
    .post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: unset;
        border-radius: 8px;
    }

    .post-content table th,
    .post-content table td {
        padding: 9px 11px;
        font-size: 13px;
        white-space: normal;
    }

    .post-content .result-table th,
    .result-table th,
    .post-content .result-table td,
    .result-table td {
        padding: 8px 10px;
        font-size: 12.5px;
    }
}

/* ── WordPress .wp-block-table (Gutenberg) ── */
.post-content .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 22px 0;
}

.post-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin: 0;
}

.post-content .wp-block-table thead { background: var(--primary); }
.post-content .wp-block-table thead td,
.post-content .wp-block-table thead th {
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    font-size: 13.5px;
}

.post-content .wp-block-table td {
    padding: 11px 16px;
    border: 1px solid var(--border);
    vertical-align: top;
}

.post-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
    background: var(--bg);
}

.post-content .wp-block-table figcaption {
    text-align: center;
    font-size: .82rem;
    color: var(--gray);
    margin-top: 8px;
    font-style: italic;
}

/* ── TablePress plugin support ── */
.post-content .tablepress {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 22px 0 !important;
    font-size: 14px !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
}

.post-content .tablepress thead th {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 11px 14px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border: none !important;
}

.post-content .tablepress td {
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--border) !important;
    border-left: none !important;
    border-right: none !important;
    color: var(--text) !important;
}

.post-content .tablepress .row-1 td { border-top: none !important; }

.post-content .tablepress .even td { background: var(--bg) !important; }
.post-content .tablepress .odd td  { background: var(--surface) !important; }

.post-content .tablepress tr:hover td {
    background: var(--primary-light) !important;
    transition: background .15s !important;
}

/* ================================================================
   31. TAGS CLOUD (post-specific)
   ================================================================ */
.post-content .tags,
.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 10px;
}

.post-content .tags .tag,
.content-tags .tag {
    background: var(--bg);
    color: var(--gray);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all .2s;
    display: inline-block;
    font-weight: 500;
}

.post-content .tags .tag:hover,
.content-tags .tag:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* ================================================================
   32. CTA BOX (inside post content)
   ================================================================ */
.post-content .cta-box,
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: 12px;
    padding: 28px 26px;
    text-align: center;
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.post-content .cta-box h3,
.cta-box h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.post-content .cta-box p,
.cta-box p {
    opacity: .9;
    margin-bottom: 18px;
    font-size: 14px;
    color: rgba(255,255,255,.9);
}

.post-content .cta-btn,
.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #1a1208;
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14.5px;
    font-family: 'Roboto', sans-serif;
    transition: transform .2s, box-shadow .2s;
}

.post-content .cta-btn:hover,
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    text-decoration: none;
    color: #1a1208;
}

/* ================================================================
   33. HIGHLIGHT / COLORED TEXT HELPERS
   ================================================================ */
.post-content .highlight { color: var(--primary); font-weight: 700; }
.post-content .text-success { color: #27ae60; font-weight: 600; }
.post-content .text-danger  { color: #e74c3c; font-weight: 600; }
.post-content .text-warning { color: #e67e22; font-weight: 600; }
.post-content .text-muted   { color: var(--gray); }

