/*
Theme Name: Zagorski List
Theme URI: https://zagorski-list.hr
Description: Custom tema za news portal Zagorski List
Version: 2.0
Author: Zagorski List
Text Domain: zagorski-list
*/

:root {
    --primary-color: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --accent-color: #2E7D32;
    --text-dark: #1a1a1a;
    --text-medium: #444;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --bg-gray: #fafafa;
    --white: #fff;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER - Index.hr style
======================================== */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.site-logo img {
    max-height: 45px;
    width: auto;
}

.site-logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-logo-text span:first-child {
    color: var(--primary-color);
}

.site-logo-text span:last-child {
    color: var(--text-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-date {
    color: var(--text-muted);
    font-size: 13px;
}

.header-search {
    position: relative;
}

.header-search input {
    padding: 8px 35px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s;
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 250px;
}

.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

/* MAIN NAVIGATION */
.main-nav {
    background: var(--primary-color);
}

.nav-container {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-logo {
    margin-right: 15px;
    flex-shrink: 0;
}

.nav-logo img {
    max-height: 47px;
    width: auto;
    display: block;
}

.nav-logo .site-logo-text {
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
}

.nav-logo .site-logo-text span {
    color: var(--white);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav > .nav-container > ul > li > a {
    display: block;
    padding: 14px 18px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-category-ancestor > a {
    background: var(--primary-dark);
}

/* Dropdown Menu */
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    z-index: 1000;
    box-shadow: var(--shadow-hover);
    border-top: 3px solid var(--primary-color);
}

.main-nav li:hover > .sub-menu {
    display: block;
}

.main-nav .sub-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.main-nav .sub-menu li:last-child {
    border-bottom: none;
}

.main-nav .sub-menu a {
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text-dark);
    display: block;
    font-weight: 400;
    text-transform: none;
}

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

/* Main Menu (hardcoded) */
.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu li a {
    display: block;
    padding: 14px 20px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.main-menu li a:hover,
.main-menu .current-menu-item a {
    background: var(--primary-dark);
}

/* News Subbar (Regije + Kategorije) */
.news-subbar {
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.news-subbar .container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 0;
    padding-bottom: 0;
}

.subbar-regije {
    display: flex;
    flex-shrink: 0;
}

.subbar-regija {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.subbar-regija:hover {
    color: var(--primary-color);
}

.subbar-regija.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.subbar-cats {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding: 7px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.subbar-cats::-webkit-scrollbar {
    display: none;
}

.subbar-cat {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 14px;
    text-decoration: none;
    white-space: nowrap;
    background: color-mix(in srgb, var(--cat-color) 10%, white);
    color: var(--cat-color);
    transition: all 0.2s;
}

.subbar-cat:hover,
.subbar-cat.active {
    background: var(--cat-color);
    color: white;
}

/* Separator između regija i kategorija */
.subbar-regije::after {
    content: '';
    width: 1px;
    height: 20px;
    background: #ddd;
    align-self: center;
    margin-left: 4px;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========================================
   BREAKING NEWS TICKER
======================================== */
.breaking-news {
    background: var(--primary-dark);
    padding: 8px 0;
    overflow: hidden;
}

.breaking-news-inner {
    display: flex;
    align-items: center;
}

.breaking-label {
    background: #fff;
    color: var(--primary-dark);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 15px;
    flex-shrink: 0;
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
    width: 100%;
}

.ticker {
    display: flex;
    width: max-content;
    animation: ticker 60s linear infinite;
}

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

.ticker-item {
    flex-shrink: 0;
    padding: 0 25px;
}

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

.ticker a {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

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

.breaking-time {
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 10px;
    font-weight: 600;
}

/* Weather Widget */
.weather-widget-items {
    display: flex;
    flex-direction: column;
}

.weather-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}

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

.weather-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.weather-icon svg {
    width: 100%;
    height: 100%;
}

.weather-city {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.weather-temp {
    font-size: 18px;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
}

.weather-temp.temp-cold {
    color: #2196F3;
}

.weather-temp.temp-normal {
    color: var(--text-dark);
}

.weather-temp.temp-hot {
    color: #f44336;
}

.weather-no-data {
    padding: 15px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* Mobile Weather */
.mobile-weather {
    display: none;
}

.mw-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
}

.mw-icon {
    width: 32px;
    height: 32px;
    
}

.mw-icon svg {
    width: 100%;
    height: 100%;
}

.mw-text {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}


@media (max-width: 768px) {
    .mobile-weather {
        display: block;
        margin-left: auto;
    }

    .nav-logo {
        display: flex !important;
        align-items: center !important;
        flex: 1;
    }

    .nav-logo .site-logo-text {
        font-size: 22px;
    }

    .mw-icon {
        width: 22px;
        height: 22px;
    }

    .mw-text {
        font-size: 11px;
    }
}

/* ========================================
   MAIN CONTENT AREA
======================================== */
.site-main {
    padding: 25px 0 40px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

.main-content {
    min-width: 0;
}

/* ========================================
   SECTION HEADERS WITH TABS
======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
}

.section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}
.section-more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.section-tabs {
    display: flex;
    gap: 5px;
}

.section-tab {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-medium);
}

.section-tab:hover,
.section-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   FEATURED / HERO ARTICLE
======================================== */
.featured-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.hero-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--text-dark);
    aspect-ratio: 16/9;
}

.hero-main .hero-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-main .hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hero-main .hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
}

.hero-main:hover .hero-image {
    transform: scale(1.03);
}

.hero-main .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.hero-main .hero-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hero-main .hero-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 4px;
}

.hero-main .hero-meta {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-sidebar-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: var(--text-dark);
    aspect-ratio: 16/9;
}

.hero-sidebar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hero-sidebar-item:hover img {
    transform: scale(1.05);
}

.hero-sidebar-item .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.hero-sidebar-item .hero-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hero-sidebar-item .hero-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

/* ========================================
   NEWS GRID
======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
}

.news-card-image {
    position: relative;
    padding-top: 60%;
    background: var(--bg-light);
    overflow: hidden;
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.news-card-content {
    padding: 15px;
}

.news-card-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.news-card-title:hover {
    color: var(--primary-color);
}

.news-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   NEWS LIST (compact)
======================================== */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-light);
}

.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-content {
    flex: 1;
    min-width: 0;
}

.news-list-category {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.news-list-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.news-list-title:hover {
    color: var(--primary-color);
}

.news-list-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   SIDEBAR
======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.widget-header {
    background: var(--primary-color);
    padding: 12px 18px;
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin: 0;
}

.widget-content {
    padding: 0;
}

/* Popular Posts Widget */
.popular-posts {
    list-style: none;
    counter-reset: popular;
}

.popular-posts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color);
    counter-increment: popular;
}

.popular-posts li:last-child {
    border-bottom: none;
}

.popular-posts li::before {
    content: counter(popular);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    min-width: 25px;
}

.popular-posts-content {
    flex: 1;
}

.popular-posts-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    display: block;
}

.popular-posts-title:hover {
    color: var(--primary-color);
}

.popular-posts-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Video Widget */
.video-widget-item {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.video-widget-item:last-child {
    border-bottom: none;
}

.video-widget-thumb {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.video-widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-widget-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.video-widget-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
}

.video-widget-title:hover {
    color: var(--primary-color);
}

/* Gallery Widget */
.gallery-widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 3px;
}

.gallery-widget-item {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.gallery-widget-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-widget-item:hover img {
    transform: scale(1.1);
}

.gallery-widget-item .gallery-count {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s;
}

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

.category-list .count {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 0;
    margin-top: 40px;
}

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

.footer-brand .site-logo-text {
    font-size: 24px;
    margin-bottom: 15px;
    display: block;
}

.footer-brand .site-logo-text span {
    color: var(--white);
}

.footer-brand .site-logo-text span:first-child {
    color: var(--primary-light);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.7;
}

.footer-widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   SINGLE POST
======================================== */
.single-post-header {
    margin-bottom: 25px;
}

.single-post-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.single-post-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.single-post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.single-post-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    height: auto;
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-medium);
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2,
.single-post-content h3 {
    color: var(--text-dark);
    margin: 30px 0 15px;
}

/* ========================================
   ARCHIVE
======================================== */
.archive-header {
    margin-bottom: 30px;
}

.archive-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.archive-description {
    color: var(--text-light);
    margin-top: 10px;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-sidebar {
        flex-direction: row;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-top {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .header-search input {
        width: 100%;
    }

    /* Mobile: Main Menu (hamburger toggle) */
    .main-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        order: 10;
        background: var(--primary-color);
    }

    .main-menu.active {
        display: flex !important;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .main-menu li {
        border-bottom: 1px solid var(--primary-dark);
    }

    .main-menu li a {
        padding: 12px 20px;
    }

    /* Mobile: News Subbar */
    .news-subbar .container {
        flex-direction: column;
        gap: 0;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .subbar-regije {
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid #eee;
    }

    .subbar-regije::after {
        display: none;
    }

    .subbar-regija {
        padding: 8px 12px;
        font-size: 12px;
    }

    .subbar-cats {
        width: 100%;
        padding: 5px 0;
    }

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

    .hero-sidebar {
        flex-direction: column;
    }

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

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

    .single-post-title {
        font-size: 26px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-main .hero-title {
        font-size: 15px;
    }

    .hero-main .hero-content {
        padding: 8px 12px;
    }

    .news-card-title {
        font-size: 15px;
    }
}

/* ========================================
   SPORT PAGE
======================================== */
.sport-page {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.sport-page .page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.sport-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.sport-tab {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.sport-tab:hover {
    background: var(--bg-light);
}

.sport-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.sport-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.sport-section-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}

.sofascore-widgets {
    margin-bottom: 30px;
}

.sofascore-widget {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.sofascore-widget h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.sofascore-widget iframe {
    width: 117.65% !important; /* Compensate for scale: 100/0.85 = 117.65% */
    border: 1px solid var(--border-color);
    transform: scale(0.85);
    transform-origin: top left;
}

/* Adjust height for scaled iframes */
.sofascore-widget {
    /* Scale down the visual height proportionally */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.team-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.team-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.team-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.team-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-league {
    font-size: 12px;
    color: var(--text-muted);
}

.sport-info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.sport-info-box p {
    margin: 5px 0;
    font-size: 13px;
    color: var(--text-medium);
}

.sport-info-box a {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .sport-page {
        padding: 20px 15px;
    }

    .sport-tabs {
        flex-direction: column;
    }

    .sport-tab {
        width: 100%;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   EVENTS PAGE
======================================== */
.events-page {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.events-page .page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.events-page .page-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.events-calendar {
    min-height: 400px;
}

@media (max-width: 768px) {
    .events-page {
        padding: 20px 15px;
    }
}

/* ========================================
   Location Taxonomy Styles
   ======================================== */

.location-header {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.location-type {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.location-header .page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.location-description {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 10px;
}

.location-count {
    color: var(--text-muted);
    font-size: 14px;
}

/* News card locations */
.news-card-locations {
    display: block;
    margin-top: 5px;
    color: var(--primary-color);
    font-size: 12px;
}

/* Other locations section */
.other-locations {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.other-locations h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-medium);
    transition: all 0.2s;
}

.location-tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.location-tag .count {
    background: var(--white);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.location-tag:hover .count {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.location-tag.empty {
    opacity: 0.5;
}

/* Sidebar location widgets */
.location-group {
    margin-bottom: 20px;
}

.location-group:last-child {
    margin-bottom: 0;
}

.location-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-list li {
    margin-bottom: 0;
}

.location-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-medium);
    transition: all 0.2s;
}

.location-list li a:hover,
.location-list li.active a {
    background: var(--bg-light);
    color: var(--primary-color);
}

.location-list li.active a {
    font-weight: 600;
}

.location-list .count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
}

.location-list li.active .count,
.location-list li a:hover .count {
    background: var(--primary-color);
    color: var(--white);
}

/* Location link in post meta */
.lokacija-link {
    color: var(--primary-color);
    font-weight: 500;
}

.lokacija-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .location-header {
        padding: 20px 15px;
    }

    .location-header .page-title {
        font-size: 28px;
    }

    .location-tags {
        gap: 8px;
    }

    .location-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Popular Posts Thumbnails */
.popular-posts-thumb {
    width: 70px;
    min-width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.popular-posts-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-posts li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popular-posts li::before {
    display: none;
}

/* Inline style replacements */
.news-card-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.no-posts {
    grid-column: span 3;
    text-align: center;
    padding: 50px;
}
.add-post-link {
    color: var(--primary-color);
    font-weight: bold;
}
.sidebar-cta {
    display: block;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
}
.sidebar-cta--green { background: linear-gradient(135deg, #2E7D32, #4CAF50); }
.sidebar-cta--blue { background: linear-gradient(135deg, #1976d2, #42a5f5); }
.sidebar-cta-icon { font-size: 24px; margin-right: 10px; }
.sidebar-cta-text { font-size: 16px; font-weight: 600; }
.widget-empty { padding: 15px; color: #999; font-size: 13px; }
[hidden] { display: none; }
