
/* =========================
   Main Title (H1)
========================= */

.section-main-title{
    text-align:center;
    font-size:48px;
    font-weight:800;
    margin:40px 0 20px;
    color:#1e293b;
    letter-spacing:-1px;
    position:relative;
}

/* خط تزئینی زیر عنوان */
.section-main-title::after{
    content:"";
    display:block;
    width:120px;
    height:5px;
    margin:12px auto 0;
    border-radius:50px;
    background:linear-gradient(90deg,#FFD54F,#FFB300);
}

/* =========================
   Section Title (H2 + p)
========================= */

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:32px;
    font-weight:700;
    color:#111827;
    margin-bottom:10px;
    position:relative;
}

/* نقطه تزئینی کنار H2 */
.section-title h2::before,
.section-title h2::after{
    content:"";
    width:8px;
    height:8px;
    background:#FFC107;
    border-radius:50%;
    display:inline-block;
    margin:0 10px;
    vertical-align:middle;
}

.section-title p{
    font-size:16px;
    color:#6b7280;
    margin:0;
}


/* =========================
   Slider
========================= */

.home-slider{
    width:100%;
    margin-top:30px;
}

.slider-container{
    position:relative;
    width:100%;
    max-width:1400px;
    margin:auto;
    overflow:hidden;
    border-radius:28px;
}

.slider-track{
    position:relative;
    width:100%;
    height:420px;
}

/* Slide */

.slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .8s ease;
    pointer-events:none;
}

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

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:28px;
}

.slide picture{
    display:block;
    width:100%;
    height:100%;
}

.slide picture img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

/* Dots */

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

.dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background:rgba(255,255,255,.5);
    transition:.3s;
    cursor:pointer;
}

.dot.active{
    width:30px;
    border-radius:20px;
    background:#fff;
}

/* =========================
   Grades Section
========================= */

.grades-section{
    width:100%;
    padding:80px 20px;
}

/* Wrapper */

.grades-wrapper{
    max-width:1200px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:30px;
}

/* Rows */

.grades-row{
    display:flex;
    justify-content:center;
    gap:30px;
}

/* Cards */

.grade-card{
    position:relative;
    width:250px;
    height:250px;
    border-radius:50%;
    overflow:hidden;
    display:block;
    transition:.35s ease;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.grade-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}

/* Hover */

.grade-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.grade-card:hover img{
    transform:scale(1.08);
}

/* Overlay */

.grade-card::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.35),
        rgba(0,0,0,.05)
    );
}

/* Triangle Layout Fine Tune */

.row-2{
    margin-top:-5px;
}

.row-3{
    margin-top:-5px;
}


/* =========================
   Why Us Section
========================= */

.why-us-section{
    width:100%;
    padding:90px 20px;
}

.why-us-container{
    max-width:1300px;
    margin:auto;
    display:flex;
    gap:35px;
    align-items:stretch;
}

/* =========================
   Tabs
========================= */

.why-tabs{
    width:320px;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.why-tab{
    width:100%;
    border:none;
    background:#fff;
    padding:22px 25px;
    border-radius:24px;
    font-size:18px;
    font-weight:700;
    font-family:"vazir";
    text-align:right;
    cursor:pointer;
    transition:.35s ease;
    color:#333;
    box-shadow:0 8px 25px rgba(0,0,0,.05);
    border:2px solid transparent;
}

/* Hover */

.why-tab:hover{
    transform:translateX(-6px);
    border-color: #ffd54a;
}

/* Active */

.why-tab.active{
    background:#ffd54a;
    color:#222;
    box-shadow:0 15px 35px rgba(255,213,74,.35);
}

/* =========================
   Content
========================= */

.why-content-wrapper{
    flex:1;
    position:relative;
    min-height:420px;
}

/* Content Item */

.why-content{
    position:absolute;
    inset:0;
    background:#fff;
    border-radius:35px;
    padding:35px;
    display:none;
    gap:35px;
    align-items:center;
    box-shadow:0 15px 40px rgba(0,0,0,.06);
}

/* Active Content */

.why-content.active{
    display:flex;
}

/* =========================
   Image
========================= */

.why-image{
    width:42%;
    flex-shrink:0;
}

.why-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* =========================
   Text
========================= */

.why-text{
    flex:1;
}

.why-text h2{
    font-size:38px;
    font-weight:800;
    color:#222;
    margin-bottom:25px;
    line-height:1.5;
}

.why-text p{
    font-size:18px;
    line-height:2.2;
    color:#666;
}

/* =========================
   Games Section
========================= */

.games-section{
    width:100%;
    padding:90px 20px;
}


/* =========================
   Grid
========================= */

.games-grid{
    max-width:1400px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

/* =========================
   Card
========================= */

.game-card{
    display:block;
    text-decoration:none;
    background:#fff;
    border-radius:30px;
    overflow:hidden;
    transition:.35s ease;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    position:relative;
}

/* Hover */

.game-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

/* =========================
   Image
========================= */

.game-image{
    width:100%;
    height:220px;
    overflow:hidden;
}

.game-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}

.game-card:hover .game-image img{
    transform:scale(1.08);
}

/* =========================
   Content
========================= */

.game-content{
    padding:25px;
}

.game-content h3{
    font-size:24px;
    font-weight:800;
    color:#222;
    margin-bottom:12px;
    line-height:1.6;
}

.game-content p{
    color:#777;
    line-height:2;
    font-size:15px;
}

/* =========================
   Badge (اختیاری)
========================= */

.game-card::before{
    content:"جدید";
    position:absolute;
    top:15px;
    left:15px;
    background:#ffcf3d;
    color:#222;
    font-size:13px;
    font-weight:700;
    padding:8px 14px;
    border-radius:30px;
    z-index:2;
}

/* =========================
   Psychology Tests Section
========================= */

.psychology-tests-section{
    width:100%;
    padding:90px 20px;
}

.tests-grid{
    max-width:1400px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

/* Card */

.test-card{
    display:block;
    text-decoration:none;
    background:#fff;
    border-radius:30px;
    overflow:hidden;
    transition:.35s ease;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.test-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

/* Image */

.test-image{
    height:220px;
    overflow:hidden;
}

.test-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.5s;
}

.test-card:hover .test-image img{
    transform:scale(1.08);
}

/* Content */

.test-content{
    padding:25px;
}

.test-content h3{
    font-size:24px;
    font-weight:800;
    color:#222;
    margin-bottom:12px;
}

.test-content p{
    font-size:15px;
    color:#777;
    line-height:2;
}


/* =========================
   Statistics Section
========================= */

.stats-section{
    width:100%;
    padding:90px 20px;
}

.stats-grid{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.stat-card{
    background:#fff;
    border-radius:30px;
    padding:35px 25px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    transition:.35s ease;
}

.stat-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.10);
}

.stat-icon{
    font-size:50px;
    margin-bottom:20px;
}

.stat-number{
    font-size:42px;
    font-weight:800;
    color:#FFC107;
    margin-bottom:10px;
}

.stat-title{
    font-size:18px;
    font-weight:700;
    color:#333;
}

.stat-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Section */
.testimonials-section{
    width:100%;
    padding:90px 20px;
}

/* Grid */
.testimonials-grid{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

/* Card */
.testimonial-card{
    background:#fff;
    padding:25px;
    border-radius:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    transition:.3s;
}

.testimonial-card:hover{
    transform:translateY(-6px);
}

/* Header */
.testimonial-header{
    display:flex;
    gap:15px;
    align-items:center;
    margin-bottom:15px;
}

.testimonial-header img{
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
}

.testimonial-header h3{
    margin:0;
    font-size:17px;
}

.testimonial-header span{
    font-size:13px;
    color:#777;
}

/* Text */
.testimonial-card p{
    line-height:2;
    color:#555;
    font-size:14px;
}



/* =========================
   Articles Section
========================= */

.articles-section{
    width:100%;
    padding:90px 20px;
}

.articles-grid{
    max-width:1400px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

/* Card */

.article-card{
    background:#fff;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    transition:.35s;
}

.article-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.10);
}

.article-card a{
    text-decoration:none;
    color:inherit;
}

/* Image */

.article-image{
    position:relative;
    height:240px;
    overflow:hidden;
}

.article-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.article-card:hover .article-image img{
    transform:scale(1.08);
}

/* Category */

.article-category{
    position:absolute;
    top:15px;
    right:15px;
    background:#FFC107;
    color:#222;
    font-size:13px;
    font-weight:700;
    padding:8px 14px;
    border-radius:30px;
}

/* Content */

.article-content{
    padding:25px;
}

.article-content h3{
    font-size:22px;
    color:#222;
    line-height:1.8;
    margin-bottom:12px;
}

.article-content p{
    color:#777;
    line-height:2;
    font-size:15px;
}

/* Footer */

.articles-footer{
    text-align:center;
    margin-top:50px;
}

.view-all-articles{
    display:inline-block;
    padding:15px 35px;
    background:#FFC107;
    color:#222;
    text-decoration:none;
    border-radius:50px;
    font-weight:700;
    transition:.3s;
}

.view-all-articles:hover{
    transform:translateY(-3px);
}



/* =========================
   CTA Section
========================= */

.cta-section{
    width:100%;
    padding:100px 20px;
}

.cta-box{
    max-width:1400px;
    margin:auto;

    background:linear-gradient(
        135deg,
        #FFD54F,
        #FFC107
    );

    border-radius:40px;

    padding:60px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;

    overflow:hidden;

    box-shadow:0 20px 50px rgba(255,193,7,.25);
}

/* Content */

.cta-content{
    flex:1;
}

.cta-content h2{
    font-size:48px;
    color:#222;
    margin-bottom:20px;
    line-height:1.5;
    font-weight:800;
}

.cta-content p{
    font-size:18px;
    color:#444;
    line-height:2;
    margin-bottom:35px;
    max-width:650px;
}

/* Buttons */

.cta-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.cta-btn{
    text-decoration:none;
    padding:16px 35px;
    border-radius:50px;
    font-size:16px;
    font-weight:700;
    transition:.3s;
}

.cta-btn.primary{
    background:#fff;
    color:#222;
}

.cta-btn.primary:hover{
    transform:translateY(-4px);
}

.cta-btn.secondary{
    border:2px solid #fff;
    color:#fff;
}

.cta-btn.secondary:hover{
    background:#fff;
    color:#222;
}

/* Image */

.cta-image{
    width:380px;
    flex-shrink:0;
}

.cta-image img{
    width:100%;
    display:block;
    border-radius:12px;
}


@media (min-width:769px) and (max-width:1024px){

/* ================= TITLE ================= */
.section-main-title{
    font-size:34px;
    margin:25px 0;
}

/* ================= SLIDER ================= */
.home-slider{
    padding:0 20px;
}

.slider-container{
    width:95%;
    margin:auto;
}

/* ================= GRADES ================= */

.row-1 .grade-card{
    width:50%;
    height:50%;
}

.row-2 .grade-card{
    width:33%;
    height:33%;
}

.row-3 .grade-card{
    width:33%;
    height:33%;
}

/* ================= WHY US ================= */
.why-us-container{
    flex-direction:row;
    gap:25px;
    align-items:flex-start;
}

.why-tabs{
    width:35%;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.why-content-wrapper{
    width:65%;
}

.why-tab{
    font-size:14px;
    padding:10px 12px;
}

.why-content{
    flex-direction:row;
    align-items:center;
    gap:20px;
}

.why-image img{
    width:100%;
}

/* ================= GAMES ================= */
.games-grid{
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

/* ================= TESTS ================= */
.tests-grid{
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

/* ================= STATS ================= */
.stats-grid{
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

/* ================= TESTIMONIALS ================= */
.testimonials-grid{
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

/* ================= ARTICLES ================= */
.articles-grid{
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

/* ================= CTA ================= */
.cta-box{
    flex-direction:row;
    align-items:center;
    gap:20px;
    padding:25px;
}

.cta-content h2{
    font-size:24px;
}

.cta-buttons{
    flex-direction:row;
    gap:12px;
}


}

@media (min-width:487px) and (max-width:768px){


/* ================= TITLE ================= */
.section-main-title{
    font-size:28px;
    margin:20px 0;
}

/* ================= SLIDER ================= */
.home-slider{
    padding:0 12px;
}

.slider-container{
    width:100%;
}

/* ================= GRADES ================= */
.grades-row{
    justify-content:center;
    gap:15px;
}

.row-1 .grade-card {
    width:50%;
    height:50%;
}

.row-2 .grade-card{
    width:33%;
    height:33%;
}

.row-3 .grade-card{
    width:33%;
    height:33%;
}

/* ================= WHY US ================= */
.why-us-container{
    flex-direction:column;
    gap:20px;
}

.why-tabs{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
}

.why-tab{
    font-size:13px;
    padding:8px 12px;
}

.why-content{
    flex-direction:row;
    align-items:center;
    gap:15px;
}

.why-image img{
    width:150px;
}

/* ================= GAMES ================= */
.games-grid{
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

/* ================= TESTS ================= */
.tests-grid{
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

/* ================= STATS ================= */
.stats-grid{
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.stat-number{
    font-size:24px;
}

/* ================= TESTIMONIALS ================= */
.testimonials-grid{
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

/* ================= ARTICLES ================= */
.articles-grid{
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

/* ================= CTA ================= */
.cta-box{
    flex-direction:column;
    text-align:center;
    padding:20px;
}

.cta-content h2{
    font-size:22px;
}

.cta-buttons{
    flex-direction:row;
    justify-content:center;
    gap:12px;
}


}

/* ===== ریسپانسیو ===== */
@media(max-width:486px){
  
/* ================= TITLE ================= */
.section-main-title{
    font-size:28px;
    margin:20px 0;
}

/* ================= SLIDER ================= */
.home-slider{
    padding:0 12px;
}

.slider-container{
    width:100%;
}

/* ================= GRADES ================= */
.grades-row{
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
}

.row-1 .grade-card,
.row-2 .grade-card{
    width:40%;
    height:40%;
}

.row-3 .grade-card{
    width:40%;    
    height:50%;
}

/* ================= WHY US ================= */
.why-us-container{
    flex-direction:column;
    gap:20px;
}

.why-tabs{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
}

.why-tab{
    font-size:13px;
    padding:8px 12px;
}

.why-content{
    flex-direction:row;
    align-items:center;
    gap:15px;
}

.why-image img{
    width:120px;
}

/* ================= GAMES ================= */
.games-grid{
    grid-template-columns:repeat(1,1fr);
    gap:15px;
}

/* ================= TESTS ================= */
.tests-grid{
    grid-template-columns:repeat(1,1fr);
    gap:15px;
}

/* ================= STATS ================= */
.stats-grid{
    grid-template-columns:repeat(1,1fr);
    gap:15px;
}

.stat-number{
    font-size:24px;
}

/* ================= TESTIMONIALS ================= */
.testimonials-grid{
    grid-template-columns:repeat(1,1fr);
    gap:15px;
}

/* ================= ARTICLES ================= */
.articles-grid{
    grid-template-columns:repeat(1,1fr);
    gap:15px;
}

/* ================= CTA ================= */
.cta-box{
    flex-direction:column;
    text-align:center;
    padding:20px;
}

.cta-content h2{
    font-size:22px;
}

.cta-image{
   width:250px;
   flex-shrink:0;
}

.cta-buttons{
    flex-direction:row;
    justify-content:center;
    gap:12px;
}

        
}

@media(max-width:360px) {

 .header { padding:8px 15px; }

            .header .logo img {
                height: 40px;
                /* کوچک‌تر برای موبایل */
                border-radius: 50%;
                transition: transform 0.3s ease, box-shadow 0.5s ease;
                animation: logoGlow 2.5s infinite alternate;
            }
    
            .header .logo img:hover {
                transform: scale(1.05);
            }
    
    
            .header .nav {
                padding: 8px 12px;
            }
    
            .header .nav a {
                font-size: auto;
                /* کوچک‌تر برای موبایل */
            }
    
    
            .header .nav .btn-login {
                background: #38bdf8;
                color: #fff;
                padding: 4px 8px;
                /* کوچک‌تر برای موبایل */
                border-radius: 8px;
                font-size: auto;
                transition: 0.3s;
            }

/* ================= TITLE ================= */
.section-main-title{
    font-size:20px;
    margin:15px 0;
}

/* ================= SLIDER ================= */
.home-slider{
    padding:0 5px;
}

.slider-container{
    width:100%;
}

.slider-dots .dot{
    width:6px;
    height:6px;
}

/* ================= WHY US ================= */
.why-us-container{
    flex-direction:column;
}

.why-tabs{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:5px;
}

.why-tab{
    font-size:11px;
    padding:5px 8px;
}

.why-content{
    flex-direction:column;
    text-align:center;
}

.why-image img{
    width:90px;
}

/* ================= GAMES ================= */
.games-grid{
    grid-template-columns:1fr;
    gap:10px;
}

.game-card h3{
    font-size:14px;
}

/* ================= TESTS ================= */
.tests-grid{
    grid-template-columns:1fr;
    gap:10px;
}

/* ================= STATS ================= */
.stats-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.stat-number{
    font-size:20px;
}

/* ================= TESTIMONIALS ================= */
.testimonials-grid{
    grid-template-columns:1fr;
    gap:10px;
}

/* ================= ARTICLES ================= */
.articles-grid{
    grid-template-columns:1fr;
    gap:10px;
}

.article-content h3{
    font-size:14px;
}

/* ================= CTA ================= */
.cta-box{
    flex-direction:column;
    text-align:center;
    padding:15px;
}

.cta-content h2{
    font-size:18px;
}

.cta-buttons{
    flex-direction:column;
    gap:8px;
}

.cta-btn{
    font-size:12px;
}


}