/* ==========================================================================
   Content blocks — panels, box grids, prices, testimonials, FAQ, galleries.
   Used by migrated article bodies and by sections/en/components/page-section.php.
   ========================================================================== */

/* Sections */

.section {
    margin-bottom: 40px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    text-transform: uppercase;
}

.rule {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

/* Intro (text + image) */

.intro {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.intro-text { flex: 1 1 420px; min-width: 0; }
.intro-media { flex: 0 0 380px; max-width: 380px; }
.intro-media img { display: block; width: 100%; }

.figure { margin: 0 0 24px; }
.figure img { display: block; width: 100%; }
.figure figcaption { padding: 10px 0 0; font-size: 13px; color: var(--muted); }

/* Panels */

.panel {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 24px;
    margin-bottom: 24px;
}

.panel > :last-child { margin-bottom: 0; }

.panel-green {
    border: 0;
    background: url("../images/ui/noise_bg1.png") 0 0 repeat,
                radial-gradient(ellipse farthest-corner at center,
                var(--gradient-top) 0%, var(--gradient-bottom) 100%);
    color: #fff;
    padding: 30px;
}

.panel-green h2,
.panel-green h3,
.panel-green a { color: #fff; }

.panel-alt { background: var(--surface-alt); }

/* Box grid */

.box-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.box {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--border);
    background: #fff;
}

.box > :last-child { margin-bottom: 0; }

.box-title {
    margin: 0 0 15px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: normal;
    color: #888;
    text-transform: uppercase;
}

.box p { font-size: 14px; }

.box .btn { margin-top: auto; align-self: flex-start; }

/* Price tables and cards */

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 30px;
    font-size: 15px;
}

.price-table th,
.price-table td {
    padding: 12px 14px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.price-table thead th {
    background: var(--surface-alt);
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--heading);
}

.price-table td.price {
    white-space: nowrap;
    font-weight: 700;
    color: var(--green);
}

.price-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.price-card {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 18px;
    border: 1px solid var(--border);
    background: #fff;
}

.price-card--featured { border: 2px solid var(--green); }
.price-card img { margin: 0 auto 14px; max-width: 100%; }
.price-card .price-label { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.price-card .price-value { margin: 0 0 6px; font-family: var(--font-heading); font-size: 30px; line-height: 1; color: var(--green); }
.price-card .price-note { margin: 0; font-size: 13px; color: var(--muted); }

/* Testimonials */

.testimonial {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
}

.testimonial:last-child { margin-bottom: 0; }

.testimonial-meta {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--muted);
}

.testimonial-meta strong { color: var(--text); }
.testimonial p { font-size: 15px; line-height: 1.7; }
.testimonial p:last-child { margin-bottom: 0; }

/* FAQ (framework markup + <details> variant) */

.faq {
    border-top: 1px solid var(--border);
    margin: 0 0 30px;
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
    position: relative;
    display: block;
    padding: 16px 40px 16px 0;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 1;
    color: var(--green);
}

.faq-item[open] > .faq-question::after { content: "\2212"; }
.faq-item[open] > .faq-question { color: var(--green); }

.faq-answer { padding: 0 0 20px; font-size: 15px; }
.faq-answer > :last-child { margin-bottom: 0; }

/* Gallery */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.gallery li { flex: 1 1 240px; }
.gallery img { display: block; width: 100%; }

/* Profile */

.profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 0 30px;
}

.profile-photo { flex: 0 0 220px; max-width: 220px; }
.profile-photo img { display: block; width: 100%; }
.profile-body { flex: 1 1 360px; min-width: 0; }
.profile-body h3 { margin: 0 0 4px; font-size: 18px; }

.profile-role {
    margin: 0 0 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

/* CTA band */

.cta-band {
    padding: 40px 30px;
    margin: 0 0 30px;
    text-align: center;
    color: #fff;
    background: url("../images/ui/noise_bg1.png") 0 0 repeat,
                radial-gradient(ellipse farthest-corner at center,
                var(--gradient-top) 0%, var(--gradient-bottom) 100%);
}

.cta-band h2 { margin: 0 0 12px; color: #fff; font-size: 24px; }
.cta-band p { margin: 0 auto 22px; max-width: 720px; color: rgba(255, 255, 255, 0.92); }
.cta-band .btn { margin: 0 6px; }

/* Link list */

.link-list { margin: 0 0 24px; padding: 0; list-style: none; }
.link-list > li { padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.link-list > li:last-child { border-bottom: 0; }
.link-list a { font-weight: 700; }

/* Notice */

.notice {
    padding: 16px 20px;
    border-left: 3px solid var(--green);
    background: var(--surface-alt);
    font-size: 14px;
}

.notice p:last-child { margin-bottom: 0; }

/* Feature list */

.feature-list { margin: 0 0 24px; padding: 0; list-style: none; }

.feature-list > li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}

.feature-list > li:last-child { border-bottom: 0; }

.feature-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: #fff;
}

.feature-body h3,
.feature-body h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
}

.feature-body p { margin: 0; font-size: 14px; }

/* Responsive */

@media (max-width: 991px) {
    .intro { display: block; }
    .intro-media { max-width: none; margin-bottom: 24px; }
    .profile-photo { flex: none; max-width: 180px; }
}

@media (max-width: 767px) {
    .box-grid,
    .price-grid,
    .gallery { display: block; }

    .box,
    .price-card,
    .gallery li { margin-bottom: 16px; }

    .box:last-child,
    .price-card:last-child,
    .gallery li:last-child { margin-bottom: 0; }

    .panel,
    .testimonial { padding: 18px; }
    .cta-band { padding: 30px 20px; }
    .price-table { font-size: 14px; }
    .price-table th,
    .price-table td { padding: 9px 10px; }
}

/* -------------------------------------------------------------------------
   Home hero, price strip, promo sidebar and package cards
   ------------------------------------------------------------------------- */

.home-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.home-hero > img {
    display: block;
    width: 100%;
    height: auto;
}

.price-slides {
    display: flex;
    justify-content: center;
    gap: 16px;
    list-style: none;
    margin: -40px 0 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.price-slides img {
    display: block;
    width: 190px;
    height: 120px;
    background: #fff;
    border: 1px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.promo-title {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--green);
    text-align: center;
}

.promo-sub {
    margin: 0 0 10px;
    text-align: center;
}

.promo-price {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--green);
    text-align: center;
}

.sp-module .rule {
    margin: 14px 0;
}

.sp-module .testimonial {
    padding: 0;
    border: 0;
    background: none;
    margin-bottom: 12px;
}

.sp-module .testimonial p {
    font-size: 13px;
}

.price-grid--packages {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.price-grid--packages .price-card {
    flex: 1 1 250px;
    align-items: flex-start;
    text-align: left;
}

.price-card-title {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--heading);
    text-transform: uppercase;
}

.price-addons {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 13px;
    color: #555;
}

.price-addons li {
    position: relative;
    padding: 4px 0 4px 18px;
}

.price-addons li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green);
}

.price-grid--packages .btn {
    margin-top: auto;
}

@media (max-width: 767px) {
    .price-slides {
        gap: 8px;
        margin-top: -16px;
    }

    .price-slides img {
        width: 110px;
        height: 70px;
    }
}

/* -------------------------------------------------------------------------
   Home price carousel (three slides, CSS-only crossfade, no JS)
   Replaces the original mod_tiny_carousel behaviour without adding scripts.
   ------------------------------------------------------------------------- */

.price-slides {
    position: relative;
    display: block;
    height: 120px;
    margin: -60px 0 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.price-slides li {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: priceFade 12s infinite;
}

.price-slides li:nth-child(1) { animation-delay: 0s; }
.price-slides li:nth-child(2) { animation-delay: 4s; }
.price-slides li:nth-child(3) { animation-delay: 8s; }

.price-slides li a {
    pointer-events: auto;
}

.price-slides img {
    width: 190px;
    height: 120px;
    max-width: none;
    background: #fff;
    border: 1px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

@keyframes priceFade {
    0%   { opacity: 0; }
    2%   { opacity: 1; }
    30%  { opacity: 1; }
    34%  { opacity: 0; }
    100% { opacity: 0; }
}

.price-slides:hover li {
    animation-play-state: paused;
}

@media (max-width: 767px) {
    .price-slides {
        height: 80px;
        margin-top: -24px;
    }

    .price-slides img {
        width: 120px;
        height: 76px;
    }
}

/* -------------------------------------------------------------------------
   Home price slides ? the original module sat in the content-top position:
   its own band under the hero banner (no overlap, no negative margins).
   The three slides are shown together so all price options stay visible.
   ------------------------------------------------------------------------- */

.price-carousel {
    padding: 20px 0;
    background: #ffffff;
    border-bottom: 1px solid #f3f3f3;
}

.price-slides {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: auto;
}

.price-slides li {
    position: static;
    display: block;
    opacity: 1;
    animation: none;
    top: auto;
    left: auto;
    right: auto;
}

.price-slides li a {
    display: block;
}

.price-slides img {
    width: 190px;
    height: 120px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.home-hero {
    padding: 0;
    max-width: 1180px;
}

.home-hero > img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .price-carousel {
        padding: 16px 0;
    }

    .price-slides {
        gap: 12px;
    }

    .price-slides img {
        width: 120px;
        height: 76px;
    }
}

/* -------------------------------------------------------------------------
   Home hero fade-in - reproduces the original favsliderpro "image-effect6":
   opacity 0 + scale3d(.3) at 0%, opacity 1 at 50%, full scale at 100%,
   duration 1s, fill-mode both (same values as the module stylesheet).
   ------------------------------------------------------------------------- */

.home-hero > img {
    animation: heroImageEffect 1s ease both;
    transform-origin: 50% 50%;
    will-change: opacity, transform;
}

@keyframes heroImageEffect {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* -------------------------------------------------------------------------
   Price strip marquee - the slide set is repeated in the markup so the track
   can scroll exactly 50% of its width and loop seamlessly. Runs continuously
   even with three slides; pauses on hover, stops for reduced-motion users.
   ------------------------------------------------------------------------- */

.price-carousel {
    overflow: hidden;
}

.price-marquee {
    overflow: hidden;
}

.price-slides {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: priceMarquee 26s linear infinite;
}

.price-slides li {
    flex: 0 0 auto;
    margin-right: 24px;
}

.price-marquee:hover .price-slides,
.price-carousel:hover .price-slides {
    animation-play-state: paused;
}

@keyframes priceMarquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 767px) {
    .price-slides li {
        margin-right: 12px;
    }

    .price-slides {
        animation-duration: 18s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero > img {
        animation: none;
    }

    .price-slides {
        animation: none;
        justify-content: center;
        width: auto;
    }

    .price-slides li[aria-hidden="true"] {
        display: none;
    }
}

/* -------------------------------------------------------------------------
   Sidebar gallery (original mod_sigplus: 2 rows x 1 column, 300x400 previews,
   lightbox). The lightbox is CSS-only, driven by :target.
   ------------------------------------------------------------------------- */

.sidebar-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-gallery-item {
    display: block;
    border: 1px solid #dbdbdb;
    background: #fff;
    padding: 4px;
}

.sidebar-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.sidebar-gallery-item:hover {
    border-color: #639846;
}

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.85);
    padding: 40px 20px;
    text-align: center;
}

.gallery-lightbox:target {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    background: #fff;
    padding: 6px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 14px;
    right: 22px;
    width: 40px;
    height: 40px;
    line-height: 38px;
    font-size: 28px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    text-align: center;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus {
    background: #639846;
    color: #fff;
}
