/* ==========================================================================
   Yeap Landing Page — frontend.css
   Refactored, organized, responsive, mobile-first
   ========================================================================== */

/* ==========================================================================
   1) ROOT / GLOBAL TOKENS
   ========================================================================== */
:root {
    --ylp-color-bg: #0c1530;
    --ylp-color-surface: #122255;
    --ylp-color-text: #ffffff;
    --ylp-color-text-soft: rgba(255, 255, 255, 0.92);
    --ylp-color-text-muted: rgba(255, 255, 255, 0.8);
    --ylp-color-border: rgba(255, 255, 255, 0.15);

    --ylp-color-green: #28a745;
    --ylp-color-green-dark: #1a6e2e;
    --ylp-color-blue-hover: #0056b3;
    --ylp-color-danger: #a72828;
    --ylp-color-danger-dark: #6e1a1a;

    --ylp-radius-sm: 8px;
    --ylp-radius-md: 12px;
    --ylp-radius-lg: 18px;
    --ylp-radius-pill: 999px;

    --ylp-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --ylp-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --ylp-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);

    --ylp-navbar-offset-desktop: 80px;
    --ylp-navbar-offset-tablet: 96px;
    --ylp-navbar-offset-mobile: 112px;

    --ylp-mobile-nav-height: 88px;
    --ylp-mobile-nav-safe-space: calc(var(--ylp-mobile-nav-height) + 16px);

    --ylp-section-gap: 20px;
    --ylp-section-gap-tight: 14px;
    --ylp-content-max: 1280px;

    --ylp-hero-slider-min-height: 320px;
    --ylp-card-gap-after: 14px;
    --ylp-infobar-gap-after: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ==========================================================================
   2) THEME OVERRIDES / MAIN CONTAINERS
   ========================================================================== */
body.ylp-active .site-main,
body.ylp-active #main,
body.ylp-active .content-area,
body.ylp-active #primary {
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Keep content clear of bottom mobile nav */
body,
#main,
.site-main,
.content-area,
#primary {
    padding-bottom: var(--ylp-mobile-nav-safe-space);
}

/* ==========================================================================
   3) HERO / BACKGROUND SECTION
   ========================================================================== */

/* Default hero mode (slider style) */
#ylp-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--ylp-color-bg);
    height: 55vw;
    min-height: var(--ylp-hero-slider-min-height);
    max-height: 680px;
}

/* Fullpage content mode */
#ylp-hero.ylp-hero-fullpage {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    display: block;
    padding-top: var(--ylp-navbar-offset-desktop);
    padding-bottom: 0;
    background: var(--ylp-color-bg);
}

/* Slides remain background layer */
.ylp-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ylp-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

.ylp-slide.ylp-slide-active {
    opacity: 1;
    pointer-events: auto;
}

#ylp-hero.ylp-hero-fullpage .ylp-slides,
#ylp-hero.ylp-hero-fullpage .ylp-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.ylp-slide-img {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    will-change: transform;
}

.ylp-slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.ylp-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ylp-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px 16px;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

/* ==========================================================================
   4) HERO NAV / DOTS
   ========================================================================== */
.ylp-nav {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ylp-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.ylp-nav-prev {
    left: 8px;
}

.ylp-nav-next {
    right: 8px;
}

.ylp-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 20;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.ylp-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ylp-dot.ylp-dot-active {
    background: #fff;
    transform: scale(1.3);
}

/* ==========================================================================
   5) HERO CAPTION / LOGOS
   ========================================================================== */
.ylp-hero-caption-area,
.ylp-boxes-centered-in-hero,
.ylp-infobar,
.ylp-boxes-section {
    position: relative;
    z-index: 10;
}

.ylp-hero-caption-area {
    width: 100%;
    margin-bottom: 12px;
    padding: 56px 12px 0;
    text-align: center;
    pointer-events: none;
}

.ylp-hero-caption-item {
    display: none;
}

.ylp-hero-caption-item.ylp-caption-active {
    display: block;
}

.ylp-caption-title {
    margin: 0 0 12px;
    color: #fff !important;
    font-size: clamp(1.45rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    background: none !important;
    filter: none !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.ylp-caption-text {
    color: var(--ylp-color-text-soft) !important;
    font-size: clamp(0.95rem, 2.6vw, 1.4rem);
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.ylp-logos-strip-divider {
    width: clamp(120px, 40%, 320px);
    height: 1px;
    margin: 10px auto 24px;
    background: rgba(255, 255, 255, 0.35);
}

.ylp-logos-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    margin: 0 0 20px;
    pointer-events: auto;
}

.ylp-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--ylp-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ylp-logo-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ylp-logo-wrap:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ylp-logo-img {
    width: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 1;
}

/* ==========================================================================
   6) CARD / BOX AREA
   ========================================================================== */
.ylp-boxes-centered-in-hero {
    width: 100%;
    display: block;
    padding: 0;
    margin-bottom: var(--ylp-card-gap-after);
    background: transparent !important;
}

.ylp-boxes-section {
    width: 100%;
    margin-top: 0;
    margin-bottom: 24px;
    padding-top: var(--ylp-section-gap-tight);
    clear: both;
}

.ylp-boxes-section h1,
.ylp-boxes-section h2,
.ylp-boxes-section h3,
.ylp-boxes-section .section-title,
.ylp-boxes-section .elementor-heading-title {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding-top: 0 !important;
    position: relative;
    transform: none !important;
}

.ylp-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.ylp-box {
    cursor: pointer;
}

a.ylp-box:hover {
    text-decoration: none !important;
}

.ylp-box-img-top {
    width: calc(100% + (var(--box-pad-x, 0px) * 2));
    height: 100px;
    margin-top: calc(var(--box-pad-y, 0px) * -1);
    margin-right: calc(var(--box-pad-x, 0px) * -1);
    margin-bottom: 16px;
    margin-left: calc(var(--box-pad-x, 0px) * -1);
    flex-shrink: 0;
    border-radius: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ylp-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.ylp-box-icon img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ylp-box-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.ylp-box-desc {
    flex: 1;
    margin: 0 0 10px;
    font-size: 0.92rem;
    line-height: 1.65;
    text-align: center;
}

.ylp-box input,
.ylp-box-links input {
    display: none !important;
}

.ylp-box-links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
    padding: 0 !important;
    list-style: none !important;
}

.ylp-box-links::before,
.ylp-box-links::after,
.ylp-box-link::before,
.ylp-box-link::after {
    display: none !important;
    content: none !important;
}

.ylp-box-link {
    display: inline-block !important;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: var(--ylp-color-green);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
    appearance: none !important;
    -webkit-appearance: none !important;
    list-style: none !important;
}

.ylp-box-link:hover {
    background: var(--ylp-color-blue-hover) !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.ylp-box-link-default {
    font-weight: 700;
}

/* ==========================================================================
   7) BUTTON BAR
   ========================================================================== */
.ylp-btnbar {
    width: 100%;
    z-index: 9990;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ylp-btnbar-sticky {
    position: sticky;
    top: 0;
}

.ylp-btnbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    padding: 8px 12px;
}

.ylp-btnbar-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 2px solid currentColor;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    opacity: 0.92;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.ylp-btnbar-btn:hover {
    opacity: 1;
    text-decoration: none !important;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   8) INFO BAR
   ========================================================================== */
.ylp-infobar {
    width: 100%;
    z-index: 9980;
    margin: 0 0 var(--ylp-infobar-gap-after);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.ylp-infobar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 12px;
    max-width: 100%;
    margin: 0;
    padding: 8px 12px;
    text-align: center;
}

.ylp-infobar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    line-height: 1.45;
    white-space: nowrap;
}

.ylp-infobar-label {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ylp-infobar-value {
    font-weight: 400;
    letter-spacing: 0.04em;
}

a.ylp-infobar-value {
    text-decoration: none !important;
}

a.ylp-infobar-value:hover {
    text-decoration: underline !important;
    opacity: 0.85;
}

.ylp-infobar-sep {
    padding: 0 4px;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.6;
}

/* ==========================================================================
   9) HOVER UTILITIES
   ========================================================================== */
.ylp-hover-lift:hover {
    transform: translateY(-6px);
}

.ylp-hover-scale:hover {
    transform: scale(1.04);
}

.ylp-hover-glow:hover {
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.6), 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

.ylp-hover-border:hover {
    box-shadow: 0 0 0 3px #fff !important;
}

.ylp-hover-none:hover {
    transform: none;
}

/* ==========================================================================
   10) ACCESS VERIFICATION MODAL
   ========================================================================== */
.ylp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.ylp-modal-overlay.ylp-modal-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.ylp-modal-box {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--ylp-radius-md);
    background: #0d1b2a;
    color: #fff;
    box-shadow: var(--ylp-shadow-lg);
}

.ylp-modal-inner {
    padding: 24px 20px;
}

.ylp-modal-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.ylp-modal-intro {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.ylp-modal-bullets {
    margin: 0 0 8px;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.8;
    list-style: disc;
}

.ylp-modal-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ylp-modal-section-heading {
    margin: 0 0 10px;
    color: #7ecfff;
    font-size: 1rem;
    font-weight: 700;
}

.ylp-modal-cert-text {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    line-height: 1.7;
}

.ylp-modal-confirm-text {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.ylp-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.ylp-modal-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 16px 22px;
    border: 2px solid transparent;
    border-radius: var(--ylp-radius-sm);
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ylp-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.ylp-modal-yes {
    color: #fff;
    background: linear-gradient(135deg, var(--ylp-color-green-dark), var(--ylp-color-green));
    border-color: var(--ylp-color-green);
}

.ylp-modal-no {
    color: #fff;
    background: linear-gradient(135deg, var(--ylp-color-danger-dark), var(--ylp-color-danger));
    border-color: var(--ylp-color-danger);
}

.ylp-modal-btn-label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.ylp-modal-btn-sub {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.8;
}

/* ==========================================================================
   11) ANIMATIONS / EFFECTS
   ========================================================================== */
.ylp-effect-zoom-in {
    transform: scale(1);
    animation: ylpZoomIn 8s ease forwards;
}

.ylp-effect-zoom-out {
    transform: scale(1.18);
    animation: ylpZoomOut 8s ease forwards;
}

.ylp-effect-pan-left {
    animation: ylpPanLeft 8s ease forwards;
}

.ylp-effect-pan-right {
    animation: ylpPanRight 8s ease forwards;
}

.ylp-effect-pan-up {
    animation: ylpPanUp 8s ease forwards;
}

.ylp-effect-pan-down {
    animation: ylpPanDown 8s ease forwards;
}

.ylp-effect-parallax {
    will-change: transform;
}

.ylp-effect-none {
    animation: none;
    transform: none;
}

.ylp-effect-zoom-in.ylp-loop {
    animation: ylpZoomIn 8s ease infinite alternate;
}

.ylp-effect-zoom-out.ylp-loop {
    animation: ylpZoomOut 8s ease infinite alternate;
}

.ylp-effect-pan-left.ylp-loop {
    animation: ylpPanLeft 8s ease infinite alternate;
}

.ylp-effect-pan-right.ylp-loop {
    animation: ylpPanRight 8s ease infinite alternate;
}

.ylp-effect-pan-up.ylp-loop {
    animation: ylpPanUp 8s ease infinite alternate;
}

.ylp-effect-pan-down.ylp-loop {
    animation: ylpPanDown 8s ease infinite alternate;
}

@keyframes ylpZoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.18); }
}

@keyframes ylpZoomOut {
    from { transform: scale(1.18); }
    to { transform: scale(1); }
}

@keyframes ylpPanLeft {
    from { transform: translateX(0) scale(1.08); }
    to { transform: translateX(-6%) scale(1.08); }
}

@keyframes ylpPanRight {
    from { transform: translateX(0) scale(1.08); }
    to { transform: translateX(6%) scale(1.08); }
}

@keyframes ylpPanUp {
    from { transform: translateY(0) scale(1.08); }
    to { transform: translateY(-6%) scale(1.08); }
}

@keyframes ylpPanDown {
    from { transform: translateY(0) scale(1.08); }
    to { transform: translateY(6%) scale(1.08); }
}

/* ==========================================================================
   12) SLIDE TRANSITIONS
   ========================================================================== */
.ylp-transition-fade .ylp-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.ylp-transition-fade .ylp-slide.ylp-slide-active {
    opacity: 1;
}

.ylp-transition-slide-left .ylp-slide {
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

.ylp-transition-slide-left .ylp-slide.ylp-slide-active {
    transform: translateX(0);
}

.ylp-transition-slide-left .ylp-slide.ylp-slide-leaving {
    transform: translateX(-100%);
}

.ylp-transition-zoom .ylp-slide {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ylp-transition-zoom .ylp-slide.ylp-slide-active {
    opacity: 1;
    transform: scale(1);
}

.ylp-transition-flip .ylp-slide {
    opacity: 0;
    transform: perspective(800px) rotateY(90deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ylp-transition-flip .ylp-slide.ylp-slide-active {
    opacity: 1;
    transform: perspective(800px) rotateY(0deg);
}

/* ==========================================================================
   13) MOBILE SPACER
   ========================================================================== */
.ylp-mobile-bottom-spacer {
    display: none !important;
    width: 100%;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}

/* ==========================================================================
   14) BREAKPOINTS
   ========================================================================== */

/* 381px+ */
@media (min-width: 381px) {
    .ylp-hero-caption-area {
        padding-top: 70px;
    }
}

/* 421px+ */
@media (min-width: 421px) {
    .ylp-logo-wrap {
        width: 60px;
        height: 60px;
    }

    .ylp-logos-strip {
        gap: 10px 20px;
    }
}

/* 481px+ */
@media (min-width: 481px) {
    .ylp-slide-caption {
        padding: 16px;
    }

    .ylp-logo-wrap {
        width: 64px;
        height: 64px;
    }

    .ylp-hero-caption-area {
        padding: 60px 12px 0;
    }
}

/* 576px+ */
@media (min-width: 576px) {
    .ylp-hero-caption-area {
        padding: 48px 16px 0;
    }

    .ylp-logos-strip {
        gap: 12px 24px;
        margin-bottom: 24px;
    }

    .ylp-logos-strip-divider {
        margin: 10px auto 24px;
    }

    .ylp-btnbar-inner {
        gap: 8px;
        padding: 10px 20px;
    }

    .ylp-btnbar-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .ylp-infobar-inner {
        gap: 6px 16px;
        padding: 8px 20px;
    }

    .ylp-infobar-item {
        font-size: 0.88rem;
    }
}

/* 601px+ */
@media (min-width: 601px) {
    .ylp-logo-wrap {
        width: 64px;
        height: 64px;
    }
}

/* 769px+ */
@media (min-width: 769px) {
    #ylp-hero {
        min-height: 320px;
    }

    .ylp-slides,
    .ylp-slide {
        min-height: 320px;
    }

    .ylp-slide-caption {
        padding: 24px;
    }

    .ylp-nav {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }

    .ylp-nav-prev {
        left: 14px;
    }

    .ylp-nav-next {
        right: 14px;
    }

    .ylp-box-img-top {
        height: 120px;
    }

    .ylp-hero-caption-area {
        padding-top: 40px;
    }

    .ylp-logos-strip {
        gap: 16px 32px;
        margin-bottom: 32px;
    }

    .ylp-logo-wrap {
        width: 72px;
        height: 72px;
    }

    .ylp-modal-inner {
        padding: 36px 40px;
    }

    .ylp-modal-title {
        font-size: 1.5rem;
    }
}

/* 861px+ */
@media (min-width: 861px) {
    .ylp-logo-wrap {
        width: clamp(72px, 9vw, 110px);
        height: clamp(72px, 9vw, 110px);
    }

    .ylp-logos-strip {
        gap: 20px 40px;
        margin-bottom: 40px;
    }

    .ylp-logos-strip-divider {
        margin: 14px auto 40px;
    }
}

/* Tablet/mobile behavior */
@media (max-width: 860px) {
    #ylp-hero.ylp-hero-fullpage {
        padding-top: var(--ylp-navbar-offset-tablet);
    }
}

@media (max-width: 767px) {
    .ylp-infobar-sep {
        display: none !important;
    }

    .ylp-infobar {
        margin-bottom: 6px;
    }

    .ylp-infobar-inner {
        flex-direction: column;
        gap: 8px;
        padding: 10px 14px 12px;
    }

    .ylp-infobar-item {
        display: flex;
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .ylp-boxes-centered-in-hero {
        margin-bottom: 12px;
    }

    .ylp-boxes-section {
        padding-top: 12px;
    }

    .ylp-boxes-section h1,
    .ylp-boxes-section h2,
    .ylp-boxes-section h3,
    .ylp-boxes-section .section-title,
    .ylp-boxes-section .elementor-heading-title {
        margin-bottom: 12px !important;
    }
}

@media (max-width: 575px) {
    :root {
        --ylp-mobile-nav-height: 104px;
    }

    #ylp-hero.ylp-hero-fullpage {
        padding-top: var(--ylp-navbar-offset-mobile);
    }

    .ylp-hero-caption-area {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ylp-boxes-centered-in-hero {
        margin-bottom: 10px;
    }

    .ylp-boxes-section {
        margin-bottom: 20px;
        padding-top: 10px;
    }

    .ylp-box-title {
        font-size: 0.98rem;
        line-height: 1.3;
    }

    .ylp-box-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .ylp-box-link {
        padding: 6px 12px;
        font-size: 0.76rem;
    }

    .ylp-box-img-top {
        height: 100px;
    }

    .ylp-infobar {
        margin-bottom: 4px;
    }

    .ylp-infobar-inner {
        padding: 8px 12px 10px;
        gap: 6px;
    }

    .ylp-infobar-item {
        font-size: 0.9rem;
        line-height: 1.45;
    }
}

@media (min-width: 992px) {
    body,
    #main,
    .site-main,
    .content-area,
    #primary {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   FIX CARD WRAPPER FLOW / STOP OVERLAP INTO NEXT SECTION
   ========================================================================== */

/* hero must grow with its content */
#ylp-hero,
#ylp-hero.ylp-hero-fullpage {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* the wrapper that contains the cards must participate in layout */
.ylp-boxes-centered-in-hero {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin-bottom: 24px !important;
    padding-bottom: 0 !important;
    clear: both !important;
}

/* common row/column wrappers inside the card area */
.ylp-boxes-centered-in-hero .row,
.ylp-boxes-centered-in-hero [class*="row"] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    margin-bottom: 0 !important;
}

.ylp-boxes-centered-in-hero [class*="col-"],
.ylp-boxes-centered-in-hero .wp-block-column,
.ylp-boxes-centered-in-hero .elementor-column {
    display: block !important;
    float: none !important;
}

/* every card stays in normal flow */
.ylp-box {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin-bottom: 24px !important;
    z-index: 2 !important;
}

/* next section must start after cards */
.ylp-boxes-section {
    position: relative !important;
    clear: both !important;
    margin-top: 0 !important;
    padding-top: 12px !important;
    z-index: 1 !important;
}

/* tighten heading spacing but keep it below cards */
.ylp-boxes-section h1,
.ylp-boxes-section h2,
.ylp-boxes-section h3,
.ylp-boxes-section .section-title,
.ylp-boxes-section .elementor-heading-title {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* mobile tuning */
@media (max-width: 767px) {
    .ylp-boxes-centered-in-hero {
        margin-bottom: 18px !important;
    }

    .ylp-box {
        margin-bottom: 18px !important;
    }

    .ylp-boxes-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 575px) {
    .ylp-boxes-centered-in-hero {
        margin-bottom: 16px !important;
    }

    .ylp-box {
        margin-bottom: 16px !important;
    }
}