/*
Theme Name: Biciklizam
Theme URI: https://biciklizam.net
Author: Biciklizam.net
Author URI: https://biciklizam.net
Description: Minimalistički WordPress tema za biciklistički portal. Vijesti, trening, utrke, putopisi i sve o biciklizmu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biciklizam
Tags: blog, magazine, minimal, sports, cycling
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --white: #ffffff;
  --off-white: #f8f7f5;
  --light-gray: #f0eeeb;
  --mid-gray: #e2dfd9;
  --border: #d6d3ce;
  --text-muted: #9b9690;
  --text-secondary: #6b6760;
  --text-primary: #1a1917;
  --accent: #e8380d;
  --accent-dark: #c42e0b;
  --accent-light: #fdf2f0;

  --font-display: 'Inter', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1280px;
  --content-width: 760px;
  --gap: 2rem;
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================
   GLOBAL THUMBNAIL DESATURATION EFFECT
   All post/card images start desaturated+bright,
   reveal full color + zoom on hover.
   ============================================ */
.post-card__image img,
.hero__card-img,
.yt-card__thumb img,
.archive-card__image img,
.related-card__image img {
  filter: saturate(0.45) brightness(1.12);
  transition: filter 0.35s ease, transform 0.4s ease;
}
.post-card:hover .post-card__image img,
.hero__card:hover .hero__card-img,
.yt-card:hover .yt-card__thumb img,
.archive-card:hover .archive-card__image img,
.related-card:hover .related-card__image img {
  filter: saturate(1) brightness(1);
}

/* ============================================
   TOP BANNER & SIDEBAR BANNERS
   ============================================ */
.top-banner-wrap {
  width: 100%;
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  min-height: 62px;
  overflow: hidden;
}
.top-banner-wrap .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-banner-wrap img {
  max-height: 90px;
  width: auto;
  max-width: 970px;
}
.top-banner-placeholder {
  width: 970px;
  max-width: 100%;
  height: 90px;
  background: repeating-linear-gradient(
    90deg, var(--mid-gray) 0px, var(--mid-gray) 1px, transparent 1px, transparent 20px
  ), repeating-linear-gradient(
    0deg, var(--mid-gray) 0px, var(--mid-gray) 1px, transparent 1px, transparent 20px
  );
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.sidebar-banner-slot {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px dashed var(--border);
  background: var(--light-gray);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s;
}
.sidebar-banner-slot:hover { border-color: var(--accent); }
.sidebar-banner-slot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}
.sidebar-banner-slot-sm { min-height: 90px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Compact 3-col grid for smaller category sections */
.grid-3-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.post-card--compact .post-card__image {
  aspect-ratio: 16 / 10;
}
.post-card--compact .post-card__body {
  padding: 0.85rem;
}
.post-card--compact .post-card__title {
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
}
.post-card--compact .post-card__meta {
  font-size: 0.65rem;
}
@media (max-width: 768px) {
  .grid-3-compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-3-compact { grid-template-columns: 1fr; }
}

/* 1+3 featured layout — big post left, 3 small posts stacked right */
.cat-featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}
.cat-featured-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cat-featured-side .post-card--horizontal {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.cat-featured-side .post-card--horizontal:last-child {
  border-bottom: 1px solid var(--border);
}
.post-card--featured .post-card__image {
  aspect-ratio: 16 / 10;
}
.post-card__title--lg {
  font-size: 1.35rem;
  line-height: 1.25;
}
/* Horizontal small cards in the side column */
.cat-featured-side .post-card--horizontal {
  display: flex;
  flex-direction: row;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: none;
}
.cat-featured-side .post-card--horizontal:hover {
  transform: none;
  box-shadow: none;
  background: var(--off-white);
}
.cat-featured-side .post-card--horizontal .post-card__image {
  width: 100px;
  height: 72px;
  aspect-ratio: unset;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.cat-featured-side .post-card--horizontal .post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-featured-side .post-card--horizontal .post-card__body {
  padding: 0;
  justify-content: flex-start;
}
.cat-featured-side .post-card--horizontal .post-card__title {
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
  margin-bottom: 0.35rem;
}
.cat-featured-side .post-card--horizontal .post-card__excerpt {
  font-size: 0.75rem;
  -webkit-line-clamp: 3;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
@media (max-width: 640px) {
  .cat-featured-layout { grid-template-columns: 1fr; }
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }

section { padding: 5rem 0; }
section + section { padding-top: 0; }

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ============================================
   CATEGORY BADGE
   ============================================ */
.cat-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--white);
  transition: background var(--transition);
}
.cat-badge:hover { background: var(--accent-dark); }
.cat-badge--outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.cat-badge--outline:hover { background: var(--accent); color: var(--white); }

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--text-primary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--accent);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__date { color: var(--text-muted); font-size: 0.7rem; }

.topbar__ticker {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__ticker-label {
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

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

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  gap: 3rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
}

.ticker-content a:hover { color: white; }

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

.topbar__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__social a {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.topbar__social a:hover { color: white; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header__main {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  flex-shrink: 0;
}

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

.site-logo__text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.site-logo__text span {
  color: var(--accent);
}

.header__search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.header__search input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--off-white);
  color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.header__search input:focus {
  border-color: var(--accent);
  background: var(--white);
}

.header__search input::placeholder { color: var(--text-muted); }

.header__search button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
}

.header__search button:hover { color: var(--accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-subscribe {
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
}
.btn-subscribe:hover { background: var(--accent-dark); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  border-top: 1px solid var(--border);
}

.site-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-item > a:hover,
.nav-item.current > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-item > a svg { width: 10px; height: 10px; transition: transform var(--transition); }
.nav-item:hover > a svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 200;
}

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

.dropdown a {
  display: flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid var(--light-gray);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--accent-light); color: var(--accent); padding-left: 1.5rem; }

.nav__all-link {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav__all-link a {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--accent);
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav__all-link a:hover { color: var(--accent-dark); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 2px solid var(--accent);
  padding: 1rem 0 1.5rem;
}

.mobile-nav.is-open { display: block; }

.mobile-nav__links {
  display: flex;
  flex-direction: column;
}

.mobile-nav__links a {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav__links a:hover { color: var(--accent); background: var(--off-white); }

/* Mobile nav items & submenu accordion */
.mobile-nav__item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--light-gray);
}

.mobile-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav__row > a {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: none; /* border is on parent .mobile-nav__item */
}

.mobile-nav__row > a:hover { color: var(--accent); background: var(--off-white); }

.mobile-nav__item.current > .mobile-nav__row > a { color: var(--accent); }

.mobile-submenu-toggle {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-left: 1px solid var(--light-gray);
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.15s, color 0.15s;
  margin-right: 0.25rem;
}

.mobile-submenu-toggle:hover { background: var(--off-white); color: var(--accent); }

.mobile-submenu-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s ease;
}

.mobile-nav__item.submenu-open > .mobile-nav__row .mobile-submenu-toggle svg {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  background: var(--off-white);
}

.mobile-submenu__link {
  display: block;
  padding: 0.6rem 2.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--light-gray);
}

.mobile-submenu__link:last-child { border-bottom: none; }
.mobile-submenu__link:hover { color: var(--accent); background: #f0f0f0; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--border);
}

.hero__grid {
  display: grid !important;
  grid-template-columns: 1fr 340px;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: stretch;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  max-width: 1280px !important;
  width: calc(100% - 3rem) !important;
  margin: 0 auto !important;
}

.hero__featured {
  position: relative;
  overflow: hidden;
  background: var(--text-primary);
  min-height: 320px;
  cursor: pointer;
}

.hero__featured img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: saturate(0.45) brightness(1.05);
  transition: opacity 0.4s, transform 0.4s, filter 0.4s;
}
.hero__featured:hover img { opacity: 0.75; transform: scale(1.02); filter: saturate(1) brightness(1); }

.hero__featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.hero__featured-content h2 {
  color: white;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin: 0.5rem 0 0.75rem;
}

.hero__featured-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
}

.hero__secondary {
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.hero__card {
  background: var(--white);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background var(--transition);
}
.hero__card:hover { background: var(--off-white); }

.hero__card-img {
  width: 90px;
  height: 70px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  filter: saturate(0.45) brightness(1.12);
  transition: filter 0.35s ease;
}
.hero__card:hover .hero__card-img {
  filter: saturate(1) brightness(1);
}

.hero__card-body h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0.3rem 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__card-body h3 a:hover { color: var(--accent); }

.hero__card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__secondary { gap: 0; }
}

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .cat-showcase { grid-template-columns: repeat(4, 1fr); }
  .home-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .dictionary-grid { grid-template-columns: repeat(2, 1fr); }
  .youtube-grid { grid-template-columns: repeat(3, 1fr); }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
  .topbar__date { display: none; }
  .header__search { display: none; }
  .hamburger { display: flex; }
  .site-nav { display: none; }

  .hero { padding: 1rem 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__featured { min-height: 260px; }
  .hero__featured-content h2 { font-size: 1.25rem; }
  .hero__featured-content p { display: none; }

  .cat-showcase { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
  .cat-tile { padding: 0.75rem 0.4rem; }
  .cat-tile__count { display: none; }

  .home-main { padding: 2rem 0; }
  .cards-grid, .posts-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; margin-top: 2rem; }

  .youtube-grid { grid-template-columns: 1fr; }
  .yt-channel-cta { flex-direction: column; }
  .btn-youtube, .btn-outline-white { width: 100%; justify-content: center; }

  .dictionary-grid { grid-template-columns: 1fr 1fr; }
  .dictionary-section::before { font-size: 8rem; }

  .about-section { padding: 3rem 0; }
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-badge { display: none; }

  .links-grid { grid-template-columns: 1fr 1fr; }
  .contact-section { padding: 3rem 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .container { padding: 0 1rem; }
  section { padding: 3rem 0; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .cat-showcase { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .dictionary-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .hero__featured { min-height: 220px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   BREAKING / TICKER STRIP
   ============================================ */
.breaking-strip {
  background: var(--accent);
  color: white;
  padding: 0.65rem 0;
  overflow: hidden;
}

.breaking__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.breaking__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0,0,0,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.breaking__items {
  display: flex;
  gap: 2rem;
  font-size: 0.82rem;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}

.breaking__items a { color: white; opacity: 0.9; }
.breaking__items a:hover { opacity: 1; text-decoration: underline; }
.breaking__items span { opacity: 0.5; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--text-primary);
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header a {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.section-header a:hover { color: var(--accent-dark); }

/* ============================================
   POST CARDS
   ============================================ */
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--light-gray);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) brightness(1.12);
  transition: transform 0.4s ease, filter 0.35s ease;
}
.post-card:hover .post-card__image img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.post-card__image .cat-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.post-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__title {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--light-gray);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.post-card__meta-dot { color: var(--border); }

/* Horizontal card */
.post-card--horizontal {
  flex-direction: row;
  gap: 0;
}

.post-card--horizontal .post-card__image {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: unset;
  border-radius: 0;
}

@media (max-width: 640px) {
  .post-card--horizontal { flex-direction: column; }
  .post-card--horizontal .post-card__image { width: 100%; aspect-ratio: 16/10; }
}

/* List card (compact) */
.list-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.list-card:first-child { padding-top: 0; }
.list-card:last-child { border-bottom: none; }

.list-card__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--mid-gray);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.list-card__body {}
.list-card__title {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}
.list-card__title a:hover { color: var(--accent); }
.list-card__meta { font-size: 0.7rem; color: var(--text-muted); }

/* ============================================
   HOMEPAGE LAYOUT
   ============================================ */
.home-main {
  padding: 3.5rem 0;
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 960px) {
  .home-layout { grid-template-columns: 1fr; }
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: sticky;
  top: calc(60px + 3rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.widget {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.widget__title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Categories widget */
.cat-list {}
.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { font-weight: 500; transition: color var(--transition); }
.cat-list a:hover { color: var(--accent); }
.cat-list span {
  font-size: 0.7rem;
  background: #111;
  color: var(--text-secondary);
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  font-weight: 600;
}

/* Newsletter widget */
.newsletter-widget {
  background: var(--text-primary);
  color: white;
}

.newsletter-widget .widget__title {
  color: white;
  border-color: var(--accent);
}

.newsletter-widget p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
  background: var(--accent);
  color: white;
  padding: 0.65rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent-dark); }

/* Social widget */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.social-link:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.social-link--disabled { opacity: 0.45; pointer-events: none; }

.social-link__icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-link__icon--yt { background: rgba(255,0,0,.1); color: #cc0000; }
.social-link__icon--ig { background: rgba(193,53,132,.1); color: #c13584; }
.social-link__icon--fb { background: rgba(24,119,242,.1); color: #1877f2; }
.social-link__icon--tt { background: rgba(0,0,0,.06); color: #333; }

.social-link__label { font-weight: 600; flex: 1; }
.social-link__action { font-size: 0.68rem; color: var(--text-muted); }

/* Cat icon small */
.cat-icon-sm { font-size: 0.85rem; }
.cat-count-badge {
  font-size: 0.65rem;
  background: #111;
  color: var(--text-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  font-weight: 600;
}

/* Sponsor / banner widget */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.sponsor-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 90px;
}
.sponsor-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.sponsor-item img { max-height: 36px; width: auto; filter: grayscale(40%); transition: filter var(--transition); }
.sponsor-item:hover img { filter: grayscale(0%); }

/* ============================================
   YOUTUBE SECTION
   ============================================ */
.youtube-section {
  /* Now inside main content — no background or padding needed */
}
.youtube-section .section-header {
  border-bottom-color: var(--border);
}
.youtube-section .section-header h2 {
  color: var(--text-primary);
}
.youtube-section .section-header a {
  color: var(--accent);
}
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (max-width: 900px) {
  .youtube-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .youtube-grid { grid-template-columns: 1fr; }
}
.yt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.yt-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.yt-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  display: block;
}
a.yt-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.yt-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;

  filter: saturate(0.45) brightness(1.08);
  transition: transform 0.4s ease, filter 0.35s ease;
}
.yt-card:hover .yt-card__thumb img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}
.yt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 44px; height: 44px;
  background: rgba(255,0,0,0.88);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.yt-card:hover .yt-play-btn { transform: translate(-50%, -50%) scale(1); background: #ff0000; }
.yt-play-btn svg { width: 18px; height: 18px; fill: white; margin-left: 3px; }
.yt-duration {
  position: absolute;
  bottom: 0.45rem; right: 0.45rem;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 0.68rem; font-weight: 700;
  padding: 0.12rem 0.42rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}
.yt-card__body { padding: 0.75rem 0.85rem 0.9rem; }
.yt-card__title {
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-card:hover .yt-card__title a { color: var(--accent); }
.yt-card__title a { color: inherit; text-decoration: none; }
.yt-card__meta { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.3rem; }
.yt-card--large .yt-card__thumb { aspect-ratio: 16/9; }
.yt-card--large .yt-card__body { padding: 0.75rem 0.85rem 0.9rem; }
.yt-card--large .yt-card__title { font-size: 0.82rem; -webkit-line-clamp: 2; }
.yt-channel-cta {
  margin-top: 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
}
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.btn-youtube:hover { background: #cc0000; transform: translateY(-2px); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline-white:hover { border-color: white; color: white; }

/* btn-outline-dark - YouTube CTA secondary button on light background */
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  background: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline-dark:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

/* ============================================
   CATEGORIES SHOWCASE
   ============================================ */
.categories-section { padding: 4rem 0; background: var(--off-white); }

.cat-showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) { .cat-showcase { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px) { .cat-showcase { grid-template-columns: repeat(2, 1fr); } }

.cat-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.cat-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-tile__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background var(--transition);
}
.cat-tile:hover .cat-tile__icon { background: var(--accent); }
.cat-tile:hover .cat-tile__icon span { filter: brightness(10); }

.cat-tile__name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.cat-tile__count {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ============================================
   RJECNIK (DICTIONARY) TEASER
   ============================================ */
.dictionary-section {
  padding: 4rem 0;
  background: var(--accent);
  overflow: hidden;
  position: relative;
}

.dictionary-section::before {
  content: 'ABC';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 20rem;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  pointer-events: none;
  line-height: 1;
}

.dictionary-section .section-header {
  border-bottom-color: rgba(255,255,255,0.25);
}

.dictionary-section .section-header h2 { color: white; }
.dictionary-section .section-header a { color: rgba(255,255,255,0.8); }
.dictionary-section .section-header a:hover { color: white; }

.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) { .dictionary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .dictionary-grid { grid-template-columns: 1fr; } }

.dict-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.dict-card:hover { background: rgba(255,255,255,0.18); }

.dict-card__letter {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.25);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dict-card__term {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.35rem;
}

.dict-card__def {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
}

.dict-card__def a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   RACES / CALENDAR
   ============================================ */
.races-strip {
  background: var(--light-gray);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.races-strip__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.races-strip__inner::-webkit-scrollbar { display: none; }

.race-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
  transition: border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  font-size: 0.78rem;
}
.race-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.race-chip__date {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.race-chip__name { font-weight: 600; color: var(--text-primary); }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 5rem 0;
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.about-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-stat {}
.about-stat__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.about-stat__label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--accent);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-badge__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge__text { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }

/* ============================================
   LINKS SECTION
   ============================================ */
.links-section { padding: 4rem 0; background: var(--off-white); }

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

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

.link-group {}
.link-group__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.link-group ul { display: flex; flex-direction: column; gap: 0.35rem; }

.link-group a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}
.link-group a::before {
  content: '→';
  color: var(--accent);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
}
.link-group a:hover { color: var(--accent); }
.link-group a:hover::before { opacity: 1; transform: translateX(0); }

/* ============================================
   SPONSORS SECTION
   ============================================ */
.sponsors-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sponsors-section--strip {
  padding: 1.5rem 0;
}

.sponsors-section .section-header { margin-bottom: 1.5rem; }

.sponsors-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity var(--transition);
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
}
.sponsor-logo:hover { opacity: 1; filter: grayscale(0%); }
.sponsor-logo img { height: 40px; width: auto; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section { padding: 5rem 0; background: var(--white); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

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

.contact-info {}
.contact-info p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail__icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1rem;
}

.contact-detail__text strong { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.15rem; color: var(--text-secondary); }
.contact-detail__text a, .contact-detail__text p { font-size: 0.9rem; color: var(--text-primary); margin: 0; }
.contact-detail__text a:hover { color: var(--accent); }

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.btn-submit {
  background: var(--accent);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.btn-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand {}
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-brand p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 1.25rem; }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: white; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 580px) { .footer-bottom { flex-direction: column; text-align: center; } }

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

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 90;
  font-size: 1.1rem;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ============================================
   ARCHIVE / CATEGORY PAGE
   ============================================ */
.archive-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.archive-header__cat { margin-bottom: 0.25rem; }
.archive-header h1 { font-size: 1.7rem; margin-bottom: 0; font-weight: 600; }
.archive-header p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 0.25rem; }

.archive-layout {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) { .archive-layout { grid-template-columns: 1fr; } }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.page-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.page-link:hover, .page-link.active { background: var(--accent); border-color: var(--accent); color: white; }
.page-link--prev, .page-link--next { width: auto; padding: 0 0.75rem; }

/* ============================================
   SINGLE POST
   ============================================ */
.single-post { padding: 3rem 0 5rem; }

.post-header {
  margin-bottom: 2.5rem;
}

.post-header .cat-badge { margin-bottom: 1rem; }

.post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-header__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.post-header__author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

.post-featured-image {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-content { font-size: 1.05rem; line-height: 1.8; color: var(--text-primary); }
.post-content h2, .post-content h3 { margin: 2.5rem 0 1rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: var(--radius); margin: 2rem 0; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--off-white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
}
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5rem; }

.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-share__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform var(--transition), opacity var(--transition);
}
.share-btn:hover { transform: translateY(-1px); opacity: 0.85; }
.share-btn--fb { background: #1877f2; color: white; }
.share-btn--tw { background: #1da1f2; color: white; }
.share-btn--wa { background: #25d366; color: white; }

/* ============================================
   LOADING ANIMATION
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

.fade-in-up:nth-child(2) { animation-delay: 0.08s; }
.fade-in-up:nth-child(3) { animation-delay: 0.16s; }
.fade-in-up:nth-child(4) { animation-delay: 0.24s; }

/* ============================================
   UTILITIES
   ============================================ */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================
   RESPONSIVE NAV
   ============================================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .site-nav { display: none; }
  .header__search { display: none; }
  .btn-subscribe { display: none; }
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.page-wrap {
  padding: 3rem 0;
}
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.page-content {
  min-width: 0;
}

/* ============================================
   SOCIAL ICONS ROW (sidebar)
   ============================================ */
.social-icons-row {
  display: flex;
  gap: 0.5rem;
}
.social-icon-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  transition: all 0.2s;
}
.social-icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sib-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.sib-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1;
}
.social-icon-btn--yt { color: #cc0000; border-color: rgba(204,0,0,.2); background: rgba(255,0,0,.04); }
.social-icon-btn--yt:hover { background: rgba(255,0,0,.08); }
.social-icon-btn--ig { color: #c13584; border-color: rgba(193,53,132,.2); background: rgba(193,53,132,.04); }
.social-icon-btn--ig:hover { background: rgba(193,53,132,.08); }
.social-icon-btn--fb { color: #1877f2; border-color: rgba(24,119,242,.2); background: rgba(24,119,242,.04); }
.social-icon-btn--fb:hover { background: rgba(24,119,242,.08); }
.social-icon-btn--tt { color: #333; border-color: rgba(0,0,0,.12); background: rgba(0,0,0,.02); }
.social-icon-btn--tt:hover { background: rgba(0,0,0,.06); }

/* ============================================
   MEDIA KIT PAGE
   ============================================ */
.mk-page { padding: 3rem 0; }
.mk-header { margin-bottom: 1.75rem; }
.mk-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.4rem; }
.mk-sub { font-size: 0.88rem; color: var(--text-muted); }

.mk-intro {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  background: var(--off-white);
  margin-bottom: 2.5rem;
}
.mk-intro p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

.mk-content { margin-bottom: 2.5rem; }

.mk-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}
.mk-section-label:first-of-type { margin-top: 0; }

/* Reach summary cards */
.mk-reach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.mk-reach-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border);
}
.mk-reach-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.mk-reach-value { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.mk-reach-sub { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Platform cards */
.mk-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.mk-platform-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mk-pc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.mk-pc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mk-pc-icon--yt { background: rgba(255,0,0,.08); }
.mk-pc-icon--ig { background: rgba(193,53,132,.08); }
.mk-pc-icon--fb { background: rgba(24,119,242,.08); }
.mk-pc-icon--tt { background: rgba(0,0,0,.05); }
.mk-pc-name { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.mk-pc-handle { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

.mk-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.mk-stat {
  background: var(--white);
  padding: 0.85rem 1rem;
}
.mk-stat--wide { grid-column: 1 / -1; }
.mk-stat__label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.mk-stat__value { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); line-height: 1; }

/* Contact strip */
.mk-contact-strip {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.mk-contact-strip p { font-size: 0.88rem; color: var(--text-secondary); }
.mk-contact-strip a { font-size: 0.88rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.mk-contact-strip a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .mk-reach-grid { grid-template-columns: 1fr 1fr; }
  .mk-platform-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mk-reach-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   MASONRY / INFINITE SCROLL GRID
   ============================================ */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 640px) {
  .masonry-grid { grid-template-columns: 1fr; }
}

/* ============================================
   AUTHOR LINK + AUTHOR PAGE
   ============================================ */
.author-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.author-link:hover { color: var(--accent); }

.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.author-box__avatar {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50%;
  flex-shrink: 0;
}
.author-box__name { font-size: 1.5rem; margin-bottom: 0.4rem; }
.author-box__bio { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 0.75rem; line-height: 1.6; }
.author-box__meta { font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 520px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================
   MOBILE OVERFLOW FIX — kalkulatori
   ============================================ */
@media (max-width: 768px) {
    .entry-content,
    .post-content,
    .page-content,
    .wp-block-post-content,
    article.post,
    article.page,
    .single-content,
    .page-body {
        overflow-x: hidden;
    }
}
