/*
Theme Name: GeneratePress Child
Theme URI: https://computingforgeeks.com
Description: Premium child theme for ComputingForGeeks
Author: Josphat Mutai
Author URI: https://computingforgeeks.com
Template: generatepress
Version: 2.0.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand */
    --brand: #10B981;
    --brand-dark: #059669;
    --brand-light: #d1fae5;
    --brand-ultra-light: #ecfdf5;
    --brand-h: 160;
    --brand-s: 84%;
    --brand-l: 39%;

    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    /* Semantic */
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-500);
    --text-heading: var(--gray-900);
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-dark: var(--gray-900);
    --border-color: var(--gray-200);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1.0625rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Layout */
    --site-width: 1320px;
    --content-width: 720px;
    --header-height: 64px;
    --radius: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 200ms;
}


/* ============================================================
   GLOBAL BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-sans) !important;
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans) !important;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover {
    color: var(--brand);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--brand-light);
    color: var(--gray-900);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}


/* ============================================================
   SEARCH OVERLAY
   ============================================================ */

/* Nav search icon */
.cfg-search-toggle {
    display: flex !important;
    align-items: center;
    padding: 8px !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.cfg-search-toggle:hover {
    opacity: 1;
}

/* Overlay */
.cfg-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cfg-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cfg-search-overlay__inner {
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
    transform: translateY(-20px);
    transition: transform 0.2s ease;
}

.cfg-search-overlay.active .cfg-search-overlay__inner {
    transform: translateY(0);
}

.cfg-search-overlay__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.cfg-search-overlay__close:hover {
    color: #ffffff;
}

.cfg-search-overlay__form {
    position: relative;
    display: flex;
    align-items: center;
}

.cfg-search-overlay__icon {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.cfg-search-overlay__input {
    width: 100%;
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 18px 24px 18px 56px !important;
    font-size: 18px !important;
    font-family: var(--font-sans) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cfg-search-overlay__input:focus {
    outline: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(16, 185, 129, 0.4) !important;
}

.cfg-search-overlay__input::placeholder {
    color: #94a3b8 !important;
}

.cfg-search-overlay__hint {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.cfg-search-overlay__hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    font-family: var(--font-sans);
}


/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    z-index: 9999;
    transition: width 50ms linear;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: #0f172a !important;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inside-header {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 24px !important;
    height: var(--header-height);
    display: flex !important;
    align-items: center;
}

/* Logo */
.site-logo,
.site-title {
    flex-shrink: 0;
}

.site-logo img {
    height: 32px;
    width: auto;
}

.site-title a {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-title a:hover {
    color: var(--brand) !important;
}

/* Navigation */
.main-navigation {
    background: transparent !important;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation .main-nav {
    display: flex;
    align-items: center;
}

.main-navigation .main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation .main-nav ul li a,
.main-navigation .main-nav ul li a:visited {
    color: var(--gray-300) !important;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
    line-height: 1;
    white-space: nowrap;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--brand) !important;
}

/* Dropdown */
.main-navigation ul ul {
    background: var(--gray-800) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 6px;
    min-width: 200px;
    margin-top: 4px;
}

.main-navigation ul ul li a {
    padding: 8px 12px !important;
    border-radius: var(--radius) !important;
    font-size: var(--text-sm) !important;
}

.main-navigation ul ul li a:hover {
    background: rgba(16, 185, 129, 0.12) !important;
    color: var(--brand) !important;
}

/* Mobile toggle */
.menu-toggle,
.menu-toggle:hover,
.menu-toggle:focus {
    color: #ffffff !important;
    padding: 10px;
    background: transparent;
    border: none;
}

/* Search in nav */
.navigation-search input[type="search"] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 7px 16px;
    font-size: var(--text-sm);
    width: 180px;
    transition: all var(--duration) var(--ease);
    font-family: var(--font-sans);
}

.navigation-search input[type="search"]:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--brand);
    width: 240px;
    outline: none;
}

.navigation-search input[type="search"]::placeholder {
    color: var(--gray-500);
}


/* ============================================================
   LAYOUT
   ============================================================ */
.site-content {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Kill GP default container */
.inside-article,
.site-main {
    margin: 0;
    padding: 0;
}

/* No sidebar */
.content-area {
    width: 100% !important;
    float: none !important;
}

#right-sidebar,
#left-sidebar,
.sidebar {
    display: none !important;
}


/* ============================================================
   HOMEPAGE - HERO
   ============================================================ */
.cfg-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 48px;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    background: var(--gray-900);
}

.cfg-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 6s var(--ease);
}

.cfg-hero:hover .cfg-hero__img {
    transform: scale(1.03);
}

.cfg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    z-index: 1;
}

.cfg-hero__content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 640px;
}

.cfg-hero__tag {
    display: inline-flex;
    align-items: center;
    background: var(--brand);
    color: #ffffff;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.cfg-hero__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 14px 0;
    letter-spacing: -0.03em;
}

.cfg-hero__title a {
    color: inherit;
}

.cfg-hero__title a:hover {
    color: var(--brand-light);
}

.cfg-hero__excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.cfg-hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

.cfg-hero__meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cfg-hero__meta a {
    color: rgba(255, 255, 255, 0.8);
}


/* ============================================================
   HOMEPAGE - SECTION HEADERS
   ============================================================ */
.cfg-section {
    margin-bottom: 48px;
}

.cfg-section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cfg-section__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0;
    color: var(--text-heading);
}

.cfg-section__line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.cfg-section__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--brand-dark);
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all var(--duration) var(--ease);
}

.cfg-section__link:hover {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.cfg-section__link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration) var(--ease);
}

.cfg-section__link:hover svg {
    transform: translateX(2px);
}


/* ============================================================
   POST CARDS
   ============================================================ */
.cfg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cfg-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--duration) var(--ease);
}

.cfg-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Card image */
.cfg-card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}

.cfg-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s var(--ease);
}

.cfg-card:hover .cfg-card__img-wrap img {
    transform: scale(1.04);
}

/* Card body */
.cfg-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category tag */
.cfg-card__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-dark);
    background: var(--brand-ultra-light);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    transition: all var(--duration) var(--ease);
}

.cfg-card:hover .cfg-card__tag {
    background: var(--brand);
    color: #ffffff;
}

/* Card title */
.cfg-card__title {
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px 0;
    color: var(--text-heading);
}

.cfg-card__title a {
    color: inherit;
}

.cfg-card__title a:hover {
    color: var(--brand-dark);
}

/* Card excerpt */
.cfg-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer/meta */
.cfg-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.cfg-card__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cfg-card__meta-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
}

.cfg-card__author {
    font-weight: 600;
    color: var(--text-primary);
}

.cfg-card__date {
    color: var(--text-secondary);
}

/* List card variant (horizontal) */
.cfg-card--list {
    flex-direction: row;
    gap: 0;
}

.cfg-card--list .cfg-card__img-wrap {
    width: 280px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.cfg-card--list .cfg-card__body {
    padding: 20px 24px;
}

.cfg-card--list .cfg-card__title {
    font-size: var(--text-lg);
}


/* ============================================================
   FEATURED CARDS (2-column large)
   ============================================================ */
.cfg-grid--featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.cfg-grid--featured .cfg-card__img-wrap {
    aspect-ratio: 16 / 9;
}

.cfg-grid--featured .cfg-card__title {
    font-size: var(--text-xl);
}


/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.cfg-cta {
    position: relative;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    margin: 56px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cfg-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, hsla(var(--brand-h), var(--brand-s), var(--brand-l), 0.15), transparent 70%);
    border-radius: 50%;
}

.cfg-cta__content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.cfg-cta__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.cfg-cta__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.cfg-cta__desc {
    color: var(--gray-400);
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0;
}

.cfg-cta__form {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cfg-cta__input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    width: 280px;
    transition: all var(--duration) var(--ease);
}

.cfg-cta__input:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.12);
}

.cfg-cta__input::placeholder {
    color: var(--gray-500);
}

.cfg-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 600;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.cfg-cta__btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.cfg-cta__buttons {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.cfg-cta__btn--alt {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.cfg-cta__btn--alt:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}

@media (max-width: 768px) {
    .cfg-cta__buttons {
        flex-direction: column;
        width: 100%;
    }
    .cfg-cta__btn {
        justify-content: center;
    }
}


/* ============================================================
   SINGLE POST
   ============================================================ */

/* Post hero area */
.single .entry-header {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px 0 0 0;
}

.single .entry-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
}

.entry-meta {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.entry-meta a {
    color: var(--text-secondary);
}

.entry-meta a:hover {
    color: var(--brand-dark);
}

/* Breadcrumbs */
.rank-math-breadcrumb {
    max-width: var(--content-width);
    margin: 16px auto 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.rank-math-breadcrumb a {
    color: var(--text-secondary);
}

.rank-math-breadcrumb a:hover {
    color: var(--brand-dark);
}

.rank-math-breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.4;
}

/* Featured image */
.single .post-image {
    max-width: var(--content-width);
    margin: 0 auto 32px;
}

.single .post-image img {
    border-radius: var(--radius-lg);
    width: 100%;
}

/* Content */
.single .entry-content,
.page .entry-content {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: var(--text-base);
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.6em;
}

.entry-content h2 {
    font-size: var(--text-2xl);
    margin: 2.2em 0 0.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

.entry-content h3 {
    font-size: var(--text-xl);
    margin: 1.8em 0 0.6em;
}

.entry-content h4 {
    font-size: var(--text-lg);
    margin: 1.5em 0 0.5em;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.6em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content li::marker {
    color: var(--brand);
}

.entry-content blockquote {
    border-left: 3px solid var(--brand);
    background: var(--bg-secondary);
    padding: 20px 24px;
    margin: 1.6em 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images */
.entry-content img {
    border-radius: var(--radius);
}

.wp-block-image figcaption {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.entry-content th {
    background: var(--gray-900);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
}

.entry-content td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.entry-content tr:hover td {
    background: var(--gray-50);
}

/* Separator */
.wp-block-separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5em 0;
}

/* Buttons */
.wp-block-button__link {
    background: var(--brand) !important;
    border-radius: var(--radius) !important;
    font-weight: 600;
    font-family: var(--font-sans);
    padding: 12px 24px;
    transition: all var(--duration) var(--ease);
}

.wp-block-button__link:hover {
    background: var(--brand-dark) !important;
    transform: translateY(-1px);
}


/* ============================================================
   CODE BLOCKS
   ============================================================ */

/* Inline code */
.entry-content p code,
.entry-content li code,
.entry-content td code,
.entry-content th code,
.entry-content h2 code,
.entry-content h3 code,
.entry-content h4 code {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: var(--font-mono);
    border: 1px solid var(--gray-200);
    white-space: nowrap;
    font-weight: 500;
}

/* Code blocks */
.entry-content .wp-block-code {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    margin: 28px 0;
    padding: 22px 24px;
    overflow-x: auto;
    position: relative;
    box-shadow: var(--shadow-md);
}

.entry-content .wp-block-code code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    white-space: pre;
    word-break: normal;
    display: block;
    tab-size: 4;
    -webkit-font-smoothing: antialiased;
}

/* Syntax colors */
.entry-content .wp-block-code .has-inline-color {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.entry-content .wp-block-code .has-vivid-green-cyan-color { color: #9ece6a !important; }
.entry-content .wp-block-code .has-pale-pink-color,
.entry-content .wp-block-code .has-vivid-purple-color { color: #bb9af7 !important; }
.entry-content .wp-block-code .has-luminous-vivid-orange-color { color: #ff9e64 !important; }
.entry-content .wp-block-code .has-luminous-vivid-amber-color { color: #e0af68 !important; }
.entry-content .wp-block-code .has-pale-cyan-blue-color,
.entry-content .wp-block-code .has-vivid-cyan-blue-color { color: #7dcfff !important; }
.entry-content .wp-block-code .has-vivid-red-color { color: #f7768e !important; }

.entry-content .wp-block-code strong,
.entry-content .wp-block-code b { color: #e2e8f0; font-weight: 600; }

.entry-content .wp-block-code em,
.entry-content .wp-block-code i { color: #565f89; font-style: italic; }

/* Astra compat */
.entry-content .wp-block-code .has-ast-global-color-0-color,
.entry-content .wp-block-code .has-ast-global-color-1-color,
.entry-content .wp-block-code .has-ast-global-color-2-color,
.entry-content .wp-block-code .has-ast-global-color-3-color { color: #7dcfff !important; }
.entry-content .wp-block-code .has-ast-global-color-4-color,
.entry-content .wp-block-code .has-ast-global-color-5-color { color: #c0caf5 !important; }

/* Preformatted blocks */
.entry-content .wp-block-preformatted {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 22px 24px;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.75;
    overflow-x: auto;
    margin: 28px 0;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--brand);
    -webkit-font-smoothing: antialiased;
}

.entry-content .wp-block-preformatted .has-inline-color {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.entry-content .wp-block-preformatted .has-vivid-green-cyan-color { color: #9ece6a !important; }
.entry-content .wp-block-preformatted .has-pale-pink-color,
.entry-content .wp-block-preformatted .has-vivid-purple-color { color: #bb9af7 !important; }
.entry-content .wp-block-preformatted .has-luminous-vivid-orange-color { color: #ff9e64 !important; }
.entry-content .wp-block-preformatted .has-luminous-vivid-amber-color { color: #e0af68 !important; }
.entry-content .wp-block-preformatted .has-pale-cyan-blue-color,
.entry-content .wp-block-preformatted .has-vivid-cyan-blue-color { color: #7dcfff !important; }
.entry-content .wp-block-preformatted .has-vivid-red-color { color: #f7768e !important; }

.entry-content .wp-block-preformatted .has-ast-global-color-0-color,
.entry-content .wp-block-preformatted .has-ast-global-color-1-color,
.entry-content .wp-block-preformatted .has-ast-global-color-2-color,
.entry-content .wp-block-preformatted .has-ast-global-color-3-color { color: #7dcfff !important; }

/* Copy button wrapper */
.cfg-code-wrap {
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--gray-400);
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 11px;
    font-family: var(--font-sans);
    cursor: pointer;
    opacity: 0;
    transition: all var(--duration) var(--ease);
    z-index: 5;
    line-height: 1.4;
}

.cfg-code-wrap:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.code-copy-btn.copied {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

/* Scrollbar */
.entry-content .wp-block-code,
.entry-content .wp-block-preformatted {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-600) rgba(255, 255, 255, 0.04);
}

.entry-content .wp-block-code::-webkit-scrollbar,
.entry-content .wp-block-preformatted::-webkit-scrollbar {
    height: 5px;
}

.entry-content .wp-block-code::-webkit-scrollbar-track,
.entry-content .wp-block-preformatted::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.entry-content .wp-block-code::-webkit-scrollbar-thumb,
.entry-content .wp-block-preformatted::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-radius: 4px;
}

.entry-content .wp-block-code::-webkit-scrollbar-thumb:hover,
.entry-content .wp-block-preformatted::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Selection */
.entry-content .wp-block-code code::selection,
.entry-content .wp-block-code code *::selection,
.entry-content .wp-block-preformatted::selection {
    background: rgba(16, 185, 129, 0.35);
    color: #ffffff;
}


/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.cfg-toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 0 0 32px 0;
    max-width: var(--content-width);
}

.cfg-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    cursor: pointer;
}

.cfg-toc__title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0;
}

.cfg-toc__toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
}

.cfg-toc__toggle:hover {
    color: var(--brand);
    background: var(--gray-200);
}

.cfg-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cfg-toc__list li {
    margin-bottom: 4px;
}

.cfg-toc__list a {
    display: block;
    padding: 5px 0 5px 14px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    transition: all var(--duration) var(--ease);
    line-height: 1.4;
}

.cfg-toc__list a:hover {
    color: var(--brand-dark);
    border-left-color: var(--brand);
    background: rgba(16, 185, 129, 0.04);
}

.cfg-toc__list ul {
    list-style: none;
    padding-left: 16px;
    margin: 0;
}

.cfg-toc.collapsed .cfg-toc__list {
    display: none;
}


/* ============================================================
   AUTHOR BOX
   ============================================================ */
.cfg-author {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: var(--content-width);
}

.cfg-author__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.cfg-author__info {
    flex: 1;
}

.cfg-author__name {
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0 0 4px 0;
}

.cfg-author__name a {
    color: var(--text-heading);
}

.cfg-author__name a:hover {
    color: var(--brand-dark);
}

.cfg-author__bio {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}


/* ============================================================
   RELATED POSTS
   ============================================================ */
.cfg-related {
    max-width: var(--site-width);
    margin: 56px auto;
    padding: 0 24px;
}

.cfg-related__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cfg-related__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0;
}

.cfg-related__line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}


/* ============================================================
   COFFEE BOX
   ============================================================ */
.coffee_box {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin: 32px 0;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

h3.coffee_box_heading {
    font-size: var(--text-xl);
    margin: 0 0 14px 0;
    text-align: center;
    color: var(--brand);
    font-weight: 700;
}

p.coffee_box_content {
    font-size: var(--text-base);
    line-height: 1.7;
    margin: 0 0 16px;
    color: var(--gray-300);
    text-align: center;
}

.coffee_box_img {
    width: 100%;
    text-align: center;
    margin: 20px 0 14px;
}

.coffee_box_img a {
    display: inline-block;
    border-radius: var(--radius);
    overflow: hidden;
}

.coffee_box_img img {
    background: #ffffff;
    padding: 10px 40px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.coffee_box .coffee_box_thanku {
    color: var(--gray-400);
    text-align: center;
    font-style: italic;
}


/* ============================================================
   END OF POSTS
   ============================================================ */
.end-of-posts {
    background: var(--brand-ultra-light);
    border: 1px solid var(--brand-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 40px 0;
}

.end-of-posts h2 {
    margin-top: 0;
    font-weight: 700;
    color: var(--brand-dark);
}

.it-journey a {
    background-color: var(--brand) !important;
    border-radius: var(--radius) !important;
    transition: all var(--duration) var(--ease);
    padding: 10px 18px;
    font-size: 15px;
    font-family: var(--font-sans);
    font-weight: 600;
    color: #ffffff !important;
}

.it-journey a:hover {
    background-color: var(--brand-dark) !important;
    transform: translateY(-1px);
}

.it-journey li {
    margin-bottom: 10px;
}


/* ============================================================
   PAGINATION
   ============================================================ */
.cfg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 48px 0;
}

.cfg-pagination a,
.cfg-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all var(--duration) var(--ease);
}

.cfg-pagination .current {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.cfg-pagination a:hover {
    background: var(--brand-ultra-light);
    border-color: var(--brand);
    color: var(--brand-dark);
}

/* GP default pagination override */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all var(--duration) var(--ease);
}

.nav-links .current {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.nav-links a:hover {
    background: var(--brand-ultra-light);
    border-color: var(--brand);
    color: var(--brand-dark);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0f172a !important;
    color: var(--gray-400);
    margin-top: 64px;
}

.inside-site-info {
    max-width: var(--site-width);
    margin: 0 auto;
}

/* Footer widgets area */
.cfg-footer-wrap {
    background: #0f172a !important;
    color: #94a3b8;
    margin-top: 64px;
}

.cfg-footer {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 48px;
}

.cfg-footer__logo {
    margin-bottom: 16px;
}

.cfg-footer__about p {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 20px 0;
}

.cfg-footer__social {
    display: flex;
    gap: 12px;
}

.cfg-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8 !important;
    transition: all 0.2s ease;
}

.cfg-footer__social a:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981 !important;
    transform: translateY(-2px);
}

.cfg-footer__section h4 {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    display: inline-block;
}

.cfg-footer__section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cfg-footer__section li {
    margin-bottom: 10px;
}

.cfg-footer__section li:last-child {
    margin-bottom: 0;
}

.cfg-footer__section a {
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.15s ease;
}

.cfg-footer__section a:hover {
    color: #10B981;
    padding-left: 3px;
}

/* Footer bottom bar */
.cfg-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

/* Hide GP default site-info content */
.site-info {
    display: none;
}


/* ============================================================
   AD PLACEHOLDERS
   ============================================================ */
[id^="ezoic-pub-ad-placeholder"] {
    margin: 28px auto;
    text-align: center;
    min-height: 50px;
}


/* ============================================================
   CATEGORY / ARCHIVE PAGES
   ============================================================ */
.cfg-archive-header {
    max-width: var(--site-width);
    margin: 32px auto 8px;
    padding: 0;
}

.cfg-archive-header__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.cfg-archive-header__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.cfg-archive-header__desc {
    color: var(--text-secondary);
    font-size: var(--text-base);
    max-width: 600px;
}

/* Override GP's default archive output */
.archive .inside-article,
.search .inside-article {
    padding: 0;
    border: none;
}

.archive .page-header,
.search .page-header {
    display: none;
}

/* GP columns container */
.generate-columns-container {
    max-width: var(--site-width);
    margin: 0 auto;
}

.generate-columns-container article {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    background: var(--bg-primary);
}

.generate-columns-container article:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.generate-columns-container .inside-article {
    padding: 0;
}

.generate-columns-container .post-image img {
    border-radius: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.generate-columns-container .entry-header,
.generate-columns-container .entry-summary {
    padding: 0 20px;
}

.generate-columns-container .entry-title {
    font-size: var(--text-base);
    line-height: 1.35;
}

.generate-columns-container .entry-meta {
    padding: 0 20px 16px;
    font-size: var(--text-xs);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet landscape */
@media (max-width: 1200px) {
    .cfg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfg-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .cfg-hero {
        min-height: 360px;
        border-radius: var(--radius-lg);
    }

    .cfg-hero__content {
        padding: 28px;
    }

    .cfg-hero__title {
        font-size: var(--text-2xl);
    }

    .cfg-hero__excerpt {
        display: none;
    }

    .cfg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .cfg-card--list {
        flex-direction: column;
    }

    .cfg-card--list .cfg-card__img-wrap {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .cfg-cta {
        flex-direction: column;
        padding: 36px 28px;
        text-align: center;
    }

    .cfg-cta__form {
        flex-direction: column;
        width: 100%;
    }

    .cfg-cta__input {
        width: 100%;
    }

    .cfg-footer {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 24px 20px;
    }

    .cfg-footer__bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .single .entry-title {
        font-size: var(--text-2xl);
    }

    .entry-content h2 {
        font-size: var(--text-xl);
    }

    .cfg-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cfg-related .cfg-grid {
        grid-template-columns: 1fr;
    }

    .entry-content .wp-block-code code,
    .entry-content .wp-block-preformatted {
        font-size: 13px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .site-content {
        padding: 0 16px;
    }

    .cfg-hero {
        min-height: 280px;
    }

    .cfg-hero__content {
        padding: 20px;
    }

    .cfg-hero__title {
        font-size: var(--text-xl);
    }

    .cfg-section__header {
        flex-wrap: wrap;
    }

    .cfg-section__line {
        display: none;
    }
}


/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .cfg-cta,
    .cfg-related,
    .reading-progress,
    [id^="ezoic-pub-ad-placeholder"] {
        display: none !important;
    }

    .entry-content {
        max-width: 100%;
    }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.cfg-contact-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 60px;
}

/* Hero */
.cfg-contact-hero {
    text-align: center;
    padding: 48px 20px 40px;
}

.cfg-contact-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 20px;
    color: #059669;
    margin-bottom: 20px;
}

.cfg-contact-hero__title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #0f172a;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.03em;
    border: none !important;
    padding: 0 !important;
}

.cfg-contact-hero__desc {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* Layout */
.cfg-contact-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Form ──────────────────────────────────────── */
.cfg-contact-form-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

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

.cfg-form-group {
    margin-bottom: 20px;
}

.cfg-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.cfg-form-group label .required {
    color: #ef4444;
}

.cfg-form-group input[type="text"],
.cfg-form-group input[type="email"],
.cfg-form-group select,
.cfg-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.cfg-form-group input:focus,
.cfg-form-group select:focus,
.cfg-form-group textarea:focus {
    border-color: #10B981;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.cfg-form-group input::placeholder,
.cfg-form-group textarea::placeholder {
    color: #94a3b8;
}

.cfg-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.cfg-form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Honeypot */
.cfg-form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Submit button */
.cfg-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    width: 100%;
    justify-content: center;
}

.cfg-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #059669, #047857);
}

.cfg-form-submit:active {
    transform: translateY(0);
}

.cfg-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Status messages */
.cfg-form-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.cfg-form-status--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cfg-form-status--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Sidebar cards ─────────────────────────────── */
.cfg-contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cfg-contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.2s ease;
}

.cfg-contact-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.cfg-contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 10px;
    color: #059669;
    margin-bottom: 14px;
}

.cfg-contact-card h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a;
    margin: 0 0 6px 0 !important;
}

.cfg-contact-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.cfg-contact-card a {
    color: #059669;
    font-weight: 600;
    font-size: 14px;
}

.cfg-contact-card a:hover {
    color: #10B981;
}

/* Social icons */
.cfg-contact-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.cfg-contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 18px;
    transition: all 0.2s ease;
}

.cfg-contact-social a:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .cfg-contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cfg-form-row--double {
        grid-template-columns: 1fr;
    }

    .cfg-contact-hero__title {
        font-size: 26px !important;
    }

    .cfg-contact-form-wrap {
        padding: 24px;
    }

    .cfg-contact-sidebar {
        order: -1;
    }
}

/* ── Contact page: hide GP default title ────────── */
.page-id-563 .entry-header {
    display: none !important;
}
.page-id-563 .inside-article {
    padding-top: 0 !important;
}
.page-id-563 .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Tighter hero spacing */
.cfg-contact-hero {
    padding: 32px 20px 28px !important;
}

/* Wider form card */
.cfg-contact-form-wrap {
    padding: 40px !important;
}

/* Better input sizing */
.cfg-form-group input[type="text"],
.cfg-form-group input[type="email"],
.cfg-form-group select,
.cfg-form-group textarea {
    padding: 13px 16px !important;
    font-size: 15px !important;
}

/* Sidebar cards tighter */
.cfg-contact-card {
    padding: 22px !important;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Hide GP default title */
.page-id-274 .entry-header {
    display: none !important;
}
.page-id-274 .inside-article {
    padding-top: 0 !important;
}
.page-id-274 .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
}

.cfg-about-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* ── Hero ──────────────────────────────────────── */
.cfg-about-hero {
    text-align: center;
    padding: 48px 20px 44px;
}

.cfg-about-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    background: #ecfdf5;
    padding: 5px 14px;
    border-radius: 9999px;
}

.cfg-about-hero__title {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0 !important;
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
    border: none !important;
    padding: 0 !important;
}

.cfg-about-hero__desc {
    font-size: 18px;
    color: #64748b;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Stats ─────────────────────────────────────── */
.cfg-about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 56px;
}

.cfg-about-stat {
    background: #ffffff;
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cfg-about-stat__number {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.cfg-about-stat__label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Sections ──────────────────────────────────── */
.cfg-about-section {
    margin-bottom: 56px;
}

.cfg-about-section__title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    border: none !important;
    padding: 0 !important;
}

.cfg-about-section__desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 28px 0;
    max-width: 600px;
}

/* ── Topics grid ───────────────────────────────── */
.cfg-about-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cfg-about-topic {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.cfg-about-topic:hover {
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    transform: translateY(-2px);
}

.cfg-about-topic__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 10px;
    color: #059669;
    margin-bottom: 14px;
}

.cfg-about-topic h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    color: #0f172a;
}

.cfg-about-topic p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── Approach ──────────────────────────────────── */
.cfg-about-approach {
    background: #0f172a;
    border-radius: 16px;
    padding: 44px;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}

.cfg-about-approach::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
    border-radius: 50%;
}

.cfg-about-approach__content {
    position: relative;
    z-index: 1;
}

.cfg-about-approach h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 14px 0 !important;
    border: none !important;
    padding: 0 !important;
}

.cfg-about-approach p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 20px 0;
    max-width: 640px;
}

.cfg-about-approach ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cfg-about-approach li {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
}

.cfg-about-approach li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
}

.cfg-about-approach li strong {
    color: #ffffff;
}

/* ── Author ────────────────────────────────────── */
.cfg-about-author {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px;
}

.cfg-about-author__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.cfg-about-author__info {
    flex: 1;
}

.cfg-about-author__info h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    color: #0f172a;
}

.cfg-about-author__role {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 12px;
}

.cfg-about-author__info p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.cfg-about-author__social {
    display: flex;
    gap: 16px;
    margin-top: 14px;
}

.cfg-about-author__social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cfg-about-author__social a:hover {
    border-color: #0f172a;
    color: #0f172a;
    transform: translateY(-1px);
}

/* ── CTA ───────────────────────────────────────── */
.cfg-about-cta {
    text-align: center;
    padding: 44px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 16px;
    border: 1px solid #a7f3d0;
}

.cfg-about-cta h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    border: none !important;
    padding: 0 !important;
}

.cfg-about-cta p {
    font-size: 15px;
    color: #475569;
    margin: 0 0 20px 0;
}

.cfg-about-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.cfg-about-cta__btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
    color: #ffffff !important;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .cfg-about-hero__title {
        font-size: 26px !important;
    }

    .cfg-about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfg-about-topics {
        grid-template-columns: 1fr;
    }

    .cfg-about-approach {
        padding: 28px;
    }

    .cfg-about-approach ul {
        grid-template-columns: 1fr;
    }

    .cfg-about-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }

    .cfg-about-author__social {
        justify-content: center;
    }
}


/* ============================================================
   HOMEPAGE HERO - Text only, clean
   ============================================================ */
.cfg-home-hero {
    text-align: center;
    padding: 48px 20px 8px;
    max-width: 680px;
    margin: 0 auto;
}

.cfg-home-hero__title {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em;
    margin: 0 0 12px 0 !important;
    border: none !important;
    padding: 0 !important;
}

.cfg-home-hero__desc {
    font-size: 17px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── Override card images to be smaller/cleaner ── */
.cfg-card__img-wrap {
    aspect-ratio: 16 / 9 !important;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0) !important;
}

/* If image is too dark (OG-style), add a light overlay */
.cfg-card__img-wrap img {
    mix-blend-mode: normal;
}

/* ── Tighter grid on homepage ──────────────────── */
.home .cfg-grid {
    gap: 20px;
}

.home .cfg-section {
    margin-bottom: 40px;
}

/* Remove the old hero CSS since we're not using it */
.cfg-hero {
    display: none !important;
}
.cfg-grid--featured {
    display: none !important;
}


/* ============================================================
   HOMEPAGE v2 - Compact, curated, visual variety
   ============================================================ */

/* ── Hero category pills ───────────────────────── */
.cfg-home-hero__cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.cfg-home-hero__cat {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #475569 !important;
    padding: 6px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.cfg-home-hero__cat:hover {
    background: #10B981;
    color: #ffffff !important;
    border-color: #10B981;
    transform: translateY(-1px);
}

/* ── Featured post (large, no image) ───────────── */
.cfg-featured {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 14px;
    padding: 40px 44px;
    position: relative;
    overflow: hidden;
}

.cfg-featured::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16,185,129,0.1), transparent 70%);
    border-radius: 50%;
}

.cfg-featured__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 9999px;
    margin-bottom: 16px;
}

.cfg-featured__title {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.02em;
    border: none !important;
    padding: 0 !important;
}

.cfg-featured__title a {
    color: #ffffff !important;
}

.cfg-featured__title a:hover {
    color: #10B981 !important;
}

.cfg-featured__excerpt {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 18px 0;
    max-width: 580px;
}

.cfg-featured__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.cfg-featured__meta a {
    color: #94a3b8;
}

/* ── Hero featured card ────────────────────────── */
.cfg-hero {
    margin-bottom: 48px;
}

.cfg-hero__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.cfg-hero__card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.cfg-hero__img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.cfg-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cfg-hero__card:hover .cfg-hero__img img {
    transform: scale(1.03);
}

.cfg-hero__body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cfg-hero__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #10B981 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.cfg-hero__title {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
}

.cfg-hero__title a {
    color: #0f172a !important;
}

.cfg-hero__title a:hover {
    color: #059669 !important;
}

.cfg-hero__excerpt {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.cfg-hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.cfg-hero__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.cfg-hero__dot {
    color: #cbd5e1;
}

/* ── Two-column layout (Latest + Explore) ──────── */
.cfg-two-col {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* ── Latest items with thumbnails ──────────────── */
.cfg-latest-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cfg-latest-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cfg-latest-item:first-child {
    padding-top: 0;
}

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

.cfg-latest-item__thumb {
    flex-shrink: 0;
    width: 100px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
}

.cfg-latest-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.cfg-latest-item:hover .cfg-latest-item__thumb img {
    transform: scale(1.05);
}

.cfg-latest-item__body {
    flex: 1;
    min-width: 0;
}

.cfg-latest-item__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #10B981 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.cfg-latest-item__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 6px 0 !important;
}

.cfg-latest-item__title a {
    color: #0f172a !important;
}

.cfg-latest-item__title a:hover {
    color: #059669 !important;
}

.cfg-latest-item__meta {
    font-size: 12px;
    color: #94a3b8;
}

/* ── Ranked items (Explore section) ────────────── */
.cfg-ranked {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cfg-ranked-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cfg-ranked-item:first-child {
    padding-top: 0;
}

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

.cfg-ranked-item__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #10B981;
    background: #ecfdf5;
    border-radius: 8px;
    margin-top: 2px;
}

.cfg-ranked-item__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 0 2px 0 !important;
}

.cfg-ranked-item__title a {
    color: #1e293b !important;
}

.cfg-ranked-item__title a:hover {
    color: #059669 !important;
}

.cfg-ranked-item__meta {
    font-size: 12px;
    color: #94a3b8;
}

/* ── Stats bar ─────────────────────────────────── */
.cfg-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
}

.cfg-stats-bar__item {
    background: #f8fafc;
    padding: 24px;
    text-align: center;
}

.cfg-stats-bar__num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}

.cfg-stats-bar__label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* ── Section alt background ────────────────────── */
.cfg-section--alt {
    background: #f8fafc;
    margin-left: -40px;
    margin-right: -40px;
    padding: 40px 40px 48px;
    border-radius: 0;
}

/* ── Topic cards (Browse by Topic) ─────────────── */
.cfg-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cfg-topic-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.cfg-topic-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.cfg-topic-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.cfg-topic-card__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--topic-color) 12%, transparent);
    color: var(--topic-color);
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.cfg-topic-card__header h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #0f172a !important;
    flex: 1;
}

.cfg-topic-card__count {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.cfg-topic-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}

.cfg-topic-card__list li {
    padding: 7px 0;
    border-bottom: 1px solid #f8fafc;
}

.cfg-topic-card__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cfg-topic-card__list a {
    font-size: 14px;
    font-weight: 500;
    color: #334155 !important;
    line-height: 1.4;
    display: block;
}

.cfg-topic-card__list a:hover {
    color: var(--topic-color) !important;
}

.cfg-topic-card__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--topic-color) !important;
}

.cfg-topic-card__more:hover {
    gap: 6px;
}

/* ── Homepage responsive ───────────────────────── */
@media (max-width: 1024px) {
    .cfg-hero__card {
        grid-template-columns: 1fr;
    }

    .cfg-hero__img {
        aspect-ratio: 16/8;
    }

    .cfg-hero__body {
        padding: 24px 28px 28px;
    }
}

@media (max-width: 768px) {
    .cfg-two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cfg-topics {
        grid-template-columns: 1fr;
    }

    .cfg-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfg-hero__title {
        font-size: 20px !important;
    }

    .cfg-section--alt {
        margin-left: -16px;
        margin-right: -16px;
        padding: 32px 16px 36px;
    }

    .cfg-latest-item__thumb {
        width: 80px;
        height: 60px;
    }
}

/* ── Hide old homepage styles ──────────────────── */
.home .cfg-grid {
    display: none !important;
}


/* ============================================================
   HOMEPAGE POLISH - Visual upgrades
   ============================================================ */

/* ── Hero: gradient background + more presence ─── */
.cfg-home-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #eff6ff 100%) !important;
    border-radius: 20px !important;
    padding: 52px 32px 36px !important;
    margin-bottom: 36px !important;
    border: 1px solid #e2e8f0;
}

.cfg-home-hero__title {
    font-size: 36px !important;
    background: linear-gradient(135deg, #0f172a, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cfg-home-hero__desc {
    font-size: 17px !important;
    color: #475569 !important;
}

/* ── Featured card: hover + better presence ────── */
.cfg-featured {
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.cfg-featured:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.2);
    transform: translateY(-2px);
}

.cfg-featured__excerpt {
    color: #cbd5e1 !important;
}

/* ── Section spacing + headers ─────────────────── */
.home .cfg-section {
    margin-bottom: 48px !important;
}

.cfg-section__header {
    margin-bottom: 20px !important;
}

.cfg-section__title {
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #0f172a !important;
    padding-bottom: 8px !important;
    border-bottom: 3px solid #10B981 !important;
    display: inline-block !important;
}

.cfg-section__line {
    background: linear-gradient(90deg, #e2e8f0, transparent) !important;
}

/* ── Latest list: better readability ───────────── */
.cfg-list-item {
    padding: 20px 0 !important;
    transition: all 0.15s ease;
}

.cfg-list-item:hover {
    padding-left: 8px;
}

.cfg-list-item__title {
    font-size: 18px !important;
}

.cfg-list-item__excerpt {
    color: #475569 !important;
}

.cfg-list-item__meta {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* ── Ranked: bolder numbers ────────────────────── */
.cfg-ranked-item__num {
    font-size: 16px !important;
    width: 36px !important;
    height: 36px !important;
}

.cfg-ranked-item:first-child .cfg-ranked-item__num {
    background: #10B981 !important;
    color: #ffffff !important;
}

.cfg-ranked-item:nth-child(2) .cfg-ranked-item__num {
    background: #d1fae5 !important;
    color: #059669 !important;
}

.cfg-ranked-item:nth-child(3) .cfg-ranked-item__num {
    background: #ecfdf5 !important;
    color: #10B981 !important;
}

.cfg-ranked-item {
    transition: all 0.15s ease;
}

.cfg-ranked-item:hover {
    padding-left: 6px;
}

/* ── Spotlights: subtle shadow + better hover ──── */
.cfg-spotlight {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.cfg-spotlight:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    border-color: var(--spot-color) !important;
}

.cfg-spotlight__list a {
    transition: all 0.15s ease;
    padding: 2px 0 !important;
    display: block;
}

.cfg-spotlight__list a:hover {
    padding-left: 6px !important;
    color: var(--spot-color) !important;
}

/* ── CTA: cleaner, less in-your-face ───────────── */
.cfg-cta {
    border-radius: 14px !important;
    margin: 32px 0 !important;
    padding: 40px !important;
}

.cfg-cta__title {
    font-size: 22px !important;
}

/* ── Dividers between major sections ───────────── */
.cfg-two-col {
    padding-bottom: 40px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 48px !important;
}

/* ── Browse all link ───────────────────────────── */
.home .cfg-section__link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.home .cfg-section__link:hover {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
}

/* ── Fix: remove old .cfg-grid display:none that hides archive grids ── */
.home .cfg-grid {
    display: grid !important;
}

/* Only hide on home if inside the old sections */
.archive .cfg-grid,
.search .cfg-grid,
.category .cfg-grid {
    display: grid !important;
}


/* ============================================================
   HOMEPAGE v3 - Fixes
   ============================================================ */

/* ── Hero: more compact, pills fit one row ─────── */
.cfg-home-hero {
    padding: 36px 28px 28px !important;
    margin-bottom: 28px !important;
}

.cfg-home-hero__title {
    font-size: 30px !important;
    margin-bottom: 8px !important;
}

.cfg-home-hero__desc {
    font-size: 16px !important;
    margin-bottom: 0 !important;
}

.cfg-home-hero__cats {
    margin-top: 16px !important;
    gap: 6px !important;
}

.cfg-home-hero__cat {
    font-size: 12px !important;
    padding: 5px 14px !important;
}

/* ── Latest grid: first item prominent, rest compact ── */
.cfg-latest-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cfg-latest-card {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s ease;
}

.cfg-latest-card:hover {
    padding-left: 6px;
}

.cfg-latest-card:first-child {
    padding-top: 0;
}

.cfg-latest-card:last-child {
    border-bottom: none;
}

.cfg-latest-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #10B981 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.cfg-latest-card__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 0 2px 0 !important;
}

.cfg-latest-card__title a {
    color: #0f172a !important;
}

.cfg-latest-card__title a:hover {
    color: #059669 !important;
}

.cfg-latest-card__excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cfg-latest-card__meta {
    font-size: 12px;
    color: #94a3b8;
}

/* Big first card */
.cfg-latest-card--big {
    padding-bottom: 18px !important;
    margin-bottom: 4px;
}

.cfg-latest-card--big .cfg-latest-card__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
}

.cfg-latest-card--big .cfg-latest-card__tag {
    margin-bottom: 6px;
}

/* ── Two-column tighter ────────────────────────── */
.cfg-two-col {
    gap: 36px !important;
    margin-bottom: 36px !important;
    padding-bottom: 36px !important;
}

/* ── Spotlights: 4 columns ─────────────────────── */
.cfg-spotlights {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}

.cfg-spotlight {
    padding: 20px !important;
}

.cfg-spotlight__header h3 {
    font-size: 14px !important;
}

.cfg-spotlight__list a {
    font-size: 13px !important;
}

.cfg-spotlight__list li {
    padding: 6px 0 !important;
}

/* ── Responsive for 4-col spotlights ───────────── */
@media (max-width: 1024px) {
    .cfg-spotlights {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .cfg-spotlights {
        grid-template-columns: 1fr !important;
    }

    .cfg-home-hero__title {
        font-size: 24px !important;
    }

    .cfg-latest-card--big .cfg-latest-card__title {
        font-size: 18px !important;
    }
}

/* ── Section spacing tighter ───────────────────── */
.home .cfg-section {
    margin-bottom: 36px !important;
}

/* ── CTA smaller ───────────────────────────────── */
.cfg-cta {
    padding: 32px 36px !important;
    margin: 24px 0 !important;
}

.cfg-cta__title {
    font-size: 20px !important;
}

.cfg-cta__desc {
    font-size: 14px !important;
}

/* ── Remove old conflicting styles ─────────────── */
.cfg-list {
    display: none !important;
}

.cfg-list-item {
    display: none !important;
}


/* ============================================================
   SINGLE POST - 3-COLUMN LAYOUT
   ============================================================ */

/* Hide GP defaults on single posts */
.single .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.single .post-image {
    display: none !important;
}
.single .entry-header {
    display: none !important;
}

/* ── 3-Column grid ─────────────────────────────── */
.cfg-single-wrap {
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    gap: 36px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 24px 0;
    align-items: start;
}

/* ── LEFT: Table of Contents ───────────────────── */
.cfg-single-toc {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.cfg-single-toc__inner {
    padding: 0 8px 0 0;
}

.cfg-single-toc__title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

.cfg-single-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cfg-single-toc__list li {
    margin-bottom: 2px;
}

.cfg-single-toc__list a {
    display: block;
    font-size: 13px;
    color: #64748b !important;
    line-height: 1.4;
    padding: 5px 0 5px 12px;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
}

.cfg-single-toc__list a:hover,
.cfg-single-toc__list a.active {
    color: #059669 !important;
    border-left-color: #10B981;
}

/* Scrollbar for ToC */
.cfg-single-toc::-webkit-scrollbar {
    width: 3px;
}
.cfg-single-toc::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

/* ── CENTER: Article ───────────────────────────── */
.cfg-single-content {
    min-width: 0;
    max-width: 100%;
}

/* Breadcrumbs */
.cfg-breadcrumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cfg-breadcrumbs a {
    color: #64748b !important;
}

.cfg-breadcrumbs a:hover {
    color: #10B981 !important;
}

.cfg-breadcrumbs span {
    color: #cbd5e1;
}

.cfg-breadcrumbs__current {
    color: #94a3b8 !important;
}

/* Title area */
.cfg-single-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.cfg-single-header__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #10B981 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 9999px;
}

.cfg-single-header__cat:hover {
    background: #10B981;
    color: #ffffff !important;
}

.cfg-single-header__title {
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    color: #0f172a !important;
    margin: 0 0 16px 0 !important;
}

.cfg-single-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cfg-single-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cfg-single-header__author {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.cfg-single-header__date {
    display: block;
    font-size: 13px;
    color: #94a3b8;
}

/* Hide inline ToC since we have sidebar ToC */
.cfg-single-content .cfg-toc {
    display: none !important;
}

/* Content area */
.cfg-single-content .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── RIGHT: Sidebar ────────────────────────────── */
.cfg-single-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.cfg-single-sidebar__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar widgets */
.cfg-sidebar-widget {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 18px;
}

.cfg-sidebar-widget__title {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8 !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* Sidebar search */
.cfg-sidebar-search {
    display: flex;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.cfg-sidebar-search__input {
    flex: 1;
    padding: 10px 12px !important;
    font-size: 13px !important;
    border: none !important;
    background: transparent !important;
    font-family: var(--font-sans) !important;
    outline: none !important;
    box-shadow: none !important;
}

.cfg-sidebar-search__btn {
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
}

.cfg-sidebar-search__btn:hover {
    color: #10B981;
}

/* Sidebar post list */
.cfg-sidebar-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cfg-sidebar-posts li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cfg-sidebar-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cfg-sidebar-posts a {
    font-size: 13px;
    font-weight: 500;
    color: #334155 !important;
    line-height: 1.45;
    display: block;
    transition: all 0.15s ease;
}

.cfg-sidebar-posts a:hover {
    color: #059669 !important;
    padding-left: 4px;
}

/* Sidebar scrollbar */
.cfg-single-sidebar::-webkit-scrollbar {
    width: 3px;
}
.cfg-single-sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

/* ── Related posts below article ───────────────── */
.single .cfg-related {
    max-width: 1320px;
    margin: 48px auto 0;
    padding: 0 24px 40px;
}

.single .cfg-related .cfg-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Author box in article ─────────────────────── */
.cfg-single-content .cfg-author {
    max-width: 100%;
    margin: 32px 0;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1100px) {
    .cfg-single-wrap {
        grid-template-columns: 1fr 240px;
        gap: 28px;
    }

    .cfg-single-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .cfg-single-wrap {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px 16px 0;
    }

    .cfg-single-sidebar {
        position: static;
        max-height: none;
        margin-top: 32px;
    }

    .cfg-single-header__title {
        font-size: 24px !important;
    }

    .single .cfg-related .cfg-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Single post layout fix: wider content ─────── */
.cfg-single-wrap {
    grid-template-columns: 190px 1fr 230px !important;
    gap: 32px !important;
    max-width: 1380px !important;
}

/* Right sidebar: NOT sticky */
.cfg-single-sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Content: ensure comfortable reading width */
.cfg-single-content .entry-content {
    font-size: 17px !important;
    line-height: 1.8 !important;
}

/* ToC: slightly more compact */
.cfg-single-toc__list a {
    font-size: 12.5px !important;
    padding: 4px 0 4px 10px !important;
}

/* Responsive: drop ToC earlier */
@media (max-width: 1200px) {
    .cfg-single-wrap {
        grid-template-columns: 1fr 220px !important;
    }
    .cfg-single-toc {
        display: none !important;
    }
}


/* ============================================================
   SINGLE POST v2 - Clean single column + floating ToC
   ============================================================ */

/* Kill all old single post layout */
.cfg-single-wrap {
    display: none !important;
}
.single .inside-article,
.single .entry-header,
.single .post-image {
    display: none !important;
}

/* ── Article container ─────────────────────────── */
.cfg-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 24px 24px 0;
    position: relative;
}

/* ── Breadcrumbs ───────────────────────────────── */
.cfg-article__crumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.cfg-article__crumbs a {
    color: #64748b !important;
}

.cfg-article__crumbs a:hover {
    color: #10B981 !important;
}

.cfg-article__crumbs span {
    margin: 0 5px;
    color: #cbd5e1;
}

/* ── Header ────────────────────────────────────── */
.cfg-article__header {
    margin-bottom: 32px;
}

.cfg-article__cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #059669 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.cfg-article__cat:hover {
    color: #10B981 !important;
}

.cfg-article__title {
    font-size: 36px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em;
    color: #0f172a !important;
    margin: 0 0 20px 0 !important;
}

.cfg-article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.cfg-article__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cfg-article__author {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a !important;
}

.cfg-article__date {
    display: block;
    font-size: 13px;
    color: #94a3b8;
}

/* ── Content body ──────────────────────────────── */
.cfg-article__body {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px;
    line-height: 1.8;
    color: #1e293b;
}

.cfg-article__body p {
    margin-bottom: 1.5em;
}

.cfg-article__body h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 2em 0 0.7em !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #0f172a !important;
}

.cfg-article__body h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 1.6em 0 0.5em !important;
}

/* ── Floating ToC (in left margin) ─────────────── */
.cfg-float-toc {
    display: none;
}

@media (min-width: 1400px) {
    .cfg-float-toc {
        display: block;
        position: fixed;
        top: 90px;
        left: max(16px, calc((100vw - 780px) / 2 - 280px));
        width: 220px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        z-index: 10;
    }

    .cfg-float-toc__label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #475569;
        margin-bottom: 10px;
    }

    .cfg-float-toc ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .cfg-float-toc li {
        margin-bottom: 1px;
    }

    .cfg-float-toc a {
        display: block;
        font-size: 12.5px;
        color: #64748b !important;
        line-height: 1.4;
        padding: 4px 0 4px 12px;
        border-left: 2px solid transparent;
        transition: all 0.12s ease;
    }

    .cfg-float-toc a:hover,
    .cfg-float-toc a.active {
        color: #059669 !important;
        border-left-color: #10B981;
    }

    .cfg-float-toc::-webkit-scrollbar {
        width: 0;
    }

    .cfg-float-toc.toc-hidden {
        opacity: 0;
        pointer-events: none;
    }
}

/* ── Author box ────────────────────────────────── */
.cfg-article__author-box {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    margin: 40px 0 20px;
}

.cfg-article__author-box img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cfg-article__author-box strong {
    display: block;
    margin-bottom: 4px;
}

.cfg-article__author-box strong a {
    color: #0f172a !important;
    font-size: 15px;
}

.cfg-article__author-box p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* ── Related articles ──────────────────────────── */
.cfg-article__related {
    max-width: 1100px;
    margin: 48px auto 0;
    padding: 0 24px 48px;
}

.cfg-article__related h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8 !important;
    margin: 0 0 16px 0 !important;
}

.cfg-article__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cfg-article__related-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.cfg-article__related-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.cfg-article__related-tag {
    font-size: 11px;
    font-weight: 600;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cfg-article__related-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.cfg-article__related-date {
    font-size: 12px;
    color: #94a3b8;
}

/* ── Hide old ToC and single layout ────────────── */
.cfg-article .cfg-toc {
    display: none !important;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .cfg-article {
        padding: 16px 16px 0;
    }

    .cfg-article__title {
        font-size: 26px !important;
    }

    .cfg-article__related-grid {
        grid-template-columns: 1fr;
    }

    .cfg-article__author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ── Ad slots: clean spacing ───────────────────── */
.cfg-ad-slot {
    margin: 32px 0;
    text-align: center;
    min-height: 50px;
    clear: both;
}

/* Don't let mid-content ads break code block flow */
.entry-content .cfg-ad-slot,
.cfg-article__body .cfg-ad-slot {
    margin: 28px -20px;
    padding: 0 20px;
}

/* Ad between related posts */
.cfg-article__related .cfg-ad-slot {
    margin: 16px 0;
}


/* ── Related posts inline (inside article, after author) ── */
.cfg-article__related-inline {
    margin: 36px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid #f1f5f9;
}

.cfg-article__related-inline h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8 !important;
    margin: 0 0 16px 0 !important;
}

.cfg-article__related-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cfg-article__related-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.cfg-article__related-item:hover {
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.cfg-article__related-item-cat {
    font-size: 11px;
    font-weight: 600;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cfg-article__related-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.cfg-article__related-item:hover .cfg-article__related-item-title {
    color: #059669;
}

/* Hide old external related section */
.cfg-article__related {
    display: none !important;
}

@media (max-width: 640px) {
    .cfg-article__related-list {
        grid-template-columns: 1fr;
    }
}
