/* =========================
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{
width:100%;
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 7%;
background:#ffffff;
border-bottom:1px solid #e2e8f0;
position:sticky;
top:0;
z-index:1000;
backdrop-filter:blur(10px);
}

.top-left{
display:flex;
align-items:center;
gap:15px;
}

.back-btn{
text-decoration:none;
background:#ecfdf5;
color:#166534;
padding:10px 18px;
border-radius:12px;
font-weight:700;
transition:0.3s;
border:1px solid #bbf7d0;
}

.back-btn:hover{
background:#16a34a;
color:white;
transform:translateY(-2px);
}

.logo{
font-size:1.5rem;
font-weight:800;
color:#166534;
}

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

.course-header{
padding:80px 7%;
background:
linear-gradient(rgba(20,83,45,0.88),
rgba(22,101,52,0.88)),
url("https://images.unsplash.com/photo-1524024973431-2ad916746881?q=80&w=1400&auto=format&fit=crop")
center/cover;
display:flex;
justify-content:space-between;
align-items:center;
gap:40px;
flex-wrap:wrap;
color:white;
}

.course-info{
max-width:700px;
}

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

.course-header h1{
font-size:3rem;
font-weight:800;
line-height:1.2;
margin-bottom:20px;
}

.course-header p{
font-size:1.1rem;
color:#dcfce7;
max-width:650px;
}

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

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

.progress-text{
display:block;
font-size:0.95rem;
font-weight:700;
margin-bottom:14px;
color:#166534;
}

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

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

.progress-percent{
font-size:0.9rem;
font-weight:700;
color:#166534;
}

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

.container{
width:min(900px,92%);
margin:auto;
padding:70px 0;
}

/* =========================
EXAM CARD
========================= */

.exam-card{
background:white;
padding:45px;
border-radius:32px;
box-shadow:0 15px 40px rgba(0,0,0,0.08);
border:1px solid #bbf7d0;
margin-bottom:40px;
}

.question-top{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
margin-bottom:30px;
flex-wrap:nowrap;
}

.question-top span{
white-space:nowrap;
}

.question-number{
background:#15803d;
color:white;
padding:10px 18px;
border-radius:50px;
font-weight:700;
font-size:0.9rem;
}

.question-score{
background:#ecfdf5;
color:#166534;
padding:10px 18px;
border-radius:50px;
font-weight:700;
border:1px solid #bbf7d0;
}

.exam-card h2{
font-size:2rem;
color:#14532d;
margin-bottom:35px;
line-height:1.4;
}

/* =========================
ANSWERS
========================= */

.answers{
display:flex;
flex-direction:column;
gap:18px;
margin-bottom:35px;
}

.answer-btn{
width:100%;
padding:20px 24px;
border:none;
border-radius:20px;
background:#f8fafc;
border:2px solid #e2e8f0;
cursor:pointer;
font-size:1rem;
font-weight:600;
text-align:left;
transition:0.3s;
color:#334155;
}

.answer-btn:hover{
background:#ecfdf5;
border-color:#4ade80;
transform:translateY(-2px);
}

.answer-btn.correct{
background:#dcfce7;
border-color:#22c55e;
color:#166534;
}

.answer-btn.incorrect{
background:#fee2e2;
border-color:#ef4444;
color:#991b1b;
}

.answer-btn:disabled{
cursor:not-allowed;
opacity:1;
}

/* =========================
NEXT BUTTON
========================= */

.next-btn{
width:100%;
padding:18px;
border:none;
border-radius:20px;
background:linear-gradient(135deg,#16a34a,#15803d);
color:white;
font-size:1rem;
font-weight:700;
cursor:pointer;
transition:0.3s;
box-shadow:0 10px 25px rgba(22,101,52,0.35);
}

.next-btn:hover{
transform:translateY(-3px);
box-shadow:0 15px 35px rgba(22,101,52,0.45);
}

/* =========================
RESULT CARD
========================= */

.result-card{
background:white;
padding:50px;
border-radius:32px;
text-align:center;
box-shadow:0 15px 40px rgba(0,0,0,0.08);
border:1px solid #bbf7d0;
}

.result-card h2{
font-size:2.5rem;
color:#14532d;
margin-bottom:30px;
}

/* =========================
SCORE CIRCLE
========================= */

.score-circle{
width:180px;
height:180px;
margin:0 auto 30px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:2.5rem;
font-weight:800;
color:white;
background:linear-gradient(135deg,#16a34a,#15803d);
box-shadow:0 15px 40px rgba(22,101,52,0.4);
}

.result-card h3{
font-size:2rem;
margin-bottom:18px;
color:#15803d;
}

.result-card p{
font-size:1.08rem;
color:#475569;
margin-bottom:35px;
}

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

.result-stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:22px;
margin-bottom:40px;
}

.stat-box{
background:#f8fafc;
padding:30px;
border-radius:24px;
border:1px solid #bbf7d0;
}

.stat-box span{
display:block;
font-size:2rem;
font-weight:800;
color:#15803d;
margin-bottom:10px;
}

.stat-box p{
margin:0;
font-weight:600;
color:#475569;
}

/* =========================
RESTART BUTTON
========================= */

.restart-btn{
display:inline-flex;
align-items:center;
justify-content:center;
padding:18px 30px;
border-radius:20px;
background:linear-gradient(135deg,#16a34a,#15803d);
color:white;
font-weight:700;
text-decoration:none;
transition:0.3s;
box-shadow:0 10px 25px rgba(22,101,52,0.35);
}

.restart-btn:hover{
transform:translateY(-4px);
box-shadow:0 15px 35px rgba(22,101,52,0.45);
}

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

@media(max-width:900px){

.course-header{
padding:60px 7%;
}

.course-header h1{
font-size:2.4rem;
}

.exam-card,
.result-card{
padding:32px;
}

}

@media(max-width:600px){

.topbar{
padding:16px 5%;
}

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

.course-header h1{
font-size:2rem;
}

.container{
width:94%;
padding:50px 0;
}

.exam-card,
.result-card{
padding:24px;
}

.exam-card h2{
font-size:1.5rem;
}

.result-card h2{
font-size:2rem;
}

.score-circle{
width:140px;
height:140px;
font-size:2rem;
}

.question-top{
flex-direction:row;
align-items:center;
justify-content:space-between;
gap:12px;
}

.question-number,
.question-score{
font-size:.86rem;
padding:10px 14px;
}

.next-btn{
font-size:0.95rem;
}

}

/* =========================
CERTIFICATE BUTTON
========================= */

.certificate-btn{
margin-top:25px;
border:none;
background:linear-gradient(135deg,#f59e0b,#d97706);
color:white;
padding:18px 30px;
border-radius:18px;
font-size:1rem;
font-weight:700;
cursor:pointer;
transition:0.3s;
box-shadow:0 10px 25px rgba(217,119,6,0.35);
display:inline-flex;
align-items:center;
justify-content:center;
gap:10px;
}

.certificate-btn:hover{
transform:translateY(-4px);
box-shadow:0 15px 35px rgba(217,119,6,0.45);
}

.signature-box h5{

font-size:16px;
font-weight:700;
color:#111827;

margin-top:14px;
margin-bottom:4px;

text-transform:uppercase;
letter-spacing:0.5px;

}

.signature-box p{

font-size:14px;
color:#6b7280;
font-weight:600;

}

/* =========================
FLOATING WARNING BUTTON
========================= */

.warning-floating-btn{

position:fixed;

bottom:25px;
right:25px;

width:60px;
height:60px;

border:none;
border-radius:50%;

background:
linear-gradient(
135deg,
#f59e0b,
#d97706
);

color:white;

font-size:28px;
font-weight:800;

cursor:pointer;

z-index:9999;

box-shadow:
0 12px 30px rgba(217,119,6,0.35);

transition:.3s;

}

.warning-floating-btn:hover{

transform:
translateY(-4px)
scale(1.05);

box-shadow:
0 18px 40px rgba(217,119,6,0.45);

}

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

@media(max-width:700px){

.warning-floating-btn{

width:52px;
height:52px;

font-size:24px;

bottom:18px;
right:18px;

}

}

@media(max-width:420px){
.question-top{
gap:10px;
}
.question-number,
.question-score{
font-size:.78rem;
padding:9px 11px;
}
}
