/*
Theme Name: Helfenova Child
Theme URI: https://helfenova.sk
Description: Child theme pre Mgr. Patrícia Helfenová - kampaňová stránka.
Author: Patricia Helfenova
Version: 1.0
Template: hello-elementor
Text Domain: helfenova-child
*/

/* ======================================================================
   POZOR: fonty UniviaPro-*.ttf a logo.png/patricia_png.png sú v koreni /web/
   Ak ich premiestnis, oprav cesty v @font-face a v HTML.
   ====================================================================== */

  :root {
    --green: #1a6b6a;
    --green-dark: #0e4544;
    --green-light: #248f8d;
    --blue: #0e4544;
    --blue-light: #1a6b6a;
    --white: #ffffff;
    --black: #000000;
    --cream: #f8f9f5;
    --cream-warm: #f0f2ea;
    --sand: #e0e3d6;
    --text: #1a1a1a;
    --text-muted: #5a5a5a;
    --accent-warm: #F5A623;
  }

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

html {
    scroll-behavior: smooth;
    background: var(--cream);
  }

  body {
    font-family: 'Poppins', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }

  .display {
    font-family: 'Univia Pro', 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }


  /* ======================== NAV ======================== */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 60, 52, 0.08);
    transition: all 0.3s ease;
  }

  .nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-inner > a {
    display: flex;
    align-items: center;
    line-height: 0;
  }

  .nav-logo {
    height: 64px;
    width: auto;
    display: block;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
  }

  .nav-links a {
    color: var(--green) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--accent-warm) !important; }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-warm) !important;
    transition: width 0.3s;
  }

  .nav-links a:hover::after { width: 100%; }

  /* Pravá strana hlavičky: menu + ikonky spolu */
  .nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  /* Sociálne ikonky */
  .nav-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--green) !important;
    background: rgba(26, 60, 52, 0.08) !important;
    transition: color 0.2s, background 0.2s, transform 0.2s;
  }

  .nav-social:hover {
    color: white !important;
    background: var(--accent-warm) !important;
    transform: translateY(-2px);
  }

  .nav-social svg {
    display: block;
  }

  .nav-cta {
    background: var(--accent-warm) !important;
    color: var(--green-dark) !important;
    padding: 0.65rem 1.4rem;
    border-radius: 100px;
    transition: transform 0.2s, background 0.2s;
    font-weight: 600;
  }

  .nav-cta::after { display: none; }
  .nav-cta:hover {
    background: var(--green) !important;
    color: white !important;
    transform: translateY(-2px);
  }

  .mobile-toggle {
    display: none;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    box-shadow: none;
  }

  .mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
    border-radius: 2px;
    transform-origin: center;
  }

  /* Hamburger → X animácia */
  .mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ======================== HERO ======================== */
  .hero {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(ellipse 800px 600px at 10% 20%, rgba(26, 60, 52, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 600px 400px at 90% 80%, rgba(0, 35, 102, 0.06) 0%, transparent 60%),
      var(--cream);
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 92, 80, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
  }

  .hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(26, 60, 52, 0.08);
    color: var(--green);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
  }

  .hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-warm);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
  }

  .hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.8rem);
    color: var(--green);
    margin-bottom: 1.5rem;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--blue);
    font-weight: 500;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    text-align: left;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    hyphens: none;
    -webkit-hyphens: none;
  }

  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
  }

  .btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 2px solid transparent !important;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
  }

  .btn-primary {
    background: var(--accent-warm) !important;
    color: var(--green-dark) !important;
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.3);
  }

  .btn-primary:hover {
    background: var(--green) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(26, 107, 106, 0.3);
  }

  .btn-secondary {
    background: transparent !important;
    color: var(--green) !important;
    border-color: var(--green) !important;
  }

  .btn-secondary:hover {
    background: var(--green) !important;
    color: white !important;
    transform: translateY(-3px);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 166, 35, 0.3);
    max-width: 540px;
  }

  .hero-stat-num {
    font-family: 'Univia Pro', 'Poppins', sans-serif;
    font-size: 2.4rem;
    color: var(--accent-warm);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  .hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
  }

  .hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
  }

  .hero-logo {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 35%;
    display: flex;
    justify-content: center;
  }

  .hero-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
  }

  .hero-image-wrap {
    position: relative;
    max-width: 520px;
    width: 100%;
    margin: 30px 0 0 auto;
    aspect-ratio: 1 / 0.9;
    overflow: visible;
    clip-path: inset(-20% 0 0 0);
  }

  /* Elipsa - za fotkou, na spodnej hrane */
  .hero-image-bg {
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    left: auto;
    transform: translate(0px, 20%);
    width: 80%;
    height: 100%;
    aspect-ratio: auto;
    background-image: url('/hero-shape.svg');
    background-size: 100% 130%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    z-index: 0;
    box-shadow: none;
    opacity: 1;
    inset: auto;
    border-radius: 0;
  }

  /* Fotka - PRED elipsou, vyplna celý wrapper, zarovnaná vpravo dole */
  .hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    left: auto;
    transform: translate(20px, -30%);
    z-index: 1;
    height: 150%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
    display: block;
    inset: auto;
    border-radius: 0;
  }

  .hero-badge {
    background: var(--green);
    padding: 0.7rem 1.1rem;
    border-radius: 100px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    max-width: 440px;
  }

  .hero-badges {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
  }

  @media (min-width: 969px) {
    .hero-badges { transform: translateX(-70px); }
  }

  .hero-badge-icon {
    width: 30px;
    height: 30px;
    background: var(--accent-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    flex-shrink: 0;
  }

  .hero-badge-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
  }

  /* ======================== SECTION BASE ======================== */
  section {
    padding: 7rem 2rem;
    position: relative;
  }

  .container {
    max-width: 1280px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
  }

  .section-eyebrow {
    color: var(--accent-warm);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--green);
    margin-bottom: 1.2rem;
  }

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

  /* ======================== O KANDIDÁTKE ======================== */
  .about {
    background: var(--cream-warm);
    position: relative;
    overflow: hidden;
  }

  .about::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 60, 52, 0.06) 0%, transparent 70%);
    border-radius: 50%;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    position: relative;
  }

  .about-visual {
    position: relative;
  }

  .about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(26, 60, 52, 0.1);
    position: relative;
    z-index: 2;
  }

  .about-card-label {
    color: var(--accent-warm);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
  }

  .about-card h3 {
    font-family: 'Univia Pro', 'Poppins', sans-serif;
    color: var(--green);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .about-card-list {
    list-style: none;
    margin-top: 1.5rem;
  }

  .about-card-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(26, 60, 52, 0.08);
    display: flex;
    align-items: start;
    gap: 0.8rem;
    color: var(--text);
  }

  .about-card-list li:last-child { border: 0; }

  .about-card-list svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-warm);
  }

  .about-deco {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--accent-warm);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.2;
  }

  .about-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--green);
    margin-bottom: 1.5rem;
  }

  .about-content p {
    color: var(--text);
    margin-bottom: 1.3rem;
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .about-content .lead {
    font-family: 'Univia Pro', 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--green);
    font-style: italic;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-warm);
    margin: 2rem 0;
  }

  /* ======================== VÝSLEDKY ======================== */
  .results {
    background: var(--green);
    color: white;
    position: relative;
    overflow: hidden;
  }

  .results::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 800px 400px at 20% 10%, rgba(0, 35, 102, 0.3) 0%, transparent 60%),
      radial-gradient(ellipse 600px 400px at 90% 90%, rgba(212, 165, 116, 0.08) 0%, transparent 60%);
  }

   .results .section-title { color: white; }
  .results .section-eyebrow { color: var(--accent-warm); }
  .results .section-desc {
    color: rgba(255, 255, 255, 0.75);
    text-align: center !important;
    text-align-last: center !important;
    hyphens: none !important;
  }

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

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

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

  .result-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-warm), var(--blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
  }

  .result-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .result-card:hover::before { transform: scaleX(1); }

  /* Slideshow */
  .result-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-light), var(--blue));
  }

  .result-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

  .result-slideshow img.active {
    opacity: 1;
  }

  /* Ak je len 1 fotka, je vždy viditeľná */
  .result-slideshow img:only-child {
    opacity: 1;
  }

  /* Placeholder ak ešte nie sú fotky */
  .result-slideshow.placeholder::after {
    content: 'Foto čoskoro';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* Značka "Ilustračné foto" pre generované obrázky */
  .result-slideshow .illustrative-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    z-index: 2;
    pointer-events: none;
  }

  .result-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .result-card h3 {
    font-family: 'Univia Pro', 'Poppins', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: white;
  }

  .result-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Centrovanie poslednej karty (10.) keď je sama v riadku */
  .result-card.centered-last {
    grid-column: 2 / 3;
  }

  @media (max-width: 900px) {
    .result-card.centered-last { grid-column: auto; }
  }

  /* ======================== PROGRAM ======================== */
  .program {
    background: var(--cream);
    position: relative;
  }

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

  @media (max-width: 1100px) {
    .program-grid { grid-template-columns: repeat(3, 1fr); }
  }

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

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

  .program-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    transition: all 0.4s;
    border: 1px solid rgba(26, 60, 52, 0.08);
    position: relative;
    overflow: hidden;
  }

  .program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(26, 60, 52, 0.12);
    border-color: var(--green);
  }

  .program-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    transition: transform 0.4s;
  }

  .program-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 14px;
  }

  .program-card:hover .program-icon {
    transform: rotate(-6deg) scale(1.05);
  }

  .program-card h3 {
    font-family: 'Univia Pro', 'Poppins', sans-serif;
    color: var(--green);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .program-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* ======================== GALÉRIA ======================== */
  .gallery {
    background: var(--cream-warm);
  }

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

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

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

  .gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

  .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 69, 68, 0);
    transition: background 0.3s;
  }

  .gallery-item:hover::after { background: rgba(14, 69, 68, 0.2); }
  .gallery-item:hover img { transform: scale(1.05); }
  .gallery-item:hover { box-shadow: 0 15px 40px rgba(26, 60, 52, 0.2); }

  /* Skryté fotky (mimo aktuálnej strany) */
  .gallery-item.hidden { display: none; }

  /* Navigácia */
  .gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .gallery-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none !important;
    background: var(--green) !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .gallery-arrow:hover { background: var(--accent-warm) !important; color: var(--green-dark) !important; transform: translateY(-2px); }
  .gallery-arrow:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

  .gallery-pages {
    font-weight: 600;
    color: var(--green);
    font-size: 0.95rem;
    min-width: 60px;
    text-align: center;
  }

  /* Lightbox */
  .lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .lightbox-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    display: block;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s;
    z-index: 10000;
    line-height: 1;
  }

  .lightbox-close:hover,
  .lightbox-prev:hover,
  .lightbox-next:hover {
    background: var(--accent-warm) !important;
  }

  .lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.1rem; }
  .lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
  .lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

  /* ======================== BLOG NÁHĽAD ======================== */
  .blog-preview {
    background: var(--cream);
    padding-top: 3rem;
  }

  .blog-preview .section-desc {
    text-align: center !important;
    text-align-last: center !important;
    hyphens: none !important;
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 8px 25px rgba(26, 60, 52, 0.06);
    display: flex;
    flex-direction: column;
  }

  .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26, 60, 52, 0.12);
  }

  .blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    position: relative;
    overflow: hidden;
  }

  .blog-card:nth-child(2) .blog-card-image {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
  }

  .blog-card:nth-child(3) .blog-card-image {
    background: linear-gradient(135deg, var(--green-dark), var(--blue));
  }

  .blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
      radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  }

  .blog-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .blog-card-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    align-items: center;
  }

  .blog-card-tag {
    background: rgba(245, 166, 35, 0.12);
    color: #b8800a;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-weight: 500;
  }

  .blog-card h3 {
    font-family: 'Univia Pro', 'Poppins', sans-serif;
    color: var(--green);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex: 1;
  }

  .blog-card-link {
    color: var(--accent-warm) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s;
  }

  .blog-card-link:hover { gap: 0.7rem; }

  .blog-cta-wrap { text-align: center; }

  /* ======================== KONTAKT / CTA ======================== */
  .cta-final {
    background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(245, 166, 35, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(245, 166, 35, 0.08) 0%, transparent 50%);
  }

  .cta-final .container { position: relative; z-index: 1; }

  .cta-final h2 {
    color: white;
    font-family: 'Univia Pro', 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .cta-final p {
    color: white;
    font-size: 1.2rem;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
  }

  .cta-btn-white {
    background: var(--accent-warm) !important;
    color: var(--green-dark) !important;
    padding: 1.1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s;
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.3);
  }

  .cta-btn-white:hover {
    transform: translateY(-3px);
    background: white !important;
    color: var(--green) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  }

  .contact-info {
    margin-top: 3rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-info a {
    color: white !important;
    text-decoration: none;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
  }

  .contact-info a:hover { opacity: 1; }

  /* ======================== FOOTER ======================== */
  footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem 2rem;
    text-align: center;
  }

  footer img {
    height: 50px;
    margin-bottom: 1.5rem;
  }

  footer p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  footer .divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 1.5rem auto;
  }

  /* ======================== RESPONZÍVNE ======================== */
  @media (max-width: 968px) {
    .nav-logo { height: 48px; }
    .hero { padding: 7rem 1.5rem 3rem; min-height: auto; }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-right { order: -1; margin: 0 auto; max-width: 480px; }
    .hero-content { text-align: center; max-width: 640px; margin: 0 auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { margin-left: auto; margin-right: auto; }

    .about-grid { grid-template-columns: 1fr; gap: 3rem; }

    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: 180px;
    }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(6) {
      grid-column: auto;
      grid-row: auto;
    }

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

    section { padding: 5rem 1.5rem; }

    .mobile-toggle { display: flex; }

    .nav-links {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      gap: 1.5rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      /* collapsed state */
      max-height: 0;
      padding: 0 2rem;
      opacity: 0;
      overflow: hidden;
      transform: translateY(-8px);
      visibility: hidden;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity 0.3s ease,
                  transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  visibility 0s linear 0.4s;
    }

    .nav-links.mobile-open {
      max-height: 600px;
      opacity: 1;
      transform: translateY(0);
      padding: 2rem;
      visibility: visible;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity 0.3s ease,
                  transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  visibility 0s;
    }

    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stats > *:last-child { grid-column: 1 / -1; }
  }

  @media (max-width: 540px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary { justify-content: center; }
    .contact-info { flex-direction: column; gap: 1rem; align-items: center; }
  }

  /* ======================== ANIMÁCIE PRI SCROLLE ======================== */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  body:not(.home) {
  padding-top: 90px;
}

  @media (max-width: 968px) {
    body:not(.home) {
      padding-top: 76px;
    }
  }

  .hero-badge { white-space: normal; }

  /* ======================== POČÍTADLO NÁVŠTEV ======================== */
  .nav-counter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(26, 107, 106, 0.08);
    border: 1px solid rgba(26, 107, 106, 0.15);
    border-radius: 100px;
    padding: 0.35rem 0.9rem;
    pointer-events: none;
  }

  .nav-counter-icon {
    display: flex;
    align-items: center;
    color: var(--green);
  }

  .nav-counter-num {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--green);
  }

  .nav-counter-label {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
  }

  .nav-counter-mobile {
    display: none;
  }

  @media (max-width: 968px) {
    .nav-counter {
      display: none;
    }
    .nav-counter-mobile {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(26, 107, 106, 0.08);
      border: 1px solid rgba(26, 107, 106, 0.15);
      border-radius: 100px;
      padding: 0.45rem 1rem;
      pointer-events: none;
      list-style: none;
      width: fit-content;
      color: var(--green);
    }
    .nav-counter-mobile .nav-counter-num {
      font-weight: 700;
      font-size: 0.9rem;
      color: var(--green);
    }
    .nav-counter-mobile .nav-counter-label {
      font-weight: 400;
      color: var(--text-muted);
      font-size: 0.8rem;
    }
    .nav-counter-mobile svg {
      color: var(--green);
      flex-shrink: 0;
    }
  }

  /* ======================== JUSTIFY ZAROVNANIE TEXTOV ========================
     POZN: tu necháme !important — globálne pravidlo pre raw <p> musí prebíjať
     Elementor typografiu na stránke "Prispieť" (kde je Elementor form).
     A všetky špecifickejšie overrides nižšie tiež musia mať !important,
     aby vyhrali nad týmto globálnym pravidlom.
     ====================================================================== */
  p,
  .about-content p,
  .about-content .lead,
  .result-card p,
  .blog-card p,
  .section-desc {
    text-align: justify !important;
    text-align-last: left !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    overflow-wrap: break-word;
  }

/* Hero podtitul, O kandidátke, program karty a telo článku — zarovnanie naľavo */
  .hero-subtitle,
  .about-content p,
  .about-content .lead,
  .program-card p,
  .program-card h3,
  .post-content p,
  .post-content li {
    text-align: left !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
  }

  /* CTA sekcia a footer — zarovnanie na stred */
  .cta-final p,
  .cta-final h2,
  footer,
  footer p {
    text-align: center !important;
    text-align-last: center !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
  }

  /* ======================== PRISPIET ======================== */
  .prispiet-hero {
    background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
    color: white;
    padding: 4rem 2rem 4rem;
    text-align: center;
  }

  .prispiet-hero .container {
    max-width: 760px;
  }

  .prispiet-hero .section-eyebrow {
    color: var(--accent-warm);
  }

  .prispiet-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
  }

  .prispiet-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto;
    text-align: center !important;
    text-align-last: center !important;
    hyphens: none !important;
  }

  .prispiet-info {
    background: var(--cream);
    padding: 5rem 2rem;
  }

  .prispiet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
  }

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

  .prispiet-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(26, 60, 52, 0.08);
  }

  .prispiet-card-notice {
    border: 2px solid rgba(245, 166, 35, 0.3);
  }

  .prispiet-card-label {
    color: var(--accent-warm);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
  }

  .prispiet-ucet-row {
    display: flex;
    flex-direction: column;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(26, 60, 52, 0.08);
  }

  .prispiet-ucet-row:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
  }

  .prispiet-ucet-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
  }

  .prispiet-ucet-val {
    font-weight: 600;
    color: var(--green);
    font-size: 1rem;
    letter-spacing: 0.03em;
  }

  .prispiet-btn {
    width: 100%;
    justify-content: center;
  }

  .prispiet-card-notice p {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    text-align: left !important;
    hyphens: none !important;
  }

  .prispiet-list {
    list-style: none;
    margin-bottom: 1.2rem;
  }

  .prispiet-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.95rem;
  }

  .prispiet-list svg {
    color: var(--accent-warm);
    flex-shrink: 0;
  }

  .prispiet-notice-small {
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(26, 60, 52, 0.08);
    padding-top: 1rem;
    margin-bottom: 0;
  }

  /* ======================== CHCEM POMOCT ======================== */
  .pomoct-info {
    background: var(--cream-warm);
    padding: 5rem 2rem;
  }

  .pomoct-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
  }

  .pomoct-header .section-title {
    margin-bottom: 1.2rem;
  }

  .pomoct-header .section-desc {
    text-align: center !important;
    text-align-last: center !important;
    hyphens: none !important;
  }

  .pomoct-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(26, 60, 52, 0.08);
  }

  /* ======================== BLOG — PRIPRAVUJEME ======================== */
  .blog-coming {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: white;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 8px 25px rgba(26, 60, 52, 0.06);
  }

  .blog-coming-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-warm);
  }

  .blog-coming h3 {
    font-family: 'Univia Pro', 'Poppins', sans-serif;
    color: var(--green);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
  }

  .blog-coming p {
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center !important;
    text-align-last: center !important;
    hyphens: none !important;
  }

  .nav-cta svg {
    position: relative;
    top: 2px;
  }

  @media (max-width: 1200px) {
    .nav-counter { display: none; }
    .nav-links { gap: 1.5rem; }
    .nav-right { gap: 1.2rem; }
  }

  .gallery .section-desc {
    text-align: center !important;
    text-align-last: center !important;
    hyphens: none !important;
  }