body{
font-family:Arial,sans-serif;
margin:0;
padding:0;
background:#f5f5f5;
color:#333;
line-height:1.6;
}

*{
box-sizing:border-box;
}

header{
background:#0A2342;
color:white;
padding:20px 30px;
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
}

.logo{
display:flex;
align-items:center;
gap:12px;
}

.logo-box{
background:linear-gradient(135deg,#D4AF37,#FFD700);
color:white;
width:55px;
height:55px;
display:flex;
justify-content:center;
align-items:center;
border-radius:12px;
font-size:24px;
font-weight:bold;
}

.logo-text{
font-size:30px;
font-weight:bold;
color:white;
}

nav{
display:flex;
flex-wrap:wrap;
gap:15px;
}

nav a{
color:white;
text-decoration:none;
font-weight:bold;
padding:8px 12px;
border-radius:6px;
transition:0.3s;
}

nav a:hover{
background:rgba(255,255,255,0.15);
}

.hero{
background:white;
text-align:center;
padding:80px 20px;
}

.hero h2{
font-size:48px;
color:#0A2342;
margin-bottom:20px;
}

.hero p{
font-size:18px;
max-width:800px;
margin:auto;
line-height:1.6;
}

input{
width:60%;
max-width:500px;
padding:15px;
border:1px solid #ccc;
border-radius:10px;
font-size:16px;
}

textarea{
width:90%;
max-width:700px;
height:150px;
padding:15px;
border:1px solid #ccc;
border-radius:10px;
font-size:16px;
resize:vertical;
}

button{
background:#D4AF37;
color:white;
border:none;
padding:14px 25px;
border-radius:10px;
cursor:pointer;
font-weight:bold;
margin:10px;
transition:0.3s;
}

button:hover{
transform:scale(1.05);
}

.cards{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:20px;
padding:40px 20px;
}

.card{
background:white;
width:300px;
padding:25px;
border-radius:15px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
transition:0.3s;
}

.card:hover{
transform:translateY(-8px);
}

.card h3{
color:#0A2342;
margin-top:0;
}

.about{
background:white;
text-align:center;
padding:60px 20px;
}

.about h2{
color:#0A2342;
}

.about p{
max-width:800px;
margin:auto;
line-height:1.8;
}

.stats{
display:flex;
justify-content:center;
gap:50px;
padding:50px 20px;
background:#f0f0f0;
flex-wrap:wrap;
}

.stat{
text-align:center;
}

.stat h2{
color:#0A2342;
font-size:42px;
margin-bottom:10px;
}

footer{
background:#0A2342;
color:white;
text-align:center;
padding:30px 20px;
}

footer a{
color:#FFD700;
text-decoration:none;
}

footer a:hover{
text-decoration:underline;
}

@media screen and (max-width:768px){

header{
flex-direction:column;
text-align:center;
}

nav{
justify-content:center;
margin-top:15px;
}

nav a{
font-size:14px;
}

.hero{
padding:50px 15px;
}

.hero h2{
font-size:32px;
}

.hero p{
font-size:16px;
}

input{
width:90%;
}

textarea{
width:95%;
}

.cards{
flex-direction:column;
align-items:center;
}

.card{
width:90%;
}

.stats{
flex-direction:column;
gap:20px;
}

.logo-text{
font-size:24px;
}

button{
width:90%;
max-width:320px;
}

}

/* ===========================
   YouthRise AI Tutor
=========================== */

#chatWindow{
    background:#ffffff;
    border-radius:18px;
    padding:20px;
    height:520px;
    overflow-y:auto;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    display:flex;
    flex-direction:column;
    gap:15px;
}

.user-message{
    align-self:flex-end;
    background:#2563eb;
    color:white;
    padding:14px 18px;
    border-radius:18px 18px 5px 18px;
    max-width:75%;
    animation:fadeUp .25s ease;
    word-wrap:break-word;
}

.ai-message{
    align-self:flex-start;
    background:#f4f4f4;
    color:#111;
    padding:14px 18px;
    border-radius:18px 18px 18px 5px;
    max-width:75%;
    animation:fadeUp .25s ease;
    word-wrap:break-word;
}

#question{
    width:100%;
    padding:15px;
    border-radius:15px;
    border:2px solid #ddd;
    resize:none;
    font-size:16px;
    outline:none;
}

#question:focus{
    border-color:#2563eb;
}

#askBtn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:15px;
    background:#2563eb;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:.3s;
}

#askBtn:hover{
    transform:translateY(-2px);
}

#imageUpload{
    margin-bottom:15px;
}

@keyframes fadeUp{

from{
opacity:0;
transform:translateY(15px);
}

to{
opacity:1;
transform:translateY(0);
}

}