/**
 * Stubbs Tickets Blog Custom Styles
 * These styles apply to blog post content ONLY
 * Scoped to .content-wrap article to avoid affecting nav/header
 */

/* ==========================================================================
   Brand Colors (global)
   ========================================================================== */
:root {
    --brand-red: #dc3545;
    --brand-blue: #4485e7;
    --brand-light-blue: #f2f7ff;
    --text-dark: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

/* ==========================================================================
   Headings - Matching Homepage Style
   ========================================================================== */
.content-wrap article h1 {
    font-weight: 600;
    font-size: 2.4rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Post title in header */
.post-header .post-title,
h1.post-title {
    font-weight: 600;
    font-size: 2.4rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: capitalize;
}

.content-wrap article h2 {
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--brand-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    scroll-margin-top: 130px;
}

.content-wrap article h3 {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-wrap article h4 {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Lead Paragraph
   ========================================================================== */
.content-wrap article .lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */
.content-wrap article .toc,
.preview-frame .toc {
    background: #f8f9fa;
    border-left: 4px solid var(--brand-blue);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem 0;
    border-radius: 0 8px 8px 0;
}

.content-wrap article .toc h4,
.preview-frame .toc h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.content-wrap article .toc ul,
.preview-frame .toc ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
}

.content-wrap article .toc li,
.preview-frame .toc li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0;
}

.content-wrap article .toc li::before,
.preview-frame .toc li::before {
    content: "→";
    position: absolute;
    left: -1.25rem;
    color: var(--brand-blue);
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
    font-size: inherit;
}

.content-wrap article .toc a,
.preview-frame .toc a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.content-wrap article .toc a:hover,
.preview-frame .toc a:hover {
    color: var(--brand-blue);
}

/* ==========================================================================
   Post Images & Figures
   ========================================================================== */
.content-wrap article figure,
.preview-frame figure {
    margin: 2rem 0;
    text-align: center;
}

.content-wrap article figure img,
.preview-frame figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-wrap article figure figcaption,
.preview-frame figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Float image left */
.content-wrap article figure.float-left,
.preview-frame figure.float-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 40%;
}

/* Float image right */
.content-wrap article figure.float-right,
.preview-frame figure.float-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 40%;
}

/* Full width image */
.content-wrap article figure.full-width,
.preview-frame figure.full-width {
    margin-left: -20px;
    margin-right: -20px;
    max-width: calc(100% + 40px);
}

.content-wrap article figure.full-width img,
.preview-frame figure.full-width img {
    width: 100%;
    border-radius: 0;
}

/* Simple inline image (no figure wrapper) */
.content-wrap article img:not(figure img),
.preview-frame img:not(figure img) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Clear floats after figures */
.content-wrap article .clear,
.preview-frame .clear {
    clear: both;
}

/* Responsive: stack floated images on mobile */
@media (max-width: 768px) {
    .content-wrap article figure.float-left,
    .content-wrap article figure.float-right,
    .preview-frame figure.float-left,
    .preview-frame figure.float-right {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* ==========================================================================
   Styled Lists - Green Circle Ticks & Numbered Boxes
   ========================================================================== */

/* Unordered Lists - Green Circle Ticks */
.content-wrap article ul {
    list-style: none;
    padding-left: 0;
    margin: 1.25rem 0;
}

.content-wrap article ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.content-wrap article ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Ordered Lists - Colored Number Boxes */
.content-wrap article ol {
    list-style: none;
    padding-left: 0;
    margin: 1.25rem 0;
    counter-reset: list-counter;
}

.content-wrap article ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    counter-increment: list-counter;
}

.content-wrap article ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background: var(--brand-blue);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* Alternate colors for ordered list items */
.content-wrap article ol li:nth-child(3n+2)::before {
    background: var(--brand-red);
}

.content-wrap article ol li:nth-child(3n)::before {
    background: #28a745;
}

/* ==========================================================================
   Tip Boxes - Like the blog post "little tips"
   ========================================================================== */
.content-wrap article .tip-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--brand-red);
}

.content-wrap article .tip-box .tip-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(200,16,46,0.12);
    color: var(--brand-red);
    flex: 0 0 42px;
    font-size: 18px;
}

.content-wrap article .tip-box .tip-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--brand-red);
    font-size: 1rem;
    font-weight: 700;
}

.content-wrap article .tip-box .tip-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Tip Box Variants */
.content-wrap article .tip-box--info {
    border-left-color: var(--brand-blue);
}

.content-wrap article .tip-box--info .tip-icon {
    background: rgba(97,160,255,0.12);
    color: var(--brand-blue);
}

.content-wrap article .tip-box--info .tip-content h4 {
    color: var(--brand-blue);
}

.content-wrap article .tip-box--warning {
    border-left-color: #ff9800;
}

.content-wrap article .tip-box--warning .tip-icon {
    background: rgba(255,152,0,0.12);
    color: #ff9800;
}

.content-wrap article .tip-box--warning .tip-content h4 {
    color: #e65100;
}

.content-wrap article .tip-box--success {
    border-left-color: #28a745;
}

.content-wrap article .tip-box--success .tip-icon {
    background: rgba(40,167,69,0.12);
    color: #28a745;
}

.content-wrap article .tip-box--success .tip-content h4 {
    color: #28a745;
}

/* ==========================================================================
   Classic Callout Boxes (Legacy Support)
   ========================================================================== */
.content-wrap article .callout {
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.content-wrap article .callout h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.content-wrap article .callout p {
    margin-bottom: 0;
}

.content-wrap article .callout-tip {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.content-wrap article .callout-tip h4 {
    color: #2e7d32;
}

.content-wrap article .callout-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.content-wrap article .callout-warning h4 {
    color: #e65100;
}

.content-wrap article .callout-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.content-wrap article .callout-info h4 {
    color: #1565c0;
}

/* ==========================================================================
   Feature Cards - Matching Homepage
   ========================================================================== */
.content-wrap article .feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.content-wrap article .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.08);
}

.content-wrap article .icon-chip {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(200,16,46,0.12);
    color: var(--brand-red);
    flex: 0 0 42px;
    font-size: 18px;
}

.content-wrap article .icon-chip.icon-blue {
    background: rgba(97,160,255,0.12);
    color: var(--brand-blue);
}

.content-wrap article .icon-chip.icon-gold {
    background: rgba(255,193,7,0.12);
    color: #ffc107;
}

.content-wrap article .icon-chip.icon-green {
    background: rgba(40,167,69,0.12);
    color: #28a745;
}

.content-wrap article .icon-chip.icon-cyan {
    background: rgba(23,162,184,0.12);
    color: #17a2b8;
}

.content-wrap article .feature-card h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 700;
    font-size: 1rem;
}

.content-wrap article .feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Feature Card Grid */
.content-wrap article .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* ==========================================================================
   Stat Pills - Matching Homepage
   ========================================================================== */
.content-wrap article .stat-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 2rem 0;
}

.content-wrap article .stat-pill {
    background: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
}

.content-wrap article .stat-pill .stat-number {
    color: var(--brand-red);
    font-weight: 800;
    margin-right: 6px;
}

/* Stats Row (Alternative Layout) */
.content-wrap article .stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.content-wrap article .stat {
    text-align: center;
}

.content-wrap article .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-red);
    line-height: 1;
}

.content-wrap article .stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   FAQ Accordion - Matching Homepage
   ========================================================================== */
.content-wrap article .faq-accordion {
    margin: 1.5rem 0;
}

.content-wrap article .faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    overflow: hidden;
}

.content-wrap article .faq-q {
    width: 100%;
    padding: 16px 18px;
    font-weight: 700;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--text-dark);
    transition: background 0.2s;
}

.content-wrap article .faq-q:hover {
    background: #f9f9f9;
}

.content-wrap article .faq-q .chev {
    transition: transform 0.25s ease;
    color: var(--text-muted);
}

.content-wrap article .faq-item.active .faq-q .chev {
    transform: rotate(180deg);
}

.content-wrap article .faq-a {
    padding: 0 18px 16px;
    display: none;
    color: #555;
    line-height: 1.7;
}

.content-wrap article .faq-item.active .faq-a {
    display: block;
}

/* Legacy Accordion Support */
.content-wrap article .accordion {
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.content-wrap article .accordion-item {
    border-bottom: 1px solid #e9ecef;
}

.content-wrap article .accordion-item:last-child {
    border-bottom: none;
}

.content-wrap article .accordion-header {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.content-wrap article .accordion-header:hover {
    background: #e9ecef;
}

.content-wrap article .accordion-content {
    padding: 1rem 1.5rem;
    display: none;
}

.content-wrap article .accordion-item.active .accordion-content {
    display: block;
}

/* Hide empty p tags that WordPress adds inside custom components */
.content-wrap article .accordion-item > p:empty,
.content-wrap article .accordion-item > p:only-child:empty,
.content-wrap article .faq-item > p:empty,
.content-wrap article .faq-q > p:empty,
.content-wrap article .faq-a > p:empty,
.content-wrap article .faq-accordion > p:empty,
.content-wrap article .steps > p:empty,
.content-wrap article .step > p:empty,
.content-wrap article .step-content > p:empty {
    display: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Card Grid - Matching Homepage Card Raise Effect
   ========================================================================== */
.content-wrap article .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.content-wrap article .card-grid .card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.content-wrap article .card-grid .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.08);
}

.content-wrap article .card-grid .card h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.content-wrap article .card-grid .card p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.content-wrap article .card-grid .card a {
    color: var(--brand-blue);
    font-weight: 500;
    text-decoration: none;
}

.content-wrap article .card-grid .card a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Blog Tables
   ========================================================================== */
.content-wrap article .blog-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.content-wrap article .blog-table th,
.content-wrap article .blog-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.content-wrap article .blog-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom-width: 2px;
}

.content-wrap article .blog-table tbody tr:hover {
    background: #f8f9fa;
}

/* Comparison Table */
.content-wrap article .comparison-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.content-wrap article .comparison-table th,
.content-wrap article .comparison-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.content-wrap article .comparison-table thead th {
    background: #343a40;
    color: #fff;
    font-weight: 600;
}

.content-wrap article .comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.content-wrap article .comparison-table .yes {
    color: #28a745;
    font-weight: bold;
}

.content-wrap article .comparison-table .no {
    color: #dc3545;
}

/* ==========================================================================
   Blog Images
   ========================================================================== */
.content-wrap article .blog-image {
    margin: 2rem 0;
}

.content-wrap article .blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-wrap article .blog-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.content-wrap article .blog-image--full {
    margin-left: -1rem;
    margin-right: -1rem;
}

.content-wrap article .blog-image--full img {
    width: 100%;
    border-radius: 0;
}

/* ==========================================================================
   Testimonials & Blockquotes
   ========================================================================== */
.content-wrap article blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid var(--brand-blue);
    border-radius: 0 8px 8px 0;
}

.content-wrap article blockquote p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.content-wrap article .testimonial {
    background: linear-gradient(135deg, rgba(200,16,46,0.05) 0%, rgba(97,160,255,0.05) 100%);
    border-left-color: var(--brand-red);
    position: relative;
}

.content-wrap article .testimonial p {
    font-style: italic;
}

.content-wrap article .testimonial cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--brand-red);
}

/* ==========================================================================
   CTA Boxes
   ========================================================================== */
.content-wrap article .cta-box {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--brand-red) 0%, #a00d25 100%);
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.content-wrap article .cta-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 700;
}

.content-wrap article .cta-box p {
    margin-bottom: 1.25rem;
    color: #fff;
    opacity: 0.9;
}

.content-wrap article .cta-box p:last-child {
    margin-bottom: 0;
}

/* Handle button wrapped in p tag (WordPress quirk) */
.content-wrap article .cta-box p:has(a) {
    margin-bottom: 0;
}
.preview-frame .cta-box p:has(a) {
    margin-bottom: 0;
}

/* CTA Button - targets ANY link inside cta-box (including inside p tags) */
/* Primary CTA: White button with red text */
.content-wrap article .cta-box a,
.content-wrap article .cta-box p a,
.content-wrap article .cta-box p > a,
.content-wrap article .cta-box .btn,
.content-wrap article .cta-box p .btn,
.content-wrap article .cta-box .btn.btn-primary,
.content-wrap article .cta-box p .btn.btn-primary,
.preview-frame .cta-box a,
.preview-frame .cta-box p a,
.preview-frame .cta-box p > a,
.preview-frame .cta-box .btn,
.preview-frame .cta-box p .btn {
    display: inline-block !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-align: center !important;
    border-radius: 50px !important;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #dc3545 !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    mix-blend-mode: normal !important;
    isolation: isolate !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.content-wrap article .cta-box a::before,
.content-wrap article .cta-box a::after,
.content-wrap article .cta-box .btn::before,
.content-wrap article .cta-box .btn::after,
.preview-frame .cta-box a::before,
.preview-frame .cta-box a::after,
.preview-frame .cta-box .btn::before,
.preview-frame .cta-box .btn::after {
    display: none !important;
    content: none !important;
}

.content-wrap article .cta-box a:hover,
.content-wrap article .cta-box p a:hover,
.content-wrap article .cta-box p > a:hover,
.content-wrap article .cta-box .btn:hover,
.content-wrap article .cta-box p .btn:hover,
.preview-frame .cta-box a:hover,
.preview-frame .cta-box p a:hover,
.preview-frame .cta-box p > a:hover,
.preview-frame .cta-box .btn:hover,
.preview-frame .cta-box p .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #dc3545 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.content-wrap article .cta-box--secondary {
    background: var(--brand-light-blue);
    color: var(--text-dark);
}

.content-wrap article .cta-box--secondary h3 {
    color: var(--text-dark);
}

.content-wrap article .cta-box--secondary p {
    color: var(--text-dark);
    opacity: 0.85;
}

/* Secondary CTA: Blue button with white text */
.content-wrap article .cta-box--secondary a,
.content-wrap article .cta-box--secondary p a,
.content-wrap article .cta-box--secondary p > a,
.preview-frame .cta-box--secondary a,
.preview-frame .cta-box--secondary p a,
.preview-frame .cta-box--secondary p > a {
    background: #4485e7 !important;
    color: #fff !important;
}

.content-wrap article .cta-box--secondary a:hover,
.content-wrap article .cta-box--secondary p a:hover,
.content-wrap article .cta-box--secondary p > a:hover,
.preview-frame .cta-box--secondary a:hover,
.preview-frame .cta-box--secondary p a:hover,
.preview-frame .cta-box--secondary p > a:hover {
    background: #3a75d4 !important;
    color: #fff !important;
}

/* CTA Template Gallery - Product design thumbnails */
.content-wrap article .cta-box .cta-templates,
.preview-frame .cta-box .cta-templates {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 1.25rem 0 1.5rem 0;
    flex-wrap: wrap;
}

.content-wrap article .cta-box .cta-templates img,
.preview-frame .cta-box .cta-templates img {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    padding: 4px !important;
    margin: 0 !important;
    display: inline-block !important;
}

.content-wrap article .cta-box .cta-templates img:hover,
.preview-frame .cta-box .cta-templates img:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

/* CLS fix: reserve space for CTA images before load */
.content-wrap article .cta-templates img {
    aspect-ratio: 800 / 296;
}

/* Responsive: adjust for tablet */
@media (max-width: 768px) {
    .content-wrap article .cta-box .cta-templates img,
    .preview-frame .cta-box .cta-templates img {
        max-width: 220px;
        max-height: 100px;
    }
}

/* Responsive: adjust for mobile */
@media (max-width: 480px) {
    .content-wrap article .cta-box .cta-templates,
    .preview-frame .cta-box .cta-templates {
        gap: 10px;
    }
    .content-wrap article .cta-box .cta-templates img,
    .preview-frame .cta-box .cta-templates img {
        max-width: 150px;
        max-height: 80px;
    }
}

/* ==========================================================================
   Numbered Steps
   ========================================================================== */
.content-wrap article .steps {
    margin: 2rem 0;
}

.content-wrap article .step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.content-wrap article .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--brand-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.content-wrap article .step-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.content-wrap article .step-content p {
    margin-bottom: 0;
    color: #666;
}

/* ==========================================================================
   Related Posts Box
   ========================================================================== */
.content-wrap article .related-posts {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--brand-light-blue);
    border-radius: 12px;
    border-left: 4px solid var(--brand-blue);
}

.content-wrap article .related-posts h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.content-wrap article .related-posts ul {
    margin: 0;
    padding-left: 0;
}

.content-wrap article .related-posts ul li {
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.content-wrap article .related-posts ul li::before {
    display: none;
}

.content-wrap article .related-posts a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
}

.content-wrap article .related-posts a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Resource Links (Like the Blog Post)
   ========================================================================== */
.content-wrap article .resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.content-wrap article .resource-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.content-wrap article .resource-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.08);
    color: var(--text-dark);
    text-decoration: none;
}

.content-wrap article .resource-link .resource-icon {
    font-size: 1.5rem;
}

.content-wrap article .resource-link .resource-text {
    font-weight: 600;
}

.content-wrap article .resource-link .resource-arrow {
    margin-left: auto;
    color: var(--brand-blue);
}

/* ==========================================================================
   Pull Quotes - Highlight Key Points
   ========================================================================== */
.content-wrap article .pull-quote,
.preview-frame .pull-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: #495057;
    border-left: 4px solid var(--brand-blue);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    line-height: 1.6;
}

.content-wrap article .pull-quote cite,
.preview-frame .pull-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--brand-blue);
}

/* ==========================================================================
   Icon Lists - Checkmarks, Crosses, Stars
   ========================================================================== */
.content-wrap article .icon-list,
.preview-frame .icon-list {
    list-style: none;
    padding-left: 0;
    margin: 1.25rem 0;
}

.content-wrap article .icon-list li,
.preview-frame .icon-list li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.content-wrap article .icon-list li::before,
.preview-frame .icon-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1rem;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: inline;
}

.content-wrap article .icon-list.check li::before,
.preview-frame .icon-list.check li::before {
    content: "✓";
    color: #28a745;
}

.content-wrap article .icon-list.cross li::before,
.preview-frame .icon-list.cross li::before {
    content: "✗";
    color: #dc3545;
}

.content-wrap article .icon-list.star li::before,
.preview-frame .icon-list.star li::before {
    content: "★";
    color: #ffc107;
}

/* ==========================================================================
   Comparison Box - Do/Don't Side-by-Side
   ========================================================================== */
.content-wrap article .comparison-box,
.preview-frame .comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.content-wrap article .comparison-box .do,
.content-wrap article .comparison-box .dont,
.preview-frame .comparison-box .do,
.preview-frame .comparison-box .dont {
    padding: 1.25rem;
    border-radius: 8px;
}

.content-wrap article .comparison-box .do,
.preview-frame .comparison-box .do {
    background: #d4edda;
    border: 1px solid #28a745;
}

.content-wrap article .comparison-box .dont,
.preview-frame .comparison-box .dont {
    background: #f8d7da;
    border: 1px solid #dc3545;
}

.content-wrap article .comparison-box .do h4,
.content-wrap article .comparison-box .dont h4,
.preview-frame .comparison-box .do h4,
.preview-frame .comparison-box .dont h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.content-wrap article .comparison-box .do h4::before,
.preview-frame .comparison-box .do h4::before {
    content: "✓ ";
    color: #28a745;
}

.content-wrap article .comparison-box .dont h4::before,
.preview-frame .comparison-box .dont h4::before {
    content: "✗ ";
    color: #dc3545;
}

.content-wrap article .comparison-box ul,
.preview-frame .comparison-box ul {
    margin: 0;
    padding-left: 0;
}

.content-wrap article .comparison-box li,
.preview-frame .comparison-box li {
    padding-left: 0;
    margin-bottom: 0.4rem;
}

.content-wrap article .comparison-box li::before,
.preview-frame .comparison-box li::before {
    display: none;
}

/* ==========================================================================
   FAQ Section - Bottom of Article
   ========================================================================== */
.content-wrap article .faq-section,
.preview-frame .faq-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--brand-blue);
}

.content-wrap article .faq-section > h3,
.preview-frame .faq-section > h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.content-wrap article .faq-section .faq-item,
.preview-frame .faq-section .faq-item {
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.content-wrap article .faq-section .faq-item:last-child,
.preview-frame .faq-section .faq-item:last-child {
    border-bottom: none;
}

.content-wrap article .faq-section .faq-q,
.preview-frame .faq-section .faq-q {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    outline: none;
}

.content-wrap article .faq-section .faq-q:focus,
.preview-frame .faq-section .faq-q:focus {
    outline: none;
    box-shadow: none;
}

.content-wrap article .faq-section .faq-q:hover,
.preview-frame .faq-section .faq-q:hover {
    color: var(--brand-blue);
}

.content-wrap article .faq-section .faq-q::after,
.preview-frame .faq-section .faq-q::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--brand-blue);
    font-weight: bold;
}

.content-wrap article .faq-section .faq-item.active .faq-q::after,
.preview-frame .faq-section .faq-item.active .faq-q::after {
    content: "−";
}

.content-wrap article .faq-section .faq-a,
.preview-frame .faq-section .faq-a {
    display: none;
    padding: 0 0 1rem 0;
    color: #666;
    line-height: 1.6;
}

.content-wrap article .faq-section .faq-item.active .faq-a,
.preview-frame .faq-section .faq-item.active .faq-a {
    display: block;
}

/* ==========================================================================
   Blog Disclaimer
   ========================================================================== */
.blog-disclaimer {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.blog-disclaimer strong {
    color: #666;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .content-wrap article h1 {
        font-size: 1.8rem;
    }

    .content-wrap article h2 {
        font-size: 1.5rem;
    }

    .content-wrap article .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .content-wrap article .step {
        flex-direction: column;
        gap: 0.75rem;
    }

    .content-wrap article .cta-box {
        padding: 1.5rem;
    }

    .content-wrap article .tip-box {
        flex-direction: column;
        gap: 10px;
    }

    .content-wrap article .feature-card {
        flex-direction: column;
    }

    .content-wrap article .stat-pills {
        flex-direction: column;
        align-items: center;
    }

    .content-wrap article .comparison-box,
    .preview-frame .comparison-box {
        grid-template-columns: 1fr;
    }

    .content-wrap article .pull-quote,
    .preview-frame .pull-quote {
        font-size: 1.2rem;
    }
}
