@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-warm: #faf8f5;           /* Warm, premium cream-white background */
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-aside: #faf8f5;
    
    --text-primary: #1e293b;       /* Dark slate primary text */
    --text-secondary: #475569;     /* Medium slate secondary text */
    --text-muted: #64748b;         /* Light slate muted text */
    
    /* Serbian Belgrade Color Scheme */
    --color-blue: #0f4c81;         /* Belgrade/Serbian flag Blue */
    --color-blue-dark: #092c4c;
    --color-blue-light: #3b82f6;
    --color-red: #c92a2a;          /* Serbian flag Crimson Red */
    --color-red-hover: #a61e1e;
    --color-red-light: #fff5f5;
    
    /* Nature details (Green / Brown) */
    --color-nature-green: #2b8a3e;
    --color-nature-brown: #862e9c; /* Violet/brown tone */
    --color-nature-earth: #854d0e;  /* Warm earth brown */
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-accent: #0f4c81;
    
    --font-title: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-max: 1240px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-warm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-blue-dark);
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.85rem;
    border-bottom: 2px solid var(--color-blue);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.45rem;
    margin-top: 1.5rem;
    color: var(--color-blue);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--color-red);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Header, Masthead and Navigation */
.news-ticker-container {
    background-color: var(--color-blue-dark);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--color-red);
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.news-ticker-inner {
    display: flex;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ticker-label {
    background: var(--color-red);
    color: white;
    font-weight: 800;
    font-family: var(--font-title);
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    margin-right: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.ticker-wrapper {
    overflow: hidden;
    width: 100%;
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 35s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 1.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.ticker-item a {
    color: #ffffff;
    font-weight: 600;
}

.ticker-item a:hover {
    color: #ffd43b;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0 0;
    box-shadow: var(--shadow-sm);
}

.header-masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    gap: 2rem;
}

.masthead-side {
    width: 260px;
    display: none; /* Desktop only */
}

@media (min-width: 992px) {
    .masthead-side {
        display: block;
    }
}

.masthead-info-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-warm);
}

.masthead-info-link:hover {
    border-color: var(--color-blue);
    background: #fff;
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-blue);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.info-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.masthead-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-logo {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-blue-dark);
    line-height: 1;
    letter-spacing: -0.03em;
}

.site-logo span {
    color: var(--color-red);
}

.site-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.masthead-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.masthead-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-bar {
    background-color: var(--color-blue);
    border-top: 1px solid var(--border-color);
}

.nav-bar-inner {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
}

.site-nav {
    display: flex;
    width: 100%;
}

.nav-link {
    color: rgba(255,255,255,0.95);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.08);
    border-bottom-color: var(--color-red);
}

.nav-link.active {
    color: #ffffff;
    background-color: rgba(0,0,0,0.15);
    border-bottom-color: var(--color-red);
}

/* Mobile Nav Toggle */
@media (max-width: 991px) {
    .nav-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .masthead-meta {
        display: none !important;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        color: #ffffff;
        font-family: var(--font-title);
        font-weight: 700;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        cursor: pointer;
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-blue-dark);
    }
    
    .site-nav.open {
        display: flex;
    }
    
    .nav-link {
        padding: 0.85rem 1.5rem;
        text-align: left;
        border-bottom: none;
        border-left: 4px solid transparent;
    }
    
    .nav-link:hover, .nav-link.active {
        border-left-color: var(--color-red);
        background-color: rgba(255,255,255,0.05);
    }
}

/* Main Layout Structure */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2.5rem 0;
}

/* Unique Newspaper Magazine Grid on Homepage */
.homepage-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .homepage-layout {
        grid-template-columns: 1fr 320px;
    }
}

/* Featured Header Widget (Unique Stat Widget) */
.belgrade-stats-banner {
    background: linear-gradient(135deg, var(--color-blue-dark), var(--color-blue));
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--color-red);
}

.belgrade-stats-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.stats-banner-title {
    font-size: 1.25rem;
    color: white;
    font-family: var(--font-title);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #fa5252; /* red dot */
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.live-dot::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: #fa5252;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: live-pulse 1.5s infinite ease-out;
}

@keyframes live-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.stat-box {
    display: flex;
    flex-direction: column;
    color: white !important;
    text-decoration: none !important;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-value span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #40c057; /* light green */
}

/* Category Filter Bar */
.category-filter-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.filter-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    transform: translateY(-1px);
}

.filter-btn.active {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: white;
}

/* Magazine Grid Classes */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

/* Hero Article Card (Large first item) */
.card-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .card-hero {
        grid-template-columns: 1.2fr 1fr;
    }
}

.card-hero:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 76, 129, 0.3);
}

.card-hero-img-wrapper {
    position: relative;
    min-height: 250px;
    background: #e2e8f0;
}

.card-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.card-hero-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    color: white;
}

.badge-turizam, .badge-turizam-i-prevoz { background-color: var(--color-blue); }
.badge-gastro, .badge-ugostiteljstvo { background-color: var(--color-red); }
.badge-zdravlje, .badge-zdravlje-i-lepota { background-color: var(--color-nature-green); }
.badge-auto, .badge-auto-moto { background-color: var(--color-nature-brown); }
.badge-kuca, .badge-kuca-i-zivot { background-color: var(--color-nature-earth); }
.badge-drustvo, .badge-drustvo-i-kultura { background-color: #495057; }

.card-hero-title {
    font-size: 1.85rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.card-hero-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Regular Article Cards */
.article-card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 76, 129, 0.3);
}

.card-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #e2e8f0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.card-content {
    padding: 0.75rem 1.25rem 1.25rem 1.25rem; /* Reduced top padding to tighten title to image gap */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    margin-top: 0; /* Clear top margin to avoid gap from image */
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    line-height: 1.3;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.card-date {
    color: var(--text-muted);
    font-weight: 500;
}

.read-more {
    color: var(--color-blue);
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Sidebar and Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--color-red);
    padding-left: 0.75rem;
    color: var(--color-blue-dark);
}

/* Promoted Links Grid (Istaknuto Widget) */
.featured-links-widget {
    background: linear-gradient(to bottom, #ffffff, var(--bg-warm));
    border: 2px solid var(--color-blue);
}

.featured-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #ffffff;
    transition: var(--transition);
}

.featured-link-item:hover {
    border-color: var(--color-red);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.featured-link-item:last-child {
    margin-bottom: 0;
}

.featured-link-icon {
    font-size: 1.25rem;
    color: var(--color-red);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-red-light);
    border-radius: 50%;
}

.featured-link-text {
    display: flex;
    flex-direction: column;
}

.featured-link-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.featured-link-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sports Celebrity List Widget */
.athletes-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.athlete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-warm);
    transition: var(--transition);
}

.athlete-item:hover {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    border-left: 3px solid var(--color-red);
}

.athlete-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-blue);
    color: white;
    font-weight: 700;
    font-family: var(--font-title);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.athlete-info {
    display: flex;
    flex-direction: column;
}

.athlete-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.athlete-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Article Template Styles */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr 320px;
    }
}

.article-main {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .article-main {
        padding: 2.5rem;
    }
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.article-meta-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-featured-img-wrapper {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    max-height: 480px;
    border: 1px solid var(--border-color);
}

.article-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Table of Contents (TOC) */
.toc-box {
    background-color: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-blue);
}

.toc-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-blue-dark);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-item-h2 {
    font-weight: 600;
}

.toc-item-h3 {
    padding-left: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Bullet Points Summary Box */
.summary-bullets-box {
    background-color: rgba(15, 76, 129, 0.03);
    border: 1px dashed var(--color-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-bullets-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-blue);
}

.summary-bullets-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-bullets-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.summary-bullets-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-nature-green);
    font-weight: bold;
}

/* Content Body Stylings */
.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #334155; /* Neutral slate text */
}

.article-body blockquote {
    border-left: 4px solid var(--color-red);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-warm);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-body blockquote p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* Ordered & Unordered Lists styling (Strictly formatted) */
.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.025rem;
}

.article-body ul {
    list-style: none;
}

.article-body ul li {
    position: relative;
    padding-left: 1.5rem;
}

.article-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background-color: var(--color-red);
    border-radius: 50%;
}

.article-body ol {
    counter-reset: my-counter;
    list-style: none;
}

.article-body ol li {
    counter-increment: my-counter;
    position: relative;
    padding-left: 1.75rem;
}

.article-body ol li::before {
    content: counter(my-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-blue);
    font-family: var(--font-title);
}

/* Responsive Table Design */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    min-width: 500px;
}

.article-body th {
    background-color: var(--color-blue);
    color: white;
    font-family: var(--font-title);
    font-weight: 700;
    padding: 0.85rem 1.25rem;
}

.article-body td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.article-body tr:last-child td {
    border-bottom: none;
}

.article-body tr:nth-child(even) {
    background-color: var(--bg-warm);
}

/* Call to Action Box (Organically styled box for link placement) */
.article-cta-box {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.05), rgba(15, 76, 129, 0.1));
    border-left: 4px solid var(--color-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 768px) {
    .article-cta-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.article-cta-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-blue-dark);
}

.article-cta-btn {
    display: inline-block;
    background-color: var(--color-red);
    color: white;
    font-family: var(--font-title);
    font-weight: 800;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(201, 42, 42, 0.2);
    transition: var(--transition);
}

.article-cta-btn:hover {
    background-color: var(--color-red-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(201, 42, 42, 0.3);
}

/* FAQ Accordion Styling */
.faq-section {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.faq-title {
    font-size: 1.75rem;
    color: var(--color-blue-dark);
    margin-bottom: 1.5rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-blue);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-warm);
}

.faq-icon {
    font-size: 0.9rem;
    transition: var(--transition);
}

.faq-card.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background: var(--bg-warm);
    border-top: 0 solid transparent;
}

.faq-card.open .faq-answer {
    padding: 1.25rem 1.5rem;
    max-height: 500px;
    border-top: 1px solid var(--border-color);
}

/* Smart CSS/SVG Stats Chart Widget (Unique Feature) */
.belgrade-chart-widget {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.chart-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-blue);
    padding-left: 0.75rem;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.chart-bar-row {
    display: flex;
    flex-direction: column;
}

.chart-bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.chart-bar-bg {
    width: 100%;
    height: 12px;
    background-color: var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background-color: var(--color-blue);
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.chart-bar-fill.red { background-color: var(--color-red); }
.chart-bar-fill.green { background-color: var(--color-nature-green); }
.chart-bar-fill.brown { background-color: var(--color-nature-earth); }

/* Footer */
.site-footer {
    background-color: var(--color-blue-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
    border-top: 4px solid var(--color-red);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--color-red);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.7);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition);
}

.footer-social-btn:hover {
    background: var(--color-red);
    transform: translateY(-2px);
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

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

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
}

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

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
    background-color: transparent;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--color-blue-light), var(--color-red));
    transition: width 0.1s ease-out;
}

/* Quick search bar */
.search-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Header Meta Links */
.meta-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.meta-link:hover {
    color: var(--color-blue) !important;
    text-decoration: underline !important;
}

/* Article Call to Action (CTA) Block */
.article-cta-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    background: #fff;
    border: 2px solid var(--border-color);
    margin: 3rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .article-cta-block {
        flex-direction: row;
        gap: 2rem;
    }
}

.article-cta-block:hover {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cta-content-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

.cta-icon-wrapper {
    font-size: 1.75rem;
    color: var(--color-red);
    background: rgba(201, 42, 42, 0.08);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-theme-turizam-i-prevoz .cta-icon-wrapper {
    color: var(--color-blue);
    background: rgba(15, 76, 129, 0.08);
}

.cta-theme-zdravlje-i-lepota .cta-icon-wrapper {
    color: var(--color-nature-green);
    background: rgba(40, 167, 69, 0.08);
}

.cta-theme-auto-moto .cta-icon-wrapper {
    color: var(--color-nature-brown);
    background: rgba(121, 85, 72, 0.08);
}

.cta-theme-kuca-i-zivot .cta-icon-wrapper {
    color: var(--color-nature-earth);
    background: rgba(224, 153, 36, 0.08);
}

.cta-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cta-heading {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.cta-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff !important;
    background: var(--color-blue);
    text-decoration: none !important;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(15, 76, 129, 0.15);
}

.cta-button:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(15, 76, 129, 0.25);
}

/* Category card theme modifications */
.cta-theme-ugostiteljstvo .cta-button {
    background: var(--color-red);
    box-shadow: 0 4px 6px rgba(201, 42, 42, 0.15);
}

.cta-theme-ugostiteljstvo .cta-button:hover {
    background: #ab1f1f;
    box-shadow: 0 6px 12px rgba(201, 42, 42, 0.25);
}

.cta-theme-zdravlje-i-lepota .cta-button {
    background: var(--color-nature-green);
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.15);
}

.cta-theme-zdravlje-i-lepota .cta-button:hover {
    background: #1e7e34;
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.25);
}

/* Stack tables vertically on mobile devices (< 768px) */
@media (max-width: 768px) {
    .table-wrapper {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow-x: visible !important;
        margin: 1.5rem 0 !important;
    }

    .article-body table {
        min-width: 100% !important;
        display: block !important;
    }
    
    .article-body thead {
        display: none !important;
    }
    
    .article-body tbody, 
    .article-body tr, 
    .article-body td {
        display: block !important;
        width: 100% !important;
    }
    
    .article-body tr {
        background: #ffffff !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
        padding: 0.5rem !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .article-body td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--border-light) !important;
        color: var(--text-primary) !important;
        font-size: 0.9rem !important;
    }
    
    .article-body td:last-child {
        border-bottom: none !important;
    }
    
    .article-body td::before {
        content: attr(data-label) !important;
        font-weight: 700 !important;
        color: var(--color-blue-dark) !important;
        text-align: left !important;
        padding-right: 0.5rem !important;
    }
}

/* Responsive container paddings for mobile (< 576px) */
@media (max-width: 576px) {
    .article-main {
        padding: 1rem !important;
    }
    
    .toc-box {
        padding: 1rem !important;
    }
    
    .summary-bullets-box {
        padding: 1rem !important;
    }
    
    .faq-question {
        padding: 1rem 1.25rem !important;
        font-size: 1rem !important;
    }
    
    .faq-card.open .faq-answer {
        padding: 1rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .article-header h1 {
        font-size: 1.75rem !important;
    }
}
