/**
 * Contractor Guide Template Styles
 * MyHomePros.com
 * 
 * Primary Color: #28A1EC
 * Self-contained - no theme dependencies
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --primary-50: #e8f6fd;
    --primary-100: #d1edfb;
    --primary-200: #a3dbf7;
    --primary-300: #75c9f3;
    --primary-400: #47b7ef;
    --primary-500: #28A1EC;
    --primary-600: #1e81bd;
    --primary-700: #16618e;
    --primary-800: #0f415f;
    --primary-900: #082030;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

/* ========================================
   BASE RESET FOR TEMPLATE
   ======================================== */
.mhp-theme {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.mhp-theme *,
.mhp-theme *::before,
.mhp-theme *::after {
    box-sizing: border-box;
}

.mhp-theme .font-display {
    font-family: 'DM Serif Display', serif;
}

/* ========================================
   READING PROGRESS BAR
   ======================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    z-index: 9999;
    transition: width 0.1s;
}

/* Hide progress bar on mobile - causes issues */
@media (max-width: 1023px) {
    .reading-progress {
        display: none;
    }
}

/* ========================================
   HEADER NAVIGATION
   ======================================== */
.cgt-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
}

/* Mobile: Header scrolls with page (not sticky) */
@media (max-width: 1023px) {
    .cgt-header {
        position: relative;
    }
}

.cgt-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.cgt-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cgt-logo img {
    height: 36px;
    width: auto;
}

@media (min-width: 768px) {
    .cgt-logo img {
        height: 42px;
    }
}

/* Desktop Navigation */
.cgt-nav {
    display: none;
    align-items: center;
}

@media (min-width: 1024px) {
    .cgt-nav {
        display: flex;
    }
}

/* Task 11: Prevent nav wrapping at intermediate widths */
@media (min-width: 1024px) and (max-width: 1200px) {
    .cgt-nav-menu > li > a {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }
    
    .cgt-header-buttons {
        gap: 0.5rem;
    }
    
    .cgt-btn-secondary,
    .cgt-btn-primary {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

.cgt-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.cgt-nav-menu li {
    position: relative;
    flex-shrink: 0;
}

.cgt-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 1rem;
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cgt-nav-menu > li > a:hover,
.cgt-nav-menu > li:hover > a {
    color: var(--primary-500);
    background: var(--primary-50);
}

/* Dropdown Menu */
.cgt-nav-menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    list-style: none;
    margin: 0;
    z-index: 200;
}

.cgt-nav-menu li:hover ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cgt-nav-menu li ul.sub-menu li {
    margin: 0;
}

.cgt-nav-menu li ul.sub-menu li a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.cgt-nav-menu li ul.sub-menu li a:hover {
    color: var(--primary-500);
    background: var(--primary-50);
}

/* Header Buttons */
.cgt-header-buttons {
    display: none;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .cgt-header-buttons {
        display: flex;
    }
}

.cgt-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cgt-btn-secondary:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
    background: var(--primary-50);
}

.cgt-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--primary-500);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(40, 161, 236, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cgt-btn-primary:hover {
    background: var(--primary-600);
    box-shadow: 0 6px 20px rgba(40, 161, 236, 0.4);
    color: white;
}

/* Mobile Menu Toggle */
.cgt-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-600);
    padding: 0;
}

.cgt-mobile-toggle:hover {
    color: var(--primary-500);
}

@media (min-width: 1024px) {
    .cgt-mobile-toggle {
        display: none;
    }
}

/* Mobile Menu */
.cgt-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--slate-100);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.cgt-mobile-menu.active {
    display: block;
}

.cgt-mobile-nav {
    padding: 1rem;
}

.cgt-mobile-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cgt-mobile-nav > ul > li {
    border-bottom: 1px solid var(--slate-100);
}

.cgt-mobile-nav > ul > li:last-child {
    border-bottom: none;
}

.cgt-mobile-nav > ul > li > a {
    display: block;
    padding: 1rem 0;
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.cgt-mobile-nav > ul > li.has-submenu {
    position: relative;
}

.cgt-mobile-nav > ul > li.has-submenu > a {
    padding-right: 3rem;
}

.cgt-mobile-nav .submenu-toggle {
    position: absolute;
    right: 0;
    top: 0.5rem;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    transition: transform 0.2s;
}

.cgt-mobile-nav .submenu-toggle.active {
    transform: rotate(180deg);
}

.cgt-mobile-nav .submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 1rem 1rem;
}

.cgt-mobile-nav .submenu.active {
    display: block;
}

.cgt-mobile-nav .submenu li a {
    display: block;
    padding: 0.625rem 0;
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.95rem;
}

.cgt-mobile-nav .submenu li a:hover {
    color: var(--primary-500);
}

.cgt-mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--slate-100);
}

.cgt-mobile-buttons a {
    text-align: center;
    padding: 0.875rem 1.25rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.cgt-hero {
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(40, 161, 236, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(40, 161, 236, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--slate-50) 0%, #ffffff 100%);
}

.cgt-hero-pattern {
    /* Disabled - dots pattern removed */
    display: none;
}

.cgt-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    position: relative;
}

@media (min-width: 1024px) {
    .cgt-hero-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        padding: 4rem 1.5rem 5rem;
    }
    
    .cgt-hero-inner:not(.has-featured-image) {
        grid-template-columns: 1fr;
        max-width: 900px;
    }
}

.cgt-hero-content {
    max-width: 640px;
}

@media (min-width: 1024px) {
    .cgt-hero-inner:not(.has-featured-image) .cgt-hero-content {
        max-width: 100%;
    }
}

/* Breadcrumb */
.cgt-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-700);
    margin-bottom: 1.5rem;
}

.cgt-breadcrumb a {
    color: var(--slate-700);
    text-decoration: none;
    transition: color 0.2s;
}

.cgt-breadcrumb a:hover {
    color: var(--primary-500);
}

.cgt-breadcrumb svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--slate-400);
}

.cgt-breadcrumb > span {
    color: var(--slate-700);
}

/* Badge */
.cgt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    color: var(--primary-700);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.cgt-badge svg {
    width: 16px;
    height: 16px;
}

/* Hero Title */
.cgt-hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.25rem;
    line-height: 1.15;
    color: var(--slate-900);
    margin: 0 0 1.5rem 0;
}

@media (min-width: 768px) {
    .cgt-hero-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .cgt-hero-title {
        font-size: 3.25rem;
    }
}

/* Hero Excerpt */
.cgt-hero-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--slate-600);
    margin: 0 0 2rem 0;
}

@media (min-width: 768px) {
    .cgt-hero-excerpt {
        font-size: 1.25rem;
    }
}

/* Meta Line */
.cgt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.cgt-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cgt-meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
    flex-shrink: 0;
}

/* Author Avatar */
.cgt-meta-author {
    gap: 0.75rem;
}

.cgt-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-100);
    flex-shrink: 0;
}

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

.cgt-author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.cgt-author-name {
    font-weight: 600;
    color: var(--slate-800);
    text-decoration: none;
}

.cgt-author-name:hover {
    color: var(--primary-500);
}

.cgt-author-label {
    font-size: 0.8rem;
    color: var(--slate-400);
}

/* Featured Image in Hero */
.cgt-hero-image {
    display: none;
}

@media (min-width: 1024px) {
    .cgt-hero-image {
        display: block;
        position: relative;
    }
    
    .cgt-hero-image img {
        width: 100%;
        height: auto;
        border-radius: 1rem;
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(0, 0, 0, 0.05);
    }
    
    .cgt-hero-image::before {
        content: '';
        position: absolute;
        inset: -8px;
        background: linear-gradient(135deg, var(--primary-200) 0%, var(--primary-100) 100%);
        border-radius: 1.25rem;
        z-index: -1;
    }
}

/* Hero Decorative Blurs (no image fallback) */
.cgt-hero-decor {
    display: none;
}

@media (min-width: 1024px) {
    .cgt-hero-decor {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 40%;
        height: 100%;
        pointer-events: none;
    }
    
    .cgt-hero-decor-blob-1 {
        position: absolute;
        right: 0;
        top: 0;
        width: 300px;
        height: 300px;
        background: rgba(40, 161, 236, 0.08);
        border-radius: 50%;
        filter: blur(60px);
    }
    
    .cgt-hero-decor-blob-2 {
        position: absolute;
        right: 60px;
        bottom: 40px;
        width: 200px;
        height: 200px;
        background: rgba(40, 161, 236, 0.12);
        border-radius: 50%;
        filter: blur(40px);
    }
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.cgt-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

@media (min-width: 1024px) {
    .cgt-main {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }
}

/* ========================================
   TABLE OF CONTENTS SIDEBAR
   ======================================== */
.cgt-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .cgt-sidebar {
        display: block;
    }
}

.cgt-toc {
    position: sticky;
    top: 5rem;
}

.cgt-toc-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cgt-toc-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
}

.cgt-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cgt-toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.cgt-toc-link:hover,
.cgt-toc-link.active {
    color: var(--primary-500);
    background: var(--primary-50);
}

.cgt-toc-link.active {
    font-weight: 500;
}

/* TOC CTA Card */
.cgt-toc-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: 1rem;
    color: white;
    box-shadow: 0 10px 40px rgba(40, 161, 236, 0.3);
}

.cgt-toc-cta h4 {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: white;
}

.cgt-toc-cta p {
    font-size: 0.875rem;
    color: var(--primary-100);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.cgt-toc-cta a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--primary-600);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.cgt-toc-cta a:hover {
    background: var(--primary-50);
}

/* ========================================
   ARTICLE CONTENT STYLING
   ======================================== */
.cgt-article {
    min-width: 0;
    max-width: 100%;
}

.article-content {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.75;
}

@media (min-width: 768px) {
    .article-content {
        font-size: 1.125rem;
    }
}

/* Headings */
.article-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    color: var(--slate-900);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    scroll-margin-top: 5rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .article-content h2 {
        font-size: 2rem;
    }
}

.article-content h2::after {
    content: '';
    display: block;
    width: 4rem;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500) 0%, transparent 100%);
    border-radius: 2px;
    margin-top: 0.75rem;
}

.article-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 5rem;
    line-height: 1.3;
}

.article-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* First heading - no top margin */
.article-content > h2:first-child,
.article-content > h3:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Paragraphs */
.article-content p {
    margin-bottom: 1.25rem;
}

/* Links */
.article-content a {
    color: var(--primary-500);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: all 0.2s;
}

.article-content a:hover {
    color: var(--primary-600);
    text-decoration-thickness: 2px;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.article-content ul li,
.article-content ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.625rem;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    width: 1.375rem;
    height: 1.375rem;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nested Lists */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes - Task 10: Improved styling */
.article-content blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.75rem 2rem 1.75rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, #f0f9ff 100%);
    border-left: 5px solid var(--primary-500);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: var(--slate-700);
    box-shadow: 0 4px 15px rgba(40, 161, 236, 0.08);
}

/* Quote icon */
.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.25rem;
    left: 1rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 4rem;
    font-style: normal;
    color: var(--primary-200);
    line-height: 1;
    pointer-events: none;
}

.article-content blockquote p {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-content blockquote p + p {
    margin-top: 1rem;
}

.article-content blockquote cite {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--primary-100);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-600);
}

.article-content blockquote cite::before {
    content: '—';
    color: var(--primary-400);
}

/* Tables - Task 12: Minimal with blue emphasis */
.article-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
    border: 1px solid var(--slate-200);
}

/* Style th elements directly - works with or without thead */
.article-content table th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: white;
    background: var(--primary-500);
}

.article-content table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-200);
    color: var(--slate-600);
    background: white;
}

/* First column subtle highlight */
.article-content table td:first-child {
    font-weight: 500;
    color: var(--slate-700);
}

.article-content table tbody tr:hover td {
    background: var(--primary-50);
}

.article-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Mobile: Scrollable table with frozen first column */
@media (max-width: 768px) {
    /* Wrapper handles scrolling */
    .table-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 2rem 0;
        border-radius: 0.5rem;
        border: 1px solid var(--slate-200);
    }
    
    .table-scroll-wrapper table {
        margin: 0;
        border: none;
        border-radius: 0;
        table-layout: fixed;
        min-width: 100%;
    }
    
    /* Visible scrollbar */
    .table-scroll-wrapper::-webkit-scrollbar {
        height: 10px;
    }
    
    .table-scroll-wrapper::-webkit-scrollbar-track {
        background: var(--slate-100);
        border-radius: 5px;
    }
    
    .table-scroll-wrapper::-webkit-scrollbar-thumb {
        background: var(--primary-300);
        border-radius: 5px;
    }
    
    .table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--primary-400);
    }
    
    /* Firefox scrollbar */
    .table-scroll-wrapper {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-300) var(--slate-100);
    }
    
    /* Cell sizing - consistent for th and td */
    .article-content table th,
    .article-content table td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        width: 140px;
        min-width: 140px;
        box-sizing: border-box;
    }
    
    /* First column - frozen with consistent width */
    .article-content table th:first-child,
    .article-content table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
    }
    
    .article-content table th:first-child {
        z-index: 3;
    }
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-content figure {
    margin: 2rem 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 0.75rem;
}

/* Code */
.article-content code {
    background: var(--slate-100);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--primary-600);
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.article-content pre {
    background: var(--slate-900);
    color: var(--slate-100);
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Strong/Bold */
.article-content strong {
    color: var(--slate-800);
    font-weight: 600;
}

/* Strong text inside table headers should be white */
.article-content table th strong {
    color: white;
}

/* Horizontal Rule */
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), transparent);
    margin: 3rem 0;
}

/* ========================================
   SPECIAL CONTENT BLOCKS (CSS Classes)
   Writers add these via Gutenberg block settings
   ======================================== */

/* Stats Grid - add class "stats-grid" to columns block */
.article-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.article-content .stats-grid > * {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.article-content .stats-grid strong {
    display: block;
    font-size: 1.75rem;
    color: var(--primary-500);
    margin-bottom: 0.25rem;
}

/* Warning Box - add class "warning-box" */
.article-content .warning-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.article-content .warning-box strong {
    color: #dc2626;
}

/* Tip Box - add class "tip-box" */
.article-content .tip-box {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.article-content .tip-box strong {
    color: var(--primary-600);
}

/* Checklist - add class "checklist" to a list */
.article-content .checklist {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.article-content .checklist li {
    color: var(--slate-300);
    padding-left: 2rem;
}

.article-content .checklist li::before {
    content: '☐';
    background: none;
    width: auto;
    height: auto;
    top: 0;
    font-size: 1.125rem;
    color: var(--primary-400);
}

/* ========================================
   BOTTOM CTA SECTION
   ======================================== */
.cgt-bottom-cta {
    margin-top: 4rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: 1.25rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cgt-bottom-cta {
        padding: 3.5rem 3rem;
    }
}

.cgt-bottom-cta::before,
.cgt-bottom-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.cgt-bottom-cta::before {
    width: 200px;
    height: 200px;
    right: -50px;
    top: -50px;
    filter: blur(40px);
}

.cgt-bottom-cta::after {
    width: 150px;
    height: 150px;
    left: -40px;
    bottom: -40px;
    filter: blur(30px);
}

.cgt-bottom-cta-inner {
    position: relative;
    z-index: 1;
}

.cgt-bottom-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    color: white;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .cgt-bottom-cta h2 {
        font-size: 2.25rem;
    }
}

.cgt-bottom-cta h2::after {
    display: none;
}

.cgt-bottom-cta p {
    font-size: 1rem;
    color: var(--primary-100);
    margin: 0 0 1.5rem 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .cgt-bottom-cta p {
        font-size: 1.125rem;
    }
}

.cgt-bottom-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 480px) {
    .cgt-bottom-cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

.cgt-bottom-cta-buttons a {
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    min-width: 160px;
}

.cgt-bottom-cta-buttons a.primary {
    background: white;
    color: var(--primary-600);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cgt-bottom-cta-buttons a.primary:hover {
    background: var(--primary-50);
}

.cgt-bottom-cta-buttons a.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cgt-bottom-cta-buttons a.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   POST NAVIGATION
   ======================================== */
.cgt-post-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cgt-post-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cgt-post-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--slate-50);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
}

.cgt-post-nav a:hover {
    background: var(--primary-50);
}

.cgt-post-nav a svg {
    width: 20px;
    height: 20px;
    color: var(--slate-400);
    flex-shrink: 0;
    transition: color 0.2s;
}

.cgt-post-nav a:hover svg {
    color: var(--primary-500);
}

.cgt-post-nav a .label {
    display: block;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.cgt-post-nav a .title {
    display: block;
    font-weight: 500;
    color: var(--slate-800);
    transition: color 0.2s;
    line-height: 1.3;
}

.cgt-post-nav a:hover .title {
    color: var(--primary-500);
}

.cgt-post-nav a.next {
    justify-content: flex-end;
    text-align: right;
}

/* Task 8: Mobile - make hover style the default for prev/next */
@media (max-width: 1023px) {
    .cgt-post-nav a {
        background: var(--primary-50);
    }
    
    .cgt-post-nav a svg {
        color: var(--primary-500);
    }
    
    .cgt-post-nav a .title {
        color: var(--primary-500);
    }
    
    .cgt-post-nav a:active {
        background: var(--slate-50);
    }
    
    .cgt-post-nav a:active svg {
        color: var(--slate-400);
    }
    
    .cgt-post-nav a:active .title {
        color: var(--slate-800);
    }
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 767px) {
    .article-content h2 {
        font-size: 1.5rem;
        font-size: max(1.5rem, 24px);
    }
    
    .article-content h3 {
        font-size: 1.25rem;
        font-size: max(1.25rem, 20px);
    }
    
    .article-content {
        font-size: 1rem;
        font-size: max(1rem, 16px);
    }
    
    .article-content p,
    .article-content li,
    .article-content td {
        font-size: max(1rem, 16px);
        line-height: 1.7;
    }
}

/* ========================================
   WORDPRESS SPECIFIC OVERRIDES
   ======================================== */

/* Avatar from get_avatar() */
.cgt-author-avatar img.avatar {
    border-radius: 50%;
}

/* WordPress alignment classes */
.article-content .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.article-content .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content .alignwide {
    margin-left: -1rem;
    margin-right: -1rem;
    max-width: calc(100% + 2rem);
}

.article-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* WordPress caption */
.article-content .wp-caption {
    max-width: 100%;
}

.article-content .wp-caption-text {
    font-size: 0.875rem;
    color: var(--slate-500);
    text-align: center;
    margin-top: 0.5rem;
}

/* WordPress gallery */
.article-content .wp-block-gallery {
    margin: 2rem 0;
}

/* Clear floats */
.article-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ========================================
   TRUSTED PARTNERS SECTION
   ======================================== */
.cgt-trusted-partners {
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    padding: 3rem 1.5rem;
}

.cgt-trusted-partners-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.cgt-trusted-partners-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-700);
    margin: 0 0 2rem 0;
}

.cgt-trusted-partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
}

.cgt-partner-logo {
    flex-shrink: 0;
}

.cgt-partner-logo img {
    max-height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
    filter: grayscale(100%);
}

.cgt-partner-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* ========================================
   FOOTER
   ======================================== */
.cgt-footer {
    background: var(--slate-900);
    color: var(--slate-400);
}

.cgt-footer-main {
    padding: 3rem 1.5rem 2.5rem;
}

.cgt-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .cgt-footer-inner {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 3rem;
    }
}

.cgt-footer-col {
    min-width: 0;
}

/* Footer Brand Column */
.cgt-footer-brand {
    max-width: 320px;
}

.cgt-footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.cgt-footer-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.cgt-footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--slate-400);
    margin: 0 0 1rem 0;
}

/* Quick Links (About Us | Contact Us) */
.cgt-footer-quick-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cgt-footer-quick-links a {
    font-size: 0.875rem;
    color: var(--slate-300);
    text-decoration: none;
    transition: color 0.2s;
}

.cgt-footer-quick-links a:hover {
    color: var(--primary-400);
}

.cgt-footer-divider {
    color: var(--slate-600);
}

/* Follow us label */
.cgt-footer-follow-label {
    font-size: 0.8125rem;
    color: var(--slate-500);
    margin: 0 0 0.75rem 0;
}

/* Footer Social Icons */
.cgt-footer-socials {
    display: flex;
    gap: 0.625rem;
}

.cgt-footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--slate-800);
    color: var(--slate-400);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.cgt-footer-socials a:hover {
    background: var(--primary-500);
    color: white;
}

/* Footer Headings */
.cgt-footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1.25rem 0;
}

/* Footer Links */
.cgt-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cgt-footer-links li {
    margin-bottom: 0.625rem;
}

.cgt-footer-links a {
    font-size: 0.875rem;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s;
}

.cgt-footer-links a:hover {
    color: var(--primary-400);
}

/* Footer Service Icons */
.cgt-footer-links-icons a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-service-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cgt-footer-links-icons a:hover .footer-service-icon {
    opacity: 1;
}

/* Footer Bottom */
.cgt-footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding: 1.5rem;
}

.cgt-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cgt-footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cgt-copyright {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin: 0;
}

/* Footer Legal Links (Privacy Policy | Terms of Use) */
.cgt-footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cgt-footer-legal a {
    font-size: 0.875rem;
    color: var(--slate-500);
    text-decoration: none;
    transition: color 0.2s;
}

.cgt-footer-legal a:hover {
    color: var(--primary-400);
}

.cgt-footer-legal-divider {
    color: var(--slate-600);
}

/* ========================================
   DISCLOSURES SECTION
   ======================================== */
.cgt-disclosures {
    background: var(--slate-800);
    border-top: 1px solid var(--slate-700);
    padding: 1.5rem;
}

.cgt-disclosures-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.cgt-disclosures-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.cgt-disclosures-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--slate-500);
    margin: 0;
}

/* ========================================
   STICKY CTA BAR
   ======================================== */
.cgt-sticky-cta {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    padding: 1rem 1.5rem;
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile: Bottom CTA scrolls with page (not sticky) */
@media (max-width: 1023px) {
    .cgt-sticky-cta {
        position: relative;
        box-shadow: none;
    }
}

.cgt-sticky-cta-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

@media (min-width: 640px) {
    .cgt-sticky-cta-inner {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.cgt-sticky-cta-text {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

@media (min-width: 640px) {
    .cgt-sticky-cta-text {
        font-size: 1.125rem;
    }
}

.cgt-sticky-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    background: white;
    color: var(--primary-600);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.cgt-sticky-cta-btn:hover {
    background: var(--primary-50);
    transform: translateY(-1px);
}

/* ========================================
   TASK 7: DROPDOWN INDICATOR
   ======================================== */
.dropdown-indicator {
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform 0.2s;
    vertical-align: middle;
}

.menu-item-has-children:hover .dropdown-indicator {
    transform: rotate(180deg);
}

/* ========================================
   TASK 8: SUBMENU ICONS
   ======================================== */
.cgt-nav-menu li ul.sub-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.submenu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-500);
}

/* Mobile submenu icons */
.mobile-icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* ========================================
   TASK 11: MOBILE FEATURED IMAGE
   ======================================== */
.cgt-mobile-featured-image {
    display: block;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

@media (min-width: 1024px) {
    .cgt-mobile-featured-image {
        display: none;
    }
}

.cgt-mobile-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* ========================================
   TASK 5: MOBILE TOC (Collapsible)
   ======================================== */
.cgt-mobile-toc {
    display: block;
    padding: 0 1rem 1.5rem;
}

@media (min-width: 1024px) {
    .cgt-mobile-toc {
        display: none;
    }
}

.cgt-mobile-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, #f0f9ff 100%);
    border: 1px solid var(--primary-200);
    border-radius: 0.75rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-700);
    transition: all 0.2s;
}

.cgt-mobile-toc-toggle:hover {
    background: var(--primary-100);
    border-color: var(--primary-300);
}

.cgt-mobile-toc-toggle svg:first-child {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
    flex-shrink: 0;
}

.cgt-mobile-toc-toggle span {
    flex: 1;
    text-align: left;
    margin-left: 0.75rem;
}

.cgt-mobile-toc-chevron {
    width: 20px;
    height: 20px;
    color: var(--primary-400);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.cgt-mobile-toc-toggle.active .cgt-mobile-toc-chevron {
    transform: rotate(180deg);
}

.cgt-mobile-toc-content {
    display: none;
    margin-top: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
}

.cgt-mobile-toc-content.active {
    display: block;
}

.cgt-mobile-toc-content a {
    display: block;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.cgt-mobile-toc-content a:last-child {
    margin-bottom: 0;
}

.cgt-mobile-toc-content a:hover,
.cgt-mobile-toc-content a.active {
    color: var(--primary-500);
    background: var(--primary-50);
}

/* ========================================
   SHARE ARTICLE SECTION
   ======================================== */
.cgt-share-article {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--slate-50);
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cgt-share-article {
        flex-direction: row;
        justify-content: center;
    }
}

.cgt-share-label {
    font-weight: 600;
    color: var(--slate-700);
    font-size: 0.95rem;
}

.cgt-share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cgt-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: white;
    border: 1px solid var(--slate-200);
    color: var(--slate-500);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.cgt-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Platform-specific hover colors */
.cgt-share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.cgt-share-x:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.cgt-share-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.cgt-share-pinterest:hover {
    background: #e60023;
    border-color: #e60023;
    color: white;
}

.cgt-share-email:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

.cgt-share-copy:hover {
    background: var(--slate-700);
    border-color: var(--slate-700);
    color: white;
}

.cgt-share-copy.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* ========================================
   TASK 2: AUTHOR BOX BELOW CONTENT
   ======================================== */
.cgt-author-box {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--slate-50);
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
}

.cgt-author-box-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .cgt-author-box-inner {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

.cgt-author-box-avatar {
    flex-shrink: 0;
}

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

.cgt-author-box-content {
    flex: 1;
}

.cgt-author-box-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.cgt-author-box-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
    color: var(--slate-900);
}

.cgt-author-box-name a {
    color: inherit;
    text-decoration: none;
}

.cgt-author-box-name a:hover {
    color: var(--primary-500);
}

.cgt-author-box-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--slate-600);
    margin: 0 0 1rem 0;
}

.cgt-author-box-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cgt-author-box-links {
        justify-content: flex-start;
    }
}

.cgt-author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cgt-author-link:hover {
    color: var(--primary-500);
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.cgt-author-linkedin {
    color: #0077b5;
}

.cgt-author-linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.cgt-author-linkedin svg {
    fill: currentColor;
}

/* ========================================
   TASK 3: RELATED POSTS SECTION
   ======================================== */
.cgt-related-posts {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--slate-200);
}

.cgt-related-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--slate-900);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.cgt-related-title::after {
    display: none;
}

.cgt-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

@media (min-width: 768px) {
    .cgt-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cgt-related-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--slate-200);
    text-decoration: none;
    transition: all 0.2s;
}

/* Task 7: Mobile - make hover style the default */
@media (max-width: 1023px) {
    .cgt-related-card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-200);
    }
    
    .cgt-related-card-title {
        color: var(--primary-500) !important;
    }
    
    .cgt-related-card:active {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        border-color: var(--slate-200);
        transform: none;
    }
    
    .cgt-related-card:active .cgt-related-card-title {
        color: var(--slate-800) !important;
    }
}

.cgt-related-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
    transform: translateY(-2px);
}

.cgt-related-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-100);
}

.cgt-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cgt-related-card:hover .cgt-related-image img {
    transform: scale(1.05);
}

.cgt-related-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cgt-related-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--slate-300);
}

.cgt-related-content {
    padding: 1rem;
    flex: 1;
}

.cgt-related-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-800);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cgt-related-card:hover .cgt-related-card-title {
    color: var(--primary-500);
}

.cgt-related-meta {
    font-size: 0.8rem;
    color: var(--slate-500);
}

/* ========================================
   TASK 9: CTA VARIANTS LIBRARY
   ======================================== */

/* Variant 1: Gradient Banner */
.cgt-cta-gradient-banner {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.cgt-cta-gradient-inner h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: white;
    margin: 0 0 0.5rem 0;
}

.cgt-cta-gradient-inner p {
    color: var(--primary-100);
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
}

.cgt-cta-btn-white {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.cgt-cta-btn-white:hover {
    background: var(--primary-50);
    transform: translateY(-1px);
}

/* Variant 2: Card with Icon */
.cgt-cta-icon-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.cgt-cta-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.cgt-cta-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-600);
}

.cgt-cta-icon-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-800);
    margin: 0 0 0.5rem 0;
}

.cgt-cta-icon-card p {
    color: var(--slate-600);
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
}

.cgt-cta-icon-card a {
    color: var(--primary-500);
    font-weight: 600;
    text-decoration: none;
}

.cgt-cta-icon-card a:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

/* Variant 3: Inline Text */
.cgt-cta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 1rem 1.5rem;
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.5rem 0;
}

.cgt-cta-inline span {
    color: var(--slate-700);
    font-weight: 500;
}

.cgt-cta-inline a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--primary-500);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.cgt-cta-inline a:hover {
    background: var(--primary-600);
}

/* Variant 4: Full-width */
.cgt-cta-full-width {
    background: var(--slate-900);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
}

.cgt-cta-full-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cgt-cta-full-inner {
        flex-direction: row;
        text-align: left;
    }
}

.cgt-cta-full-content {
    flex: 1;
}

.cgt-cta-full-content h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: white;
    margin: 0 0 0.5rem 0;
}

.cgt-cta-full-content p {
    color: var(--slate-400);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cgt-cta-full-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .cgt-cta-full-buttons {
        flex-shrink: 0;
    }
}

.cgt-cta-full-buttons a {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.cgt-cta-full-buttons a.primary {
    background: var(--primary-500);
    color: white;
}

.cgt-cta-full-buttons a.primary:hover {
    background: var(--primary-400);
}

.cgt-cta-full-buttons a.secondary {
    background: transparent;
    color: var(--slate-300);
    border: 1px solid var(--slate-600);
}

.cgt-cta-full-buttons a.secondary:hover {
    background: var(--slate-800);
    border-color: var(--slate-500);
}

/* Variant 5: Compact Badge */
.cgt-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(40, 161, 236, 0.3);
}

.cgt-cta-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 161, 236, 0.4);
}

.cgt-cta-badge svg {
    width: 16px;
    height: 16px;
}

/* Hide CTA variants library by default */
.cgt-cta-variants {
    display: none !important;
}

/* ========================================
   TASK 2: TEMPORARILY HIDE SIMPLE AUTHOR BOX PLUGIN
   ----------------------------------------
   This hides the injected author box from the 
   "Simple Author Box" plugin (.saboxplugin-wrap).
   
   TO REVERT: Simply remove or comment out this rule.
   ======================================== */
.mhp-theme .saboxplugin-wrap {
    display: none !important;
}

/* ========================================
   TASK 3: TEMPORARILY HIDE INJECTED CTA BLOCK
   ----------------------------------------
   This hides the code-block-1 CTA that gets 
   injected into content.
   
   TO REVERT: Simply remove or comment out this rule.
   ======================================== */
.mhp-theme .code-block.code-block-1 {
    display: none !important;
}

/* ========================================
   END OF STYLESHEET
   ======================================== */
/* ========================================
   SITE FOOTER
   ======================================== */
.cgt-site-footer {
    background: var(--slate-900);
    color: white;
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.cgt-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cgt-footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
        align-items: start;
    }
}

.cgt-footer-brand {
    max-width: 300px;
}

.cgt-footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.cgt-footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.cgt-footer-desc {
    margin: 1rem 0 0;
    color: var(--slate-400);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cgt-footer-nav {
    margin-top: 0.5rem;
}

.cgt-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cgt-footer-menu li {
    margin-bottom: 0.75rem;
}

.cgt-footer-menu a {
    color: var(--slate-300);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.cgt-footer-menu a:hover {
    color: white;
}

.cgt-footer-cta {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .cgt-footer-cta {
        justify-content: flex-end;
    }
}

.cgt-footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding: 1.5rem;
    text-align: center;
}

.cgt-footer-bottom p {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.875rem;
}

/* ========================================
   LOGO FALLBACK TEXT STYLE
   ======================================== */
.cgt-logo .site-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-500);
}

/* ========================================
   ARCHIVE / INDEX PAGES
   ======================================== */
.cgt-main-archive {
    display: block;
    padding: 0;
}

.cgt-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.cgt-archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cgt-archive-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--slate-800);
    margin: 0 0 1rem;
}

.cgt-archive-desc {
    color: var(--slate-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.cgt-post-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cgt-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cgt-post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cgt-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.cgt-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cgt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.cgt-pagination .page-numbers:hover,
.cgt-pagination .page-numbers.current {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

.cgt-no-results {
    text-align: center;
    padding: 4rem 1rem;
}

.cgt-no-results h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--slate-800);
    margin: 0 0 1rem;
}

.cgt-no-results p {
    color: var(--slate-600);
    margin-bottom: 2rem;
}

.cgt-no-results .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 0.5rem;
}

.cgt-no-results .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.cgt-no-results .search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cgt-no-results .search-submit:hover {
    background: var(--primary-600);
}
