/* ===============================
GENERAL
=============================== */

body{
font-family: Arial, Helvetica, sans-serif;
margin:0;
background:#f4f6f9;
color:#333;
}

h2{
margin:20px 0;
}

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

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:12px 16px;
background:#2c3e50;
color:white;
position:sticky;
top:0;
z-index:100;
}

.logo{
font-size:20px;
font-weight:bold;
}

.menu-toggle{
font-size:24px;
background:none;
border:none;
color:white;
cursor:pointer;
display:none;
}

.menu{
display:flex;
gap:20px;
}

.menu a{
color:white;
text-decoration:none;
font-size:16px;
}

.menu a:hover{
text-decoration:underline;
}

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

@media (max-width:768px){

.menu-toggle{
display:block;
}

.menu{
display:none;
flex-direction:column;
position:absolute;
top:60px;
left:0;
width:100%;
background:#34495e;
}

.menu a{
padding:12px;
border-bottom:1px solid #555;
}

.menu.show{
display:flex;
}

}


/* ===============================
QUESTION BOX
=============================== */

.question-box{
padding:20px;
border:1px solid #ddd;
margin-bottom:20px;
background:white;
border-radius:10px;
box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.question-text{
font-size:20px;
margin-bottom:15px;
line-height:1.5;
}

.question-image img{
max-width:250px;
margin-top:10px;
border-radius:6px;
}


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

.answers{
margin-top:15px;
}

.answer-btn{

display:block;
width:100%;
padding:18px;
margin-bottom:12px;

font-size:18px;

border-radius:10px;
border:none;

background:#f5f5f5;

box-shadow:0 2px 4px rgba(0,0,0,0.1);

text-align:left;

cursor:pointer;
transition:all 0.2s;
}

.answer-btn:hover{
background:#e3f2fd;
}

.answer-btn:active{
transform:scale(0.97);
}

.answer-btn img{
max-width:120px;
display:block;
margin-top:8px;
border-radius:6px;
}


/* ===============================
BOOKMARK / REPORT
=============================== */

.bookmark-btn,
.report-btn{

margin-top:10px;
margin-right:10px;

padding:8px 14px;

border:none;
border-radius:6px;

cursor:pointer;

background:#ecf0f1;
}

.bookmark-btn:hover{
background:#ffeaa7;
}

.report-btn:hover{
background:#fab1a0;
}


/* ===============================
ADMIN / TEACHER CARD
=============================== */

.card{

max-width:900px;

margin:30px auto;

background:white;

padding:25px;

border-radius:10px;

box-shadow:0 3px 12px rgba(0,0,0,0.08);
}


/* ===============================
FORMS
=============================== */

label{
display:block;
margin-top:18px;
font-weight:600;
}

input[type="text"],
textarea,
select{

width:100%;

padding:10px;

border:1px solid #ccc;

border-radius:6px;

margin-top:6px;

font-size:15px;

}

textarea{
resize:vertical;
}

input[type="file"]{
margin-top:6px;
}

button{

margin-top:25px;

background:#2c7be5;

color:white;

border:none;

padding:12px 22px;

border-radius:6px;

font-size:16px;

cursor:pointer;
}

button:hover{
background:#1a68d1;
}

img{
display:block;
margin-top:8px;
border-radius:6px;
}



.button-group{
margin-top:10px;
}

.button{
display:inline-block;
margin-right:10px;
margin-top:10px;
padding:10px 16px;
background:#2c7be5;
color:white;
text-decoration:none;
border-radius:6px;
}

.button:hover{
background:#1a68d1;
}


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

.testimonial{
background:white;
padding:20px;
border-radius:8px;
box-shadow:0 2px 8px rgba(0,0,0,0.08);
}



.testimonial-slider{

max-width:700px;
margin:auto;
position:relative;
overflow:hidden;

}

.testimonial-slide{

display:none;
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 2px 8px rgba(0,0,0,0.1);
text-align:center;

}

.testimonial-slide p{
font-size:18px;
margin-bottom:10px;
}


/* ===============================
ANSWER BLOCKS (TEACHER EDITOR)
=============================== */

.answer-block{

border:1px solid #eee;

padding:15px;

border-radius:8px;

margin-top:15px;

background:#fafafa;

}


/* ===============================
ANSWER FEEDBACK
=============================== */

.answer-correct{
background:#c8e6c9 !important;
border:2px solid #2e7d32;
}

.answer-wrong{
background:#ffcdd2 !important;
border:2px solid #c62828;
}

.answer-disabled{
opacity:0.7;
pointer-events:none;
}




/* ===============================
LOGIN PAGE
=============================== */

.login-page{
display:flex;
align-items:center;
justify-content:center;
min-height:100vh;
background:#f4f6f9;
}

.login-card{
width:380px;
max-width:95%;
background:white;
padding:30px;
border-radius:10px;
box-shadow:0 4px 12px rgba(0,0,0,0.12);
}

.login-card h2{
text-align:center;
margin-top:0;
margin-bottom:20px;
}

.login-card input{
width:100%;
padding:12px;
margin-top:8px;
margin-bottom:12px;
font-size:16px;
border:1px solid #ccc;
border-radius:6px;
}

.login-card button{
width:100%;
padding:12px;
font-size:16px;
background:#2c7be5;
border:none;
border-radius:6px;
color:white;
cursor:pointer;
}

.login-card button:hover{
background:#1a68d1;
}

.login-links{
text-align:center;
margin-top:15px;
}

.login-links a{
color:#2c7be5;
text-decoration:none;
}

.login-links a:hover{
text-decoration:underline;
}

.login-error{
color:red;
text-align:center;
margin-top:10px;
}




/* ===============================
AUTH PAGES (LOGIN / REGISTER)
=============================== */

.auth-page{
display:flex;
align-items:center;
justify-content:center;
min-height:100vh;
background:#f4f6f9;
}

.auth-card{
width:380px;
max-width:95%;
background:white;
padding:30px;
border-radius:10px;
box-shadow:0 4px 12px rgba(0,0,0,0.12);
}

.auth-card h2{
text-align:center;
margin-top:0;
margin-bottom:20px;
}

.auth-card label{
display:block;
margin-top:12px;
font-weight:600;
}

.auth-card input{
width:100%;
padding:10px;
margin-top:5px;
border:1px solid #ccc;
border-radius:6px;
font-size:16px;
}

.auth-card button{
width:100%;
padding:12px;
margin-top:18px;
background:#2c7be5;
color:white;
border:none;
border-radius:6px;
font-size:16px;
cursor:pointer;
}

.auth-card button:hover{
background:#1a68d1;
}

.auth-links{
text-align:center;
margin-top:15px;
}

.auth-error{
color:red;
text-align:center;
margin-top:10px;
}


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

@media(max-width:600px){

.answer-btn{
font-size:20px;
padding:20px;
}

.card{
margin:10px;
padding:18px;
}

.question-text{
font-size:18px;
}

button{
width:100%;
}

}