/* =========================================
   OFFICE LEARNING HOMEPAGE
========================================= */

.ol-home{
    max-width:1200px;
    margin:0 auto;
    padding:30px 20px 80px;
}

/* =========================================
   HERO
========================================= */

.ol-hero{
    text-align:center;
    padding:20px 0 10px;
}

.ol-hero h1{
    font-size:56px;
    font-weight:800;
    line-height:1.2;
    margin-bottom:20px;
    color:#0f172a;
}

.ol-hero p{
    max-width:850px;
    margin:0 auto 30px;
    line-height:2;
    font-size:18px;
    color:#475569;
}

.ol-hero-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}

.ol-btn{
    display:inline-block;
    padding:14px 24px;
    border-radius:12px;
    text-decoration:none;
    font-weight:700;
    transition:.3s;
}

.ol-btn-primary{
    background:#ef4444;
    color:#fff !important;
}

.ol-btn-secondary{
    background:#fff;
    border:1px solid #ddd;
    color:#111827;
}

.ol-btn-primary:hover,
.ol-btn-secondary:hover{
    transform:translateY(-3px);
}

/* =========================================
   STATS
========================================= */

.ol-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin:30px 0 60px;
}

.ol-stat{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:30px;
    text-align:center;
}

.ol-stat strong{
    display:block;
    font-size:42px;
    color:#ef4444;
    margin-bottom:10px;
    line-height:1;
}

.ol-stat span{
    color:#475569;
    font-size:15px;
}

/* =========================================
   LEARNING PATHS
========================================= */

.ol-learning-paths{
    margin:60px 0 100px;
}

.ol-learning-paths h2{
    text-align:center;
    margin-bottom:40px;
    font-size:36px;
}

.ol-learning-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.ol-course{
    display:block;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    text-decoration:none;
    box-shadow:0 4px 18px rgba(0,0,0,.08);
    transition:.3s;
}

.ol-course:hover{
    transform:translateY(-6px);
}

.ol-course img{
    width:100%;
    display:block;
}

.ol-course span{
    display:block;
    text-align:center;
    padding:14px;
    font-weight:700;
    color:#111827;
}

/* =========================================
   SECTION HEADER
========================================= */

.ol-section-header{
    text-align:center;
    margin-bottom:45px;
}

.ol-section-header h2{
    font-size:36px;
    font-weight:800;
    margin-bottom:12px;
    color:#111827;
}

.ol-section-header p{
    font-size:18px;
    color:#6b7280;
}

/* =========================================
   POPULAR SECTIONS
========================================= */

.ol-popular-excel{
    margin:100px 0;
}

.ol-popular-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.ol-popular-card{
    display:block;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    text-decoration:none;
    box-shadow:0 4px 18px rgba(0,0,0,.08);
    transition:.3s;
}

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

/* تصویر بدون برش */

.ol-popular-card img{
    width:100%;
    height:auto;
    display:block;
}

/* محتوا */

.ol-popular-content{
    padding:18px;
    text-align:center;
}

.ol-popular-content h3{
    margin:0 0 10px;
    color:#111827;
    font-size:18px;
    line-height:1.6;
    font-weight:700;
}

.ol-popular-content p{
    margin:0;
    color:#6b7280;
    line-height:1.9;
    font-size:14px;
}

.ol-section-footer{
    text-align:center;
    margin-top:40px;
}

/* تبلت */

@media(max-width:991px){

    .ol-popular-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* موبایل */

@media(max-width:768px){

    .ol-popular-grid{
        grid-template-columns:1fr;
    }

}

/* =========================================
   FAQ
========================================= */

.ol-home-faq{
    margin:120px 0 60px;
}

.ol-faq-list{
    max-width:900px;
    margin:0 auto;
}

.ol-faq-item{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:24px;
    margin-bottom:20px;
}

.ol-faq-item h3{
    margin:0 0 12px;
    color:#111827;
    font-size:20px;
}

.ol-faq-item p{
    margin:0;
    line-height:2;
    color:#4b5563;
}

/* =========================================
   TABLET
========================================= */

@media(max-width:991px){

    .ol-stats{
        grid-template-columns:repeat(2,1fr);
    }

    .ol-learning-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .ol-popular-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

    .ol-home{
        padding:25px 15px 50px;
    }

    .ol-hero h1{
        font-size:40px;
    }

    .ol-hero p{
        font-size:16px;
    }

    .ol-stats{
        grid-template-columns:1fr;
    }

    .ol-learning-grid{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .ol-popular-grid{
        grid-template-columns:1fr;
    }

    .ol-popular-card img{
        height:auto;
    }

    .ol-section-header h2{
        font-size:32px;
    }

}


/* =========================================
   LATEST + STORE
========================================= */

.ol-latest-store{
    margin:120px 0;
}

.ol-latest-store-grid{
    display:grid;
    grid-template-columns:45% 55%;
    gap:60px;
    align-items:start;
}

.ol-column-title{
    margin:0 0 24px;
    text-align:center;
    font-size:34px;
    font-weight:800;
    color:#111827;
}

/* -----------------
   POSTS
------------------ */

.ol-latest-column{
    display:flex;
    flex-direction:column;
}

.ol-latest-mini{
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px 0;
    border-bottom:1px solid #e5e7eb;
    text-decoration:none;
    transition:.2s;
}

.ol-latest-mini:hover{
    opacity:.85;
}

.ol-latest-mini-thumb{
    flex:0 0 110px;
}

.ol-latest-mini-thumb img{
    width:110px;
    height:70px;
    object-fit:cover;
    border-radius:10px;
    display:block;
}

.ol-latest-mini-title{
    color:#111827;
    font-size:18px;
    font-weight:700;
    line-height:1.9;
}

/* -----------------
   STORE
------------------ */

.ol-store-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
}

.ol-store-item{
    display:block;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    text-decoration:none;

    box-shadow:0 3px 12px rgba(0,0,0,.05);

    transition:all .25s ease;
}

.ol-store-item:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.10);
}

.ol-store-item img{
    width:100%;
    display:block;

    aspect-ratio:1/1;

    object-fit:cover;

    padding:0;
    margin:0;
}

.ol-store-item span{
    display:block;

    padding:14px 12px 16px;

    text-align:center;

    color:#111827;

    font-size:16px;
    font-weight:700;
    line-height:1.8;
}

/* =========================================
   TABLET
========================================= */

@media(max-width:991px){

    .ol-latest-store-grid{
        grid-template-columns:1fr;
        gap:50px;
    }

    .ol-store-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .ol-column-title{
        font-size:26px;
    }

    .ol-latest-mini-thumb{
        flex:0 0 90px;
    }

    .ol-latest-mini-thumb img{
        width:90px;
        height:60px;
    }

    .ol-latest-mini-title{
        font-size:15px;
    }

    .ol-store-grid{
        grid-template-columns:1fr;
    }

    .ol-store-item img{
        height:auto;
    }

}