/*
Theme Name: Promo3
Author: Anton Smolik
*/

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  /* Promozilla default palette */
  --clr-primary:       #7A5DC7;
  --clr-primary-hover: #7A5DC7;
  --clr-primary-soft:  #F5F3FF;
  --clr-primary-mid:   #DDD6FE;
  --clr-accent:        #FBBF24;
  --clr-accent-hover:  #F59E0B;

  /* Neutrals */
  --clr-bg:            #F9FAFB;
  --clr-surface:       #FFFFFF;
  --clr-border:        #E5E7EB;
  --clr-border-light:  #F3F4F6;
  --clr-text:          #111827;
  --clr-text-secondary:#4B5563;
  --clr-text-muted:    #9CA3AF;

  /* Header */
  --header-bg-from:    #5B21B6;
  --header-bg-to:      #7A5DC7;
  --header-height:     60px;

  /* Footer */
  --footer-bg:         #1A0F2E;
  --footer-text:       rgba(255,255,255,0.55);
  --footer-heading:    #FFFFFF;
  --footer-link-hover: var(--clr-accent);

  /* Typography */
  --font-display: 'Urbanist', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(124,58,237,0.14);

  /* Content widths */
  --w-site:    1120px;
  --w-content: 780px;   /* article reading column */
  --w-narrow:  640px;
}

/* ═══════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ═══════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════ */
.wrap {
  width: 100%;
  max-width: var(--w-site);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.wrap--content {
  max-width: var(--w-content);
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #7A5DC7;
  height: var(--header-height);
  box-shadow: 0 2px 12px rgba(91,33,182,0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--sp-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo__icon {
  width: 115px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1.5px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.site-logo__country {
  font-size: 9px;
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Nav */
.site-nav {
  display: flex;
  gap: var(--sp-1);
}

.site-header .wrap {
  max-width: 100%;
}

.site-nav__link {
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  border-radius: var(--r-md);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav__link:hover {
  color: #fff;
  background: #6e54b5;
  border-radius: 0px;
}

.site-nav__link--active {
  color: var(--clr-accent);
  font-weight: 700;
  background: rgba(251,191,36,0.12);
}

/* Header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.header-search {
  position: relative;
  display: none!important;
}

.lang-selector__trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #9f7ef8;
    color: white;
    border-radius: 4px;
    padding: 10px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: white;
}

.header-search__input {
  width: 200px;
  padding: 8px 14px 8px 34px;
  border-radius: var(--r-md);
  border: 2px solid rgba(251,191,36,0.6);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.header-search__input::placeholder { color: rgba(255,255,255,0.45); }
.header-search__input:focus {
  border-color: var(--clr-accent);
  background: rgba(255,255,255,0.15);
}

.header-search__icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.header-country {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
}

/* Hamburger (mobile) */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  cursor: pointer;
}

.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s;
}

.portal-folders .site-footer {
  background-color: #A5B7C9!important;
}

body.portal-promobutler .site-footer {
  background-color: #A5B7C9!important;
}

.portal-folders .newsletter-block {
  background: #FFD800!important;
}

.portal-folders .footer-about-text, .portal-folders .footer-links a, .portal-folders .footer-col__heading, .portal-folders .footer-bar p {
  color: #010101!important;
}

.portal-promobutler .footer-about-text, .portal-promobutler .footer-links a, .portal-promobutler .footer-col__heading, .portal-promobutler .footer-bar p {
  color: #010101!important;
}

/* ═══════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════ */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--clr-text-muted);
  padding: var(--sp-4) 0 0;
}

.breadcrumbs a {
  color: var(--clr-text-muted);
  transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--clr-primary); }

.breadcrumbs__sep {
  color: var(--clr-border);
  user-select: none;
}

.breadcrumbs__current {
  color: var(--clr-text-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* ═══════════════════════════════════════════════
   BADGE
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   ARCHIVE / INDEX
═══════════════════════════════════════════════ */
.blog-index {
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-16);
}

.blog-index__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.blog-index__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.blog-index__date {
  font-size: 13px;
  color: var(--clr-text-muted);
  padding-top: 6px;
}

.blog-index__subtitle {
  font-size: 15px;
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-6);
}

/* Category pills */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.cat-pill {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.cat-pill:hover,
.cat-pill--active {
  border-color: var(--clr-primary);
  background: var(--clr-primary-soft);
  color: var(--clr-primary);
  font-weight: 700;
}

/* Hero card */
.hero-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-8);
  background: #7A5DC7;
  text-decoration: none;
  transition: box-shadow 0.2s;
  position: relative;
}

.hero-post::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-post:hover { box-shadow: var(--shadow-lg); }

.hero-post__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: rgba(0,0,0,0.12);
}

.hero-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-post__body {
  padding: var(--sp-8) var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
}

.hero-post__cat {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  align-self: flex-start;
}

.hero-post__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  font-size: 30px;
  color: #fff;
  line-height: 1.25;
}

.hero-post__excerpt {
  font-size: 14px;
  color: #fff;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-post__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}

/* Post card */
.post-card {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary-soft);
  font-size: 40px;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.post-card__thumb .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.post-card__body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--clr-text);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  color: var(--clr-text-muted);
  margin-top: auto;
}

/* Newsletter CTA */
.newsletter-block {
  background: var(--clr-accent);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-8);
  margin: var(--sp-5) 0;
  position: relative;
  overflow: hidden;
}

.newsletter-block::before {
  content: '';
  position: absolute;
  top: -30px; right: -20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.newsletter-block__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  position: relative;
  z-index: 1;
}

.newsletter-block__text { flex: 1; }

.newsletter-block__icon {
  font-size: 20px;
  margin-bottom: var(--sp-1);
}

.newsletter-block__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 4px;
}

.newsletter-block__sub {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
}

.newsletter-block__form {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.newsletter-block__input {
  padding: 11px 16px;
  border-radius: var(--r-md);
  border: 2px solid rgba(0,0,0,0.08);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  width: 200px;
  outline: none;
}

.newsletter-block__btn {
  padding: 11px 24px;
  border-radius: var(--r-md);
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  border: none;
  transition: background 0.15s;
}

.newsletter-block__btn:hover {
  background: var(--clr-primary-hover);
}

/* Load more */
.load-more {
  text-align: center;
  padding: var(--sp-5) 0;
}

.btn-load-more {
  padding: 12px 40px;
  border-radius: var(--r-pill);
  border: 2px solid var(--clr-primary);
  background: transparent;
  color: var(--clr-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.15s;
}

.btn-load-more:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* ═══════════════════════════════════════════════
   SINGLE POST
   Full-width structure, centered reading column
═══════════════════════════════════════════════ */

/* Hero strip - full width, contains centered content */
.single-hero {
  background: linear-gradient(135deg, var(--header-bg-from) 0%, var(--clr-primary) 100%);
  padding: var(--sp-10) 0 0;
  position: relative;
  overflow: hidden;
}

.single-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.single-hero__content {
  position: relative;
  z-index: 1;
}

.single-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.btn-back:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* breadcrumbs inside hero */
.single-hero .breadcrumbs {
  color: rgba(255,255,255,0.45);
  padding-top: 0;
}

.single-hero .breadcrumbs a {
  color: rgba(255,255,255,0.45);
}

.single-hero .breadcrumbs a:hover {
  color: var(--clr-accent);
}

.single-hero .breadcrumbs__sep {
  color: rgba(255,255,255,0.2);
}

.single-hero .breadcrumbs__current {
  color: rgba(255,255,255,0.7);
}

.single-hero__cat {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: var(--sp-4);
}

.single-hero__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
  max-width: 700px;
}

.single-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  padding-bottom: var(--sp-8);
}

.single-hero__meta strong {
  color: rgba(255,255,255,0.8);
}

/* Featured image — full width, below hero */
.single-featured {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background: var(--clr-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-featured img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.single-featured--placeholder {
  height: 320px;
  font-size: 80px;
}

/* Article body wrapper */
.single-body {
  padding: var(--sp-12) 0 var(--sp-16);
}

/* Article layout: reading column centered with optional sidebar */
.single-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--w-content)) 1fr;
  gap: 0;
}

.single-layout__main {
  grid-column: 2;
  min-width: 0;
}

/* Table of Contents */
.toc {
  background: var(--clr-primary-soft);
  border-left: 4px solid var(--clr-primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-8);
}

.toc__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-3);
}

.toc__list {
  list-style: none;
  counter-reset: toc;
}

.toc__list li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: 4px 0;
}

.toc__list li::before {
  content: counter(toc);
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-primary-mid);
  min-width: 18px;
}

.toc__list a {
  font-size: 16px;
  color: var(--clr-primary-hover);
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}

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

/* Post content typography */
.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1F2937;
}

.post-content > * + * { margin-top: var(--sp-5); }

.post-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.post-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--clr-text);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.post-content p { margin-bottom: 0; }

.post-content a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.post-content a:hover { color: var(--clr-primary-hover); }

.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; }

.post-content ul,
.post-content ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: var(--sp-2); }

.post-content blockquote {
  border-left: 4px solid var(--clr-primary);
  padding-left: var(--sp-6);
  margin: var(--sp-8) 0;
  color: var(--clr-text-secondary);
  font-style: italic;
  font-size: 19px;
}

/* Images inside content */
.post-content img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  margin: var(--sp-8) 0;
  display: block;
  box-shadow: var(--shadow-md);
}

.post-content figure {
  margin: var(--sp-8) 0;
}

.post-content figcaption {
  font-size: 13px;
  color: var(--clr-text-muted);
  text-align: center;
  margin-top: var(--sp-2);
}

.post-content .wp-block-image { margin: var(--sp-8) 0; }
.post-content .wp-block-image img { margin: 0; }
.post-content .alignwide {
  width: calc(100% + var(--sp-16));
  margin-left: calc(-1 * var(--sp-8));
}

.post-content code {
  background: var(--clr-primary-soft);
  color: var(--clr-primary-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.post-content pre {
  background: #1E1B4B;
  color: #E0E7FF;
  border-radius: var(--r-md);
  padding: var(--sp-6);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: var(--sp-8) 0;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-8) 0;
  font-size: 15px;
}

.post-content th {
  background: var(--clr-primary-soft);
  font-weight: 700;
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 2px solid var(--clr-primary-mid);
  color: var(--clr-primary-hover);
}

.post-content td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
}

.post-content tr:hover td { background: var(--clr-primary-soft); }

/* Offers CTA inside article */
.offers-cta {
  background: linear-gradient(135deg, var(--header-bg-from), var(--clr-primary));
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8);
  margin: var(--sp-10) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.offers-cta__text {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.offers-cta__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.offers-cta__btn {
  padding: 10px 24px;
  border-radius: var(--r-pill);
  background: var(--clr-accent);
  color: var(--clr-text);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.offers-cta__btn:hover { background: var(--clr-accent-hover); }

/* Post footer actions: tags + share */
.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin: var(--sp-8) 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.post-tags__item {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--clr-primary-soft);
  color: var(--clr-primary);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  text-decoration: none;
}

.post-tags__item:hover { background: var(--clr-primary-mid); }

.post-share {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.post-share__btn {
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  font-family: var(--font-body);
}

.post-share__btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

/* Author box */
.author-box {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-8) 0;
}

.author-box__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-primary), var(--header-bg-from));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.author-box__bio {
  font-size: 13px;
  color: var(--clr-text-secondary);
}

/* Related posts */
.related-posts {
  margin-top: var(--sp-12);
}

.related-posts__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: var(--sp-5);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.related-card {
  background: var(--clr-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

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

.related-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card__title {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--clr-text);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg);
  padding: var(--sp-16) 0 0;
  margin-top: var(--sp-16);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
}

/* About column */
.footer-col--about .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  text-decoration: none;
}

.footer-logo__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1.5px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.footer-logo__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.footer-about-text {
  font-size: 17px;
  color: var(--footer-text);
  line-height: 1.7;
}

/* Link columns */
.footer-col__heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--footer-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: 17px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1;
}

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

/* Bottom bar */
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge {
  border: 0px!important;
  color: #ffffff!important;
  background: #ffffff57!important;
}

.footer-bar p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .footer-col--about {
    grid-column: 1 / -1;
  }

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

  .single-layout {
    grid-template-columns: var(--sp-6) 1fr var(--sp-6);
  }
}

@media (max-width: 768px) {
  :root { --header-height: 56px; }

  .site-nav { display: none; }
  .header-search { display: none; }
  .header-country { display: none; }
  .site-header__hamburger { display: flex; }

  .newsletter-block__input {
    width: 100px!important;
  }

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

  .hero-post__image {
    aspect-ratio: 16/9;
  }

  .newsletter-block__inner {
    flex-direction: column;
    gap: var(--sp-4);
  }

  .newsletter-block__form {
    width: 100%;
  }

  .newsletter-block__input {
    flex: 1;
    width: auto;
  }

  .single-featured {
    max-height: 300px;
  }

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

  .offers-cta {
    flex-direction: column;
    text-align: center;
  }

  .post-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

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

  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  .single-hero__title {
    font-size: 26px;
  }

  .blog-index__title {
    font-size: 22px;
  }

  .single-layout {
    grid-template-columns: var(--sp-4) 1fr var(--sp-4);
  }
}

/* ============================================================
   SITE HEADER — matches PromoZilla appbar style
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --header-bg:       #ffa500;
  --header-height:   60px;
  --header-shadow:   0 2px 4px -1px rgba(0,0,0,.2),
                     0 4px 5px 0   rgba(0,0,0,.14),
                     0 1px 10px 0  rgba(0,0,0,.12);
  --search-h:        30px;
  --search-radius:   999px;
  --nav-link-color:  #000;
  --font-family:     "Poppins", sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

/* ---------- Header shell ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  font-family: var(--font-family);
  transition:
    transform .2s cubic-bezier(.4,0,.2,1),
    background-color .2s cubic-bezier(.4,0,.2,1),
    box-shadow .28s cubic-bezier(.4,0,.2,1);
}

/* ---------- Inner flex row ---------- */
.site-header__content {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  gap: 8px;
}

/* ============================================================
   LOGO
   ============================================================ */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 140px;
}

/* Desktop variant */
.site-logo__full {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile variant */
.site-logo__small {
  display: none;
}

.site-logo__icon {
  font-size: 30px;
  line-height: 1;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__name {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}

.site-logo__country {
  font-size: 10px;
  color: #333;
  white-space: nowrap;
}

/* ============================================================
   DESKTOP NAV
   ============================================================ */
.site-nav {
  display: none; /* hidden on mobile */
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 4px;
  padding: 0 16px;
}

.site-nav__link {
  display: flex;
  flex: 1 1 100%;
  justify-content: center;
  align-items: center;
  height: var(--header-height);
  font-weight: 500;
  letter-spacing: normal;
  white-space: nowrap;
  position: relative;
}

.site-nav__link:hover::after,
.site-nav__link--active::after {
  transform: scaleX(1);
}

/* ============================================================
   SEARCH
   ============================================================ */
.header-search {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 480px;
  height: var(--search-h);
  background: #fff;
  border-radius: var(--search-radius);
  padding: 0 4px 0 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  min-width: 0;
}

.header-search__input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 13px;
  color: #000;
  min-width: 0;
}

.header-search__input::placeholder {
  color: #aaa;
  font-size: 12px;
}

.header-search__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: calc(var(--search-h) - 4px);
  border: none;
  border-radius: var(--search-radius);
  background: var(--header-bg);
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}

.header-search__btn:hover {
  background: #e69500;
}

/* ============================================================
   ACTIONS (country code + hamburger)
   ============================================================ */
.site-header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

/* Country / language button */
.header-country-btn {
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 4px;
  background: rgba(0,0,0,.12);
  color: #000;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.header-country-btn:hover {
  background: rgba(0,0,0,.2);
}

/* ============================================================
   HAMBURGER (mobile only)
   ============================================================ */
.site-header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  margin-left: auto;
}

.site-header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Animate to X when open */
.site-header__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-header__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ≥ 960px — desktop: show full logo + nav, hide hamburger */
@media (min-width: 960px) {
  .site-logo__full  { display: flex; }
  .site-logo__small { display: none; }
  .site-nav         { display: flex; }
  .site-header__hamburger { display: none; }
}

/* < 960px — mobile: compact logo, no nav, show hamburger */
@media (max-width: 959px) {
  .site-logo__full  { display: none; }
  .site-logo__small { display: flex; }
  .site-nav         { display: none; }

  /* Full-width search on mobile */
  .header-search {
    max-width: none;
  }
}

/* ============================================================
   BODY OFFSET — push page content below fixed header
   ============================================================ */
body {
  padding-top: var(--header-height);
}

/* ═══════════════════════════════════════════════
   MOBILE NAV DRAWER
═══════════════════════════════════════════════ */
.mobile-nav {
  display: none; /* JS lo activa */
  position: fixed;
  inset: 0;
  z-index: 300;
}

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

/* Backdrop oscuro */
.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  animation: fadeIn 0.2s ease;
}

/* Drawer deslizable desde la izquierda */
.mobile-nav__drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  animation: slideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Search dentro del drawer */
.mobile-nav__search {
  padding: 16px;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-bg);
}

.mobile-nav__search .header-search__input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--clr-text);
  background: #fff;
  outline: none;
}

.mobile-nav__search .header-search__input:focus {
  border-color: var(--clr-primary);
}

/* Links del menú */
.mobile-nav__list {
  padding: 8px 0;
  flex: 1;
}

.mobile-nav__link {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mobile-nav__link:hover {
  background: var(--clr-primary-soft);
  border-left-color: var(--clr-primary);
  color: var(--clr-primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* Bloquear scroll del body cuando el menú está abierto */
body.mobile-nav-open {
  overflow: hidden;
}

/* Folders portal: white header */
.portal-folders .site-header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portal-folders .site-nav__link {
  color: #333;
}

.portal-folders .site-nav__link:hover {
  background: #f5f5f5;
  color: #000;
}

.portal-folders .site-header__hamburger span {
  background: #333;
}

.portal-promobutler .site-nav__link:hover {
  background-color: #cbd6d7!important;
  color: #010101!important;
}

.portal-promobutler > nav > a:hover {
  color: #010101!important;
}

.portal-promobutler .site-nav__link {
  color: #010101!important;
}

.portal-folders .hero-post {
  background: #1D4ED8 ;
}

iframe[name="myiFrame"] {
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .related-card__title {
    font-size: 18px;
  }
}