/* =========================
   GLOBAL LANDING CONTEXT
========================= */

body.page-template-landing {
    background: transparent;
    overflow-x: hidden;
}

/* =========================
   SLIDER (BACKGROUND LAYER)
========================= */

#landing-slider {
    position: fixed;
    inset: 0;
    z-index: 0; /* ✅ به‌جای -1 */
}

#landing-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 3.5s ease-in-out;
}

#landing-slider .slide.active {
    opacity: 1;
}

/* =========================
   OVERLAY
========================= */

.landing-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* =========================
   MAIN LANDING WRAPPER
========================= */

.landing-page-wrapper {
    position: relative;
    z-index: 2;
}

/* =========================
   HERO SECTION
========================= */

.landing-hero {
    position: relative;
    z-index: 2;
    display: block;

    min-height: 70vh;
    padding: 0 20px 80px;

    text-align: center;
    color: white;
}

.landing-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.landing-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0.95;
}

.test-hero {
    max-width: 900px;
    margin: 10vh auto;
    background: rgba(10, 100, 200, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    color: #ffffff;
}

/* =========================
   CARDS GRID
========================= */

.landing-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    margin: 25vh 0 auto;
}

.landing-card {
    min-height: 20vh;
    min-width: 10vw;
    padding: 26px 24px;
    border-radius: 24px;
    background: rgba(10, 100, 200, 0.8);
    backdrop-filter: blur(8px);
    color: #fff;
}

.landing-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.landing-card-content h3 {
    margin-bottom: 10px;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.4;
    color: #fff;
}

.landing-card-content span {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    line-height: 1.7;
}

/* =========================
   HEADER (PITREE FIX)
========================= */

header,
.site-header {
    position: relative;
    z-index: 10;
}
/* =========================
   FOOTER FIX 
========================= */

body.page-template-landing .site-footer,
body.page-template-landing footer {
    position: relative;
    z-index: 3; /* بالاتر از overlay و slider */
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .landing-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    /* =========================
       PITREE OFFCANVAS Z-INDEX FIX
    ========================= */
    
    .pitree-offcanvas,
    .site-offcanvas,
    .offcanvas {
        position: fixed;
        z-index: 9999;
    }
}

@media (max-width: 600px) {
    .landing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    /* =========================
       PITREE OFFCANVAS Z-INDEX FIX
    ========================= */
    
    .pitree-offcanvas,
    .site-offcanvas,
    .offcanvas {
        position: fixed;
        z-index: 9999;
    }
}
/* =========================
   PITREE OFFCANVAS Z-INDEX FIX
========================= */

.pitree-offcanvas,
.site-offcanvas,
.offcanvas {
    position: fixed;
    z-index: 9999;
}