/* =========================
   LEARN HERO
========================= */

.learn-hero{
padding-top:90px;
padding-bottom:50px;
}

.learn-hero-content{
max-width:760px;
}

.learn-title{
font-size:72px;
line-height:1.02;
margin-bottom:24px;
font-weight:900;
}

.learn-subtitle{
font-size:22px;
line-height:1.8;
color:#b4bbcf;
margin-bottom:36px;
max-width:720px;
}

.learn-search{
max-width:620px;
}

.learn-search input{
width:100%;
padding:20px 24px;
background:#0d1224;
border:1px solid rgba(255,255,255,0.08);
border-radius:18px;
color:white;
font-size:17px;
outline:none;
}

.learn-search input:focus{
border-color:#8b5fff;
}


/* =========================
   FEATURED ARTICLE
========================= */

.featured-article{
display:grid;
grid-template-columns:1.1fr 1fr;
gap:40px;

background:#0d1224;

border:1px solid rgba(255,255,255,0.08);

border-radius:28px;

padding:32px;
}

.featured-image img{
width:100%;
height:100%;
min-height:340px;
object-fit:cover;
border-radius:20px;
}

.featured-content{
display:flex;
flex-direction:column;
justify-content:center;
}

.featured-badge{
display:inline-block;
padding:10px 16px;
border-radius:999px;
background:rgba(139,95,255,0.12);
color:#a98dff;
font-size:13px;
font-weight:700;
margin-bottom:22px;
width:max-content;
}

.featured-content h2{
font-size:46px;
line-height:1.1;
margin-bottom:24px;
}

.featured-content p{
font-size:18px;
line-height:1.9;
color:#b4bbcf;
margin-bottom:34px;
}


/* =========================
   CATEGORY ROW
========================= */

.category-row{
display:flex;
gap:18px;
overflow-x:auto;
padding-bottom:6px;
}

.category-card{
padding:18px 24px;
background:#0d1224;
border:1px solid rgba(255,255,255,0.08);
border-radius:18px;
white-space:nowrap;
font-weight:600;
transition:0.25s;
cursor:pointer;
}

.category-card:hover{
border-color:#8b5fff;
transform:translateY(-2px);
}


/* =========================
   LEARN GRID
========================= */

.learn-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:28px;
margin-top:40px;
}


/* =========================
   MOBILE
========================= */

@media(max-width:768px){

.learn-title{
font-size:42px;
line-height:1.05;
}

.learn-subtitle{
font-size:18px;
line-height:1.7;
}

.learn-search input{
padding:18px;
font-size:16px;
}

.featured-article{
grid-template-columns:1fr;
padding:22px;
gap:24px;
border-radius:22px;
}

.featured-image img{
min-height:220px;
}

.featured-content h2{
font-size:32px;
}

.featured-content p{
font-size:16px;
line-height:1.8;
}

.learn-grid{
grid-template-columns:1fr;
gap:22px;
}

.learn-card h3{
font-size:24px;
}

.learn-card-content{
padding:22px;
}

}

/* =========================
   TOPIC GRID
========================= */

.topic-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:24px;
margin-top:40px;
}

.topic-card{
background:#0d1224;

border:1px solid rgba(255,255,255,0.08);

border-radius:24px;

padding:30px;

transition:0.25s;
}

.topic-card:hover{
transform:translateY(-4px);
border-color:#8b5fff;
}

.topic-icon{
font-size:42px;
margin-bottom:20px;
}

.topic-card h3{
font-size:24px;
margin-bottom:16px;
}

.topic-card p{
font-size:15px;
line-height:1.8;
color:#b4bbcf;
}


/* =========================
   ROADMAP
========================= */

.roadmap-box{
display:grid;
grid-template-columns:1fr 1fr;

gap:40px;

background:#0d1224;

border:1px solid rgba(255,255,255,0.08);

border-radius:28px;

padding:40px;
}

.roadmap-left h2{
font-size:40px;
line-height:1.1;
margin-bottom:20px;
}

.roadmap-left p{
font-size:17px;
line-height:1.9;
color:#b4bbcf;
max-width:520px;
}

.roadmap-steps{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:18px;
align-content:center;
}

.roadmap-step{
display:flex;
align-items:center;
gap:14px;

padding:20px;

background:#121b34;

border-radius:18px;

font-weight:600;
}

.roadmap-step span{
width:34px;
height:34px;

display:flex;
align-items:center;
justify-content:center;

border-radius:50%;

background:linear-gradient(
90deg,
#8b5fff,
#2ac9ff
);

font-size:14px;
font-weight:700;
}


/* =========================
   MOBILE
========================= */

@media(max-width:768px){

.topic-grid{
grid-template-columns:1fr;
gap:20px;
}

.topic-card{
padding:24px;
}

.topic-card h3{
font-size:22px;
}

.roadmap-box{
grid-template-columns:1fr;
padding:24px;
gap:28px;
}

.roadmap-left h2{
font-size:32px;
}

.roadmap-steps{
grid-template-columns:1fr;
}

}

/* =========================
   SECTION ROW
========================= */

.section-row{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
margin-bottom:10px;
flex-wrap:wrap;
}

.section-link{
color:#8b5fff;
font-weight:700;
transition:0.2s;
}

.section-link:hover{
color:#b59cff;
}

/* =========================
   LEARN VISUAL HIERARCHY
========================= */

.section{
margin-top:90px;
}

.topic-grid{
margin-top:34px;
}

.learn-grid{
margin-top:34px;
}

.roadmap-box{
position:relative;
overflow:hidden;
}

.roadmap-box::before{
content:"";

position:absolute;

right:-120px;
top:-120px;

width:320px;
height:320px;

background:radial-gradient(
circle,
rgba(139,95,255,0.16),
transparent 70%
);

pointer-events:none;
}

.topic-card{
position:relative;
overflow:hidden;
}

.topic-card::before{
content:"";

position:absolute;

top:0;
left:0;

width:100%;
height:2px;

background:linear-gradient(
90deg,
#8b5fff,
#2ac9ff
);

opacity:0;

transition:0.25s;
}

.topic-card:hover::before{
opacity:1;
}

.article-card{
display:flex;
flex-direction:column;
overflow:hidden;
}

.article-card img{
transition:0.35s;
}

.article-card:hover img{
transform:scale(1.04);
}