/* Slider */
#landing-slider {
    position: fixed;
    inset: 0;
    z-index: 0;
}

#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;
}

/* 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;
    color: white;
    margin-bottom: 20px;
}

.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 0vh 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);
    color: white;
    line-height: 1.4;
}

.landing-card-content span {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    line-height: 1.7;
}
/* Responsive */
@media (max-width: 992px) {
    .landing-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

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