/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --color-primary: #8B0000;
    /* Burgundy Red for SUS */
    --color-primary-ev: #001F3F;
    /* Navy Blue for EV */
    --color-secondary: #1a1a1a;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-border: #e0e0e0;
    --color-success: #28a745;
    --color-danger: #dc3545;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* EV Theme */
body.ev-theme {
    --color-primary: var(--color-primary-ev);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

/* ===== Header / Navigation ===== */
.header {
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.logo-text {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

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

.nav-menu a {
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    display: block;
}

.nav-menu>li>a {
    cursor: pointer;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--color-primary);
    color: white;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 4px;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 220px;
    padding: var(--spacing-xs) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1001;
    margin-top: var(--spacing-xs);
    border: 1px solid var(--color-border);
}

.nav-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu li {
    margin: 0;
}

.nav-submenu a {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0;
    font-weight: var(--font-weight-regular);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-submenu a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.nav-submenu li:first-child a {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.nav-submenu li:last-child a {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ===== Main Content ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    min-height: calc(100vh - 200px);
}

/* ===== Hero Section ===== */
.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(139, 0, 0, 0.7) 100%);
    border-radius: var(--radius-xl);
    color: white;
    box-shadow: var(--shadow-lg);
}

.ev-theme .hero-section {
    background: linear-gradient(135deg, var(--color-primary-ev) 0%, rgba(0, 31, 63, 0.7) 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-weight-regular);
    opacity: 0.95;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== Category Filter ===== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    justify-content: center;
}

.category-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
    cursor: pointer;
}

.category-btn:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ===== Segmented Control ===== */
.segmented-control {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    gap: 0;
    background-color: var(--color-bg-light);
    padding: 4px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.segment-btn {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: transparent;
    border: none;
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    color: var(--color-text-light);
}

.segment-btn.active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.segment-btn:hover:not(.active) {
    background-color: rgba(139, 0, 0, 0.1);
}

/* ===== News Grid ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.news-content {
    padding: var(--spacing-md);
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.news-subtitle {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.news-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ===== News Details Page ===== */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.news-detail-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-md);
}

.news-detail-image {
    width: 100%;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content {
    margin-bottom: var(--spacing-xl);
}

.news-text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.news-text-content p {
    margin-bottom: var(--spacing-md);
}

/* Gallery Section */
.news-gallery {
    margin-bottom: var(--spacing-xl);
}

.gallery-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* VR Panorama Section */
.vr-section,
.panorama-section {
    margin-bottom: var(--spacing-xl);
}

.vr-title,
.panorama-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.vr-grid,
.panorama-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.vr-item iframe,
.panorama-item img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.panorama-item img {
    display: block;
    height: auto;
}

/* Back to News Button */
.back-to-news {
    text-align: center;
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--color-border);
}

/* ===== Article Tags Section ===== */
.article-tags-section {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
    border-top: 2px solid var(--color-border);
}

.article-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.article-tags-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: white;
    background-color: var(--color-secondary);
    padding: 5px 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.article-tag-pill {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text);
    border: 2px solid var(--color-border);
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.article-tag-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(139, 0, 0, 0.05);
}


/* ===== Brands Grid ===== */
.brands-container {
    transition: opacity var(--transition-base);
}

.brands-container.hidden {
    display: none;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.brand-card {
    background-color: var(--color-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.brand-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

/* ===== Models Grid ===== */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.model-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.model-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.model-image {
    width: 100%;
    height: 220px;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.model-card:hover .model-image img {
    transform: scale(1.08);
}

.model-info {
    padding: var(--spacing-md);
}

.model-name {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.model-package {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.model-price {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-top: var(--spacing-sm);
}

/* ===== Model Details ===== */
.model-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.model-header-image {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.model-header-image img {
    width: 100%;
    height: auto;
}

.model-header-info {
    padding: var(--spacing-lg);
}

.model-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    line-height: 1.2;
}

.model-package-label {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.model-price-large {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-top: var(--spacing-md);
}

/* ===== Detail Toggle ===== */
.detail-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-sm);
}

.toggle-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle-btn:hover {
    border-color: var(--color-primary);
}

.toggle-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ===== Details Grid ===== */
.details-container {
    transition: opacity var(--transition-base);
}

.details-container.hidden {
    display: none;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.detail-item {
    background-color: var(--color-bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.detail-label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* ===== Error Pages ===== */
.error-page {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
}

.error-title {
    font-size: 6rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.error-subtitle {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.error-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
}

.error-detail {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-family: monospace;
    background-color: var(--color-bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
    display: inline-block;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-primary);
    color: white;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #6b0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-secondary);
    color: white;
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: white;
}

/* ===== Test Drive Page ===== */
.testdrive-page {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-sm);
}

.testdrive-title {
    font-size: 1.8rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.02em;
}

.testdrive-subtitle {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.testdrive-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.testdrive-field {
    position: relative;
}

.testdrive-input {
    width: 100%;
    height: 56px;
    border: 2px solid #e8b4b8;
    border-radius: 60px;
    background-color: #fce4e4;
    color: var(--color-primary);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    text-align: center;
    padding: 0 var(--spacing-lg);
    outline: none;
    transition: all var(--transition-base);
    box-shadow: none;
}

.testdrive-input::placeholder {
    color: var(--color-primary);
    opacity: 0.7;
}

.testdrive-input:focus {
    border-color: var(--color-primary);
    background-color: #fdf0f0;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
}

/* Date field - hidden native input, styled label button */
.testdrive-date-input {
    position: absolute;
    width: 100%;
    height: 56px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    top: 0;
    left: 0;
}

.testdrive-date-label {
    display: block;
    width: 100%;
    height: 56px;
    line-height: 56px;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    border-radius: 60px;
    cursor: pointer;
    transition: background-color var(--transition-base);
    user-select: none;
    padding: 0 var(--spacing-lg);
}

.testdrive-date-label.selected {
    background-color: #6b0000;
}

.testdrive-date-label:hover {
    background-color: #6b0000;
}

/* Termin */
.testdrive-termin-section {
    text-align: center;
}

.testdrive-termin-title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.testdrive-termin-options {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.testdrive-termin-option {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-light);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: color var(--transition-base);
    user-select: none;
}

.testdrive-termin-option:hover {
    color: var(--color-primary);
}

.testdrive-termin-option.selected {
    color: var(--color-primary);
}

/* Checkbox */
.testdrive-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
}

.testdrive-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    line-height: 1.4;
}

.testdrive-checkbox {
    display: none;
}

.testdrive-checkbox-custom {
    min-width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-top: 2px;
}

.testdrive-checkbox:checked+.testdrive-checkbox-custom {
    background-color: var(--color-primary);
}

.testdrive-checkbox:checked+.testdrive-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
}

/* Submit button */
.testdrive-submit-container {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.testdrive-submit-btn {
    padding: 14px 48px;
    background-color: var(--color-primary);
    color: white;
    font-family: var(--font-family);
    font-size: 1.15rem;
    font-weight: var(--font-weight-bold);
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.testdrive-submit-btn:hover {
    background-color: #6b0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Error message */
.testdrive-error {
    background-color: #fce4e4;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-md);
}

/* Success state */
.testdrive-success {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
}

.testdrive-success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin: 0 auto var(--spacing-lg);
}

.testdrive-success h2 {
    font-size: 1.6rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.testdrive-success p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* CTA button on model-details page */
.testdrive-cta-btn {
    display: inline-block;
    margin-top: var(--spacing-lg);
    padding: 14px 36px;
    background-color: var(--color-primary);
    color: white;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    border-radius: 60px;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.testdrive-cta-btn:hover {
    background-color: #6b0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .model-header {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .news-grid,
    .brands-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .model-title {
        font-size: 1.75rem;
    }

    .model-price-large {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .category-filter {
        flex-direction: column;
    }

    .segmented-control {
        max-width: 100%;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BODY SIDE GUTTER — always 200px left + right for side banner space
══════════════════════════════════════════════════════════════════════════════ */

html,
body {
    /* reserve 200px on each side for the sticky side banner slots */
    scroll-padding-top: 80px;
}

body {
    padding-left: 200px;
    padding-right: 200px;
    box-sizing: border-box;
    background: #F9FAFB;
}

@media (max-width: 1300px) {
    body {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   NEW SITE HEADER
══════════════════════════════════════════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    /* Break out of the 200px body side padding so header spans full viewport */
    margin-left: -200px;
    margin-right: -200px;
    padding-left: 200px;
    padding-right: 200px;
    box-sizing: border-box;
}

@media (max-width: 1300px) {
    .site-header {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.header-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.logo-wordmark {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

/* Nav */
.header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: space-between;
}

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

.nav-link {
    display: block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    background: #F3F4F6;
    color: #6A142C;
}

.nav-link--active {
    background: #6A142C;
    color: #fff !important;
}

.nav-link--active:hover {
    background: #5a1025;
    color: #fff;
}

/* Dropdown */
.nav-dropdown-item {
    position: relative;
    list-style: none;
}

.nav-dropdown-item .nav-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    min-width: 220px;
    padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 1100;
    list-style: none;
    margin: 0;
}

.nav-dropdown-item:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu a {
    display: block;
    padding: 9px 18px;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.12s, color 0.12s;
}

.nav-submenu a:hover {
    background: #F9FAFB;
    color: #6A142C;
}

/* Header right actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Expandable header search ── */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.header-search__toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6A7282;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.header-search__toggle:hover {
    background: #F3F4F6;
    color: #111827;
}

.header-search--open .header-search__toggle {
    color: #111827;
}

.header-search__input-wrap {
    display: flex;
    align-items: center;
    width: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F9FAFB;
    border-radius: 8px;
    border: 1.5px solid transparent;
    margin-right: 0;
}

.header-search--open .header-search__input-wrap {
    width: 240px;
    border-color: #6A142C;
    margin-left: 4px;
}

.header-search__input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 6px 10px;
    font-size: 0.875rem;
    color: #111827;
    font-family: inherit;
    min-width: 0;
}

.header-search__input::placeholder {
    color: #9CA3AF;
}

.header-search__clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}

.header-search--open .header-search__clear {
    opacity: 1;
}

.header-search__clear:hover {
    color: #6A142C;
}

/* Results dropdown */
.header-search__results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 200;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #111827;
    transition: background 0.12s;
    border-bottom: 1px solid #F3F4F6;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #F9FAFB;
}

.search-result-item__img {
    width: 44px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F3F4F6;
}

.search-result-item__img--placeholder {
    width: 44px;
    height: 36px;
    border-radius: 6px;
    background: #F3F4F6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
}

.search-result-item__body {
    flex: 1;
    min-width: 0;
}

.search-result-item__title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item__sub {
    font-size: 0.72rem;
    color: #9CA3AF;
    margin-top: 2px;
}

.search-result-item__badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-item__badge--article {
    background: rgba(106, 20, 44, 0.1);
    color: #6A142C;
}

.search-result-item__badge--model {
    background: rgba(21, 93, 252, 0.1);
    color: #155DFC;
}

.search-no-results {
    padding: 16px 14px;
    font-size: 0.82rem;
    color: #9CA3AF;
    text-align: center;
}

.header-login-btn {
    padding: 7px 18px;
    background: #6A142C;
    color: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.header-login-btn:hover {
    background: #5a1025;
}

/* Social icons in header */
.header-social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #9CA3AF;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.header-social-link:hover {
    background: #F3F4F6;
    color: #6B7280;
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.hamburger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger--open span:nth-child(2) {
    opacity: 0;
}

.hamburger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════════════════════
   HOMEPAGE PAGE LAYOUT
══════════════════════════════════════════════════════════════════════════════ */

.hp-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.hp-main-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-top: 0;
    align-items: flex-start;
}

/* ── Partner ad banner (top) ── */
.hp-ad-banner {
    width: 100%;
    padding: 12px 24px;
}

.hp-ad-banner__inner {
    max-width: 1380px;
    margin: 0 auto;
}

/* Card link (no-image mode) */
.hp-ad-banner__card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 32px;
    min-height: 90px;
    height: auto;
    background: #101828;
    border-radius: 16px;
    position: relative;
    text-decoration: none;
    transition: opacity 0.15s;
    isolation: isolate;
    overflow: hidden;
}

.hp-ad-banner--light .hp-ad-banner__card {
    background: #F8FAFF;
    border: 1px solid #E5E7EB;
}

.hp-ad-banner__card:hover {
    opacity: 0.93;
}

/* Circular icon */
.hp-ad-banner__icon {
    width: 48px;
    height: 48px;
    background: #6A142C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Text group: eyebrow + headline */
.hp-ad-banner__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex-shrink: 0;
    min-width: 0;
}

.hp-ad-banner__eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #99A1AF;
}

.hp-ad-banner--light .hp-ad-banner__eyebrow {
    color: #6B7280;
}

.hp-ad-banner__headline {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 20px;
    color: #ffffff;
    white-space: nowrap;
}

.hp-ad-banner--light .hp-ad-banner__headline {
    color: #111827;
}

/* Description */
.hp-ad-banner__desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #99A1AF;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.hp-ad-banner--light .hp-ad-banner__desc {
    color: #6B7280;
}

/* CTA button */
.hp-ad-banner__cta {
    background: #6A142C;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
    cursor: pointer;
}

.hp-ad-banner__card:hover .hp-ad-banner__cta {
    background: #5a1025;
}

/* oglas badge */
.hp-ad-banner__label {
    position: absolute;
    top: 8px;
    right: 8.56px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #4A5565;
}

/* Full-image link mode */
.hp-ad-banner__img-link {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
}

.hp-ad-banner__img-link img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* ── Section heading + pills ── */
.hp-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hp-section-head--brands {
    margin-top: 40px;
}

.hp-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

/* Category pills */
.hp-cat-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hp-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid #E5E7EB;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.hp-pill:hover {
    border-color: #6A142C;
    color: #6A142C;
}

.hp-pill--active {
    background: #6A142C;
    border-color: #6A142C;
    color: #fff;
}

/* ── Category badge ── */
.hp-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hp-cat-badge--novosti,
.hp-cat-badge--novosti---auto-baza {
    background: rgba(106, 20, 44, 0.12);
    color: #6A142C;
}

.hp-cat-badge--testovi {
    background: rgba(0, 153, 102, 0.12);
    color: #009966;
}

.hp-cat-badge--tržište,
.hp-cat-badge--trziste,
.hp-cat-badge--akcije {
    background: rgba(21, 93, 252, 0.12);
    color: #155DFC;
}

.hp-cat-badge--lifestyle {
    background: rgba(96, 81, 83, 0.12);
    color: #605153;
}

.hp-cat-badge--zanimljivosti {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

/* fallback — only for truly unknown categories */
.hp-cat-badge:not([class*='hp-cat-badge--']) {
    background: rgba(106, 20, 44, 0.12);
    color: #6A142C;
}

/* ── Featured section ── */
.hp-featured {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
    margin-bottom: 32px;
}

/* Big card */
.hp-featured-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    min-height: 360px;
    transition: transform 0.2s;
}

.hp-featured-main:hover {
    transform: scale(1.01);
}

.hp-featured-main__img {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    background: #1F2937;
}

/* 30% taller variant for the large featured card */
.hp-featured-main__img--lg {
    height: 608px;
}

/* Right side panel — two stacked cards matching the --lg main image height */
.hp-featured-side--tall {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 608px;
    /* match --lg height exactly */
}

.hp-featured-side--tall .hp-small-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: none;
    border-radius: 0;
    overflow: hidden;
}

.hp-featured-side--tall .hp-small-card:first-child {
    border-radius: 12px 12px 12px 12px;
    border-bottom: none;
}

.hp-featured-side--tall .hp-small-card:last-child {
    border-radius: 12px 12px 12px 12px;
    border-top: none;
}

.hp-featured-side--tall {
    gap: 8px;
}

/* Image fills remaining space inside card */
.hp-featured-side--tall .hp-small-card__img {
    flex: 1;
    min-height: 0;
    height: auto;
}

/* Body stays compact — no flex-grow, minimal padding */
.hp-featured-side--tall .hp-small-card__body {
    flex: 0 0 auto;
    padding: 8px 12px 10px;
    gap: 3px;
}

.hp-featured-side--tall .hp-small-card__body h4 {
    font-size: 0.85rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-featured-side--tall .hp-small-card__date {
    font-size: 0.68rem;
}

.hp-featured-main__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.hp-featured-main:hover .hp-featured-main__img img {
    transform: scale(1.04);
}

.hp-featured-main__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.hp-featured-main__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    gap: 8px;
}

.hp-featured-main__content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.hp-featured-main__content p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.hp-featured-main__date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Small cards column */
.hp-featured-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hp-small-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E5E7EB;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    flex: 1;
}

.hp-small-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.hp-small-card__img {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #F3F4F6;
}

.hp-small-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hp-small-card:hover .hp-small-card__img img {
    transform: scale(1.05);
}

.hp-badge-abs {
    position: absolute;
    bottom: 8px;
    left: 10px;
}

.hp-small-card__body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.hp-small-card__date {
    font-size: 0.72rem;
    color: #9CA3AF;
}

.hp-small-card__body h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

/* ── Divider ── */
.hp-divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hp-divider-bar {
    width: 4px;
    height: 22px;
    background: #6A142C;
    border-radius: 3px;
    flex-shrink: 0;
}

.hp-divider-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.hp-divider-label--uppercase {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.hp-divider-line {
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

/* ── Article list rows ── */
.hp-article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hp-article-row {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #F3F4F6;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 4px;
}

.hp-article-row:hover {
    background: #FAFAFA;
}

.hp-article-row:hover .hp-readmore {
    color: #6A142C;
}

.hp-article-row__thumb {
    width: 120px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F3F4F6;
}

.hp-article-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.hp-article-row:hover .hp-article-row__thumb img {
    transform: scale(1.06);
}

.hp-article-row__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.hp-article-row__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-article-row__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hp-article-row__date {
    font-size: 0.72rem;
    color: #9CA3AF;
}

.hp-article-row__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.hp-article-row__excerpt {
    font-size: 0.83rem;
    color: #6B7280;
    line-height: 1.5;
}

.hp-readmore {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9CA3AF;
    margin-top: 2px;
    transition: color 0.15s;
}

/* ── Inline ad strip ── */
.hp-inline-ad {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #101828;
    border-radius: 16px;
    overflow: hidden;
    margin: 8px 0 0;
    position: relative;
    height: 110px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.hp-inline-ad:hover {
    opacity: 0.93;
}

/* Left colored panel */
.hp-inline-ad__panel {
    background: #6A142C;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 20px;
    gap: 4px;
    flex-shrink: 0;
    width: 200px;
    align-self: stretch;
}

.hp-inline-ad__label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* Content body */
.hp-inline-ad__body {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0px 28px;
    gap: 16px;
    min-width: 0;
}

.hp-inline-ad__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.hp-inline-ad__title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 22px;
    color: #ffffff;
    margin: 0;
}

.hp-inline-ad__desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #99A1AF;
    margin: 0;
}

/* CTA button */
.hp-inline-ad__cta {
    background: #6A142C;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
    cursor: pointer;
}

.hp-inline-ad:hover .hp-inline-ad__cta {
    background: #5a1025;
}

/* oglas badge */
.hp-inline-ad__oglas {
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #4A5565;
}

/* Image-only mode */
.hp-inline-ad--img {
    height: auto;
    background: none;
    overflow: hidden;
    border-radius: 16px;
}

.hp-inline-ad--img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
}

/* ── Brands grid ── */
.hp-brands-section {
    margin-top: 8px;
}

.hp-brands-all {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6A142C;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
}

.hp-brands-all:hover {
    text-decoration: underline;
}

.hp-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.hp-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.hp-brand-card:hover {
    border-color: #6A142C;
    box-shadow: 0 4px 12px rgba(106, 20, 44, 0.1);
    transform: translateY(-2px);
}

.hp-brand-card__logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    border-radius: 8px;
    overflow: hidden;
}

.hp-brand-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hp-brand-card__initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #6A142C;
    background: rgba(106, 20, 44, 0.08);
    border-radius: 8px;
}

.hp-brand-card__name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.3;
}

/* ═══════════════════════════════
   SIDEBAR
═══════════════════════════════ */

.hp-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    margin-top: 40px;
}

.hp-aside-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.hp-aside-card__header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #6A142C;
    padding: 8px 16px;
}

.hp-aside-card__body {
    padding: 8px 0;
}

/* Popular list */
.hp-popular-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 16px;
    text-decoration: none;
    transition: background 0.12s;
    border-bottom: 1px solid #F9FAFB;
}

.hp-popular-item:last-child {
    border-bottom: none;
}

.hp-popular-item:hover {
    background: #FAFAFA;
}

.hp-popular-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #374151;
    flex-shrink: 0;
}

.hp-popular-num--active {
    background: #6A142C;
    color: #fff;
}

.hp-popular-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hp-popular-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.hp-popular-date {
    font-size: 0.7rem;
    color: #9CA3AF;
}

/* Aside ad card */
.hp-aside-ad {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hp-aside-ad--dark {
    background: #F9FAFB;
}

.hp-aside-ad__oglaslabel {
    font-size: 0.62rem;
    color: #9CA3AF;
    letter-spacing: 0.5px;
    font-style: italic;
    position: absolute;
    top: 8px;
    right: 12px;
}

.hp-aside-ad__iconwrap {
    width: 40px;
    height: 40px;
    background: rgba(106, 20, 44, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-aside-ad h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.hp-aside-ad p {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.5;
}

.hp-aside-ad__btn {
    display: inline-block;
    padding: 8px 16px;
    background: #6A142C;
    color: #fff;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    align-self: flex-start;
}

.hp-aside-ad__btn:hover {
    background: #5a1025;
}

/* ── Partnerski oglas card (dark theme) ── */
.hp-partnerski-oglas {
    background: #0D1117;
    border-radius: 14px;
    padding: 20px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Light theme variant */
.hp-partnerski-oglas--light {
    background: #F8FAFF;
    border: 1px solid #E5E7EB;
}

.hp-partnerski-oglas--light .hp-partnerski-oglas__label,
.hp-partnerski-oglas--light .hp-partnerski-oglas__title {
    color: #111827;
}

.hp-partnerski-oglas--light .hp-partnerski-oglas__desc {
    color: #6B7280;
}

/* Image-only sidebar banner */
.hp-partnerski-oglas--img {
    display: block;
    padding: 0;
    background: none;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
}

.hp-partnerski-oglas--img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
}

.hp-partnerski-oglas--img .hp-partnerski-oglas__label {
    position: absolute;
    top: 8px;
    right: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.62rem;
}


.hp-partnerski-oglas__label {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.hp-partnerski-oglas__iconwrap {
    width: 52px;
    height: 52px;
    background: rgba(128, 0, 32, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.hp-partnerski-oglas__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
    margin: 0;
}

.hp-partnerski-oglas__desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.55;
    margin: 0;
}

.hp-partnerski-oglas__subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.hp-partnerski-oglas__price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #22C55E;
    margin: 2px 0;
}

.hp-partnerski-oglas__btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #800020;
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    margin-top: 4px;
    transition: background 0.15s;
}

.hp-partnerski-oglas__btn:hover {
    background: #6A142C;
}

/* Newsletter widget */
.hp-newsletter {
    background: #6A142C;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hp-newsletter h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.hp-newsletter p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.hp-newsletter__input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 7px;
    border: none;
    font-size: 0.83rem;
    font-family: inherit;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hp-newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hp-newsletter__btn {
    width: 100%;
    padding: 9px;
    background: #fff;
    color: #6A142C;
    font-size: 0.83rem;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.hp-newsletter__btn:hover {
    background: #f0e8ea;
}

/* Carousel */
.hp-carousel {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.hp-carousel__track {
    display: flex;
    transition: transform 0.5s ease;
}

.hp-carousel__slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

.hp-carousel__label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    background: #6A142C;
    padding: 5px 16px;
}

.hp-carousel__img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #F3F4F6;
}

.hp-carousel__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-carousel__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-carousel__body h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.hp-carousel__body p {
    font-size: 0.78rem;
    color: #6B7280;
    line-height: 1.4;
}

.hp-carousel__cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6A142C;
    text-decoration: none;
}

.hp-carousel__cta:hover {
    text-decoration: underline;
}

.hp-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid #F3F4F6;
}

.hp-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.hp-carousel__dot--active {
    background: #6A142C;
    transform: scale(1.2);
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */

.site-footer {
    background: #0A0A0A;
    margin-top: 64px;
    padding: 0;
    /* Break out of the 200px body side padding — span full viewport */
    margin-left: -200px;
    margin-right: -200px;
    padding-left: 200px;
    padding-right: 200px;
    box-sizing: border-box;
}

@media (max-width: 1300px) {
    .site-footer {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.footer-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col--brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-logo-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #6A142C;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    max-width: 260px;
}

.footer-store-badges {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.footer-store-badge {
    display: inline-flex;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.footer-store-badge:hover {
    opacity: 1;
}

.footer-store-badge svg {
    display: block;
    height: 34px;
    width: auto;
}


.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.15s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    flex-wrap: wrap;
    gap: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE (MOBILE)
══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .hp-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 900px) {
    .hp-main-wrap {
        grid-template-columns: 1fr;
    }

    .hp-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

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

    .hp-featured-side {
        flex-direction: row;
    }

    .hp-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    /* Nav collapses */
    .header-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #E5E7EB;
        padding: 12px 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .header-nav.nav--open {
        display: flex;
    }

    .header-inner {
        position: relative;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-list>li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 12px 24px;
        border-radius: 0;
        font-size: 0.95rem;
    }

    .header-actions {
        padding: 12px 24px 4px;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-social-icons {
        justify-content: center;
        gap: 12px;
    }

    .header-social-link {
        width: 40px;
        height: 40px;
    }

    .header-login-btn {
        width: 100%;
        text-align: center;
    }

    .nav-submenu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-left: 3px solid #6A142C;
        border-radius: 0;
        padding: 4px 0 4px 16px;
        background: #F9FAFB;
        width: 100%;
    }

    .nav-submenu a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Page adjustments */
    .hp-page {
        padding: 0 16px 48px;
    }

    .hp-main-wrap {
        margin-top: 20px;
    }

    .hp-ad-banner {
        padding-left: 0px;
        padding-right: 0px;
    }

    .hp-ad-banner__card,
    .hp-ad-banner__img-link {
        border-radius: 5px;
    }

    .hp-ad-banner__inner {
        padding: 8px 16px;
    }

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

    .hp-featured-side {
        flex-direction: column;
    }

    /* Reset tall/lg fixed heights on mobile so there's no huge gap */
    .hp-featured-main {
        min-height: 0;
    }

    .hp-featured-main__img--lg {
        height: 320px;
    }

    .hp-featured-side--tall {
        height: auto;
    }

    .hp-featured-side--tall .hp-small-card__img {
        height: 200px;
        flex: none;
    }

    .hp-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hp-aside {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 480px) {
    .hp-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-article-row__thumb {
        width: 90px;
        height: 70px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .hp-featured-main__img {
        height: 240px;
    }

    /* Override the tall/lg variants so they don't keep the 608px fixed height on small phones */
    .hp-featured-main {
        min-height: 0;
    }

    .hp-featured-main__img--lg {
        height: 240px;
    }

    .hp-featured-side--tall {
        height: auto;
    }

    .hp-featured-side--tall .hp-small-card__img {
        height: 180px;
        flex: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   CENTERED NAV
══════════════════════════════════════════════════════════════════════════════ */

/* Center the nav links horizontally in the header */
.header-nav {
    justify-content: center;
}

.nav-list--center {
    flex: 1;
    justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FIXED SIDE BANNERS
══════════════════════════════════════════════════════════════════════════════ */

.side-banner {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 192px;
    /* fits inside the 200px gutter with 4px gap on each side */
    max-height: 600px;
    z-index: 900;
    transition: opacity 0.3s ease;
}

.side-banner--left {
    left: 0;
    padding: 0 4px 0 4px;
}

.side-banner--right {
    right: 0;
    padding: 0 4px 0 4px;
}

.side-banner__inner {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    line-height: 0;
}

.side-banner__inner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.side-banner__oglas {
    display: block;
    font-size: 0.6rem;
    color: #9CA3AF;
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-style: italic;
}

.side-banner__close {
    position: absolute;
    top: 22px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}

.side-banner__close:hover {
    background: rgba(106, 20, 44, 0.85);
}

/* Hide side banners on narrow viewports where there's no room */
@media (max-width: 1300px) {
    .side-banner {
        display: none !important;
    }
}

/* ── Side banner empty placeholder ─────────────────────────────────────────── */
.side-banner--empty {
    visibility: hidden;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   TESTOVI CAROUSEL  (hp-tcar)
══════════════════════════════════════════════════════════════════════════════ */

.hp-testovi-section {
    margin-top: 40px;
}

.hp-tcar {
    position: relative;
    margin-top: 16px;
}

.hp-tcar__viewport {
    overflow: hidden;
    border-radius: 12px;
}

.hp-tcar__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hp-tcar__slide {
    flex: 0 0 33.333%;
    padding: 0 8px;
    box-sizing: border-box;
}

.hp-tcar__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.hp-tcar__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.hp-tcar__img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #F3F4F6;
}

.hp-tcar__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.hp-tcar__card:hover .hp-tcar__img img {
    transform: scale(1.04);
}

.hp-tcar__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: #D1D5DB;
}

.hp-tcar__badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.hp-tcar__body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-tcar__date {
    font-size: 0.72rem;
    color: #9CA3AF;
    font-weight: 500;
}

.hp-tcar__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-tcar__excerpt {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* Nav arrows */
.hp-tcar__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 10;
    padding: 0;
}

.hp-tcar__nav:hover {
    background: #800020;
    color: #fff;
    border-color: #800020;
}

.hp-tcar__nav--prev {
    left: -20px;
}

.hp-tcar__nav--next {
    right: -20px;
}

/* Dots */
.hp-tcar__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}

.hp-tcar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.hp-tcar__dot--active {
    background: #800020;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 900px) {
    .hp-tcar__slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 600px) {
    .hp-tcar__slide {
        flex: 0 0 100%;
    }

    .hp-tcar__nav--prev {
        left: -14px;
    }

    .hp-tcar__nav--next {
        right: -14px;
    }
}

/* ── Popup Banner (global, used on homepage and news-details) ── */
#ab-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

#ab-popup-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.ab-popup-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    max-width: 90vw;
    max-height: 90vh;
}

.ab-popup-box.portrait {
    width: 380px;
}

.ab-popup-box.landscape {
    width: min(700px, 90vw);
}

.ab-popup-box img {
    display: block;
    width: 100%;
    height: auto;
}

.ab-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .15s;
}

.ab-popup-close:hover {
    background: rgba(0, 0, 0, .85);
}

.ab-popup-oglas {
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

/* ══════════════════════════════════════════════════════════════════════════════
   REAL-TIME NEWS  — Live row fade-in + Toast notifikacija
══════════════════════════════════════════════════════════════════════════════ */

/* ── Fade-in za dinamički ubačene redove ────────────────────────────────── */
.ab-live-row {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.ab-live-row--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Toast notifikacija (donji desni ugao) ──────────────────────────────── */
#ab-news-toast {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18), 0 0 0 1px rgba(106, 20, 44, .08);
    padding: 14px 18px 14px 14px;
    text-decoration: none;
    color: #111827;
    max-width: 340px;
    min-width: 260px;
    border-left: 4px solid #6A142C;
    /* start offscreen */
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    cursor: pointer;
}

#ab-news-toast:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22), 0 0 0 1px rgba(106, 20, 44, .15);
    color: #6A142C;
}

#ab-news-toast.ab-toast--visible {
    transform: translateX(0);
    opacity: 1;
}

/* Pulsing dot */
.ab-toast__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6A142C;
    flex-shrink: 0;
    animation: ab-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes ab-dot-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.78);
    }
}

/* Label "Nova vest" */
.ab-toast__label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6A142C;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Naslov vesti */
.ab-toast__title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#ab-news-toast:hover .ab-toast__title {
    color: #6A142C;
}

/* Strelica */
.ab-toast__arrow {
    font-size: 1rem;
    color: #9CA3AF;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}

#ab-news-toast:hover .ab-toast__arrow {
    color: #6A142C;
    transform: translateX(3px);
}

/* Na mobilnom — zauzima punu širinu odozdo */
@media (max-width: 480px) {
    #ab-news-toast {
        left: 12px;
        right: 12px;
        max-width: none;
        min-width: 0;
        bottom: 16px;
    }
}