/* =========================
   PREPNOVA UNIVERSITY STYLE
========================= */

body{
font-family:Inter, system-ui;
margin:0;
background:#eef2f8;
color:#0f172a;
line-height:1.6;
}

/* CONTAINER */
.container{
width:90%;
max-width:1180px;
margin:auto;
}

/* NAVBAR */
.navbar{
background:rgba(255,255,255,0.85);
backdrop-filter: blur(10px);
padding:14px 0;
position:sticky;
top:0;
z-index:1000;
border-bottom:1px solid #e5e7eb;
}

.nav-wrap{
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-weight:800;
font-size:18px;
letter-spacing:-0.5px;
}

.logo span{
color:#1d4ed8;
}

nav a{
margin:0 12px;
text-decoration:none;
color:#475569;
font-weight:500;
font-size:14px;
transition:0.3s;
}

nav a:hover{
color:#1d4ed8;
}

/* BUTTONS */
button{
padding:10px 14px;
border:none;
cursor:pointer;
border-radius:10px;
font-weight:600;
font-size:14px;
transition:0.25s;
}

.btn-primary{
background:#1d4ed8;
color:white;
box-shadow:0 6px 18px rgba(29,78,216,0.25);
}

.btn-primary:hover{
transform:translateY(-2px);
box-shadow:0 10px 25px rgba(29,78,216,0.35);
}

/* HERO */
.hero{
padding:70px 0 50px;
}

.hero-grid{
display:grid;
grid-template-columns:1.2fr 0.8fr;
gap:50px;
align-items:center;
}

/* TEXT */
.hero h1{
font-size:44px;
line-height:1.15;
letter-spacing:-1px;
margin-bottom:15px;
}

.hero p{
color:#475569;
font-size:16px;
max-width:520px;
}

/* HERO IMAGE (REDUCED IMPACT) */
.hero img{
width:100%;
max-height:320px;
object-fit:cover;
border-radius:16px;
box-shadow:0 20px 50px rgba(15,23,42,0.08);
opacity:0.95;
}

/* STATS */
.stats{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:12px;
margin-top:25px;
}

.stats div{
background:white;
padding:12px;
border-radius:14px;
text-align:center;
border:1px solid #eef2f7;
transition:0.3s;
}

.stats div:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

.stats h2{
margin:0;
font-size:18px;
color:#1d4ed8;
}

.stats p{
margin:5px 0 0;
font-size:12px;
color:#64748b;
}

/* SECTIONS */
.section{
padding:70px 0;
}

.section.alt{
background:#eef2ff;
}

.section-title{
text-align:center;
margin-bottom:35px;
}

.section-title h2{
font-size:28px;
letter-spacing:-0.5px;
}

/* GRID CARDS */
.grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:18px;
}

.card{
background:white;
padding:20px;
border-radius:16px;
border:1px solid #eef2f7;
transition:0.3s;
}

.card:hover{
transform:translateY(-5px);
box-shadow:0 18px 40px rgba(15,23,42,0.08);
}

.card h3{
margin-bottom:8px;
font-size:15px;
}

.card p{
font-size:13px;
color:#64748b;
}

/* STEPS (UNIVERSITY FLOW STYLE) */
.steps{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
text-align:center;
}

.steps div{
background:white;
padding:18px;
border-radius:14px;
border:1px solid #eef2f7;
font-weight:600;
font-size:14px;
}

/* CTA */
.cta{
background:linear-gradient(135deg,#1d4ed8,#1e3a8a);
color:white;
text-align:center;
padding:70px 20px;
border-radius:0;
}

.cta h2{
font-size:32px;
margin-bottom:10px;
}

/* MODAL */
.modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(15,23,42,0.6);
backdrop-filter: blur(5px);
}

.modal-box{
background:white;
padding:22px;
width:340px;
margin:10% auto;
border-radius:16px;
box-shadow:0 30px 80px rgba(0,0,0,0.2);
}

.modal-box input{
width:100%;
padding:10px;
margin:8px 0;
border-radius:10px;
border:1px solid #e2e8f0;
outline:none;
}

/* DARK MODE */
.dark{
background:#0b1220;
color:#e5e7eb;
}

.dark .card,
.dark .stats div,
.dark .navbar,
.dark .modal-box{
background:#111827;
color:#e5e7eb;
border-color:#1f2937;
}

.dark nav a{
color:#cbd5e1;
}

.dark .section.alt{
background:#0f172a;
}



.auth-body{
background:#f1f5f9;
display:flex;
justify-content:center;
align-items:center;
height:100vh;
}

.auth-container{
width:100%;
max-width:400px;
}

.auth-box{
background:white;
padding:30px;
border-radius:16px;
box-shadow:0 20px 50px rgba(0,0,0,0.08);
text-align:center;
}

.auth-box h2{
margin-bottom:5px;
}

.auth-box p{
color:#64748b;
font-size:13px;
margin-bottom:20px;
}

.auth-box input{
width:100%;
padding:12px;
margin:8px 0;
border-radius:10px;
border:1px solid #e2e8f0;
outline:none;
}

.switch{
margin-top:15px;
font-size:13px;
}

.switch a{
color:#1d4ed8;
text-decoration:none;
}




/* =========================
   MOBILE RESPONSIVE FIXES
========================= */

@media (max-width: 768px) {

/* GLOBAL */
.container{
width:92%;
}

/* NAVBAR */
.nav-wrap{
flex-direction:column;
gap:10px;
text-align:center;
}

nav{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:8px;
}

nav a{
font-size:13px;
margin:5px;
}

/* HERO */
.hero{
padding:40px 0;
}

.hero-grid{
grid-template-columns:1fr;
gap:25px;
text-align:center;
}

.hero h1{
font-size:28px;
line-height:1.2;
}

.hero p{
font-size:14px;
margin:0 auto;
}

/* HERO IMAGE */
.hero img{
max-height:220px;
}

/* STATS */
.stats{
grid-template-columns:repeat(2,1fr);
gap:10px;
}

.stats div{
padding:10px;
}

.stats h2{
font-size:16px;
}

/* SECTIONS */
.section{
padding:50px 0;
}

.section-title h2{
font-size:22px;
}

/* GRID CARDS */
.grid{
grid-template-columns:1fr;
gap:15px;
}

/* STEPS */
.steps{
grid-template-columns:1fr;
gap:12px;
}

.steps div{
font-size:13px;
padding:15px;
}

/* CTA */
.cta{
padding:50px 15px;
}

.cta h2{
font-size:22px;
}

/* MODAL */
.modal-box{
width:90%;
margin:25% auto;
}

/* AUTH PAGES */
.auth-box{
width:90%;
padding:20px;
}

.auth-box h2{
font-size:20px;
}

.auth-box input{
padding:10px;
}

}

/* EXTRA SMALL DEVICES */
@media (max-width: 480px) {

.hero h1{
font-size:24px;
}

.stats{
grid-template-columns:1fr;
}

nav a{
font-size:12px;
}

button{
font-size:13px;
padding:9px 12px;
}

}



/* =========================
   MOBILE UX REFINEMENT FIX
========================= */

@media (max-width: 768px) {

/* HERO IMAGE HIDE ON MOBILE */
.hero img{
display:none;
}

/* HERO TEXT CENTER ALIGN */
.hero-grid{
grid-template-columns:1fr;
text-align:center;
gap:20px;
}

.hero p{
margin:0 auto;
}

/* STATS: FORCE 2 COLUMNS */
.stats{
display:grid;
grid-template-columns:repeat(2, 1fr) !important;
gap:10px;
}

/* STATS CARD IMPROVEMENT */
.stats div{
padding:12px 8px;
}

/* Make numbers cleaner on mobile */
.stats h2{
font-size:16px;
}

.stats p{
font-size:11px;
}

/* NAV CLEANUP */
.nav-wrap{
flex-direction:column;
gap:8px;
}

nav{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:6px;
}

nav a{
font-size:13px;
}

/* GRID FIX */
.grid{
grid-template-columns:1fr;
}

/* STEPS */
.steps{
grid-template-columns:1fr;
}

/* HERO TITLE */
.hero h1{
font-size:26px;
line-height:1.2;
}

}

/* VERY SMALL SCREENS */
@media (max-width: 480px) {

.stats{
grid-template-columns:2fr 2fr; /* still 2 columns but tighter */
}

.hero h1{
font-size:22px;
}

}



































/* =========================
   SECTION SPACING TIGHTENING
========================= */

/* Reduce overall section padding slightly */
.section{
padding:55px 0; /* was 70px */
}

/* Reduce gap between title and grid */
.section-title{
margin-bottom:18px; /* was 35px */
}

/* Specifically tighten WHY TEACHERS section feel */
.section-title h2{
margin-bottom:6px;
}

/* Remove extra spacing inside first grid section */
.section .grid{
margin-top:10px;
}

/* Optional: tighten paragraph spacing under titles */
.section-title p{
margin-top:4px;
font-size:14px;
color:#64748b;
}

/* MOBILE EXTRA TIGHTENING */
@media (max-width: 768px){

.section{
padding:40px 0;
}

.section-title{
margin-bottom:14px;
}

.section .grid{
margin-top:6px;
}

}