/* CSS Variables
================================================================== */
:root {
    --tyre-reviews-blue: #0db1e7;
    --tyre-reviews-blue-dark: #0a9bcc;
}

/* General Styles
================================================================== */

/* Unified Summary Card */
.summary-unified {
    overflow: hidden;
    border-radius: 14px;
}

.tyre-summary-panel {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1),
                0 10px 20px -2px rgba(15, 23, 42, 0.08);
}

.tyre-summary-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 24px;
}

.tyre-detail-tabs {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1),
                0 10px 20px -2px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.tyre-detail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background-color: #f2f5f9;
    border-bottom: 1px solid #e2e7ee;
}

.tyre-detail-tab {
    border: 1px solid #d7dde6;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #ffffff;
    color: #364152;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
}

.tyre-detail-tab i {
    margin-right: 6px;
}

.tyre-detail-tab:hover {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.tyre-detail-tab.active {
    background-color: #1a5fb4;
    border-color: #1a5fb4;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(26, 95, 180, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.tyre-detail-content {
    background-color: #ffffff;
}

.tyre-detail-panel {
    padding: 18px;
}

.summary-unified .summary-section {
    padding: 0;
    background-color: #ffffff;
}

.summary-unified .summary-section + .summary-section {
    border-top: 1px solid #e7ebf0;
}

.summary-unified .summary-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background-color: #1e293b;
    border-left: 4px solid var(--tyre-reviews-blue);
}

.summary-unified .summary-section-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.summary-unified .summary-section-action {
    white-space: nowrap;
}

/* Style action buttons in dark section headers */
.summary-unified .summary-section-header .btn.summary-section-action {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #1e293b;
    font-weight: 600;
}

.summary-unified .summary-section-header .btn.summary-section-action:hover {
    background-color: #f1f5f9;
    border-color: #f1f5f9;
    color: #1a5fb4;
}

.summary-unified .summary-section-body {
    padding: 16px;
    background-color: #ffffff;
}

.summary-unified .summary-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
}

.summary-unified .summary-section-footer {
    margin-top: 12px;
    border-top: 1px solid #e7ebf0;
}

/* Tyre Awards Section - single badge horizontal card */
.tyre-award-single {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tyre-award-single__badge {
    flex: 0 0 250px;
}

.tyre-award-single__badge .svg-badge-object {
    width: 100%;
    height: auto;
    pointer-events: none;
}

.tyre-award-single__info {
    flex: 1;
    min-width: 0;
}

@media (max-width: 575px) {
    .tyre-award-single {
        gap: 14px;
    }
    .tyre-award-single__badge {
        flex: 0 0 200px;
    }
}

/* Tyre Awards Section - scrollable row */
.tyre-awards-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.tyre-awards-row::-webkit-scrollbar {
    height: 4px;
}

.tyre-awards-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* Center when badges fit without scrolling */
.tyre-awards-row--fit {
    justify-content: center;
    overflow-x: visible;
}

.tyre-award-badge {
    flex: 0 0 auto;
    width: 250px;
    text-align: center;
}

.tyre-award-badge .svg-badge-object {
    width: 100%;
    height: auto;
    pointer-events: none;
}

.tyre-award-test-name {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.3;
}

@media (max-width: 575px) {
    .tyre-award-badge {
        width: 200px;
    }
}

.summary-unified .summary-section-action {
    white-space: nowrap;
}

.summary-unified .summary-tile {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    background-color: #f8fafc;
    height: 100%;
    transition: box-shadow 0.15s ease;
}

.summary-unified .summary-tile:hover {
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}

.summary-unified .summary-tile-title {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.summary-unified .summary-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-unified .summary-list-item {
    margin: 0;
}

.summary-unified .summary-list-value {
    text-align: right;
}

/* Horizontal list layout for tyre info (full width) */
.summary-unified .summary-list-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.summary-unified .summary-list-horizontal .summary-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 576px) {
    .summary-unified .summary-list-horizontal {
        flex-direction: column;
        gap: 8px;
    }

    .summary-unified .summary-list-horizontal .summary-list-item {
        justify-content: space-between;
    }
}

.summary-unified .summary-card-link {
    display: block;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    background-color: #ffffff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.summary-unified .summary-card-link:hover {
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}

.summary-unified .summary-card-text {
    font-size: 0.85rem;
    color: #2a2a2a;
}

.summary-unified .summary-metric {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background-color: #f8fafc;
    height: 100%;
}

.summary-unified .summary-metric-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.summary-unified .summary-metric-label {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.summary-unified .summary-subheader {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.summary-unified .summary-highlight-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-unified .summary-highlight-item {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    background-color: #f8fafc;
}

.hover-bg-light {
    transition: background-color 0.15s ease;
}

.hover-bg-light:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Test highlight items within unified card */
.test-highlight-item:last-child {
    border-bottom: none !important;
}

/* =================================================================
   TYRE HEADER - COMPACT MODERN DESIGN
   ================================================================= */

/* Main header card container */
.tyre-header-card {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1),
                0 10px 20px -2px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Header main content area */
.tyre-header-main {
    display: flex;
    gap: 20px;
    padding: 16px;
}

/* Hero image section (left side) */
.tyre-header-hero {
    flex: 0 0 200px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tyre-header-hero-img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 8px;
    border: none;
    background-color: transparent;
}

.tyre-header-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #1a5fb4;
    background-color: #e8f1fc;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tyre-header-gallery-link:hover {
    background-color: #1a5fb4;
    box-shadow: 0 4px 10px rgba(26, 95, 180, 0.2);
    text-decoration: none;
    color: #ffffff;
}

/* Info section (right side) */
.tyre-header-info {
    flex: 1;
    min-width: 0;
}

/* Title row */
.tyre-header-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.tyre-header-title {
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.25;
    letter-spacing: -0.01em;
    background: none;
    border: none;
    border-radius: 0;
}

.tyre-header-title .fn {
    display: block;
}

.tyre-header-discontinued-banner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9a3412;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
}

.tyre-header-discontinued-banner i {
    color: #c2410c;
    font-size: 0.75rem;
}

/* Breadcrumb pills */
.tyre-header-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tyre-header-crumb {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a5fb4;
    background-color: #e8f1fc;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tyre-header-crumb:hover {
    background-color: #1a5fb4;
    border-color: #1a5fb4;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(26, 95, 180, 0.2);
}

/* Navigation crumbs (Previous/Next) */
.tyre-header-crumb-nav {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.tyre-header-crumb-nav:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.tyre-header-crumb-nav i {
    font-size: 0.7rem;
}

/* Ranking badge in breadcrumb */
.tyre-header-ranking {
    margin-left: 4px;
    font-weight: 600;
    color: #198754;
}

/* Tyre Specs Pills (inside hero column) */
.tyre-header-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

/* Tested by Tyre Reviews callout (inside hero column) */
.tyre-header-hero-callout {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    background-color: #1e293b;
    border-left: 3px solid var(--tyre-reviews-blue);
    border-radius: 8px;
    text-decoration: none;
    color: #f8fafc;
    transition: background-color 0.15s ease;
    width: 100%;
}

.tyre-header-hero-callout:hover {
    background-color: #334155;
    text-decoration: none;
    color: #f8fafc;
}

.tyre-header-hero-callout-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.tyre-header-hero-callout-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tyre-header-hero-callout-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #cbd5e1;
    line-height: 1.2;
}

.tyre-header-hero-callout-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.tyre-header-hero-callout-multi {
    cursor: pointer;
    position: relative;
}

.tyre-header-hero-callout-arrow {
    font-size: 0.6rem;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.tyre-header-hero-callout-multi.open .tyre-header-hero-callout-arrow {
    transform: rotate(180deg);
}

.tyre-header-hero-callout-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tyre-header-hero-callout-multi.open .tyre-header-hero-callout-dropdown {
    display: block;
}

.tyre-header-hero-callout-dropdown-item,
.tyre-header-hero-callout-dropdown-item:link,
.tyre-header-hero-callout-dropdown-item:visited {
    display: block;
    padding: 10px 12px;
    color: #f8fafc;
    text-decoration: none;
    font-size: 0.8rem;
    border-bottom: 1px solid #334155;
    transition: background-color 0.15s ease;
}

.tyre-header-hero-callout-dropdown-item:last-child {
    border-bottom: none;
}

.tyre-header-hero-callout-dropdown-item:hover {
    background-color: #334155;
    color: #fff;
    text-decoration: none;
}

.tyre-header-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #475569;
    background-color: #f1f5f9;
    border-radius: 12px;
}

.tyre-header-spec i {
    color: #64748b;
}

.tyre-header-spec-link {
    text-decoration: none;
    transition: all 0.15s ease;
}

.tyre-header-spec-link:hover {
    background-color: #e2e8f0;
    color: #334155;
    text-decoration: none;
}

.tyre-header-spec-winter {
    background-color: #e0f2fe;
    color: #0369a1;
}

.tyre-header-spec-winter i {
    color: #0284c7;
}

/* Description with read more */
.tyre-header-desc-wrapper {
    margin: 0 0 12px;
}

.tyre-header-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #5a6169;
    line-height: 1.5;
}

.tyre-header-desc.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tyre-header-desc.expanded {
    display: block;
}

.tyre-header-read-more {
    display: inline-block;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0d6efd;
    cursor: pointer;
    transition: color 0.15s ease;
}

.tyre-header-read-more:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Mileage tab (right-aligned, above stats bar) */
.tyre-header-mileage-tab {
    display: flex;
    justify-content: flex-end;
}

.tyre-header-mileage-tab-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #1e293b;
    border-left: 3px solid var(--tyre-reviews-blue);
    border-top-left-radius: 10px;
    color: #f8fafc;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.15s ease;
}

.tyre-header-mileage-tab-inner:hover {
    background-color: #334155;
}

.tyre-header-mileage-tab-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #cbd5e1;
}

.tyre-header-mileage-tab-value {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.tyre-header-mileage-tab-unit {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.tyre-header-mileage-tab-inner .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

.tyre-header-mileage-tab-inner .fa-info-circle {
    opacity: 0.7;
    font-size: 0.8rem;
}

.tyre-header-mileage-tab-inner .fa-road {
    color: #cbd5e1;
}

/* Mileage Modal */
.mileage-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mileage-modal-overlay.show {
    display: flex;
}

.mileage-modal {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.mileage-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid #334155;
    background-color: #1e293b;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.mileage-modal-thumb {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    flex-shrink: 0;
    padding: 4px;
}

.mileage-modal-thumb-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
    font-size: 1.5rem;
}

.mileage-modal-header-info {
    flex: 1;
    min-width: 0;
}

.mileage-modal-header-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.mileage-modal-title {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.mileage-modal-title-km {
    font-size: 0.85rem;
    font-weight: 400;
    color: #94a3b8;
}

.mileage-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border: none;
    background: none;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.mileage-modal-close:hover {
    color: #ffffff;
    background: #334155;
}

.mileage-modal-body {
    padding: 20px;
}

.mileage-modal-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mileage-modal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mileage-modal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.mileage-modal-section-title i {
    font-size: 1rem;
}

.mileage-modal-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.mileage-modal-subtext {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.mileage-modal-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.mileage-modal-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.8rem;
}

.mileage-modal-list li:last-child {
    border-bottom: none;
}

.mileage-modal-list a {
    color: #0d6efd;
    text-decoration: none;
}

.mileage-modal-list a:hover {
    text-decoration: underline;
}

.mileage-modal-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #92400e;
}

.mileage-modal-warning i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Compact rating grid */
.tyre-rating-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tyre-rating-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.tyre-rating-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tyre-rating-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tyre-rating-bar {
    flex: 1;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.tyre-rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a5fb4, #3b82f6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Color-coded rating bars */
.tyre-rating-bar-fill.rating-excellent {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.3);
}

.tyre-rating-bar-fill.rating-good {
    background: linear-gradient(90deg, #ca8a04, #eab308);
    box-shadow: 0 1px 2px rgba(202, 138, 4, 0.3);
}

.tyre-rating-bar-fill.rating-poor {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.3);
}

.tyre-rating-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    min-width: 32px;
    text-align: right;
}

/* Color-coded rating values */
.tyre-rating-value.rating-excellent { color: #16a34a; }
.tyre-rating-value.rating-good { color: #ca8a04; }
.tyre-rating-value.rating-poor { color: #dc2626; }

/* Stats bar */
.tyre-header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: linear-gradient(to right, #f1f5f9, #e2e8f0);
    border-top: 2px solid #cbd5e1;
}

.tyre-header-stat {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
    font-size: 0.85rem;
    color: #334155;
}

.tyre-header-stat-value {
    font-weight: 700;
    color: #0f172a;
}

.tyre-header-stat-divider {
    width: 2px;
    height: 20px;
    background-color: #94a3b8;
    border-radius: 1px;
}

/* Footer section (test callout / mileage) */
.tyre-header-footer {
    padding: 12px 16px;
    border-top: 1px solid #e7ebf0;
    background-color: #ffffff;
}

.tyre-header-callout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: #d1e7dd;
    border-radius: 8px;
    color: #0f5132;
    font-size: 0.9rem;
}

.tyre-header-callout-icon {
    flex-shrink: 0;
}

.tyre-header-callout a {
    color: #0a3622;
    font-weight: 600;
}

.tyre-header-callout a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tyre-header-main {
        flex-direction: column;
    }

    /* Put title/info section before image on mobile */
    .tyre-header-info {
        order: 1;
    }

    .tyre-header-hero {
        order: 2;
        flex: none;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .tyre-header-hero-img {
        max-width: 140px;
        max-height: 120px;
    }

    .tyre-header-mileage-tab {
        justify-content: stretch;
    }

    .tyre-header-mileage-tab-inner {
        flex: 1;
        justify-content: center;
        border-left: none;
        border-top: 3px solid var(--tyre-reviews-blue);
        border-top-left-radius: 0;
    }

    .tyre-rating-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tyre-header-stats {
        justify-content: center;
    }

    .tyre-header-stat-divider {
        display: none;
    }

    .tyre-header-title {
        font-size: 1.2rem;
    }
}

/* Award Badge Responsive Sizing */
.award-badge-container {
    display: inline-block;
    width: 100%;
}

/* Mobile: Full width (default) */
.award-badge-container svg {
    width: 100%;
    height: auto;
}

/* Desktop: Half width */
@media (min-width: 768px) {
    .award-Okbadge-container {
        width: 50%;
    }
}

/* SVG Badge Object */
.svg-badge-object {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .svg-badge-object {
        width: 60%;
    }
}

/* Significance Visual Indicators */
.significance-indicator {
    vertical-align: middle;
    margin-left: 0.5rem;
}

.circles-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.circles-indicator .fa-circle,
.circles-indicator .fa-circle-o {
    font-size: 0.6em;
}

.significance-progress {
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.significance-progress .progress-bar {
    transition: width 0.3s ease;
}

body {
	margin: 0;
	padding: 0;
	color: #2a2a2a;
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 14px;
}

h1 {
	font-size: 1.6em;
	font-weight: bold;
	/* margin: 16px 0pt 6px; */
	line-height: 1.4em;
	display: block;
	padding: 8px 10px;
	font-weight: 600;
	background: #f8f9fa;
	border-left: 3px solid #337ab7;
    border-bottom: 1px solid #e1e1e1;
	border-radius: 4px;
}

h2 {
	font-size: 1.55em;
	font-weight: bold;
	line-height:1.4em;
}

h3 {
	font-size: 1.25em;
	margin: 8px 0pt 3px;
	font-weight: bold;
}

h4 {
	font-size: 1.1em;
	font-weight: bold;
}

code, pre {
	font-size: 1.1em;
}

input,select,button {
	vertical-align: middle;
}

input,select {
	/*border: 1px solid #333;*/
}

img {
    max-width: 100%;
}



label i {
	font-size: 0.8em;
}

label.error { 
	float: right; color: red; font-weight: bold; border: 2px solid red; vertical-align: top;
}

.clear {
	clear:both;
}

a:link, a:visited{
	color: #003366;
	text-decoration: none;
}

a:hover{
	color: #003366;
	text-decoration: underline;
}

a.img, a.img, a.img {
	border: 0 none;
}

.tr-logo {
		margin-top: 12px;
}


/* Layout
==================================================================*/

.breadcrumb {
	margin: 0px;
	background-color: #FFFFFF;
	padding: 8px 1px;
}

#whitebg{
	background: #fff;
	margin-top: 130px; /* Wrap 76px - Non Wrap 2px */
	border-color:#B7B7B7;
	border-style:solid;
	border-width: 1px 1px;
	border-radius: 5px;
}

#container {
	margin-top: 10px;
	padding: 0 10px 0 10px;
	line-height: 1.6em;
}

.left-content{
	padding: 0 10px 0 5px;
	line-height: 1.6em;
	background: #fff;
}

.leaderboard-top {
	margin-left: -15px;
	display:flex;
	justify-content:center;
	align-items:center;
	height:90px;
}

.leaderboard-top img {
	max-width:100%;
}

.right-column, .left-content {
	padding: 10px;
}

.right-column h2 {
	border-bottom: 1px dotted #e1e1e1;
	line-height: 1.1em;
}

.review-content {
	padding: 5px 10px 0 5px;
}

.review-content tr {
	line-height: 2.6em;
}

.grid {
	width: 100%;
	
}

.grid th {
	border-bottom: 1px solid #999999;
	align: center;
	padding: 5px;
}

.grid td {
	border-bottom: 1px solid #dddddd;
	padding: 5px;
}




/* HEADER
==================================================================*/

.page-header {
	background:#000;
	margin:0;
	padding:0;
	border:none;
	height:95px;
}

.page-header .container {
	/*max-width:974px;*/
}

#ajaxsearch {
	max-width:345px;
}

.navbar {
	color: white;
}


.navbar-brand:link, .navbar-brand:visited {
	color: white;
	text-decoration: none;
}

a.nav-link:link, a.nav-link:visited {
    color: white;
    text-decoration: none;
}

a.nav-link:hover {
	color: #A3A3A3;
}

.dropdown-item {
	font-size: smaller;
}




/* review page styling
==================================================================*/

#reviewheader {
	clear: both;
}

#tyrecontainer, #tirecontainer {
	border-top: 1px dotted #DFDFDF;
}

#textcontainer{
	clear: both;
}

.articleimage {
	border: 1px solid #CCCCCC; 
	padding:5px; 
	margin: 3px;
	align: right;
}


/* MAINCONTENT
==================================================================*/

.container {
	position:relative;
	max-width: 1240px;
}

/* AD Wrap Links */
.clickmap {
	position:relative;
	width:auto;
	overflow:visible;
	z-index:0;
}
.clickmap-left, .clickmap-right {
	margin-top: -50px;
	position:absolute;
	top:0;
	z-index:1;
}
.clickmap-left {
	left:0;
}
.clickmap-right {
	right:0
}
#clickmap-left-link, #clickmap-right-link {
	display:block;
	width:250px;
	height:1000px;
	overflow:hidden;
}

#clickmap-center-link {
	margin-top: -50px;
	border:none;
	display:block;
	height:76px;
	left:0;
	outline: 0;
	position:absolute;
	top:0;
	width:100%;
}
/* Homepage: hero pushes content down so the skin is visible further — extend clickmap */
.frontpage-body #clickmap-left-link,
.frontpage-body #clickmap-right-link {
	height: 1600px;
}
/* END - AD Wrap Links */

.thumbnail{
	float: left;
	padding: 5px;
	margin-right: 5px;
	border: 1px solid #ECECEC;
}

.imgborder {
	border: 1px solid #DFDFDF;
	float: right;
	clear: both;
}

/* Override Bootstrap primary button color to site brand blue */
.btn-primary,
a.btn-primary:link,
a.btn-primary:visited {
  background-color: #337ab7;
  border-color: #337ab7;
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active {
  background-color: #3cb0fd;
  border-color: #3cb0fd;
  color: #ffffff;
}

/*.btn {
  color: #ffffff;
  background: #337ab7;
  padding: 4px 7px 4px 8px;
  text-decoration: none;
  font-weight: normal;
  font-size: 12px;
  max-width: 100%;
}*/

.btn-visit-shop {
  display: inline-block;
  padding: 8px 18px;
  background-color: var(--tyre-reviews-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn-visit-shop:hover,
.btn-visit-shop:focus {
  background-color: var(--tyre-reviews-blue-dark);
  color: #fff;
  text-decoration: none;
}

.searchbtn {
  text-decoration: none;
  font-weight: normal;
  border-radius: 0px;
}

.searchbtn:hover {
  text-decoration: none;
}

.progress {
	margin-bottom: 10px;
	background-color: #AFDCED;
}

.progress-bar {
	text-align: left;
	padding-left: 5px;
}


.tab-content {
	margin-top: 6px;
}


/* For the /TYRE section 
==================================================================*/

.brand-grid h3 {
	font-weight: bold;
}

.brand-grid ul {
	padding: 0pt 0pt 7px 3px;
	list-style-type: none;
}




/* RIGHT HAND LINKS
==================================================================*/

#links {
	padding: 13px 10px 0 0;
	line-height: 1.5em;
	background: #FFFFFF;
    font-size: 0.9em;
}



#links img {
	margin: 3px 6px 3px 0;
	vertical-align: middle;
}

#links h1 {
	font-size: 1.3em;
	margin-top: 0;
	margin-bottom: 8px;
	padding: 8px 10px;
	background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
	border-left: 4px solid #337ab7;
	border-bottom: 1px solid #e1e1e1;
	border-radius: 4px;
}

/* Reduce spacing for first ul after h1 (Best Tyre Tests section) */
#links h1 + ul {
	padding: 0 0 8px 0;
	margin-bottom: 8px;
}

#links h1 + ul li {
	margin-bottom: 2px;
}

#links h1 + ul li a {
	padding: 4px 8px;
	font-size: 0.95em;
}

#links h2 {
	display: block;
	padding: 8px 10px;
	font-weight: 600;
	font-size: 1.1em;
	background: #f8f9fa;
	border-left: 3px solid #6c757d;
	border-radius: 4px;
}

/* Season-specific border colors */
#links h2.season-all-season {
	border-left-color: #337ab7; /* Blue for all-season */
}

#links h2.season-winter {
	border-left-color: #87ceeb; /* Ice blue for winter */
}

#links h2.season-summer {
	border-left-color: #ffb347; /* Yellow-orange for summer */
}

#links h2.season-all-weather {
	border-left-color: #28a745; /* Green for all-weather */
}

#links ul {
	padding: 0 0 12px 0;
	list-style-type: none;
	margin-bottom: 0;
}

#links ul li {
	margin-bottom: 4px;
}

#links ul li a {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 100%;
	padding: 6px 10px;
	border-radius: 6px;
	transition: all 0.2s ease;
	color: #2a2a2a;
	text-decoration: none;
}

#links ul li a:hover {
	background: #f0f0f0;
	padding-left: 14px;
	color: #337ab7;
	text-decoration: none;
}


#previouspage {
	float:left;
	font-size: 1.6em;
	font-weight: bold;
}
#nextpage {
	float:right;
	font-size: 1.6em;
	font-weight: bold;
}


/* ARTICLE/LONGTERM PAGE
==================================================================*/

.article-footer {
	margin-top: 10px;
	background: #eee;
}

#resulttable {
	width:100%;
	border-collapse:collapse;
}
#resulttable td {
	font-size: 1em;
	border-bottom:1px solid #CCC;
	padding:3px 7px 2px 7px;
	line-height: 2em;
}

#resulttable th {
	font-size: 1.2em;
        font-weight: bold;
	border-bottom:1px solid #BBB;
	padding:3px 7px 2px 7px;
	line-height: 2em;
}

#resulttable tr.alt td {
	color:#000000;
	background-color:#EEE;
}
#resulttable td.top {
	font-weight: bold;
}

#resulttable td.head {
	font-weight: bold;
}

#resulttable td.comment {
	font-style: italic;
	font-size: 0.8em
}

.article a {
	font-weight: bold;
}

.summary-table {
	font-size: 0.8em;
	background-color: #eee;
	border: 1px solid #ccc;
	margin: 2px;
}

.Summer-title {
	background-color: #f7f0ce;
	padding: 8px;
	margin-left: -8px;
}

.All-Season-title {
	background-color: #b5b5b5;
	padding: 8px;
	margin-left: -8px;
}

.Winter-title {
	background-color: #c6e8fa;
	padding: 8px;
	margin-left: -8px;
}

.All-Weather-title {
	background-color: #dbdbdb;
	padding: 8px;
	margin-left: -8px;
}

.test-positive {
    clear:both;
    background: #c4ffc3;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #CCC;
}
.test-negative {
    clear:both;
    background: #ffd2f1;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #CCC;
}
.test-overall {
    clear:both;
    background: #f5f5f5;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #CCC;
}
.test-other {
    clear:both;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #CCC;
}

.article img {
	display: block;
    max-width: 100%;
    height: auto;
	border: 1px solid var(--bs-border-color);
	border-radius: 8px;
	padding: 0px; /* disabling the bootstrap 0.25rem padding for the border */
	
}    


/* FOOTER 
==================================================================*/

.footer-container {
	/*max-width:974px;*/
	padding:0;
}
#footer {
	clear: both;
	float: none;
	height: 100%;
	margin: 0;
	padding: 0;
	background: #292929;
	/* border-top: 20px solid #fff; */
	font-size: 0.9em;
	text-align: left;
	color: #fff;
}
#footer .row {
	margin:0;
}
#footer .col-sm-4 {
	padding:20px 0 20px 20px;
}
#footer h2 {
	margin: 0 0 10px 0;
	padding: 0 8px;
	font-size: 16px;
	color: #fff;
}
#footer h2 span {
	color: #fff;
	font-style: italic;
}
#footer ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	border-top: 1px solid #555;
}
#footer ul li {
	line-height: 26px;
	border-bottom: 1px solid #555;
}
#footer ul li a {
	display: block;
	padding: 0 10px;
	color: #fff;
	text-decoration: none;
}
#footer ul li a:hover {
	background: #191919;
}

/* tyre searcher stuff */

/* TYRE PAGE
==================================================================*/

#tyreresults, #tireresults {
	width:100%;
	border-collapse:collapse;
}
#tyreresults td, #tireresults td, #tyreresults th, #tireresults th {
	border-bottom:1px solid #CCC;
	padding:3px 7px 2px 7px;
}
#tyreresults th, #tireresults th {
	text-align:left;
	padding-top:5px;
	padding-bottom:4px;
	background-color:#666;
	color:#ffffff;
}
#tyreresults tr.alt td, #tireresults tr.alt td {
	color:#000000;
	background-color:#EEE;
}
#tyreresults td.price, #tireresults td.price {
	font-size: 1.3em;
	font-weight: bold;
}

/* price stuff */

.price-size-link {
	font-size: 1.2em;
	font-weight: bold;	
}

.price-range {
	font-size: 1.1em;
	font-weight: bold;
}

.data-breadcrumb {
    font-size: 0.9em;
    list-style-type: none;
}



/* RESPONSIVE CORRECTIONS xxx
==================================================================*/

@media screen and (min-width: 1460px) {

	#clickmap-left-link, #clickmap-right-link {
		width:1000px;
	}

}

@media screen and (max-width:991px) {
	
	.form-group {
		width:auto!important;
	}
	.left-content, .right-column {
		width:100%;
		float:left!important;
		padding: 5px;
	}
	.right-column {
		display:none;
	}

	#links {
		width:100%!important;
		padding: 5px;
	}

	.navbar-nav {
		max-height: 75vh; /* You can adjust the height */
		overflow-y: auto;
	  }
}


@media screen and (max-width:768px) {
	
	#whitebg {
		margin-top: 35%; /* WRAP ONLY */
	}
	
	/* Responsive AD Wrap Links (Mobile) */
	.clickmap-left, .clickmap-right {
		display:none;
	}
	
	input {
		/*width:50%!important; this broke the search button on the template, not sure why */
		max-width:none;
	}
	.page-header {
		height:auto;
	}
	.form-group {
		width:100%;
		text-align:center;
	}
	.navbar-default .navbar-toggle .icon-bar {
		background-color:#fff;
	}
	.navbar {
		width:100%;
	}
	.navbar-nav {
		top:0;
	}
	.navbar-nav li {
		border-right:none;
		width:100%;
	}
	.navbar-collapse {
		margin-top:9px;
		margin-bottom:15px;
		box-shadow:none;
               
	}
	.collapse.navbar-collapse .collapse-in, .collapsing {
		padding:0;
	}
        
	.logo {
		float:none!important;
		margin:0 auto;
	}
	
	.tr-logo {
		margin-top: 0px;
	}
	
	.leaderboard-top {
		margin-left: -15px;
		display:flex;
		justify-content:center;
		align-items:center;
		height:auto;
		min-height:0;
	}
	
	li {
		padding: 10px;
	}
	
}


@media screen and (max-width:420px) {
		

		#tyreresults td, #tireresults td {
			padding: 8px 0;
		}
		#tyreresults td:nth-child(1) {
			width:50%!important;
		}
		#tyreresults td:nth-child(2) {
			width:100%!important;
			border-bottom:none!important;
		}
		#tyreresults td:nth-child(2), #tyreresults td:nth-child(3) {
			display:block;
		}
		#tyreresults td:nth-child(3) {
			border-top:none!important;
		}
		#tyreresults.table > tbody > tr > td, #tyreresults.table > tbody > tr > th {
			border-top:none!important;
		}
		
}




.star-ratings {
  unicode-bidi: bidi-override;
  color: #c5c5c5;
  font-size: 20px;
  /* margin: 1em auto; */
  position: relative;
  padding: 0;
}

.star-ratings-top {
    color: gold;
    padding: 0;
    position: absolute;
    z-index: 1;
    display:block;
    left: 0px;
    overflow: hidden;
}
.star-ratings-bottom { z-index: 0; }


/*------------------------------------
 - COLOR primary
 ------------------------------------*/
.alert-primary {
  color: #183a57;
  background-color: #c6dcef;
  border-color: #b6d2ea;
}
.alert-primary hr {
  border-top-color: #a2c6e5;
}
.alert-primary .alert-link {
  color: #0d1f2f;
}
.badge-primary {
  color: #fff;
  background-color: #337ab7;
}
.badge-primary[href]:hover, .badge-primary[href]:focus {
  color: #fff;
  background-color: #275f8f;
}
.bg-primary {
  background-color: #337ab7 !important;
}
a.bg-primary:hover, a.bg-primary:focus, button.bg-primary:hover, button.bg-primary:focus {
  background-color: #275f8f !important;
}
.border-primary {
  border-color: #337ab7 !important;
}
.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #337ab7;
}
.btn-primary:hover {
  color: #fff;
  background-color: #2b679b;
  border-color: #275f8f;
}
.btn-primary:focus, .btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(51, 122, 183, 0.5);
}
.btn-primary.disabled, .btn-primary:disabled {
  color: #fff;
  background-color: #337ab7;
  border-color: #337ab7;
}
.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #275f8f;
  border-color: #245783;
}
.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus, .show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(51, 122, 183, 0.5);
}
.btn-outline-primary {
  color: #337ab7;
  background-color: transparent;
  border-color: #337ab7;
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: #337ab7;
  border-color: #337ab7;
}
.btn-outline-primary:focus, .btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(51, 122, 183, 0.5);
}
.btn-outline-primary.disabled, .btn-outline-primary:disabled {
  color: #337ab7;
  background-color: transparent;
}
.btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active, .show > .btn-outline-primary.dropdown-toggle {
  color: #fff;
  background-color: #337ab7;
  border-color: #337ab7;
}
.btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(51, 122, 183, 0.5);
}
.list-group-item-primary {
  color: #183a57;
  background-color: #b6d2ea;
}
.list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus {
  color: #183a57;
  background-color: #a2c6e5;
}
.list-group-item-primary.list-group-item-action.active {
  color: #fff;
  background-color: #183a57;
  border-color: #183a57;
}
.table-primary, .table-primary > th, .table-primary > td {
  background-color: #b6d2ea;
}
.table-hover .table-primary:hover {
  background-color: #a2c6e5;
}
.table-hover .table-primary:hover > td, .table-hover .table-primary:hover > th {
  background-color: #a2c6e5;
}
.text-primary {
  color: #337ab7 !important;
}
a.text-primary:hover, a.text-primary:focus {
  color: #275f8f !important;
}

.progress-bar {
	background-color: #337ab7;
}
.nav-pills .nav-link.active {
  background-color: #337ab7;
}
.nav-link {
	color: #003366;
}

.icon-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	margin: 0 auto;
	border-radius: 50%;
	background-color: #f8f9fa;
  }
  
  .test-results-card {
	border: none;
  }
  
  .test-results-card .card-title {
	font-weight: bold;
	margin-bottom: 0.25rem;
  }
  
  .test-results-card .fs-5 {
	font-size: 1.1rem;
	font-weight: bold;
  }

  .card-link:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.filters {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0f0f0;
}

.test-card {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
}

.tyre-reviews-test {
    border-color: #ff0000;
}

.pagination {
    margin-top: 20px;
}

.pagination a {
    padding: 5px 10px;
    margin-right: 5px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
}

.filters {
    margin-bottom: 20px;
}
.filter-group {
    margin-bottom: 10px;
}
.filter-group a {
    margin-right: 10px;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.filter-group a.active {
    background-color: #007bff;
    color: white;
}

.custom-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.custom-btn {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.custom-btn:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: #495057;
}

.custom-btn-active {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.custom-btn-active:hover {
    background-color: #0056b3;
    color: #ffffff;
}

.nav-tabs .nav-link {
	color: #6c757d!important;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 0.5rem 1rem;
}

.nav-tabs .nav-link:hover {
	color: #000!important;
	
}

.nav-tabs .nav-link.active {
	color: #000!important;
	background: none;
	border: none;
	border-bottom: 2px solid #000;
}

.nav-tabs {
	border-bottom: 1px solid #dee2e6;
	margin-bottom: 15px;
}

.custom-nav-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
}

.custom-nav-pills li {
    padding: 0px;
}

/* Custom Navigation Pills Styling */
.custom-nav-pills .nav-link {
    background-color: #e2e6ea; /* Default non-active background color */
    color: #000!important;                /* Default text color */
    border: 1px solid #dee2e6; /* Border around each pill */
    border-radius: 5px;    /* Slightly rounded corners */
    margin-right: 0;          /* Spacing between pills */
    padding: 8px 12px;         /* Padding for click area */
    transition: background-color 0.2s ease, color 0.2s ease;
	white-space: normal; /* Allow text wrapping */
    text-align: center; /* Center align text inside the buttons */
    min-width: 0; /* Prevent unnecessary width */
    font-size: 0.9rem;
}

.custom-nav-pills .nav-link.active {
    color: #fff!important;                /* White text for active tab */
}

.custom-nav-pills .nav-link.active:hover {
    background-color: #0c48a1; /* Bootstrap primary color for active tab */
    color: #fff!important;                /* White text for active tab */
    border-color: #0d6efd;      /* Matching border color */
}

.custom-nav-pills .nav-link:hover {
    background-color: #cdd4d9; /* Slightly darker background on hover */
    color: #000;                /* Text color remains black on hover */
}


@media (max-width: 576px) {
    .breadcrumb-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 250px; /* Adjust as needed */
        display: inline-block;
    }
}




.sticky-table {
	position: relative;
}
.sticky-top {
	position: sticky;
	top: 0;
	z-index: 5;
}
.sticky-left {
	position: sticky;
	left: 0;
	z-index: 4;
}
/* Results grid styles moved to /public/css/results-grid.css */

/* Enable smooth transitions for the navbar */
.navbar.fixed-top.smart-scroll {
  transition: transform 0.3s ease-in-out;
  position: fixed;
  width: 100%;
}

/* Class applied when scrolling down - moves the navbar off-screen */
.navbar.fixed-top.scrolled-down {
  transform: translateY(-100%);
}

/* Class applied when scrolling up - brings the navbar back */
.navbar.fixed-top.scrolled-up {
  transform: translateY(0);
}

/* Optional: Add a slight shadow to make the navbar stand out when it reappears */
.navbar.fixed-top.scrolled-up {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Article image handling */
.article-image-block {
    max-width: 450px;
    margin: 25px auto;
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.article-image-block img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-image-caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

/* For side-by-side content */
.content-with-image {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    align-items: flex-start;
}

.content-with-image .image-side {
    flex: 0 0 300px;
}

.content-with-image .text-side {
    flex: 1;
}

@media (max-width: 768px) {
    .content-with-image {
        flex-direction: column;
    }
    
    .content-with-image .image-side {
        flex: none;
        max-width: 100%;
    }
}

/* Test Results Page Styles
================================================================== */

/* Performance Overview Cards */
.test-results-overview .card {
    transition: all 0.3s ease;
}

.test-results-overview .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Performance Score Display */
.performance-score {
    position: relative;
    display: inline-block;
}

.performance-score .score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto;
}

.performance-score.score-high .score-circle {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.performance-score.score-medium .score-circle {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.performance-score.score-low .score-circle {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

/* AI Summary Strengths/Weaknesses Cards */
.strength-card, .weakness-card {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.strength-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #28a745;
}

.weakness-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffc107;
}

.strength-card:hover, .weakness-card:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Significance badges */
.badge-significance {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Test Result Cards */
.test-result-card {
    transition: all 0.3s ease;
    height: 100%;
}

.test-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.test-result-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.test-result-card .btn {
    margin-top: auto;
}

/* Performance Percentile Bar */
.performance-percentile {
    margin: 0.5rem 0;
}

.performance-percentile .progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.performance-percentile .progress-bar {
    transition: width 0.8s ease;
}

/* Award badges in test cards */
.award-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

/* Test Stats Grid */
.test-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.test-stat-item {
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.test-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    display: block;
}

.test-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Mobile filter toggle bar */
.mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f0f1f3;
    border: 1px solid #d5d8dc;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-filter-toggle:hover,
.mobile-filter-toggle:focus {
    background: #e4e6ea;
    border-color: #bcc0c7;
}

.mobile-filter-toggle[aria-expanded="true"] {
    background: #e4e6ea;
    border-color: var(--tyre-reviews-blue);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.mobile-filter-toggle__left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mobile-filter-toggle__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
}

.mobile-filter-toggle__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-filter-toggle[aria-expanded="true"] .mobile-filter-toggle__hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-filter-toggle[aria-expanded="true"] .mobile-filter-toggle__hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-filter-toggle[aria-expanded="true"] .mobile-filter-toggle__hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-filter-toggle .badge {
    background-color: var(--tyre-reviews-blue) !important;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25em 0.55em;
    border-radius: 1rem;
}

.mobile-filter-toggle__chevron {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: #666;
}

.mobile-filter-toggle[aria-expanded="true"] .mobile-filter-toggle__chevron {
    transform: rotate(180deg);
}

.mobile-filter-toggle + .collapse .card,
.mobile-filter-toggle + .collapsing .card {
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-color: #d5d8dc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .test-results-overview .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .performance-score .score-circle {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .test-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .strength-card, .weakness-card {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .test-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .test-result-card .row.text-center .col-4 {
        margin-bottom: 0.5rem;
    }
}

/* Enhanced hover effects for interactive elements */
.btn-test-results:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* Loading states for performance data */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print styles for test results */
@media print {
    .test-results-page .btn,
    .test-results-page .breadcrumb,
    .test-results-page .card-hover-effects {
        display: none;
    }
    
    .test-result-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   Tyre Category Navigation and Listing Enhancements
   ========================================================================== */

/* Sticky Navigation */
.tyre-category-nav {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tyre-category-nav.scrolled {
    padding: 0.5rem 0 !important;
}

/* Vehicle and Season Navigation Pills */
.vehicle-nav .nav-link,
.season-nav .nav-link {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.vehicle-nav .nav-link:hover,
.season-nav .nav-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.vehicle-nav .nav-link.active,
.season-nav .nav-link.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.season-filter.active {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Vehicle Section Styling */
.vehicle-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px; /* Account for sticky nav height */
}

.vehicle-header h2 {
    color: #212529;
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Season Section Styling */
.season-section {
    margin-bottom: 2rem;
    scroll-margin-top: 120px;
}

.season-title {
    color: #495057;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-bottom: 1rem;
}

.tyre-type-heading {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

/* Tyre Card Styling */
.tyre-item {
    transition: transform 0.2s ease;
}

.tyre-item:hover {
    transform: translateY(-2px);
}

.tyre-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tyre-card:hover {
    border-color: #007bff !important;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.tyre-thumbnail {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: white;
    padding: 2px;
}

.tyre-link {
    color: #212529 !important;
    font-size: 0.95rem;
}

.tyre-link:hover {
    color: #007bff !important;
}

/* Enhanced Badge Styling */
.badges .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.badges .badge.bg-primary {
    background-color: #007bff !important;
}

.badges .badge.bg-success {
    background-color: #28a745 !important;
}

.badges .badge:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Tyre Grid Layout */
.tyre-grid {
    margin-top: 1rem;
}

.tyre-list {
    list-style: none;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tyre-category-nav .row {
        flex-direction: column;
    }
    
    .tyre-category-nav .col-md-4,
    .tyre-category-nav .col-md-8 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .vehicle-nav .nav-link,
    .season-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tyre-card {
        padding: 0.75rem !important;
    }
    
    .tyre-thumbnail {
        width: 40px !important;
        height: 40px !important;
    }
    
    .vehicle-header h2 {
        font-size: 1.5rem;
    }
    
    .season-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .tyre-category-nav {
        padding: 1rem 0 !important;
    }
    
    .badges {
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
    
    .tyre-info .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Dynamic Content */
.season-section.loading {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Focus States for Accessibility */
.vehicle-nav .nav-link:focus,
.season-nav .nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    outline: none;
}

/* Language Selector Styles */
.language-selector {
    margin: 10px 0;
}

.language-selector-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.language-selector-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.language-selector-item:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
}

.language-selector-item.current-language {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    font-weight: bold;
}

.language-selector-item.current-language:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.language-flag {
    width: 16px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid #ccc;
}

.language-name {
    font-size: 11px;
    line-height: 1.2;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .language-selector-content {
        justify-content: center;
    }
    
    .language-selector-item {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .language-flag {
        width: 14px;
        height: 10px;
        margin-right: 4px;
    }
}

/* High contrast accessibility support */
@media (prefers-contrast: high) {
    .language-selector-item {
        border-width: 2px;
        border-color: #000;
    }
    
    .language-selector-item.current-language {
        background-color: #000;
        border-color: #000;
    }
}

/* Focus styles for keyboard navigation */
.language-selector-item:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .language-selector-item {
        transition: none;
    }
}

/* Homepage Feature Cards and Quick Browse
================================================================== */

/* Hover effect for quick browse cards */
.hover-shadow {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-color: #dee2e6;
}

/* Ensure proper spacing on mobile for feature cards */
@media (max-width: 767px) {
    .row.g-4 {
        gap: 1rem;
    }
}

/* Tools Index Styling
==================================================================*/
.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.tool-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #337ab7;
}

.tool-icon-wrapper {
    min-width: 60px;
    text-align: center;
}

.tool-info {
    flex-grow: 1;
}

.tool-arrow {
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 576px) {
    .tool-card .card-body {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .tool-icon-wrapper {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .tool-arrow {
        display: none;
    }
}

/* Test Summary Card (publication box / {summary-2})
================================================================== */

/* Mobile compact layout */
.test-summary-card__compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    text-align: center;
}

.test-summary-card .test-summary-card__compact-logo {
    height: 36px;
    width: auto;
    max-width: 120px;
    flex-shrink: 0;
    border: none;
    border-radius: 0;
}

.test-summary-card .img-fluid {
    max-height: 60px;
    max-width: 200px;
    border: none;
    border-radius: 0;
}

.test-summary-card__compact-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    font-size: 0.82rem;
}

.test-summary-card__stat {
    white-space: nowrap;
}

.test-summary-card__compact-actions {
    margin-top: 2px;
}

.test-summary-card__image-credit {
    margin-top: 8px;
    font-size: 0.8em;
    color: #999;
    font-style: italic;
}

/* Direct-sold ad banners */
.direct-ad-inpage { text-align: center; margin: 15px 0; }
.direct-ad-inpage img, .leaderboard-top picture img { max-width: 100%; height: auto; }
.direct-ad-label { display: block; color: #999; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }

