/* ===== HERO SECTION ===== */

/* Remove border between sections */
.section-hero + .site-section,
.section-hero {
    border-top: none !important;
    position: relative;
    overflow: hidden;
    padding-bottom: 7rem !important;
}

.section-hero .container {
    position: relative;
    z-index: 1;
}

.section-hero .hero-illustration-bg {
    position: absolute;
    top: 0;
    right: 0%;
    bottom: -24px;
    width: 58%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 0;
}

.section-hero .hero-illustration-bg.hero-illustration-bg-left {
    right: auto;
    left: 0;
    width: 42%;
    justify-content: flex-start;
    opacity: 0.22;
}

html.lagom-dark-mode .section-hero .hero-illustration-bg.hero-illustration-bg-left {
    opacity: 0.36;
}

html.lagom-dark-mode .section-hero .hero-illustration-bg.hero-illustration-bg-left svg {
    filter: brightness(1.4) saturate(1.15);
}

.section-hero .hero-illustration-bg svg {
    width: 100%;
    height: auto;
}

.section-hero .hero-reviews-col {
    position: relative;
}

.section-hero .hero-reviews-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(420px, 92%);
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(0, 0, 0, 0.78);
    text-align: center;
}

html.lagom-dark-mode .section-hero .hero-reviews-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(20, 20, 20, 0.32) 35%,
        rgba(20, 20, 20, 0.18) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: rgba(255, 255, 255, 0.78);
}

.section-hero .hero-reviews-logo img {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.1rem;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.section-hero .hero-reviews-card h4 {
    color: inherit;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: normal;
    overflow: visible;
}

.section-hero .hero-testimonials {
    position: relative;
    margin: 0 0 1.1rem;
    min-height: 118px;
}

.section-hero .hero-testimonials .testimonial-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(6px);
    animation: heroTestimonialCycle 12s infinite;
}

.section-hero .hero-testimonials .testimonial-card:nth-child(1) {
    animation-delay: 0s;
}

.section-hero .hero-testimonials .testimonial-card:nth-child(2) {
    animation-delay: 4s;
}

.section-hero .hero-testimonials .testimonial-card:nth-child(3) {
    animation-delay: 8s;
}

.section-hero .hero-testimonials .testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #f5c542;
    opacity: 0.95;
}

.section-hero .hero-testimonials .testimonial-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
}

.section-hero .hero-testimonials .testimonial-author {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes heroTestimonialCycle {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    32% {
        opacity: 1;
        transform: translateY(0);
    }
    42% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-hero .hero-testimonials {
        min-height: auto;
    }

    .section-hero .hero-testimonials .testimonial-card {
        position: static;
        opacity: 1;
        transform: none;
        animation: none;
        margin-bottom: 1rem;
    }
}

/* Hero title and subtitle styling */
.section-hero .section-header {
    text-align: left !important;
    margin-bottom: 2rem;
}

.section-hero .section-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    text-align: left !important;
}

.section-hero .section-desc {
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
}

/* Feature List with Custom SVG Icons */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-body-color);
    font-size: var(--font-size-base);
}

.hero-features .check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" enable-background="new 0 0 48 48"><polygon fill="%2343A047" points="40.6,12.1 17,35.7 7.4,26.1 4.6,29 17,41.3 43.4,14.9"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

.section-hero .hero-illustration-bg.is-animated [data-animation-path] {
    stroke-dasharray: 800px;
    stroke-dashoffset: 800px;
    animation: heroSvgDraw 1.6s ease forwards;
}

.section-hero .hero-illustration-bg.is-animated [data-animation-path][data-animation-path-1] {
    animation-delay: 0.15s;
}

.section-hero .hero-illustration-bg.is-animated [data-bg-element-animation] {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroSvgFloat 5.5s ease-in-out infinite;
}

.section-hero .hero-illustration-bg.is-animated [data-bg-element-animation][data-animation-type-1] {
    animation-duration: 6.5s;
}

.section-hero .hero-illustration-bg.is-animated [data-bg-element-animation][data-animation-type-2] {
    animation-duration: 5.8s;
    animation-delay: 0.25s;
}

.section-hero .hero-illustration-bg.is-animated [data-bg-element-animation][data-animation-type-3] {
    animation-duration: 7.2s;
    animation-delay: 0.4s;
}

@keyframes heroSvgDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes heroSvgFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.section-hero .hero-illustration-bg .bottom-illustration-right {
    width: min(980px, 140%);
    height: auto;
    max-height: none;
    transform: translate(-2%, 6%);
    transform-origin: 100% 100%;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .section-hero {
        text-align: left;
    }
    
    .section-hero .section-header {
        text-align: left !important;
    }
    
    .section-hero .section-title {
        font-size: 2.5rem !important;
        text-align: left !important;
    }
    
    .section-hero .section-desc {
        font-size: 1.25rem !important;
        text-align: left !important;
    }
    
    .hero-features {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .section-hero .hero-features li {
        justify-content: flex-start;
        width: 100%;
    }

    .section-hero .hero-illustration-bg {
        width: 120%;
        right: -50%;
        bottom: -16px;
        opacity: 0.28;
    }
}

@media (max-width: 575.98px) {
    .section-hero .section-title {
        font-size: 2rem !important;
    }
    
    .section-hero .section-desc {
        font-size: 1.125rem !important;
    }

    .section-hero .hero-illustration-bg {
        right: -58%;
        bottom: -12px;
        opacity: 0.22;
    }
}
.package {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-title{
    line-height: 1.25;
    min-height: calc(1.25em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.package-desc {
    flex: 1 0 auto;
    margin-bottom: 2rem;
}
.package-price {
    margin-top: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 80px;
}

.package-price .price {
    font-size: 2rem;
}

/* Target free text specifically */
.package-price .price:contains("BREZPLAČNO!"),
.package-price .price:contains("BESPLATNO!"),
.package-price .price:contains("ZDARMA!"),
.package-price .price:contains("FREE!"),
.package-price .price:contains("Gratis!"),
.package-price .price:contains("INGYENES!"),
.package-price .price:contains("GRATIS!") {
    font-size: 1.5rem !important;
    padding-top: 1rem;
}
.package-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.row-eq-height > [class*='col'] {
    display: flex;
    flex-direction: column;
}

.row-eq-height > [class*='col'] > .package {
    height: 100%;
}

/* Add spacing for free prices without monthly text */
.package-price .price:only-child {
    margin-bottom: 1.5rem;
}
