/* ==================================================
   GLOBAL
================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:#f5f8fc;
    color:#111827;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

.tutorial-page{
    max-width:1600px;
    margin:0 auto;
    padding:40px;
}

/* ==================================================
   HERO SECTION
================================================== */

.hero-section{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:50px;
    align-items:center;
    margin-bottom:40px;
}

.hero-left h1{
    font-size:72px;
    line-height:1;
    font-weight:800;
    margin-bottom:20px;
}

.hero-left h1 span{
    color:#16a34a;
}

.hero-left p{
    font-size:20px;
    color:#64748b;
    margin-bottom:30px;
}

/* ==================================================
   SEARCH
================================================== */

.search-box{
    display:flex;
    max-width:650px;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:18px 20px;
    font-size:15px;
}

.search-box button{
    width:140px;
    border:none;
    background:#16a34a;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

/* ==================================================
   STATS
================================================== */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.stat-card{
    background:#fff;
    border-radius:24px;
    padding:35px 25px;
    text-align:center;
    box-shadow:0 15px 35px rgba(15,23,42,.05);
}

.stat-card i{
    font-size:32px;
    color:#16a34a;
    margin-bottom:15px;
}

.stat-card h2{
    font-size:40px;
    font-weight:700;
    margin-bottom:8px;
}

.stat-card span{
    color:#64748b;
    font-size:14px;
}

/* ==================================================
   MAIN LAYOUT
================================================== */

.content-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:30px;
}

/* ==================================================
   SIDEBAR
================================================== */

.sidebar-card,
.learning-card{
    background:#fff;
    border-radius:24px;
    padding:25px;
    margin-bottom:20px;
    box-shadow:0 15px 35px rgba(15,23,42,.05);
}

.sidebar-card h3,
.learning-card h3{
    font-size:26px;
    margin-bottom:20px;
}

.sidebar-card ul{
    list-style:none;
}

.sidebar-card li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 16px;
    border-radius:12px;
    margin-bottom:8px;
    cursor:pointer;
    transition:.3s;
}

.sidebar-card li:hover{
    background:#f3f4f6;
}

.sidebar-card li.active{
    background:#dcfce7;
    color:#16a34a;
}

.sidebar-card li span{
    background:#f3f4f6;
    padding:5px 10px;
    border-radius:20px;
    font-size:13px;
}

.learning-card p{
    color:#64748b;
    margin-bottom:15px;
}

.path-card{
    background:#f8fafc;
    padding:15px;
    border-radius:16px;
}

.path-card h4{
    margin-bottom:5px;
}

.path-card small{
    color:#64748b;
}

.progress{
    height:8px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
    margin-top:15px;
    margin-bottom:10px;
}

.progress-fill{
    width:75%;
    height:100%;
    background:#16a34a;
}

/* ==================================================
   MAIN CONTENT
================================================== */

.main-content{
    background:#fff;
    border-radius:28px;
    padding:30px;
    box-shadow:0 20px 45px rgba(15,23,42,.05);
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.section-header h2{
    font-size:38px;
}

.section-header button{
    border:1px solid #16a34a;
    color:#16a34a;
    background:#fff;
    padding:10px 18px;
    border-radius:12px;
    cursor:pointer;
}

/* ==================================================
   FEATURED SECTION
================================================== */

.featured-layout{
    display:grid;
    grid-template-columns:1.5fr .9fr 280px;
    gap:25px;
    align-items:start;
}

.featured-video{
    position:relative;
    overflow:hidden;
    border-radius:24px;
}

.featured-video img{
    width:100%;
    border-radius:24px;
}

.play-overlay{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:90px;
    height:90px;
    border-radius:50%;
    background:rgba(255,255,255,.95);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    box-shadow:0 15px 30px rgba(0,0,0,.15);
}

.featured-content{
    padding-top:15px;
}

.badge{
    display:inline-block;
    background:#dcfce7;
    color:#16a34a;
    padding:8px 14px;
    border-radius:50px;
    font-size:12px;
    font-weight:700;
    margin-bottom:15px;
}

.featured-content h2{
    font-size:20px;
    line-height:1.15;
    margin-bottom:15px;
}

.featured-content p{
    color:#64748b;
    line-height:1.7;
    margin-bottom:20px;
}

/* ==================================================
   AUTHOR
================================================== */

.author{
    display:flex;
    align-items:center;
    gap:15px;
    margin-top:20px;
}

.author img{
    width:55px;
    height:55px;
    border-radius:50%;
}

.author strong{
    display:block;
}

.author small{
    color:#64748b;
}

/* ==================================================
   TRENDING
================================================== */

.trending-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.mini-card{
    display:flex;
    gap:12px;
    align-items:center;
}

.mini-card img{
    width:140px;
    border-radius:16px;
}

.mini-card h4{
    font-size:16px;
    margin-bottom:5px;
}

.mini-card span{
    font-size:13px;
    color:#64748b;
}

/* ==================================================
   ALL TUTORIALS
================================================== */

.all-tutorials{
    margin-top:50px;
}

.all-tutorials h2{
    font-size:42px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:30px;
}

/* GRID */

.tutorial-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

/* CARD */

.tutorial-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    border:1px solid #edf2f7;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
    transition:all .3s ease;
}

.tutorial-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(15,23,42,.10);
}

/* IMAGE WRAPPER */

.tutorial-thumb{
    position:relative;
    background:#fff;
    overflow:hidden;
}

/* FIX IMAGE CUTTING */

.tutorial-thumb img{
    width:100%;
    height:auto;
    display:block;

    /* remove crop */
    object-fit:contain;

    /* keep youtube thumbnail ratio */
    aspect-ratio:16/9;
}

/* PLAY BUTTON */

.play-btn{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);

    width:70px;
    height:70px;

    border-radius:50%;
    background:rgba(255,255,255,.95);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:26px;
    color:#111827;

    box-shadow:0 10px 25px rgba(0,0,0,.20);
}

/* VIDEO TIME */

.video-duration{
    position:absolute;
    right:12px;
    bottom:12px;

    background:rgba(0,0,0,.85);
    color:#fff;

    padding:5px 10px;

    border-radius:8px;

    font-size:12px;
    font-weight:600;
}

/* CONTENT */

.card-body{
    padding:18px;
}

.card-body h3{
    font-size:16px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:10px;
    line-height:1.3;
}

.card-body p{
    color:#64748b;
    font-size:15px;
    line-height:1.6;
    margin-bottom:15px;
}

/* BOTTOM */

.tutorial-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.tutorial-badge{
    background:#dcfce7;
    color:#16a34a;

    padding:6px 12px;

    border-radius:8px;

    font-size:12px;
    font-weight:600;
}

.views{
    color:#64748b;
    font-size:13px;
}

/* LOAD MORE */

.load-more{
    margin-top:40px;
    text-align:center;
}

.load-more button{
    min-width:300px;

    padding:15px 30px;

    background:#fff;
    color:#16a34a;

    border:2px solid #16a34a;

    border-radius:14px;

    font-size:16px;
    font-weight:600;

    cursor:pointer;
    transition:.3s;
}

.load-more button:hover{
    background:#16a34a;
    color:#fff;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media(max-width:1400px){

    .tutorial-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:1100px){

    .tutorial-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){

    .tutorial-grid{
        grid-template-columns:1fr;
    }

    .card-body h3{
        font-size:22px;
    }
}

/* ==================================================
   LOAD MORE
================================================== */

.load-more{
    margin-top:35px;
    text-align:center;
}

.load-more button{
    background:#fff;
    border:1px solid #16a34a;
    color:#16a34a;
    padding:14px 35px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media(max-width:1400px){

    .featured-layout{
        grid-template-columns:1fr;
    }

    .trending-list{
        flex-direction:row;
        flex-wrap:wrap;
    }

}

@media(max-width:1200px){

    .hero-section{
        grid-template-columns:1fr;
    }

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .content-layout{
        grid-template-columns:1fr;
    }

    .tutorial-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .tutorial-page{
        padding:20px;
    }

    .hero-left h1{
        font-size:48px;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .tutorial-grid{
        grid-template-columns:1fr;
    }

    .search-box{
        flex-direction:column;
    }

    .search-box button{
        width:100%;
        height:50px;
    }

}