/*
Theme Name: Total Car Clean
Theme URI: https://totalcarclean.com
Author: Total Car Clean
Description: A fast, mobile-first WordPress theme for UK car cleaning affiliate site. Built for conversion and SEO.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: total-car-clean
Tags: affiliate, e-commerce-ready, mobile-first, fast-loading
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5490;
    --primary-dark: #0d3a66;
    --secondary-color: #e63946;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --max-width: 1200px;
    --spacing-unit: 1rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { 
    font-size: 2.5rem;
    letter-spacing: -0.02em; /* Tighter character spacing */
}
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* Reduce paragraph spacing in content areas (Enter key creates <p> tags) */
.post-content p,
.content-area p,
.entry-content p {
    margin-bottom: 0.6rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Ensure global a styles don't affect mega menu column links - they should not have underlines */
.megamenu-column a {
    background-image: none !important; /* Reset any inherited background/underline */
}

.megamenu-column a:hover {
    background-image: none !important; /* Ensure no underline on mega menu column links */
}

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
    padding-bottom: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 0;
    position: relative;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--primary-dark);
}

/* Navigation */
.main-navigation {
    position: static;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem; /* Reduced from 1rem to 0.5rem (50% decrease) */
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.nav-menu > li {
    position: static;
}

/* Megamenu visibility handled by JavaScript for better control */

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 7px;
    transition: background 0.18s ease, color 0.18s ease;
    background: none;
    gap: 0.3rem;
    white-space: nowrap;
}

.nav-menu a::before {
    content: none !important;
}

/* ── Chevron arrow for items with dropdowns ── */
.nav-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 5.5px;
    height: 5.5px;
    border-right: 1.75px solid currentColor;
    border-bottom: 1.75px solid currentColor;
    transform: rotate(45deg) translate(-1px, -2px);
    margin-left: 2px;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.18s ease;
    opacity: 0.7;
}

/* Chevron flips upward when dropdown is open */
.nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg) translate(-1px, -2px);
    opacity: 1;
}

/* ── Hover state — category-coloured pill button ── */
.nav-menu > li:hover > a {
    background: var(--_cat, #38bdf8);
    color: #ffffff;
}

/* ================================================================
   CATEGORY DROPDOWN — dark navy, two-column icon grid
   ================================================================ */

/* Each nav <li> is the positioning parent */
.nav-menu > li {
    position: relative;
}

.cat-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 580px;
    background: linear-gradient(160deg, #102338 0%, #163a62 45%, #1e508c 100%);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);
    padding: 1rem 0.875rem 1rem;
    display: none;
    z-index: 1000;
    pointer-events: auto;
    /* Opacity-only fade — no transform to avoid border artifact on exit */
    opacity: 0;
    transition: opacity 0.16s ease;
}

.cat-dropdown.is-open {
    opacity: 1;
}

/* Two equal columns, side by side */
.cat-dropdown-cols {
    display: flex;
    gap: 0.25rem;
}

.cat-dd-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem; /* breathing room between items */
    min-width: 0;
}

/* ── Column heading (left column only) ── */
.cat-dd-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--_cat, #38bdf8);
    padding: 0.125rem 0.75rem 0.6rem;
    white-space: nowrap;
    line-height: 1;
}

/* Invisible spacer in right column — keeps items row-aligned */
.cat-dd-label--ghost {
    visibility: hidden;
    pointer-events: none;
}

/* ── Each link item ── */
.cat-dd-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.38rem 0.75rem !important;  /* tighter vertically */
    border-radius: 9px;
    text-decoration: none !important;
    color: rgba(255,255,255,0.88) !important;
    transition: background 0.13s ease, padding 0.13s ease;
    min-width: 0;
    margin: 0 0 !important;
}

/* Wider pill on hover — extend horizontally beyond column edge */
.cat-dd-item:hover {
    background: rgba(var(--_cat-rgb, 56,189,248), 0.14);
    color: #ffffff !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin: 0 -0.25rem !important;
}

/* ── Icon box ── */
.cat-dd-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px;
    background: rgba(var(--_cat-rgb, 56,189,248), 0.13);
    color: var(--_cat, #38bdf8);
    transition: background 0.13s ease;
}

.cat-dd-item:hover .cat-dd-icon {
    background: rgba(var(--_cat-rgb, 56,189,248), 0.22);
}

.cat-dd-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

/* ── Text stack: title + description ── */
.cat-dd-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cat-dd-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-dd-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Position megamenu relative to site-header container */
.site-header .container {
    position: relative;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
    line-height: 1;
    transition: background-color 0.2s;
    position: relative;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-toggle:hover {
    background-color: var(--bg-light);
}

.menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.menu-toggle:focus:not(:focus-visible),
.submenu-toggle:focus:not(:focus-visible) {
    outline: none;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.menu-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    margin-top: 0;
}

.hero-section h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.hero-cta-btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.hero-cta-btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.hero-cta-btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

/* Brand Bar Section */
.brand-bar-section {
    background: #fff;
    padding: 2rem 0 1rem 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.brand-bar-container {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 769px) {
    .brand-bar-container {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .brand-bar-container {
        padding: 0 1rem;
    }
}

.brand-bar-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.brand-bar-wrapper::before,
.brand-bar-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brand-bar-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.brand-bar-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.brand-bar-track {
    width: 100%;
    overflow: hidden;
}

.brand-bar-inner {
    display: flex;
    gap: 20px;
    width: fit-content;
    animation: brandBarScroll 80s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .brand-bar-inner {
        animation: none;
    }
    
    .brand-bar-track {
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    
    .brand-bar-inner {
        width: max-content;
    }
}

.brand-bar-wrapper:hover .brand-bar-inner,
.brand-bar-wrapper:focus-within .brand-bar-inner {
    animation-play-state: paused;
}

@keyframes brandBarScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-bar-item {
    flex-shrink: 0;
    width: 160px;
    height: 56px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
}

/* Desktop: Larger logos (~50% bigger) */
@media (min-width: 769px) {
    .brand-bar-item {
        width: 240px;
        height: 84px;
        padding: 15px 24px;
    }
    
    .brand-bar-logo {
        max-width: 100%;
        max-height: 100%;
    }
}

.brand-bar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand-bar-link:hover,
.brand-bar-link:focus {
    opacity: 0.8;
}

.brand-bar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Brands Directory Page */
.brands-directory-page {
    padding: 1rem 0 4rem;
}

.brands-directory-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f5f9ff 0%, #eef4fb 100%);
    border: 1px solid #d7e4f3;
    border-radius: 20px;
}

.brands-directory-kicker {
    margin: 0 0 0.5rem;
    color: #1a5490;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brands-directory-hero-copy h1 {
    margin: 0 0 0.75rem;
}

.brands-directory-intro {
    max-width: 720px;
    margin: 0;
    color: #526173;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.brands-directory-summary {
    min-width: 180px;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #d7e4f3;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(18, 43, 70, 0.06);
    text-align: center;
}

.brands-directory-summary strong {
    display: block;
    color: #1a5490;
    font-size: 2rem;
    line-height: 1;
}

.brands-directory-summary span {
    display: block;
    margin-top: 0.4rem;
    color: #526173;
    font-size: 0.9375rem;
}

.brands-directory-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: sticky;
    top: 68px;
    z-index: 20;
    margin: 0 0 2rem;
    padding: 0.9rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 #1a5490, inset 0 -1px 0 #1a5490;
    backdrop-filter: blur(10px);
}

.brands-directory-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.85rem;
    border: 1px solid #c8d9eb;
    border-radius: 999px;
    background: #fff;
    color: #1a5490;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.brands-directory-nav-link:hover,
.brands-directory-nav-link:focus {
    background: #1a5490;
    border-color: #1a5490;
    color: #fff;
    transform: translateY(-1px);
}

.brands-directory-groups {
    display: grid;
    gap: 2rem;
}

.brands-directory-group {
    scroll-margin-top: 110px;
}

.brands-directory-group-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dbe7f3;
}

.brands-directory-group-heading h2 {
    margin: 0;
    color: #1a5490;
    font-size: 2rem;
}

.brands-directory-group-heading p {
    margin: 0;
    color: #6b7b8c;
    font-size: 0.95rem;
}

.brands-directory-grid {
    --brands-dir-cols: 5;
    display: grid;
    grid-template-columns: repeat(var(--brands-dir-cols), minmax(0, 1fr));
    gap: 1rem;
    justify-content: start;
    justify-items: stretch;
}

.brands-directory-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(18, 43, 70, 0.05);
}

.brands-directory-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #edf3f9;
    border-radius: 14px;
}

.brands-directory-card-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.brands-directory-card.brands-directory-card--slug-3d-car-care .brands-directory-card-logo img {
    max-width: 68%;
    max-height: 68%;
}

.brands-directory-card h3 {
    margin: 1rem 0 0;
    color: #203447;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
}

.brands-directory-empty {
    padding: 2rem;
    background: #fff;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    text-align: center;
}

@media (max-width: 900px) {
    .brands-directory-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .brands-directory-summary {
        min-width: 0;
        width: 100%;
    }

    .brands-directory-grid {
        --brands-dir-cols: 3;
    }
}

@media (max-width: 640px) {
    .brands-directory-page {
        padding-top: 0.5rem;
    }

    .brands-directory-nav {
        top: 56px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 1.15rem 1rem 0.75rem;
        margin: 0 -1rem 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .brands-directory-nav::-webkit-scrollbar {
        display: none;
    }

    .brands-directory-nav-link {
        flex: 0 0 auto;
    }

    .brands-directory-hero {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .brands-directory-grid {
        --brands-dir-cols: 2;
    }

    .brands-directory-card {
        min-height: 180px;
        padding: 1rem;
        border-radius: 14px;
    }

    .brands-directory-card-logo {
        height: 88px;
        padding: 0.5rem;
        border-radius: 12px;
    }

    .brands-directory-group-heading h2 {
        font-size: 1.6rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .brand-bar-section {
        padding: 1.5rem 0;
    }
    
    .brand-bar-item {
        width: 140px;
        height: 48px;
        padding: 8px 14px;
    }
    
    .brand-bar-inner {
        gap: 8px;
    }
    
    .brand-bar-wrapper::before,
    .brand-bar-wrapper::after {
        width: 40px;
    }
}

/* Browse Categories Section */
.browse-categories-section {
    margin: 4rem 0;
    text-align: center;
}

.browse-categories-section h2 {
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Main Content */
.site-main {
    padding: 0;
    min-height: 60vh;
}

/* Category Page Layout */
.category-page-header {
    margin-bottom: 2rem;
}

.category-page-header h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.tcc-brand-page .brand-page-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tcc-brand-page .brand-page-title-row h1 {
    margin-bottom: 0;
}

.tcc-brand-page .brand-page-title-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.tcc-brand-page .brand-page-title-logo img {
    width: auto;
    max-width: 220px;
    max-height: 2.5rem;
}

.category-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-count,
.last-updated-header {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Show/hide desktop vs mobile text */
.product-count-text-mobile,
.last-updated-text-mobile {
    display: none;
}

.meta-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.lightning-icon {
    color: #fbbf24;
    fill: #fbbf24;
}

.calendar-icon {
    color: #60a5fa;
    stroke: #60a5fa;
}

.affiliate-disclosure-header {
    font-style: italic;
}

/* Filter Tags */
.filter-tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Spacing for insights page - H1 to filter buttons */
.content-area > h1 {
    margin-bottom: 2rem;
}

.filter-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.filter-tag:hover {
    background: #FE7CA0;
    color: #fff;
    border-color: #FE7CA0;
}

.filter-tag-current {
    background: #e5e7eb !important;
    color: var(--text-color) !important;
    border-color: #e5e7eb !important;
    cursor: default;
}

.filter-tag-current:hover {
    background: #e5e7eb !important;
    color: var(--text-color) !important;
    border-color: #e5e7eb !important;
}

/* Category page hover accents (per-category colour) */
.tcc-category-page .filter-tag:hover {
    background: var(--tcc-cat-accent, #FE7CA0);
    border-color: var(--tcc-cat-accent, #FE7CA0);
    color: #fff;
}

/* Category filter dropdown for mobile */
.category-filter-mobile {
    display: none;
    margin-bottom: 1.5rem;
}

.category-filter-dropdown {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a5490' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.category-filter-dropdown:hover {
    border-color: #FE7CA0;
}

.category-filter-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

/* Hide desktop buttons on mobile, show dropdown */
@media (max-width: 768px) {
    .category-filter-desktop {
        display: none;
    }
    
    .category-filter-mobile {
        display: block;
    }
}

/* Hide dropdown on desktop, show buttons */
@media (min-width: 769px) {
    .category-filter-mobile {
        display: none;
    }
    
    .category-filter-desktop {
        display: flex;
    }
}

/* Products Section (Combined Top Picks and All Products) */
.products-section {
    margin: 3rem 0;
    background: #f5f5f5;
    padding: 2rem 2rem 1rem 2rem;
    border-radius: 8px;
}

.products-section .products-section-header,
.products-section .products-note,
.products-section .products-table,
.products-section .products-load-more-wrapper,
.products-section .products-pagination-fallback {
    max-width: 100%;
}

.products-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-section-header h2 {
    margin: 0;
    letter-spacing: -0.03em !important;
}

.products-note {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    margin-top: 0;
}

/* Desktop: products-note should span full width below the header row */
@media (min-width: 769px) {
    .products-section-header {
        flex-wrap: wrap;
    }
    
    .products-section-header .products-note {
        width: 100%;
        order: 10; /* Appears after h2 and sort-section */
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
}

/* Brand pages: no brand name in H2; pull subline closer under the heading */
.tcc-brand-page .products-section-header {
    row-gap: 0.25rem;
}

@media (min-width: 769px) {
    .tcc-brand-page .products-section-header .products-note {
        margin-top: 0;
    }
}

/* Category & subcategory: match brand template spacing (H2 ↔ intro line) */
.tcc-category-page .products-section-header {
    row-gap: 0.25rem;
}

@media (min-width: 769px) {
    .tcc-category-page .products-section-header .products-note {
        margin-top: 0;
    }
}

/* Sort Section */
.products-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.brand-filter-section,
.sort-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Labels removed from custom selects; keep rule for any future label children */
.brand-filter-section label,
.sort-section label {
    font-weight: 500;
    white-space: nowrap;
}

.product-brand-filter-select,
.product-sort-select {
    padding: 0.5rem 2.5rem 0.5rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9375rem;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 9L1 4h10L6 9z' fill='%232c3e50'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 12px;
}

/* Custom dropdowns: list always opens below (native <select> direction is OS-controlled) */
.tcc-custom-select {
    position: relative;
    display: inline-block;
}

.tcc-custom-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
}

button.product-sort-select.tcc-custom-select__trigger,
button.product-brand-filter-select.tcc-custom-select__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 2.5rem;
    font-family: inherit;
    line-height: 1.3;
    text-align: left;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.tcc-custom-select__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tcc-custom-select__dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: -1px;
    width: calc(100% + 2px);
    z-index: 50;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: none;
    max-height: 16rem;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #e5e7eb;
    padding-right: 1rem;
}

.tcc-custom-select__dropdown[hidden] {
    display: none !important;
}

.tcc-custom-select__dropdown li[role="option"] {
    padding: 0.45rem 0.875rem;
    font-size: 0.9375rem;
    cursor: pointer;
    color: var(--text-color);
    margin: 0;
    line-height: 1.25;
}

.tcc-custom-select__dropdown li[role="option"]:hover,
.tcc-custom-select__dropdown li[role="option"]:focus {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.tcc-custom-select__dropdown li[role="option"][aria-selected="true"] {
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
}

.tcc-custom-select__dropdown::-webkit-scrollbar {
    width: 10px;
}

.tcc-custom-select__dropdown::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 8px;
}

.tcc-custom-select__dropdown::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.tcc-custom-select__dropdown::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.tcc-custom-select__scrollbar {
    position: absolute;
    top: 0;
    right: 4px;
    width: 8px;
    height: 0;
    z-index: 60;
    background: #e5e7eb;
    border-radius: 999px;
    pointer-events: auto;
    cursor: pointer;
}

.tcc-custom-select__scrollbar-thumb {
    width: 100%;
    min-height: 24px;
    background: #94a3b8;
    border-radius: 999px;
    transform: translateY(0);
    cursor: grab;
    touch-action: none;
}

.tcc-custom-select__scrollbar-thumb:active {
    cursor: grabbing;
}

.tcc-custom-select__scrollbar[hidden] {
    display: none !important;
}

/* Brand dropdown uses custom rail, so hide native scrollbar visuals */
.tcc-custom-select--brand .tcc-custom-select__dropdown {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scrollbar-gutter: auto;
}

.tcc-custom-select--brand .tcc-custom-select__dropdown::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none;
}

.tcc-custom-select__trigger:hover,
.tcc-custom-select__trigger:focus,
.tcc-custom-select__trigger:focus-visible,
.tcc-custom-select__trigger:active,
.tcc-custom-select.is-open .tcc-custom-select__trigger {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.tcc-custom-select.is-open .tcc-custom-select__trigger {
    border-radius: 4px 4px 0 0 !important;
}

/* Load More Button */
.products-load-more-wrapper {
    text-align: center;
    margin: 3rem 0 1.5rem 0;
}

.btn-load-more {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-load-more:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-load-more:active:not(:disabled) {
    transform: translateY(0);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-loading {
    display: inline-block;
}

.products-load-status {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    min-height: 1.5rem;
}

/* Hidden SEO pagination for crawlers */
.products-pagination-fallback {
    display: none !important;
}

/* Products Table — category & brand pages: 3 → 2 (tablet) → 1 (phone) */
.products-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Brand filter is loading remaining pages: avoid harsh repaint; final sort runs once at end */
.products-table.tcc-products-table--bulk-loading {
    opacity: 0.96;
    transition: opacity 0.2s ease;
}

/* Homepage product grid - 50% smaller cards - COMMENTED OUT (can be re-enabled later) */
/*
.homepage-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.homepage-products-grid .product-table-item {
    padding: 0.75rem;
    border-radius: 4px;
}

.homepage-products-grid .product-table-image-link {
    height: 100px;
    margin-bottom: 0.5rem;
    padding: 6px;
}

.homepage-products-grid .product-table-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.homepage-products-grid .product-table-title-link {
    font-size: 0.875rem;
}

.homepage-products-grid .product-table-rating {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.homepage-products-grid .btn-amazon {
    padding: 0.4375rem 0.75rem;
    font-size: 0.875rem;
}

.homepage-products-grid .btn-amazon svg {
    width: 12px;
    height: 12px;
    margin-left: 0.25rem;
}

@media (max-width: 768px) {
    .homepage-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .homepage-products-grid .product-table-image-link {
        height: 80px;
    }
}
*/

.product-table-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: visible;
}

/* Top Pick Tag - only on sub-category pages for first 3 products */
.product-top-pick-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #FE7CA0;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    z-index: 10;
    line-height: 1.2;
    border: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Post meta info (date and category) for blog post cards */
.post-meta-info {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

.post-meta-info > div {
    margin-bottom: 0.25rem;
}

.post-meta-info > div:last-child {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta-info time {
    color: var(--text-light);
}

/* Ensure "Category:" label and link are on same line and same color */
.guide-item .post-meta-info a,
.post-meta-info .post-category-link,
.post-category-link {
    color: var(--text-light) !important;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.guide-item .post-meta-info a:hover,
.post-meta-info a:hover,
.post-category-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.product-table-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.product-table-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    height: 200px;
    background: #fff;
    border-radius: 4px;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.product-table-image-link:hover {
    background: #f8f9fa;
}

.product-table-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

/* Mobile responsive image container */
@media (max-width: 768px) {
    /* Reduce H1 font size on mobile (40px -> 28px) */
    h1,
    .container h1,
    main h1,
    .site-main h1 {
        font-size: 28px !important;
    }
    
    /* Reduce "Top Picks Worth Considering" font size on mobile */
    .products-section-header h2 {
        font-size: 22px !important;
    }
    
    /* Spacing below filter tags on mobile */
    .filter-tags-section {
        margin-bottom: 1.5rem; /* Restore original spacing below blue buttons */
    }
    
    /* Reduce spacing above filter buttons on mobile */
    .category-page-header {
        margin-bottom: 1rem; /* Reduce from 2rem to bring buttons closer */
    }
    
    /* Combine meta info into single line on mobile (ATF optimization) */
    .category-page-meta {
        gap: 1rem;
        line-height: 1.4;
        flex-wrap: wrap; /* Allow wrapping on extremely small screens */
        align-items: center;
        margin-bottom: 0.25rem; /* Further reduce spacing below meta (above filter buttons) */
    }
    
    /* Show mobile text, hide desktop text */
    .product-count-text-desktop,
    .last-updated-text-desktop {
        display: none;
    }
    
    .product-count-text-mobile,
    .last-updated-text-mobile {
        display: inline;
    }
    
    /* Shorten product count text slightly on mobile */
    .product-count,
    .last-updated-header {
        font-size: 0.8125rem;
        white-space: nowrap;
        flex-shrink: 0; /* Prevent individual items from shrinking */
    }
    
    /* Reduce header height and logo size on mobile */
    .site-header {
        margin-bottom: 0;
    }
    
    .header-inner {
        padding: 0.75rem 0;
    }
    
    .site-logo {
        font-size: 1.25rem;
    }
    
    /* Tighten spacing around Top Picks section on mobile */
    .products-section {
        margin-top: 0.375rem; /* Match spacing below filter buttons for consistency - DO NOT CHANGE */
        padding-top: 1rem; /* Reduce top padding to reduce grey gap above H2 (from 2rem to 1rem) */
    }
    
    /* Reduce space between H2 heading and intro paragraph by 50% */
    .products-section-header {
        margin-bottom: 0.5rem;
        gap: 0.5rem; /* Reduce gap between H2, paragraph, and sort section */
    }
    
    /* Specifically reduce spacing after H2 */
    .products-section-header h2 {
        margin-bottom: 0;
    }
    
    .products-section-header .products-note {
        margin-top: 0;
        margin-bottom: -0.25rem; /* Pull sort-section closer to match header margin-bottom spacing */
    }
    
    /* Fix spacing above Sort by row - ensure symmetry with spacing below */
    .products-section-header .products-controls {
        margin-top: 0;
        margin-bottom: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .products-section-header .sort-section,
    .products-section-header .brand-filter-section {
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Category: two dropdowns side-by-side between intro text and grid (flex order fix: wrapper must be 3, not 0) */
    .tcc-category-page .products-section-header .products-controls {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .tcc-category-page .products-section-header .brand-filter-section,
    .tcc-category-page .products-section-header .sort-section {
        flex: 1 1 0;
        min-width: 0;
        gap: 0;
    }

    .tcc-category-page .products-section-header .brand-filter-section .tcc-custom-select,
    .tcc-category-page .products-section-header .sort-section .tcc-custom-select {
        width: 100% !important;
        max-width: 100%;
    }

    .tcc-category-page .products-section-header h2 {
        order: 1;
    }

    .tcc-category-page .products-section-header .products-note {
        order: 2;
    }
    
    .product-table-image-link {
        height: 160px;
        padding: 10px;
    }
}

.product-table-item:hover .product-table-image {
    transform: scale(1.05);
}

.product-table-content {
    flex: 1;
    margin-bottom: 1rem;
}

.product-table-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 3); /* line-height * number of lines */
}

.product-table-title-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    display: block;
}

.product-table-title-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.product-table-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0 0 0.5rem;
}

.product-table-rating {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    min-height: 1.5rem; /* Ensure space even if rating is empty */
}

/* Star Rating Styles */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 1.125rem;
    line-height: 1;
    display: inline-block;
    position: relative;
}

.star-empty {
    color: #e0e0e0;
}

.star-half-wrapper {
    position: relative;
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    overflow: hidden;
}

.star-half-empty {
    position: absolute;
    left: 0;
    top: 0;
    color: #e0e0e0;
    z-index: 1;
}

.star-half-filled {
    position: absolute;
    left: 0;
    top: 0;
    color: #ffc107;
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}

.star-full {
    color: #ffc107;
}

.rating-text {
    color: var(--text-light);
    font-weight: 500;
}

.product-table-item .btn-amazon {
    margin-top: auto;
}

/* Legacy styles for backward compatibility */
.top-picks-section {
    margin: 3rem 0;
}

.top-picks-section h2 {
    margin-bottom: 0.5rem;
}

.top-picks-note {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.top-picks-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.top-pick-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.top-pick-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.top-pick-image {
    width: 173px;
    height: 173px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.top-pick-content {
    flex: 1;
}

.top-pick-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.top-pick-rating {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
}

.top-pick-item .btn-amazon {
    flex-shrink: 0;
    width: auto;
    min-width: 200px;
    padding: 1rem 1.75rem;
    font-size: 1rem;
}

.all-products-section {
    margin: 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-item-content {
    flex: 1;
    margin-bottom: 1rem;
}

.product-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-item-rating {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
}

.product-item .btn-amazon {
    margin-top: auto;
}

/* Legacy product card styles (keep for backward compatibility) */
.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-card-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card-badge.best-value {
    background: var(--success-color);
}

.product-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card-brand {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-card-features {
    list-style: none;
    margin-bottom: 1rem;
}

.product-card-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.product-card-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.product-card-best-for {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.product-card-why {
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

/* CTA Buttons */
.btn-amazon {
    display: inline-block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-amazon:hover {
    background-color: #FE7CA0;
    color: #fff;
}

/* Category page hover accents (per-category colour) */
.tcc-category-page .btn-amazon:hover {
    background-color: var(--tcc-cat-accent, #FE7CA0);
    color: #fff;
}

/* Brand pages: use slightly darker blue on hover for clearer feedback */
.tcc-brand-page .btn-amazon:hover {
    background-color: #38bdf8;
    color: #fff;
}

.btn-amazon:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-amazon svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Buying Guide Section */
.buying-guide-section {
    margin: 3rem 0;
    line-height: 1.6;
}

.buying-guide-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    letter-spacing: -0.03em !important;
}

.buying-guide-section h2:first-child {
    margin-top: 0;
}

.buying-guide-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: 2.5rem;
}

.buying-guide-section h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.buying-guide-section p {
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
}

.buying-guide-section p:first-of-type {
    margin-top: 0;
}

.tcc-brand-page .brand-page-content-logo {
    margin-top: 1.5rem;
}

.tcc-brand-page .brand-page-content-logo img {
    width: auto;
    max-width: min(100%, 260px);
    max-height: 72px;
}

.tcc-brand-page .brand-company-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
}

.tcc-brand-page .brand-company-panel-header {
    margin-bottom: 0.9rem;
}

.tcc-brand-page .brand-company-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.95rem;
    flex-wrap: wrap;
    width: 100%;
}

.tcc-brand-page .brand-company-panel-title-copy {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.tcc-brand-page .brand-company-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tcc-cat-accent, var(--primary-color));
}

.tcc-brand-page .brand-company-panel h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.1;
}

.tcc-brand-page .brand-company-panel-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: auto;
}

.tcc-brand-page .brand-company-panel-logo img {
    width: auto;
    max-width: min(100%, 180px);
    height: 54px;
    object-fit: contain;
}

.tcc-brand-page .brand-company-intro {
    margin: 0;
    color: var(--text-light);
}

.tcc-brand-page .brand-company-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.4fr);
    gap: 1rem;
    align-items: stretch;
}

.tcc-brand-page .brand-company-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.tcc-brand-page .brand-company-card h4 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.tcc-brand-page .brand-company-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.tcc-brand-page .brand-company-list-item {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #edf2f7;
}

.tcc-brand-page .brand-company-list-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.tcc-brand-page .brand-company-list-item dt {
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
}

.tcc-brand-page .brand-company-list-item dd {
    margin: 0;
    color: var(--text-color);
}

.tcc-brand-page .brand-company-list-item dd a {
    word-break: break-word;
}

.tcc-brand-page .brand-company-socials-wrap {
    margin-top: 1.25rem;
}

.tcc-brand-page .brand-company-socials-wrap h5 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.tcc-brand-page .brand-company-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tcc-brand-page .brand-company-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: rgba(26, 84, 144, 0.08);
    border: 1px solid rgba(26, 84, 144, 0.18);
    color: var(--primary-color);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tcc-brand-page .brand-company-social-link svg {
    width: 16px;
    height: 16px;
    display: block;
}

.tcc-brand-page .brand-company-social-link:hover {
    background: rgba(26, 84, 144, 0.14);
    border-color: rgba(26, 84, 144, 0.3);
    transform: translateY(-1px);
}

.tcc-brand-page .brand-company-social-link-disabled {
    background: #f1f5f9;
    border-color: #d8dee7;
    color: #94a3b8;
    cursor: default;
    pointer-events: none;
}

.tcc-brand-page .brand-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.tcc-brand-page .brand-review-card {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e3edf8;
}

.tcc-brand-page .brand-review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.65rem;
}

.tcc-brand-page .brand-review-meta strong {
    color: var(--text-color);
}

.tcc-brand-page .brand-review-meta span {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.tcc-brand-page .brand-review-card p {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.tcc-brand-page .brand-review-card a {
    font-weight: 600;
    font-size: 0.875rem;
}

.tcc-brand-page .brand-company-footnote {
    margin: 2.75rem 0 0;
    padding-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .tcc-brand-page .brand-company-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tcc-brand-page .brand-company-panel {
        padding: 1rem;
        border-radius: 16px;
    }

    .tcc-brand-page .brand-company-panel-header {
        margin-bottom: 1rem;
    }

    .tcc-brand-page .brand-company-panel-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .tcc-brand-page .brand-company-panel-logo {
        align-self: flex-end;
        margin-left: 0;
        max-width: 100%;
    }

    .tcc-brand-page .brand-company-panel h3 {
        font-size: 1.25rem;
        line-height: 1.15;
    }

    .tcc-brand-page .brand-company-panel-logo img {
        max-width: min(100%, 150px);
        height: auto;
        max-height: 44px;
    }

    .tcc-brand-page .brand-company-card {
        padding: 1rem;
    }

    .tcc-brand-page .brand-company-card h4 {
        margin-bottom: 0.85rem;
        font-size: 1rem;
    }

    .tcc-brand-page .brand-company-list {
        gap: 0.8rem;
    }

    .tcc-brand-page .brand-company-list-item {
        padding-bottom: 0.8rem;
    }

    .tcc-brand-page .brand-company-list-item dd,
    .tcc-brand-page .brand-company-list-item dd a,
    .tcc-brand-page .brand-review-card p {
        overflow-wrap: anywhere;
    }

    .tcc-brand-page .brand-company-socials {
        gap: 0.5rem;
    }

    .tcc-brand-page .brand-company-social-link {
        width: 38px;
        height: 38px;
    }

    .tcc-brand-page .brand-company-social-link svg {
        width: 15px;
        height: 15px;
    }

    .tcc-brand-page .brand-review-grid {
        grid-template-columns: 1fr;
    }

    .tcc-brand-page .brand-review-card {
        padding: 0.9rem;
    }

    .tcc-brand-page .brand-company-footnote {
        margin-top: 1.75rem;
    }
}

@media (max-width: 480px) {
    .tcc-brand-page .brand-company-panel {
        padding: 0.85rem;
    }

    .tcc-brand-page .brand-company-eyebrow {
        font-size: 0.72rem;
    }

    .tcc-brand-page .brand-company-panel h3 {
        font-size: 1.15rem;
    }

    .tcc-brand-page .brand-company-panel-logo img {
        max-width: min(100%, 130px);
        max-height: 40px;
    }

    .tcc-brand-page .brand-company-card {
        padding: 0.9rem;
    }
}

/* Note: <br> tags are void elements and cannot be reliably styled with CSS.
   Spacing after <br> tags is controlled by line-height on the parent container. */

.buying-guide-section ol,
.buying-guide-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.buying-guide-section ol li,
.buying-guide-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* List styling for regular page content (Privacy Policy, Affiliate Disclosure, etc.) */
.site-main ul,
.site-main ol,
.content-area ul,
.content-area ol,
.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    padding-left: 0;
}

.site-main ul li,
.site-main ol li,
.content-area ul li,
.content-area ol li,
.entry-content ul li,
.entry-content ol li,
.page-content ul li,
.page-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Ensure list styles are displayed */
.site-main ul,
.content-area ul,
.entry-content ul,
.page-content ul {
    list-style-type: disc;
}

.site-main ol,
.content-area ol,
.entry-content ol,
.page-content ol {
    list-style-type: decimal;
}

/* Nested lists */
.site-main ul ul,
.content-area ul ul,
.entry-content ul ul,
.page-content ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.site-main ol ol,
.content-area ol ol,
.entry-content ol ol,
.page-content ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquote / Quote callout box */
.site-main blockquote,
.content-area blockquote,
.entry-content blockquote,
.page-content blockquote,
.wp-block-quote,
blockquote {
    background-color: #f5f5f5; /* Light grey background */
    border-left: 4px solid var(--primary-color); /* Colored left border */
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    font-style: normal;
    font-size: 1.0625rem; /* Slightly larger than body text */
    line-height: 1.7;
    color: var(--text-color);
}

.site-main blockquote p,
.content-area blockquote p,
.entry-content blockquote p,
.page-content blockquote p,
.wp-block-quote p,
blockquote p {
    margin-bottom: 0.75rem;
}

.site-main blockquote p:last-child,
.content-area blockquote p:last-child,
.entry-content blockquote p:last-child,
.page-content blockquote p:last-child,
.wp-block-quote p:last-child,
blockquote p:last-child {
    margin-bottom: 0;
}

/* Blockquote citation */
.site-main blockquote cite,
.content-area blockquote cite,
.entry-content blockquote cite,
.page-content blockquote cite,
.wp-block-quote cite,
.wp-block-quote__citation,
blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--text-light);
}

/* Post content styling - ensure line breaks display correctly */
.post-content,
.content-area,
.entry-content {
    line-height: 1.6;
    white-space: normal;
}

/* Ensure br tags (Shift+Enter) create visible line breaks with spacing */
.post-content br,
.content-area br,
.entry-content br {
    display: inline-block;
    width: 100%;
    height: 0.45rem;
}

/* Standard divider - used across the site */
.buying-guide-section .product-section-divider,
.buying-guide-section hr,
hr,
.product-section-divider,
.site-main hr,
.container hr,
.page-content hr,
.entry-content hr {
    border: none !important;
    border-top: 1px solid #e5e7eb !important; /* Lighter grey color - matches buying guide */
    margin: 2.5rem 0 !important; /* Increased padding above and below */
    width: 100%;
}

/* Links in buying guide content */
.buying-guide-section a {
    text-decoration: underline;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.buying-guide-section a:hover {
    color: #FE7CA0; /* Pink on hover */
}

/* FAQ Accordion */
.faq-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.faq-section > h2,
.faq-section > .faq-item {
    max-width: 100%;
}

.faq-section h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    padding: 1.5rem 0 0.5rem 0;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 3rem;
}

.faq-question-text {
    display: inline-block;
    max-width: 90%;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    width: auto;
}

.faq-item.active .faq-question:after {
    content: "−";
}

.faq-answer {
    display: none;
    padding: 0.25rem 0 1.5rem 0;
    color: var(--text-light);
    max-width: 90%;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Related Links */
/* Explore Categories Section */
.explore-categories-section {
    margin: 4rem 0;
}

.explore-categories-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.explore-subtitle {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.explore-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.explore-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.explore-link-card:hover {
    border-color: var(--primary-color);
}

.explore-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 8px;
    flex-shrink: 0;
    color: #fff;
}

.explore-card-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
    stroke: #fff;
    display: block;
}

.explore-card-text {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-color);
}

.explore-card-arrow {
    flex-shrink: 0;
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.explore-view-all {
    text-align: center;
}

.explore-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: 2px solid var(--primary-color);
}

.explore-view-all-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.explore-view-all-link svg {
    width: 18px;
    height: 18px;
}

/* Legacy related links (keep for backward compatibility) */
.related-links-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.related-link-item {
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: box-shadow 0.3s;
}

.related-link-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--primary-color);
}

/* ================================
   INSIGHTS SINGLE POSTS
   ================================ */

.insights-post-page {
    padding-bottom: 2rem;
}

.insights-post-article {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 1.25rem;
}

.insights-post-header {
    margin-bottom: 2rem;
    padding-top: 0.75rem;
}

.insights-post-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.insights-post-meta {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.6;
}

.insights-post-featured-image {
    margin-bottom: 2.5rem;
}

.insights-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.insights-post-content {
    font-size: 1.075rem;
    line-height: 1.78;
    color: var(--text-color);
}

.insights-post-content > * {
    max-width: 100%;
}

.insights-post-content p {
    margin-bottom: 1.1rem;
}

.insights-post-content > h2,
.insights-post-content .wp-block-heading:where(h2) {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.insights-post-content > h3,
.insights-post-content .wp-block-heading:where(h3) {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.insights-post-content > h4,
.insights-post-content .wp-block-heading:where(h4) {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.insights-post-content ul,
.insights-post-content ol {
    margin-top: 0.85rem;
    margin-bottom: 1.35rem;
}

.insights-post-content li {
    margin-bottom: 0.55rem;
}

.insights-post-content .wp-block-separator,
.insights-post-content hr {
    margin: 2.75rem 0 !important;
}

.insights-post-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.insights-post-content .faq-section {
    margin-top: 3.25rem;
}

.insights-related-links-section {
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.insights-related-links-section h2 {
    margin-bottom: 0.35rem;
}

.insights-related-links-section .related-links-grid {
    margin-top: 1.25rem;
}

.insights-related-links-section .related-link-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.insights-related-links-section .related-link-item:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs-separator {
    margin: 0 0.5rem;
}

/* Why Trust Section */
.why-trust-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb; /* Match buying guide divider color */
}

.why-trust-section h2 {
    text-align: center;
    font-size: 1.75rem; /* Match buying-guide-section h2 and products-section-header h2 */
    margin-bottom: 0.5rem; /* Match buying-guide-section h2 */
    color: var(--primary-color);
    letter-spacing: -0.03em !important; /* Match category/sub-category H2 letter spacing */
}

.why-trust-subheading {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.why-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-trust-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.why-trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.why-trust-icon svg {
    width: 40px;
    height: 40px;
}

.why-trust-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.why-trust-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.site-footer {
    background: linear-gradient(160deg, #102338 0%, #163a62 45%, #1e508c 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle grid lines — matches hero */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.042) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.042) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Canvas animation layer */
.footer-elec {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.footer-elec canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* All footer content sits above the overlays */
.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-section {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    margin-top: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li:last-child {
    margin-bottom: 0;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: inline-block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.footer-section .affiliate-disclosure {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 4px;
    margin: 0;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-section .affiliate-disclosure strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.footer-section .affiliate-disclosure p {
    margin: 0;
    line-height: 1.5;
}

/* Compliance */
.compliance-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.9375rem;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* Categories Grid (Homepage) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

.category-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.category-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.category-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
}

/* Main Content Sections */
.main-content-intro {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.category-info-section {
    margin: 3rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb; /* Match buying guide divider color */
}

.category-info-section:last-of-type {
    border-bottom: none;
}

.category-info-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-info-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Links within category sections (exclude product showcase links) */
.category-info-section a:not(.btn-see-all):not(.product-table-title-link):not(.product-table-image-link):not(.btn-amazon) {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.category-info-section a:not(.btn-see-all):not(.product-table-title-link):not(.product-table-image-link):not(.btn-amazon):hover {
    color: var(--primary-dark);
}

/* ================================
   PRODUCT SHOWCASE ROW (Homepage Category Sections)
   ================================ */
.category-products-showcase {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    width: 100%; /* Ensure full width */
}

/* Products wrapper - holds the 3 cards - equal width columns */
.category-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    flex: 1 1 auto; /* Allow flex grow/shrink but maintain equal columns */
    min-width: 0; /* Prevent grid from overflowing */
    width: 100%; /* Take available width */
}

/* Ensure all grid items (product cards) are equal width */
.category-products-grid > .product-table-item {
    grid-column: span 1; /* Each card spans exactly 1 column */
    min-width: 0; /* Prevent content from expanding columns */
    width: 100%; /* Use full column width */
    max-width: 100%; /* Prevent overflow */
}

/* Slightly smaller product cards in showcase - ensure equal widths */
.category-products-grid .product-table-item {
    padding: 1.25rem;
    min-width: 0; /* Allow cards to shrink properly in grid */
    width: 100%; /* Force equal width */
    max-width: 100%; /* Prevent cards from exceeding grid column width */
    box-sizing: border-box; /* Include padding in width calculation */
    overflow: hidden; /* Prevent content from breaking layout */
}

.category-products-grid .product-table-image-link {
    height: 230px;
    margin-bottom: 0.875rem;
    padding: 10px;
    width: 100%; /* Ensure image container uses full card width */
    box-sizing: border-box;
    max-width: 100%;
}

.category-products-grid .product-table-image {
    max-width: 100%; /* Ensure images don't overflow */
    width: auto;
}

.category-products-grid .product-table-content {
    width: 100%; /* Ensure content uses full card width */
    min-width: 0; /* Allow content to shrink */
    box-sizing: border-box;
}

.category-products-grid .product-table-title {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2);
    min-width: 0; /* Allow text to truncate properly */
    width: 100%; /* Use full available width */
    word-break: break-word; /* Break long words if needed */
    box-sizing: border-box;
}

.category-products-grid .product-table-rating {
    margin-top: 0.375rem;
    min-height: 1.25rem;
    width: 100%; /* Ensure rating uses full width */
    box-sizing: border-box;
}

.category-products-grid .star {
    font-size: 1.25rem;
}

.category-products-grid .rating-text {
    font-size: 1.0625rem;
    margin-left: 0.375rem;
}

.category-products-grid .btn-amazon {
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.category-products-grid .btn-amazon svg {
    margin-left: 0.375rem;
}

/* See All Button Container - fixed width for consistency (desktop only) */
.category-see-all-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px; /* Fixed width to ensure grid gets consistent space (desktop) */
    min-width: 140px;
    max-width: 140px;
    flex-shrink: 0; /* Prevent button from shrinking */
    flex-grow: 0; /* Don't allow button to grow */
}

/* See All Button - Custom Design */
.btn-see-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    text-align: center;
    line-height: 1.4;
}

.btn-see-all:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateX(4px);
}

.btn-see-all .see-all-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-see-all:hover .see-all-icon {
    background: #fff;
    transform: translateX(4px);
}

.btn-see-all .see-all-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.btn-see-all:hover .see-all-icon svg {
    transform: translateX(2px);
}

.btn-see-all .see-all-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.btn-see-all .see-all-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-see-all:hover .see-all-label {
    color: rgba(255,255,255,0.8);
}

.btn-see-all .see-all-category {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* ================================
   MOBILE RESPONSIVE - HORIZONTAL SCROLL
   ================================ */
@media (max-width: 900px) {
    .category-products-showcase {
        flex-direction: column;
        gap: 1rem;
        width: 100%; /* Ensure showcase is full width on mobile */
    }

    .category-products-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 0.5rem;
        /* Cards align with container padding (title/description) - no negative margin */
        margin: 0;
        padding-left: 0;
        /* Add padding-right so last card can scroll fully into view */
        padding-right: 1rem;
    }

    .category-products-grid::-webkit-scrollbar {
        height: 6px;
    }

    .category-products-grid::-webkit-scrollbar-track {
        background: var(--bg-light);
        border-radius: 3px;
    }

    .category-products-grid::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 3px;
    }

    .category-products-grid::-webkit-scrollbar-thumb:hover {
        background: var(--text-light);
    }

    .category-products-grid .product-table-item {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    /* Add padding to first and last cards to align with content */
    .category-products-grid .product-table-item:first-child {
        margin-left: 0;
    }

    .category-products-grid .product-table-item:last-child {
        margin-right: 0;
    }

    .category-see-all-wrapper {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important; /* Override desktop fixed width of 140px */
        margin: 0 !important;
        padding: 0 !important;
        flex-basis: 100% !important; /* Take full width in column layout */
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    .btn-see-all {
        flex-direction: row;
        padding: 1rem 1.5rem;
        gap: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        display: flex !important;
    }

    .btn-see-all .see-all-icon {
        width: 40px;
        height: 40px;
    }

    .btn-see-all .see-all-text {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .category-info-section h2 {
        font-size: 1.5rem;
    }

    .category-products-grid .product-table-item {
        flex: 0 0 260px;
    }

    /* Ensure See All button is full width on small screens */
    .category-see-all-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .btn-see-all {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Latest Guides Section */
.latest-guides-section {
    margin: 4rem 0;
}

.latest-guides-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

/* Responsive: 2 columns on tablet, 1 column on mobile */
@media (max-width: 968px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Category/subcategory: centre Related Insights when only 1–2 articles */
.tcc-category-page .latest-guides-section .guides-grid--few {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
}

.tcc-category-page .latest-guides-section .guides-grid--few .guide-item {
    flex: 0 1 380px;
    max-width: min(380px, 100%);
    width: 100%;
}

@media (max-width: 640px) {
    .tcc-category-page .latest-guides-section .guides-grid--few .guide-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.guide-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.guide-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.guide-item a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.guide-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.guide-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.guides-view-all {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    /* Hide megamenu on mobile - use simple dropdown instead */
    .megamenu {
        display: none !important;
    }
    
    .main-navigation {
        position: static;
    }
    
    /* Make mobile menu break out of container to be full width */
    .site-header .container {
        position: relative;
    }

    /* Keep logo and hamburger button visible above the full-screen nav overlay.
       nav-menu is fixed at z-index:999 inside the site-header stacking context,
       so these elements need a higher z-index to paint on top of it. */
    .site-logo,
    .menu-toggle {
        position: relative;
        z-index: 1000;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        transform: none;
        background: #fff;
        box-shadow: none;
        padding: 3.75rem 1rem 2rem;
        margin-top: 0;
        z-index: 999;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        position: relative;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu > li > a {
        padding: 1rem;
        width: 100%;
        display: block;
        padding-right: 3rem;
        border-radius: 4px;
    }
    
    .nav-menu > li.menu-item-has-children > a::after {
        display: none !important;
    }
    
    
    /* Sub-menu toggle button */
    .submenu-toggle {
        position: absolute;
        right: 0;
        top: 0;
        width: 44px;
        height: 3.5rem; /* matches the link row height (padding: 1rem + text) */
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-color);
        font-size: 1.5rem;
        padding: 0;
        transition: transform 0.3s ease;
    }

    .submenu-toggle:hover {
        background-color: transparent;
    }

    .submenu-toggle[aria-expanded="true"] {
        transform: rotate(45deg);
    }
    
    .submenu-toggle .submenu-icon {
        display: block;
        font-weight: bold;
        line-height: 1;
    }
    
    /* Sub-menu (hidden by default on mobile) */
    .sub-menu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        background-color: var(--bg-light);
        border-top: 1px solid #e5e7eb; /* Match buying guide divider color */
    }
    
    .nav-menu > li.menu-item-has-children > .sub-menu.active {
        display: block;
    }

    /* Keep category colour on parent link while submenu is open */
    .nav-menu > li:has(.submenu-toggle[aria-expanded="true"]) > a {
        background: var(--_cat, #38bdf8);
        color: #ffffff;
    }
    
    .sub-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .sub-menu a {
        padding: 0.875rem 1rem 0.875rem 2rem;
        display: block;
        color: var(--text-color);
        font-size: 0.9375rem;
        transition: color 0.2s ease;
    }

    .sub-menu a:hover {
        color: var(--primary-color);
    }

    /* Top-level nav icons */
    .nav-menu > li > a {
        display: flex;
        align-items: center;
        gap: 0.55rem;
    }

    .nav-item-icon {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
        stroke: currentColor;
        transition: stroke 0.18s ease;
    }

    /* Icon goes white when link is hovered or category is open */
    .nav-menu > li > a:hover .nav-item-icon,
    .nav-menu > li:has(.submenu-toggle[aria-expanded="true"]) > a .nav-item-icon {
        stroke: #ffffff;
    }

    .menu-toggle {
        display: flex;
    }
    
    .header-inner {
        position: relative;
        padding: 0.75rem 0;
    }
    
    /* Reduce site logo size on mobile */
    .site-logo {
        font-size: 1.25rem;
    }
    
    /* Reduce H1 font size on mobile (40px -> 28px) */
    h1,
    .container h1,
    main h1,
    .site-main h1 {
        font-size: 28px !important;
    }
    
    /* Reduce "Top Picks Worth Considering" font size on mobile */
    .products-section-header h2 {
        font-size: 22px !important;
    }
    
    /* Spacing below filter tags on mobile */
    .filter-tags-section {
        margin-bottom: 1.5rem; /* Restore original spacing below blue buttons */
    }
    
    /* Reduce spacing above filter buttons on mobile */
    .category-page-header {
        margin-bottom: 1rem; /* Reduce from 2rem to bring buttons closer */
    }
    
    /* Combine meta info into single line on mobile (ATF optimization) */
    .category-page-meta {
        gap: 1rem;
        line-height: 1.4;
        flex-wrap: wrap; /* Allow wrapping on extremely small screens */
        align-items: center;
        margin-bottom: 0.25rem; /* Further reduce spacing below meta (above filter buttons) */
    }
    
    /* Show mobile text, hide desktop text */
    .product-count-text-desktop,
    .last-updated-text-desktop {
        display: none;
    }
    
    .product-count-text-mobile,
    .last-updated-text-mobile {
        display: inline;
    }
    
    /* Shorten product count text slightly on mobile */
    .product-count,
    .last-updated-header {
        font-size: 0.8125rem;
        white-space: nowrap;
        flex-shrink: 0; /* Prevent individual items from shrinking */
    }
    
    h2 { font-size: 1.75rem; }
    
    /* Full-bleed background for Products Section on mobile */
    .products-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-top: 0.375rem; /* Match spacing below filter buttons for consistency - DO NOT CHANGE */
        border-radius: 0;
        padding: 1rem 1rem 1rem 1rem; /* Reduce top padding to reduce grey gap above H2 */
    }
    
    /* Reduce space between H2 heading and intro paragraph by 50% */
    .products-section-header {
        margin-bottom: 0.5rem;
        gap: 0.5rem; /* Reduce gap between H2, paragraph, and sort section */
    }
    
    /* Specifically reduce spacing after H2 */
    .products-section-header h2 {
        margin-bottom: 0;
    }
    
    .products-section-header .products-note {
        margin-top: 0;
        margin-bottom: -0.25rem; /* Pull sort-section closer to match header margin-bottom spacing */
    }
    
    /* Fix spacing above Sort by row - ensure symmetry with spacing below */
    .products-section-header .sort-section {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    /* Full-bleed background for FAQs Section on mobile */
    .faq-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        padding: 2rem 1rem;
    }
    
    .products-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Reorder elements on mobile: h2, products-note, sort-section */
    .products-section-header h2 {
        order: 1;
    }
    
    .products-section-header .products-note {
        order: 2;
        margin-bottom: 1rem;
        margin-top: 0;
    }
    
    .products-section-header .sort-section {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    /* Category page: controls row is .products-controls (not .sort-section alone) */
    .tcc-category-page .products-section-header .products-controls {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .tcc-category-page .products-section-header .brand-filter-section,
    .tcc-category-page .products-section-header .sort-section {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        gap: 0;
    }

    .tcc-category-page .products-section-header .brand-filter-section .tcc-custom-select,
    .tcc-category-page .products-section-header .sort-section .tcc-custom-select {
        width: 100% !important;
        max-width: 100%;
    }

    .tcc-category-page .products-section-header h2 {
        order: 1;
    }

    .tcc-category-page .products-section-header .products-note {
        order: 2;
    }
    
    /* Tablet / narrow: two columns before single-column phones */
    .products-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
    
    .top-pick-item {
        flex-direction: column;
        text-align: center;
    }
    
    .top-pick-image {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }
    
    .top-pick-item .btn-amazon {
        width: 100%;
        min-width: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .explore-links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .explore-link-card {
        padding: 0.875rem;
    }
    
    .explore-card-icon {
        width: 36px;
        height: 36px;
    }
    
    .explore-card-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .explore-card-text {
        font-size: 0.875rem;
    }
    
    .explore-card-arrow {
        width: 18px;
        height: 18px;
    }
}

/* Hide submenu toggle on desktop */
@media (min-width: 969px) {
    .submenu-toggle {
        display: none !important;
    }
    
    .sub-menu {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta-btn {
        width: 100%;
        text-align: center;
    }
    
    .product-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Categories column: 2-column link grid on mobile */
    .footer-section:first-child ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem 1rem;
    }
    
    .why-trust-section {
        padding: 3rem 0;
    }
    
    .why-trust-section h2 {
        font-size: 1.75rem;
    }
    
    .why-trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .why-trust-item {
        padding: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Product grid: single column on small phones */
    .products-table {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}


/* ================================
   ABOUT & CONTACT PAGES
   ================================ */

/* Shared hero banner */
.tcc-page-hero {
    background: linear-gradient(160deg, #102338 0%, #163a62 45%, #1e508c 100%);
    padding: 3.5rem 0 3rem;
    margin-bottom: 3rem;
}

.tcc-page-hero h1 {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
}

.tcc-page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin: 0;
}

/* Shared section spacing */
.tcc-about-section,
.tcc-contact-layout {
    margin-bottom: 3rem;
}

.tcc-about-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

/* About intro */
.tcc-about-intro p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-color);
    max-width: 760px;
}

/* About — 3 cards */
.tcc-about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.25rem;
}

/* Block editor: Columns block uses same grid as legacy .tcc-about-cards */
.tcc-about-page .tcc-about-cards.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.tcc-about-page .tcc-about-cards.wp-block-columns > .wp-block-column {
    margin: 0;
}

/* Block editor: Contact layout from columns block */
.tcc-contact-page .tcc-contact-layout.wp-block-columns {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

.tcc-about-entry .alignwide,
.tcc-contact-entry .alignwide {
    max-width: 100%;
}

.tcc-about-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.tcc-about-card-icon {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tcc-about-card-icon svg {
    width: 22px;
    height: 22px;
}

.tcc-about-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tcc-about-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* About — mission blockquote */
.tcc-about-mission blockquote {
    background: linear-gradient(160deg, #102338 0%, #163a62 100%);
    border-left: 4px solid #38bdf8;
    border-radius: 0 12px 12px 0;
    padding: 1.75rem 2rem;
    margin: 0;
}

.tcc-about-mission blockquote p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.65;
    margin: 0;
}

/* About — trust list */
.tcc-about-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.tcc-about-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.975rem;
    line-height: 1.6;
    padding: 0;
}

.tcc-about-trust-list li::before { display: none; }

.tcc-about-trust-list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #4ade80;
    margin-top: 2px;
}

/* About — category pills */
.tcc-about-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1rem;
}

.tcc-about-cat-pill {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tcc-about-cat-pill:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* About — CTA */
.tcc-about-cta {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.tcc-about-cta h2 { margin-bottom: 0.625rem; }
.tcc-about-cta p  { color: var(--text-light); margin-bottom: 1.25rem; }

/* ---- Contact page ---- */
.tcc-contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

.tcc-contact-form-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tcc-contact-form-wrap > p {
    color: var(--text-light);
    margin-bottom: 1.75rem;
}

/* Form elements */
.tcc-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tcc-form-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.tcc-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tcc-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.tcc-form-group label span {
    color: var(--primary-color);
}

.tcc-form-group input,
.tcc-form-group select,
.tcc-form-group textarea {
    padding: 0.6875rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.tcc-form-group input:focus,
.tcc-form-group select:focus,
.tcc-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}

.tcc-form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.tcc-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
    align-self: flex-start;
}

.tcc-form-submit svg { width: 16px; height: 16px; }

.tcc-form-submit:hover { background: var(--primary-dark, #0ea5e9); }

/* Success / error messages */
.tcc-form-success,
.tcc-form-error {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.tcc-form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

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

.tcc-form-success svg,
.tcc-form-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.tcc-form-success p,
.tcc-form-error p {
    margin: 0.2rem 0 0;
    font-size: 0.875rem;
}

/* Contact sidebar cards */
.tcc-contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tcc-contact-info-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.tcc-contact-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tcc-contact-info-card > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tcc-contact-info-card > ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0;
}

.tcc-contact-info-card > ul li::before { display: none; }

.tcc-contact-info-card > ul svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}

/* Contact FAQ list */
.tcc-contact-faq {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tcc-contact-faq li {
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.tcc-contact-faq li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tcc-contact-faq li::before { display: none; }

.tcc-contact-faq strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.3rem;
}

.tcc-contact-faq p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .tcc-page-hero { padding: 2.5rem 0 2rem; }
    .tcc-page-hero h1 { font-size: 1.75rem; }

    .tcc-about-cards {
        grid-template-columns: 1fr;
    }

    .tcc-about-page .tcc-about-cards.wp-block-columns {
        grid-template-columns: 1fr;
    }

    .tcc-contact-layout {
        grid-template-columns: 1fr;
    }

    .tcc-contact-page .tcc-contact-layout.wp-block-columns {
        grid-template-columns: 1fr;
    }

    .tcc-form-row--two {
        grid-template-columns: 1fr;
    }

    .tcc-form-submit {
        width: 100%;
    }
}
