:root{
  --navy:#0c1220;
  --navy2:#131b2e;
  --navy3:#1a2438;
  --yellow:#ffcd3c;
  --yellow2:#ffd75e;
  --cream:#fbf1cf;
  --pink:#ffd3e0;
  --ink:#20242c;
  --white:#f7f7f5;
}
*{margin:0;padding:0;box-sizing:border-box;}
html,body{height:100%;}
body{
  background:var(--navy);
  color:var(--white);
  font-family:'Poppins',sans-serif;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
#site-footer,#site-bottom-banner{margin-top:auto;}
h1,h2,h3,.brand,.btn,.note,.card h3,.tagline-badge,.bottom-banner strong{
  font-family:'Baloo 2',cursive;
}
a{text-decoration:none;color:inherit;}
ul{list-style:none;}
img{max-width:100%;display:block;}
.wrap{max-width:1400px;margin:0 auto;padding:0 28px;}

/* ===== NAVBAR ===== */
.navbar{
  display:flex;align-items:center;justify-content:space-between;
  background:var(--navy2);
  padding:14px 28px;
  flex-wrap:wrap;
  gap:14px;
  position:sticky; top:0; z-index:50;
  border-bottom:2px solid #0006;
}
.brand{display:flex;align-items:center;gap:10px;}
.brand .face{
  width:46px;height:46px;border-radius:50%;
  background:var(--yellow);
  display:flex;align-items:center;justify-content:center;
  font-size:24px;
  flex-shrink:0;
}
.brand-text .name{font-size:22px;font-weight:700;color:var(--white);}
.brand-text .name span{color:var(--yellow);}
.brand-text .tag{font-size:12px;color:#c8cfdb;font-family:'Poppins',sans-serif;}

.nav-links{display:flex;gap:26px;flex-wrap:wrap;}
.nav-links a{
  font-size:14px;font-weight:600;color:#dfe3ec;
  display:flex;flex-direction:column;align-items:center;gap:4px;
  padding-bottom:4px;
  transition:color .15s;
}
.nav-links a.active{color:var(--yellow);border-bottom:3px solid var(--yellow);}
.nav-links a:hover{color:var(--yellow);}

.nav-actions{display:flex;align-items:center;gap:18px;}
.icon-btn{position:relative;font-size:19px;color:#dfe3ec;cursor:pointer;}
.icon-btn .badge{
  position:absolute;top:-8px;right:-10px;
  background:#ff4d5e;color:#fff;font-size:10px;font-weight:700;
  border-radius:50%;width:17px;height:17px;
  display:flex;align-items:center;justify-content:center;
  font-family:'Poppins',sans-serif;
}
.btn{
  font-family:'Baloo 2',cursive;
  font-weight:700;font-size:15px;
  padding:11px 22px;border-radius:30px;
  border:none;cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;
  transition:transform .15s;
}
.btn:hover{transform:translateY(-2px);}
.btn-yellow{background:var(--yellow);color:#1a1300;}
.btn-outline{background:transparent;color:var(--white);border:2px solid #566;}
.btn-sm{padding:8px 16px;font-size:13px;}

/* ===== PAGE HERO (subpages) ===== */
.page-hero{
  padding:46px 28px;
  text-align:center;
  background:linear-gradient(180deg,#131b2e,#0c1220);
  border-bottom:3px solid var(--yellow2);
}
.page-hero h1{font-size:36px;margin-bottom:10px;}
.page-hero h1 .accent{color:var(--yellow);}
.page-hero p{color:#c9cfdc;font-size:14.5px;max-width:640px;margin:0 auto;}

/* ===== GENERIC CONTENT SECTION ===== */
.content{padding:44px 28px;}
.content.light{background:var(--white);color:var(--ink);border-radius:24px 24px 0 0;}
.section-title{font-size:26px;margin-bottom:6px;}
.section-sub{color:#8a8f99;font-size:13.5px;margin-bottom:26px;}
.content.light .section-sub{color:#555;}

/* ===== HERO (home) ===== */
.hero{
  padding:34px 28px 40px;
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:28px;
  align-items:center;
}
.hero-left{position:relative;}
.notes-row{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:16px;}

.note{
  background:var(--cream);
  color:var(--ink);
  border-radius:6px;
  padding:12px 14px;
  font-size:13px;
  box-shadow:3px 4px 10px #0006;
  position:relative;
  font-family:'Poppins',sans-serif;
}
.note h4{font-family:'Baloo 2',cursive;font-size:14px;margin-bottom:6px;}
.note ul li{margin:3px 0;}
.note.pink{background:var(--pink);}
.note.tilt-1{transform:rotate(-3deg);}
.note.tilt-2{transform:rotate(2deg);}
.note.tilt-3{transform:rotate(-2deg);}
.note.tilt-4{transform:rotate(3deg);}

.scene{
  display:flex;align-items:flex-end;gap:14px;
  background:linear-gradient(180deg,#1c2740,#141d33);
  border-radius:18px;
  padding:16px;
  position:relative;
  box-shadow:0 8px 22px #0007;
}
.books{display:flex;flex-direction:column;gap:4px;flex-shrink:0;}
.book{
  height:30px;border-radius:4px 4px 0 0;
  display:flex;align-items:center;padding-left:10px;
  font-family:'Baloo 2',cursive;font-weight:700;font-size:13px;color:#fff;
}
.book.physics{background:#2e7dd6;}
.book.chem{background:#d64545;}
.book.math{background:#2fae66;}
.book.bio{background:#3fb6c9;}
.book.jee{background:#c94fd6;}
.book.neet{background:#e0a72e;}

.art-card{
  flex:1;border-radius:14px;overflow:hidden;
  box-shadow:0 6px 18px #0008;
  position:relative;
}
.art-card img{width:100%;height:220px;object-fit:cover;object-position:center 20%;}
.speech{
  position:absolute;top:10px;right:10px;
  background:#fff;color:#20242c;
  padding:8px 12px;border-radius:14px;
  font-size:12px;max-width:150px;
  font-family:'Poppins',sans-serif;font-weight:500;
  box-shadow:2px 3px 6px #0005;
}

.hero-right{display:flex;flex-direction:column;gap:16px;}
.hero-right h1{font-size:48px;font-weight:800;line-height:1.1;}
.hero-right h1 .tyagi{color:var(--yellow);}
.tagline-badge{
  display:inline-block;
  background:var(--yellow);color:#1a1300;
  font-size:22px;font-weight:700;
  padding:4px 16px;border-radius:8px;
  transform:rotate(-2deg);
  width:fit-content;
}
.hero-sub{color:#c9cfdc;font-size:15px;line-height:1.6;}
.cta-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:6px;}

.side-notes{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;}

/* ===== FEATURES / CARD GRIDS ===== */
.features{background:var(--white);color:var(--ink);padding:40px 28px;border-radius:24px 24px 0 0;}
.features h2{font-size:30px;margin-bottom:4px;}
.features > .wrap > p{color:#555;margin-bottom:26px;font-size:14px;}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:18px;}
.card{text-align:center;cursor:pointer;}
.card .ic{
  width:56px;height:56px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-size:26px;margin:0 auto 10px;color:#fff;
}
.card h3{font-size:17px;margin-bottom:6px;}
.card p{font-size:12.5px;color:#555;margin-bottom:10px;line-height:1.5;}
.card .stub{background:var(--yellow);color:#1a1300;font-size:11.5px;font-weight:600;padding:8px;border-radius:8px;font-family:'Poppins',sans-serif;}
.ic.c1{background:#2e9fe0;} .ic.c2{background:#a463e0;} .ic.c3{background:#37c477;}
.ic.c4{background:#ef5a72;} .ic.c5{background:#4ab3ee;} .ic.c6{background:#c95ae0;}

/* generic light card used across subject/tool/course pages */
.grid-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px;}
.info-card{
  background:#fff;border-radius:14px;padding:20px;
  box-shadow:0 4px 14px #0001;border:1px solid #eee;
}
.info-card h3{font-size:18px;margin-bottom:8px;color:var(--ink);}
.info-card p{font-size:13px;color:#555;line-height:1.55;margin-bottom:14px;}
.info-card .tag{
  display:inline-block;background:#fdf1cf;color:#7a5b00;
  font-size:11px;font-weight:600;padding:4px 10px;border-radius:20px;margin-bottom:10px;
}
.info-card .price{font-weight:700;color:#1a7a3f;margin-bottom:10px;}

/* dark variant card (for community/doubt/video pages on dark bg) */
.dark-card{
  background:var(--navy2);border-radius:14px;padding:20px;
  border:1px solid #ffffff12;
}
.dark-card h3{font-size:17px;margin-bottom:8px;color:var(--white);}
.dark-card p{font-size:13px;color:#c9cfdc;line-height:1.55;margin-bottom:12px;}
.dark-card .meta{font-size:11.5px;color:#8a92a5;display:flex;gap:14px;flex-wrap:wrap;}

/* ===== MOTIVATION ===== */
.motivation-wrap{padding:0 28px 40px;background:var(--white);}
.motivation{
  background:var(--navy2);border-radius:16px;padding:26px;
  max-width:1400px;margin:0 auto;position:relative;border:4px solid var(--yellow2);
}
.motivation h3{color:var(--yellow);font-size:20px;margin-bottom:14px;}
.motivation blockquote{font-size:19px;line-height:1.6;font-style:italic;color:#f2f2f2;font-family:'Poppins',sans-serif;font-weight:500;}
.motivation cite{display:block;margin-top:14px;color:var(--yellow2);font-style:normal;font-weight:600;font-size:14px;}

/* ===== FOOTER ===== */
footer{background:var(--navy);padding:40px 28px 0;}
.foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:26px;padding-bottom:30px;}
.foot-grid h4{font-family:'Baloo 2',cursive;font-size:16px;margin-bottom:12px;color:var(--yellow);}
.foot-grid ul li{margin:8px 0;font-size:14px;color:#c9cfdc;}
.foot-grid ul li a:hover{color:var(--yellow);}
.visitor-num{font-family:'Baloo 2',cursive;font-size:30px;color:var(--yellow);font-weight:700;}
.joke{background:var(--cream);color:var(--ink);padding:10px 12px;border-radius:8px;font-size:12.5px;margin-bottom:10px;}
.social-row{display:flex;gap:12px;margin-top:10px;flex-wrap:wrap;}
.social-row a{
  width:36px;height:36px;border-radius:50%;background:var(--navy3);
  display:flex;align-items:center;justify-content:center;font-size:16px;
}
.social-row a:hover{background:var(--yellow);color:#1a1300;}
.bottom-banner{background:var(--yellow);color:#1a1300;text-align:center;padding:14px;font-family:'Baloo 2',cursive;font-weight:700;font-size:16px;}

/* ===== FORMS (login / contact) ===== */
.form-wrap{max-width:440px;margin:0 auto;padding:50px 28px 70px;}
.form-card{
  background:var(--navy2);border-radius:18px;padding:32px 28px;
  border:2px solid #ffffff14; box-shadow:0 10px 30px #0007;
}
.form-card h2{font-size:24px;text-align:center;margin-bottom:6px;}
.form-card .sub{text-align:center;color:#c9cfdc;font-size:13px;margin-bottom:22px;}
.field{margin-bottom:16px;}
.field label{display:block;font-size:13px;color:#dfe3ec;margin-bottom:6px;font-weight:600;}
.field input,.field textarea{
  width:100%;padding:11px 14px;border-radius:8px;border:1.5px solid #333f56;
  background:#0c1220;color:#fff;font-family:'Poppins',sans-serif;font-size:14px;
}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--yellow);}
.form-card .btn{width:100%;justify-content:center;margin-top:6px;}
.form-switch{text-align:center;margin-top:16px;font-size:13px;color:#c9cfdc;}
.form-switch a{color:var(--yellow);font-weight:600;}
.tab-row{display:flex;background:#0c1220;border-radius:30px;padding:4px;margin-bottom:22px;}
.tab-row button{
  flex:1;padding:9px;border:none;background:transparent;color:#c9cfdc;
  border-radius:26px;font-family:'Baloo 2',cursive;font-weight:700;cursor:pointer;font-size:14px;
}
.tab-row button.active{background:var(--yellow);color:#1a1300;}

/* ===== FAQ (help page) ===== */
.faq-item{background:#fff;border-radius:10px;margin-bottom:12px;overflow:hidden;border:1px solid #eee;}
.faq-q{padding:16px 18px;font-weight:600;cursor:pointer;display:flex;justify-content:space-between;align-items:center;color:var(--ink);font-size:14.5px;}
.faq-a{padding:0 18px;max-height:0;overflow:hidden;transition:all .25s ease;color:#555;font-size:13.5px;line-height:1.6;}
.faq-item.open .faq-a{padding:0 18px 16px;max-height:200px;}
.faq-item.open .faq-q .arrow{transform:rotate(180deg);}
.faq-q .arrow{transition:transform .25s;}

/* ===== SIMPLE TEXT PAGE (about/privacy/terms) ===== */
.text-page{max-width:820px;margin:0 auto;}
.text-page h2{font-size:22px;margin:26px 0 10px;color:var(--ink);}
.text-page h2:first-child{margin-top:0;}
.text-page p,.text-page li{color:#555;font-size:14px;line-height:1.7;margin-bottom:8px;}
.text-page ul{padding-left:20px;list-style:disc;}

/* ===== TOOL WIDGET (study tools page) ===== */
.tool-widget{background:#fff;border-radius:16px;padding:26px;text-align:center;box-shadow:0 4px 14px #0001;border:1px solid #eee;}
.timer-display{font-family:'Baloo 2',cursive;font-size:52px;color:var(--ink);margin:14px 0;}
.timer-controls{display:flex;gap:10px;justify-content:center;}
.timer-controls button{
  border:none;padding:10px 20px;border-radius:24px;font-weight:700;cursor:pointer;
  font-family:'Baloo 2',cursive;background:var(--yellow);color:#1a1300;
}

@media(max-width:900px){
  .hero{grid-template-columns:1fr;}
  .hero-right h1{font-size:36px;}
  .nav-links{order:3;width:100%;justify-content:center;}
}
