/* =========================
RESET
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
font-family:'Inter',sans-serif;
background:#f6f8fb;
color:#1e293b;
line-height:1.7;
}

/* =========================
TOPBAR
========================= */

.topbar{
position:sticky;
top:0;
z-index:1000;
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 8%;
background:rgba(255,255,255,0.94);
backdrop-filter:blur(10px);
border-bottom:1px solid #dcfce7;
}

.back-btn{
text-decoration:none;
background:#f1f5f9;
color:#334155;
padding:10px 18px;
border-radius:12px;
font-weight:600;
transition:0.3s;
border:1px solid #e2e8f0;
}

.back-btn:hover{
background:#dcfce7;
color:#15803d;
transform:translateY(-2px);
}

.logo{
font-size:1.4rem;
font-weight:800;
color:#15803d;
letter-spacing:-0.5px;
}

/* =========================
HEADER CURSO
========================= */

.course-header{
padding:80px 8% 60px;
display:flex;
justify-content:space-between;
align-items:center;
gap:40px;
flex-wrap:wrap;
background:linear-gradient(
135deg,
#14532d,
#166534,
#15803d
);
color:white;
position:relative;
overflow:hidden;
}

.course-header::before{
content:"";
position:absolute;
width:430px;
height:430px;
background:rgba(255,255,255,0.05);
border-radius:50%;
top:-180px;
right:-130px;
}

.course-header::after{
content:"";
position:absolute;
width:270px;
height:270px;
background:rgba(255,255,255,0.05);
border-radius:50%;
bottom:-120px;
left:-80px;
}

.course-info{
flex:1;
min-width:280px;
position:relative;
z-index:2;
}

.course-badge{
display:inline-block;
background:rgba(255,255,255,0.15);
color:white;
padding:10px 18px;
border-radius:999px;
font-size:0.9rem;
font-weight:700;
margin-bottom:22px;
border:1px solid rgba(255,255,255,0.22);
backdrop-filter:blur(8px);
}

.course-info h1{
font-size:3rem;
line-height:1.1;
margin-bottom:22px;
color:white;
max-width:760px;
}

.course-info p{
font-size:1.1rem;
line-height:1.8;
max-width:700px;
color:#d1fae5;
}

/* =========================
PROGRESS
========================= */

.course-progress-box{
background:white;
padding:28px;
border-radius:24px;
min-width:280px;
box-shadow:0 15px 40px rgba(0,0,0,0.15);
position:relative;
z-index:2;
}

.progress-text{
display:block;
font-weight:700;
margin-bottom:14px;
color:#334155;
}

.progress-bar{
width:100%;
height:14px;
background:#e2e8f0;
border-radius:999px;
overflow:hidden;
margin-bottom:14px;
}

.progress-fill{
height:100%;
background:linear-gradient(90deg,#22c55e,#15803d);
border-radius:999px;
transition:width 0.6s ease;
}

.progress-percent{
font-size:0.95rem;
font-weight:700;
color:#15803d;
}

/* =========================
CONTAINER
========================= */

.container{
width:90%;
max-width:1100px;
margin:auto;
padding-bottom:100px;
}

/* =========================
LESSON CARD
========================= */

.lesson-card{
background:white;
padding:40px;
border-radius:28px;
margin-top:50px;
margin-bottom:35px;
box-shadow:0 10px 35px rgba(21,128,61,0.08);
border:1px solid #dcfce7;
}

.lesson-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:25px;
flex-wrap:wrap;
gap:12px;
}

.lesson-number{
background:#dcfce7;
color:#166534;
padding:8px 16px;
border-radius:999px;
font-size:0.85rem;
font-weight:700;
border:1px solid #bbf7d0;
}

.lesson-duration{
color:#64748b;
font-weight:600;
}

.lesson-card h2{
font-size:2rem;
margin-bottom:28px;
color:#0f172a;
}

.objectives{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:18px;
}

.objective{
background:#f0fdf4;
padding:18px;
border-radius:18px;
font-weight:600;
border:1px solid #bbf7d0;
color:#166534;
}

/* =========================
CARDS
========================= */

.card{
background:white;
padding:45px;
border-radius:28px;
margin-bottom:35px;
box-shadow:0 10px 35px rgba(21,128,61,0.07);
border:1px solid #dcfce7;
}

.card h2{
font-size:2rem;
margin-bottom:22px;
color:#0f172a;
}

.card h3{
margin-top:30px;
margin-bottom:16px;
color:#15803d;
font-size:1.2rem;
padding-left:14px;
border-left:4px solid #22c55e;
}

.card p{
line-height:1.9;
margin-bottom:20px;
color:#475569;
font-size:1.05rem;
}

/* =========================
GRIDS
========================= */

.concept-grid,
.record-grid,
.indicator-grid,
.health-grid,
.decision-grid,
.use-grid,
.mistake-grid,
.starter-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:24px;
margin-top:28px;
}

.concept-card,
.record-card,
.indicator-card,
.health-card,
.decision-card,
.use-card,
.mistake-card,
.starter-card{
background:#f0fdf4;
padding:26px;
border-radius:22px;
border:1px solid #bbf7d0;
box-shadow:0 8px 22px rgba(21,128,61,0.06);
transition:0.3s;
}

.concept-card:hover,
.record-card:hover,
.indicator-card:hover,
.health-card:hover,
.decision-card:hover,
.use-card:hover,
.mistake-card:hover,
.starter-card:hover{
transform:translateY(-5px);
box-shadow:0 16px 30px rgba(21,128,61,0.12);
}

.concept-card h3,
.record-card h3,
.indicator-card h3,
.health-card h3,
.decision-card h3,
.use-card h3,
.mistake-card h3,
.starter-card h3{
margin-top:0;
padding-left:0;
border-left:none;
color:#15803d;
font-size:1.18rem;
margin-bottom:12px;
}

.concept-card p,
.record-card p,
.indicator-card p,
.health-card p,
.decision-card p,
.use-card p,
.mistake-card p,
.starter-card p{
margin:0;
font-size:0.98rem;
line-height:1.8;
color:#475569;
}

/* =========================
TABLE
========================= */

.table-section{
background:white;
padding:45px;
border-radius:28px;
margin-bottom:35px;
box-shadow:0 10px 35px rgba(21,128,61,0.07);
border:1px solid #dcfce7;
}

.inner-table{
padding:0;
box-shadow:none;
border:none;
margin-top:28px;
margin-bottom:0;
}

.table-section h2{
font-size:2rem;
margin-bottom:25px;
color:#0f172a;
}

.inner-table h2{
font-size:1.5rem;
margin-bottom:18px;
color:#15803d;
}

.table-box{
border-radius:22px;
overflow:hidden;
border:1px solid #dcfce7;
background:white;
}

.table-row{
display:grid;
grid-template-columns:1fr 1.5fr 1.6fr;
gap:16px;
padding:16px 22px;
border-bottom:1px solid #dcfce7;
color:#334155;
font-size:0.95rem;
align-items:center;
}

.table-row:last-child{
border-bottom:none;
}

.table-header{
background:linear-gradient(90deg,#166534,#15803d);
color:white;
font-weight:700;
}

.table-row:not(.table-header):nth-child(odd){
background:#f0fdf4;
}

.table-row:not(.table-header):hover{
background:#dcfce7;
}

.table-row span:first-child{
font-weight:700;
color:#14532d;
}

.table-header span:first-child{
color:white;
}

/* =========================
FORMULAS
========================= */

.formula-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:22px;
margin:28px 0;
}

.formula-card{
background:#f0fdf4;
border:1px solid #bbf7d0;
border-left:5px solid #22c55e;
padding:24px;
border-radius:18px;
box-shadow:0 8px 22px rgba(21,128,61,0.06);
}

.formula-card h3{
margin-top:0;
padding-left:0;
border-left:none;
color:#15803d;
font-size:1.1rem;
margin-bottom:10px;
}

.formula-card p{
margin:0;
color:#14532d;
font-weight:800;
font-size:0.98rem;
}

/* =========================
IMPORTANT BOX
========================= */

.important-box{
background:linear-gradient(
135deg,
#14532d,
#15803d
);
padding:45px;
border-radius:28px;
margin-bottom:35px;
color:white;
box-shadow:0 15px 35px rgba(21,128,61,0.3);
}

.important-box h2{
margin-bottom:18px;
font-size:2rem;
color:white;
}

.important-box p{
line-height:1.9;
font-size:1.05rem;
color:#d1fae5;
}

/* =========================
NAVIGATION
========================= */

.lesson-navigation{
display:flex;
justify-content:flex-end;
margin-top:50px;
}

.next-btn{
text-decoration:none;
background:linear-gradient(135deg,#22c55e,#15803d);
color:white;
padding:18px 34px;
border-radius:18px;
font-weight:700;
font-size:1rem;
transition:0.3s;
box-shadow:0 10px 25px rgba(34,197,94,0.35);
}

.next-btn:hover{
transform:translateY(-4px);
box-shadow:0 15px 35px rgba(34,197,94,0.45);
}

/* =========================
SCROLLBAR
========================= */

::-webkit-scrollbar{
width:10px;
}

::-webkit-scrollbar-thumb{
background:#22c55e;
border-radius:20px;
}

::-webkit-scrollbar-track{
background:#f0fdf4;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){

.course-header{
padding-top:50px;
}

.course-info h1{
font-size:2.2rem;
}

.card,
.lesson-card,
.important-box,
.table-section{
padding:30px;
}

.inner-table{
padding:0;
}

.table-row{
grid-template-columns:1fr;
gap:6px;
}

.table-header{
display:none;
}

.table-row span{
display:block;
}

.table-row span:first-child{
font-size:1rem;
}

}

@media(max-width:600px){

.topbar{
padding:16px 5%;
}

.course-header{
padding:45px 5%;
}

.container{
width:92%;
}

.course-info h1{
font-size:1.9rem;
}

.course-info p{
font-size:1rem;
}

.card h2,
.lesson-card h2,
.important-box h2,
.table-section h2{
font-size:1.6rem;
}

.inner-table h2{
font-size:1.35rem;
}

.card p,
.important-box p{
font-size:1rem;
}

.next-btn{
width:100%;
text-align:center;
}

}