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

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial,"Noto Sans Sinhala",sans-serif;
  background:#f4f7fb;
  color:#1e293b;
}

/* NAVBAR */
.navbar{
  width:100%;
  padding:18px 8%;
  background:#0f172a;
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:100;
}

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

.navbar nav a{
  color:#fff;
  text-decoration:none;
  margin-left:20px;
  font-weight:500;
}

.login-btn{
  background:#38bdf8;
  padding:9px 18px;
  border-radius:25px;
  color:#0f172a !important;
}

/* HERO */
.hero{
  min-height:90vh;
  background:linear-gradient(135deg,#1e3a8a,#7c3aed);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:50px 8%;
}

.badge{
  display:inline-block;
  background:rgba(255,255,255,.18);
  padding:10px 22px;
  border-radius:30px;
  margin-bottom:20px;
  font-weight:bold;
}

.hero-content h1{
  font-size:54px;
  margin-bottom:20px;
}

.hero-content p{
  font-size:20px;
  max-width:780px;
  margin:0 auto 32px;
  line-height:1.8;
}

.hero-buttons{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}

.btn{
  padding:14px 30px;
  border-radius:30px;
  text-decoration:none;
  font-weight:bold;
}

.primary{
  background:#fff;
  color:#2563eb;
}

.secondary{
  background:#0f172a;
  color:#fff;
}

/* COMMON */
.intro,
.classes,
.why,
.portal,
.contact{
  padding:75px 8%;
  text-align:center;
}

.intro{
  background:#fff;
}

.intro h2,
.classes h2,
.why h2,
.portal h2,
.contact h2{
  font-size:34px;
  margin-bottom:20px;
  color:#0f172a;
}

.intro p,
.portal p,
.section-subtitle{
  max-width:900px;
  margin:0 auto 35px;
  font-size:18px;
  line-height:1.8;
}

/* TEACHER SECTION FIXED */
.teacher{
  padding:75px 8%;
  background:#e0f2fe;
}

.teacher-box{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  background:#ffffff;
  padding:30px;
  border-radius:25px;
  box-shadow:0 15px 40px rgba(0,0,0,0.12);
  max-width:1000px;
  margin:auto;
  flex-wrap:wrap;
}

.teacher-icon{
  width:130px;
  height:130px;
  min-width:130px;
  border-radius:50%;
  overflow:hidden;
  border:4px solid #2563eb;
  box-shadow:0 10px 25px rgba(0,0,0,0.18);
}

.teacher-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  display:block;
}

.teacher-info{
  flex:1;
  min-width:280px;
}

.teacher-info h2{
  font-size:30px;
  color:#0f172a;
  margin-bottom:10px;
}

.teacher-info h3{
  font-size:26px;
  color:#2563eb;
  margin-bottom:8px;
}

.teacher-info p{
  font-size:17px;
  line-height:1.8;
  color:#475569;
}

/* CLASSES */
.class-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.class-card{
  background:#fff;
  padding:30px;
  border-radius:22px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  transition:.3s;
}

.class-card:hover{
  transform:translateY(-8px);
}

.class-card h3{
  font-size:26px;
  color:#2563eb;
  margin-bottom:15px;
}

.class-card p{
  line-height:1.7;
}

/* WHY */
.why{
  background:#0f172a;
  color:#fff;
}

.why h2{
  color:#fff;
}

.why-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:30px;
}

.why-list div{
  background:rgba(255,255,255,.12);
  padding:22px;
  border-radius:18px;
  font-weight:bold;
}

/* PORTAL */
.portal{
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:#fff;
}

.portal h2{
  color:#fff;
}

.portal-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  max-width:900px;
  margin:30px auto;
}

.portal-cards div{
  background:rgba(255,255,255,.16);
  padding:22px;
  border-radius:18px;
  font-weight:bold;
}

.portal-btn{
  display:inline-block;
  margin-top:15px;
  padding:14px 32px;
  background:#fff;
  color:#2563eb;
  text-decoration:none;
  border-radius:30px;
  font-weight:bold;
}

/* CONTACT */
.contact{
  background:#fff;
}

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

.whatsapp{
  display:inline-block;
  margin-top:18px;
  padding:13px 28px;
  background:#22c55e;
  color:#fff;
  text-decoration:none;
  border-radius:30px;
  font-weight:bold;
}

/* FOOTER */
footer{
  background:#0f172a;
  color:#fff;
  text-align:center;
  padding:22px;
}

/* TABLET */
@media(max-width:900px){

.navbar{
  flex-direction:column;
  gap:15px;
}

.navbar nav{
  text-align:center;
}

.navbar nav a{
  display:inline-block;
  margin:8px;
}

.hero-content h1{
  font-size:38px;
}

.class-grid,
.why-list,
.portal-cards{
  grid-template-columns:repeat(2,1fr);
}

.teacher-box{
  text-align:center;
}

.teacher-info{
  min-width:100%;
}

}

/* MOBILE */
@media(max-width:600px){

.hero-content h1{
  font-size:30px;
}

.hero-content p,
.intro p,
.portal p,
.teacher-info p{
  font-size:16px;
}

.class-grid,
.why-list,
.portal-cards{
  grid-template-columns:1fr;
}

.logo{
  text-align:center;
}

.teacher-icon{
  width:110px;
  height:110px;
  min-width:110px;
}

.teacher-info h2{
  font-size:24px;
}

.teacher-info h3{
  font-size:22px;
}

}

/* Google trust + legal pages update */
.trust-strip{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:22px}
.trust-strip span{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);color:#fff;padding:10px 14px;border-radius:999px;font-weight:700;font-size:14px}
.page-hero{min-height:42vh;background:linear-gradient(135deg,#1e3a8a,#7c3aed);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:110px 20px 50px}
.page-hero h1{font-size:42px;margin-bottom:12px}
.legal-card{max-width:950px;margin:40px auto;padding:35px;background:#fff;border-radius:24px;box-shadow:0 18px 45px rgba(15,23,42,.12);line-height:1.8;color:#334155}
.legal-card h2{color:#0f172a;margin:24px 0 8px}
.security-note{background:#ecfdf5;color:#065f46;padding:12px 14px;border-radius:14px;margin:15px 0;font-weight:700;text-align:center}
footer a{color:#fff;text-decoration:underline}
@media(max-width:720px){.trust-strip{flex-direction:column}.page-hero h1{font-size:30px}.legal-card{margin:20px;padding:22px}}
