/* TechMadeIzy AI & Tools category page
   Refined from the KRIPTIQ category/library layout.
*/

/* CATEGORY HERO */

.learn-hero{
    padding:72px 5% 42px;
}

.learn-hero-content{
    max-width:760px;
}

.learn-hero h1{
    font-size:58px;
    line-height:1.04;
    margin:0 0 14px;
    font-weight:900;
    color:#172033;
    letter-spacing:-1.4px;
}

.learn-hero p{
    color:#64748B;
    font-size:18px;
    line-height:1.75;
    max-width:680px;
    margin:0;
}

/* SECTIONS */

.learn-section{
    margin-top:46px;
    padding:0 5%;
}

.section-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.section-row h2{
    color:#172033;
    font-size:30px;
    line-height:1.2;
    margin:0;
    letter-spacing:-.5px;
}

/* FEATURED ARTICLE */

.category-featured{
    display:grid;
    grid-template-columns:400px minmax(0,1fr);
    gap:36px;
    align-items:center;

    background:#FFFFFF;
    border:1px solid #DCE4EC;
    border-radius:26px;
    padding:22px;

    box-shadow:0 10px 35px rgba(23,32,51,.055);

    overflow:hidden;
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.category-featured:hover{
    transform:translateY(-3px);
    border-color:#BFD9F2;
    box-shadow:0 14px 40px rgba(23,32,51,.08);
}

.category-featured-image{
    display:block;
    width:400px;
    height:245px;
    overflow:hidden;
    border-radius:18px;
}

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

.category-featured:hover .category-featured-image img{
    transform:scale(1.035);
}

.category-featured-content{
    min-width:0;
    padding:4px 12px 4px 0;
}

.featured-badge{
    display:inline-flex;
    align-items:center;
    width:fit-content;

    padding:7px 12px;
    border-radius:999px;

    background:rgba(22,119,210,.09);
    color:#1677D2;

    font-size:12px;
    font-weight:700;
    letter-spacing:.02em;

    margin-bottom:15px;
}

.category-featured-content h2{
    margin:0 0 14px;
    font-size:36px;
    line-height:1.17;
    letter-spacing:-.8px;
}

.category-featured-content h2 a{
    color:#172033;
    transition:color .2s ease;
}

.category-featured-content h2 a:hover{
    color:#1677D2;
}

.category-featured-content p{
    color:#64748B;
    font-size:16px;
    line-height:1.72;
    margin:0 0 16px;
    max-width:720px;
}

.article-read-time{
    color:#64748B;
    font-size:13px;
    margin-bottom:17px;
}

.section-link{
    color:#1677D2;
    font-size:14px;
    font-weight:700;
    transition:color .2s ease;
}

.section-link:hover{
    color:#39A9FF;
}

/* MORE GUIDES */

.learn-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.article-card{
    background:#FFFFFF;
    border:1px solid #DCE4EC;
    border-radius:22px;
    overflow:hidden;

    display:flex;
    flex-direction:column;
    height:100%;

    box-shadow:0 8px 28px rgba(23,32,51,.045);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.article-card:hover{
    transform:translateY(-4px);
    border-color:#BFD9F2;
    box-shadow:0 12px 34px rgba(23,32,51,.075);
}

.article-card-image{
    display:block;
    width:100%;
    height:210px;
    overflow:hidden;
}

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

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

.article-card-content{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex-grow:1;
}

.article-card-content .featured-badge{
    margin-bottom:13px;
}

.article-card h3{
    font-size:22px;
    line-height:1.3;
    margin:0 0 13px;
    font-weight:700;
    letter-spacing:-.3px;
}

.article-card h3 a{
    color:#172033;
    transition:color .2s ease;
}

.article-card h3 a:hover{
    color:#1677D2;
}

.article-card p{
    color:#64748B;
    font-size:15px;
    line-height:1.72;
    margin:0 0 17px;
    flex-grow:1;
}

/* RESPONSIVE */

@media(max-width:1050px){

    .category-featured{
        grid-template-columns:350px minmax(0,1fr);
        gap:28px;
    }

    .category-featured-image{
        width:350px;
        height:225px;
    }

    .category-featured-content h2{
        font-size:30px;
    }

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

}

@media(max-width:768px){

    .learn-hero{
        padding:50px 20px 30px;
    }

    .learn-hero h1{
        font-size:42px;
        line-height:1.05;
        letter-spacing:-1px;
    }

    .learn-hero p{
        font-size:15px;
        line-height:1.7;
    }

    .learn-section{
        padding:0 20px;
        margin-top:40px;
    }

    .section-row{
        margin-bottom:18px;
    }

    .section-row h2{
        font-size:28px;
    }

    .category-featured{
        grid-template-columns:1fr;
        gap:20px;
        padding:16px;
        border-radius:20px;
    }

    .category-featured-image{
        width:100%;
        height:220px;
        border-radius:14px;
    }

    .category-featured-content{
        padding:0 4px 6px;
    }

    .category-featured-content h2{
        font-size:28px;
        line-height:1.2;
    }

    .category-featured-content p{
        font-size:14px;
        line-height:1.65;
    }

    .learn-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .article-card-image{
        height:180px;
    }

    .article-card-content{
        padding:20px;
    }

    .article-card h3{
        font-size:20px;
    }

    .article-card p{
        font-size:14px;
        line-height:1.65;
    }

}
