/*
Theme Name: Daily
Theme URI: https://voilab2b.eu
Author: Voila B2B
Description: Nowoczesny motyw portalowo-biznesowy inspirowany layoutem Astra i OceanWP, z pełną personalizacją banera i świetnym wyglądem na smartfonach.
Version: 1.5.5
Text Domain: daily
*/

:root {
  --primary: #ff5d00;
  --primary-hover: #e05200;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --container-max: 1240px;
  --radius: 12px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --single-img-height: 480px;
  --hero-img-height: 340px;
  --grid-img-height: 125px;
  --banner-overlay-op: 0.75;
  --banner-py: 90px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav ul {
  display: flex;
  list-style: none;
  gap: 16px;
  margin: 0;
  padding: 0;
}

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

/* --- MAIN HEADER --- */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-area img,
.custom-logo-link img {
  max-height: 42px !important;
  width: auto !important;
}

.logo-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.search-box {
  flex: 1;
  max-width: 300px;
  position: relative;
}

.search-box input {
  width: 100%;
  height: 40px;
  padding: 8px 16px 8px 38px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background-color: #f1f5f9;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 93, 0, 0.15);
}

.search-box::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.main-nav .main-menu-ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.main-nav .main-menu-ul a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.main-nav .main-menu-ul a:hover {
  color: var(--primary);
}

.header-action {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 93, 0, 0.2);
}

.btn-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* HAMBURGER */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- BANER HERO --- */
.main-hero-banner {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: var(--banner-py) 0 50px;
  margin-bottom: 40px;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, var(--banner-overlay-op)) 0%, rgba(30, 41, 59, var(--banner-overlay-op)) 100%);
  z-index: 1;
}

.banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.banner-content {
  max-width: 820px;
}

.banner-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: #ffffff;
}

.banner-description {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.banner-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-banner-primary {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 30px;
}

.btn-banner-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.btn-banner-outline:hover {
  background: #ffffff;
  color: #0f172a;
}

.banner-features-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 500;
}

.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

/* --- KARTY HERO & CENNIK --- */
.hero-section {
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-featured-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.hero-card-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 3;
}

.category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255, 93, 0, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hero-card-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-card-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* --- KONTENER GRAFIKI HERO (FADE IN) --- */
.hero-card-img {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 24px 30px 24px 10px;
  overflow: hidden;
}

.hero-card-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 90px;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-card-img img {
  max-width: 100%;
  max-height: 280px;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center right;
  display: block;
  transition: transform 0.3s ease;
}

.hero-featured-card:hover .hero-card-img img {
  transform: scale(1.03);
}

.sidebar-lead-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sidebar-lead-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sidebar-lead-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sidebar-lead-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-lead-card input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background-color: #f8fafc;
}

.sidebar-lead-card input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

.sidebar-lead-card button {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-lead-card button:hover {
  background: var(--primary-hover);
}

/* --- KATEGORIE I FILTRY --- */
.categories-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 28px;
}

.cat-pill {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill.active,
.cat-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 24px;
  font-weight: 800;
}

.section-title a {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* --- SIATKA NA 6 WPISÓW W RZĘDZIE (Z PŁYNNYM 2. I 3. RZĘDEM) --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 14px; /* 20px odstępu pionowego między rzędami, 14px poziomego */
  align-items: stretch;
}

.post-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* MIESZCZENIE ZDJĘĆ I LOGOTYPÓW BEZ UCINANIA */
.post-card-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px; /* Zwiększona wysokość ramki pod lepsze wypełnienie */
  min-height: 140px;
  max-height: 140px;
  background-color: #f8fafc;
  padding: 0; /* Usunięty wewnętrzny odstęp, by grafiki sięgały krawędzi */
  overflow: hidden;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
/* Subtelny gradient wtapiający dół zdjęcia w tło karty */
.post-card-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}
/* WYPEŁNIENIE KADRU BEZ PUSTYCH MARGINESÓW */
.post-card-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important; /* Wypełnia całą przestrzeń bez białych pasów */
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-img img {
  transform: scale(1.06);
}

.post-card-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 25px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

.post-card-img img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

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

/* TREŚĆ KARTY - RÓWNY TYTUŁ I ZAJAWKA */
.post-card-content {
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-content .category-tag {
  align-self: flex-start;
  font-size: 9px;
  padding: 3px 8px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.post-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 35px;
}

.post-card-excerpt {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted, #64748b);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- POJEDYNCZY WPIS (SINGLE POST) --- */
.single-post-wrapper {
  padding-top: 36px;
  padding-bottom: 70px;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.single-post-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius, 12px);
  padding: 44px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  min-width: 0;
}

.single-category {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.single-category a {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 93, 0, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-main, #0f172a);
  margin-bottom: 20px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  margin-bottom: 28px;
}

.author-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.author-details,
.date-item {
  display: flex;
  flex-direction: column;
}

.author-label,
.date-label {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  font-weight: 600;
}

.author-name,
.date-item time {
  font-size: 14px;
  color: var(--text-main, #0f172a);
  font-weight: 600;
}

.meta-divider {
  color: var(--border-color, #cbd5e1);
  font-size: 18px;
}

.single-thumbnail {
  margin: 0 0 36px 0;
  width: 100%;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  background-color: #f1f5f9;
}

.single-thumbnail img,
.single-thumbnail img.responsive-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.thumbnail-caption {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  padding: 8px 12px;
  text-align: center;
  font-style: italic;
  background: #f8fafc;
}

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
  word-wrap: break-word;
}

.entry-content p {
  margin-bottom: 22px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text-main, #0f172a);
  font-weight: 800;
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 21px; }

.entry-content img {
  border-radius: 8px;
  margin: 24px 0;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1e293b;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 24px 24px;
}

.entry-content li {
  margin-bottom: 8px;
}

.single-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

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

.tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.post-tags a {
  background: #f1f5f9;
  color: #475569;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.post-tags a:hover {
  background: var(--primary);
  color: #ffffff;
}

.post-navigation-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.nav-box a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-box a:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.nav-dir {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.nav-next {
  text-align: right;
}

.sticky-sidebar {
  position: sticky;
  top: 92px;
}

/* --- DOMYŚLNY PLACEHOLDER BRAKUJĄCEJ GRAFIKI --- */
.default-svg-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 125px;
  background: #f8fafc;
  color: #94a3b8;
  gap: 6px;
  user-select: none;
}

.default-svg-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: #94a3b8;
  opacity: 0.8;
}

.default-svg-placeholder span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card-img .default-svg-placeholder {
  height: var(--grid-img-height, 125px);
}

/* --- STYLE DLA WIDGETÓW (SINGLE & FULLWIDTH) --- */
.single-widget {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius, 12px);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.single-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.single-widget li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 14px;
}

.single-widget li:last-child {
  border-bottom: none;
}

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

.after-post-widgets-area {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.after-post-widget {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.widget-fullwidth-section {
  margin: 40px 0;
  padding: 30px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.section-widget-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

/* --- STOPKA Z KOLUMNAMI WIDGETÓW --- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  border-top: 1px solid #1e293b;
  margin-top: 70px;
  padding-top: 60px;
}

.footer-widgets-area {
  padding-bottom: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.footer-widget-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-widget a {
  color: #94a3b8;
}

.footer-widget a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom-bar {
  border-top: 1px solid #1e293b;
  padding: 22px 0;
  font-size: 13px;
  color: #64748b;
  background: #090d16;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #94a3b8;
}

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

/* --- RWD: SMARTFONY I TABLETY --- */
@media (max-width: 1200px) {
  .posts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-featured-card {
    grid-template-columns: 1fr;
  }
  
  .hero-card-img {
    padding: 20px;
  }
  
  .hero-card-img::before {
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  }
  
  .hero-card-img img {
    max-height: 220px;
    object-position: center center;
  }
  
  .single-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  .single-sidebar {
    position: static;
  }

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

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

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header-content {
    position: relative;
  }

  .search-box {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: none;
    padding: 20px;
    z-index: 999;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav .main-menu-ul {
    flex-direction: column;
    gap: 16px;
  }

  .main-hero-banner {
    padding: 50px 0 35px;
  }

  .banner-title {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  .banner-description {
    font-size: 15px;
  }

  .banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-banner-primary,
  .btn-banner-outline {
    width: 100%;
  }

  .banner-features-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .single-post-wrapper {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .single-post-card {
    padding: 24px 16px;
    border-radius: 8px;
  }

  .single-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .single-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .meta-divider {
    display: none;
  }

  .single-thumbnail img,
  .single-thumbnail img.responsive-hero-img {
    aspect-ratio: 16 / 10;
    max-height: 280px;
  }

  .entry-content {
    font-size: 16px;
  }

  .post-navigation-area {
    grid-template-columns: 1fr;
  }

  .nav-next {
    text-align: left;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links ul {
    justify-content: center;
  }
}