/* ============================================================
   TeachMe — brand stylesheet
   Primary (purple): #92278F   Accent (green): #20D62B
   ============================================================ */

:root{
  --purple: #92278F;
  --purple-dark: #6E1D6C;
  --purple-light: #F4E9F4;
  --green: #20D62B;
  --green-dark: #159A1E;
  --ink: #1E1B2E;
  --gray: #6B7280;
  --gray-light: #F6F5FA;
  --white: #FFFFFF;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 45px -20px rgba(41, 14, 66, .28);
  --shadow-card: 0 12px 30px -12px rgba(41, 14, 66, .18);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,.brand-mark,.brand-text{ font-family: 'Poppins', 'Inter', sans-serif; }

a{ text-decoration: none; }

img{ max-width: 100%; display: block; }

/* ---------------- Navbar ---------------- */
.navbar{
  padding: .55rem 0;
  transition: box-shadow .25s ease, padding .25s ease;
}

.navbar-brand{
  gap: .6rem !important;
}

.navbar-brand .logo-img{
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav-link{
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink) !important;
  padding: .5rem .9rem !important;
  border-radius: 30px;
  transition: all .2s ease;
}

.nav-link:hover, .nav-link.active{
  color: var(--purple) !important;
  background: var(--purple-light);
}

.dropdown-menu{
  border-radius: var(--radius-md);
  padding: .5rem;
  margin-top: .5rem !important;
}

.dropdown-item{
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem .9rem;
}

.dropdown-item:hover, .dropdown-item:focus{
  background: var(--purple-light);
  color: var(--purple);
}

.btn-admin{
  background: var(--ink);
  color: var(--white) !important;
  font-weight: 700;
  font-size: .85rem;
  padding: .55rem 1.15rem;
  border-radius: 30px;
  transition: background .2s ease, transform .2s ease;
}

.btn-admin:hover{ background: var(--purple); transform: translateY(-1px); }

/* ---------------- Buttons (brand) ---------------- */
.btn{ font-weight: 700; border-radius: 30px; padding: .75rem 1.6rem; font-size: .95rem; border: none; }

.btn-primary{ background: var(--purple); border-color: var(--purple); }
.btn-primary:hover, .btn-primary:focus{ background: var(--purple-dark); border-color: var(--purple-dark); }

.btn-success{ background: var(--green-dark); border-color: var(--green-dark); }
.btn-success:hover, .btn-success:focus{ background: #0f7a17; border-color: #0f7a17; }

.btn-warning{ background: var(--green); border-color: var(--green); color: var(--ink); }
.btn-warning:hover, .btn-warning:focus{ background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

.btn-light{ background: var(--white); color: var(--purple); }
.btn-light:hover{ background: var(--purple-light); color: var(--purple-dark); }

/* ---------------- Hero / Carousel ---------------- */
.hero{ margin-top: 76px; position: relative; overflow: hidden; }

.hero-slide{
  padding: 5.5rem 0 6rem;
  min-height: 620px;
  position: relative;
}

/* Bootstrap toggles .carousel-item display (none/block) between slides;
   only turn the active slide into a flex row so inactive slides stay hidden. */
.hero-slide.active{
  display: flex;
  align-items: center;
}

.hero-one{ background: linear-gradient(120deg, #FBF6FC 0%, #F2E7F5 55%, #E9F9EA 100%); }
.hero-two{ background: linear-gradient(120deg, #F3FBF0 0%, #EAF6EC 45%, #F6EEF8 100%); }
.hero-three{ background: linear-gradient(120deg, var(--purple-dark) 0%, var(--purple) 55%, #4B1450 100%); }
.hero-three h1, .hero-three p{ color: var(--white); }
.hero-three .eyebrow{ background: rgba(255,255,255,.14); color: var(--white); }

.hero-content{ position: relative; z-index: 2; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: .5rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.3rem;
}

.eyebrow.dark{ background: var(--purple-light); color: var(--purple); }

.hero-slide h1{
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.14;
  margin-bottom: 1.1rem;
  color: var(--ink);
}

.hero-slide h1 span{ color: var(--purple); }
.hero-slide h1 b{ color: var(--green-dark); font-weight: 800; }
.hero-three h1 span{ color: var(--green); }

.hero-slide p{
  font-size: 1.08rem;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 1.8rem;
}

.hero-three p{ color: rgba(255,255,255,.85); }

.hero-trust{ display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hero-trust span{ font-weight: 600; font-size: .9rem; color: var(--ink); display: flex; align-items: center; gap: .4rem; }
.hero-trust i{ color: var(--green-dark); }

/* Decorated visual — shared frame for right-side carousel imagery */
.hero-visual{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.visual-frame{
  position: relative;
  width: min(430px, 92%);
  aspect-ratio: 4 / 4.6;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.visual-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.visual-frame::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(146,39,143,0) 40%, rgba(32,20,60,.55) 100%);
  z-index: 1;
}

.visual-blob{
  position: absolute;
  width: 92%;
  aspect-ratio: 1/1;
  border-radius: 50% 45% 55% 50% / 55% 50% 50% 45%;
  z-index: 0;
}

.hero-one .visual-blob, .hero-two .visual-blob{
  background: linear-gradient(145deg, var(--green) 0%, #8FE894 100%);
  top: -6%; right: -8%;
  opacity: .35;
}

.hero-three .visual-blob{
  background: linear-gradient(145deg, var(--green) 0%, rgba(32,214,43,.2) 100%);
  top: -6%; right: -8%;
  opacity: .5;
}

.visual-ring{
  position: absolute;
  inset: -16px;
  border: 2px dashed rgba(146,39,143,.35);
  border-radius: 38px;
  z-index: 0;
}

.hero-three .visual-ring{ border-color: rgba(255,255,255,.35); }

.floating-card{
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: .8rem 1rem;
  font-size: .82rem;
  z-index: 3;
  animation: float 4.5s ease-in-out infinite;
}

.floating-card i{
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--purple);
  flex-shrink: 0;
}

.floating-card span{ display: block; line-height: 1.25; color: var(--ink); }
.floating-card b{ display: block; font-size: .95rem; color: var(--ink); }

.fc-one{ top: 8%; left: -6%; }
.fc-one i{ background: var(--purple); }

.fc-two{ bottom: 8%; right: -8%; animation-delay: 1.2s; }
.fc-two i{ background: var(--green-dark); }

.fc-three{ top: 42%; left: -10%; animation-delay: .6s; }
.fc-three i{ background: var(--purple); }

@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

/* Legacy icon illustration kept as a decorative badge behind the photo (fallback / accent) */
.teacher-illustration{
  position: relative;
  z-index: 2;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  color: var(--purple);
  box-shadow: var(--shadow-card);
  position: absolute;
  bottom: -18px;
  left: -18px;
}

/* Slide 2 — quote badge overlaid on the photo */
.quote-card{
  position: absolute;
  left: -8%;
  bottom: -8%;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.6rem;
  max-width: 300px;
}

.quote-card i.bi-quote{
  font-size: 1.6rem;
  color: var(--green-dark);
}

.quote-card h3{
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  margin: .5rem 0 .6rem;
  color: var(--ink);
}

.mini-stars{ color: var(--green-dark); letter-spacing: 2px; font-size: .85rem; }
.quote-card small{ display: block; margin-top: .3rem; color: var(--gray); font-weight: 600; }

.carousel-indicators{ bottom: 18px; }
.carousel-indicators [data-bs-target]{
  width: 9px; height: 9px; border-radius: 50%;
  background-color: var(--purple);
  opacity: .3;
  margin: 0 5px;
}
.carousel-indicators .active{ opacity: 1; background-color: var(--green-dark); }

.carousel-control-prev, .carousel-control-next{ width: 6%; opacity: 0; transition: opacity .25s ease; }
.hero:hover .carousel-control-prev, .hero:hover .carousel-control-next{ opacity: .8; }
.carousel-control-prev-icon, .carousel-control-next-icon{
  background-color: rgba(146,39,143,.75);
  border-radius: 50%;
  padding: 1.2rem;
  background-size: 45%;
}

/* ---------------- Benefits strip ---------------- */
.benefits{ padding: 2.2rem 0; background: var(--white); position: relative; margin-top: -1px; }
.benefit-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.benefit-grid > div{ display: flex; gap: .9rem; align-items: flex-start; }
.benefit-grid i{ font-size: 1.7rem; flex-shrink: 0; margin-top: .1rem; }
.benefit-grid b{ display: block; font-size: 1rem; margin-bottom: .2rem; }
.benefit-grid p{ font-size: .87rem; color: var(--gray); margin: 0; }
.benefit-grid .blue{ color: #3B82F6; }
.benefit-grid .green{ color: var(--green-dark); }
.benefit-grid .orange{ color: #F59E0B; }
.benefit-grid .purple{ color: var(--purple); }

/* ---------------- Sections ---------------- */
.section-pad{ padding: 5.5rem 0; }
.bg-soft{ background: var(--gray-light); }

.section-heading{ max-width: 640px; margin: 0 auto 2.5rem; }
.section-heading > span{
  display: inline-block;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 1.4px;
  color: var(--green-dark);
  margin-bottom: .7rem;
}
.section-heading h2{
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: .8rem;
  color: var(--ink);
}
.section-heading p{ color: var(--gray); font-size: 1.02rem; }

/* About intro */
.about-intro{ margin-bottom: 1rem; }
.about-intro p{
  color: var(--gray);
  font-size: 1.03rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}
.about-intro p:last-child{ margin-bottom: 0; }

/* FAQ */
.faq-list{ display: flex; flex-direction: column; gap: .9rem; }
.faq-item{
  background: var(--white);
  border: 1px solid #ECE7F0;
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item[open]{ box-shadow: var(--shadow-card); border-color: var(--purple-light); }
.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "\f282";
  font-family: "bootstrap-icons";
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ transform: rotate(180deg); }
.faq-item p{
  margin: 0;
  padding: 0 1.4rem 1.3rem;
  color: var(--gray);
  font-size: .93rem;
  line-height: 1.65;
}

/* Role cards */
.role-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  border-top: 4px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease;
}
.role-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.role-teacher{ border-top-color: var(--purple); }
.role-parent{ border-top-color: var(--green-dark); }
.role-admin{ border-top-color: #F59E0B; }

.role-icon{
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--white);
  background: var(--purple);
  margin-bottom: 1.3rem;
}
.role-parent .role-icon{ background: var(--green-dark); }
.role-admin .role-icon{ background: #F59E0B; }

.role-card h3{ font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: .6rem; }
.role-card > p{ color: var(--gray); margin-bottom: 1.1rem; }
.role-card ul{ list-style: none; padding: 0; margin: 0 0 1.6rem; }
.role-card ul li{ position: relative; padding-left: 1.6rem; margin-bottom: .55rem; font-size: .92rem; color: var(--ink); }
.role-card ul li::before{
  content: "\f26b";
  font-family: "bootstrap-icons";
  position: absolute; left: 0; top: 0;
  color: var(--green-dark);
  font-size: .9rem;
}

/* Steps */
.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 1rem;
}
.step{
  background: var(--white);
  border: 1px solid #EDEAF2;
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  text-align: center;
  position: relative;
}
.step > div{
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--purple-light);
  -webkit-text-stroke: 1px var(--purple);
  margin-bottom: .5rem;
}
.step i{ font-size: 1.8rem; color: var(--green-dark); margin-bottom: .8rem; display: block; }
.step h4{ font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
.step p{ color: var(--gray); font-size: .88rem; margin: 0; }

/* Stats */
.stats{ padding: 4rem 0; background: linear-gradient(120deg, var(--purple-dark), var(--purple)); }
.stats strong{ display: block; font-family: 'Poppins', sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--white); }
.stats span{ color: rgba(255,255,255,.8); font-weight: 600; font-size: .9rem; }

/* Contact */
.contact-box{
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-box h2{ font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.8rem; margin: .5rem 0; }
.contact-box p{ color: var(--gray); max-width: 480px; margin: 0; }

/* ---------------- Footer ---------------- */
footer{ background: var(--ink); color: rgba(255,255,255,.7); padding: 4.5rem 0 2rem; }
.footer-brand{ display: inline-flex; align-items: center; margin-bottom: .3rem; }
.footer-logo{
  height: 50px;
  width: auto;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: .5rem .8rem;
}
footer p{ font-size: .92rem; line-height: 1.6; }
footer h5{ font-family: 'Poppins', sans-serif; color: var(--white); font-weight: 700; font-size: 1rem; margin-bottom: 1.2rem; }
footer a{ display: block; color: rgba(255,255,255,.65); font-size: .92rem; margin-bottom: .7rem; transition: color .2s ease; }
footer a:hover{ color: var(--green); }
.socials{ display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a{ width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin: 0; }
.socials a:hover{ background: var(--purple); color: var(--white); }
footer hr{ border-color: rgba(255,255,255,.12); margin: 2.5rem 0 1.5rem; }
footer .small span{ color: rgba(255,255,255,.55); }

/* Back to top */
.top-btn{
  position: fixed;
  bottom: 26px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 999;
}
.top-btn.show{ opacity: 1; visibility: visible; transform: translateY(0); }
.top-btn:hover{ background: var(--green-dark); }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px){
  .benefit-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .hero-visual{ margin-top: 3rem; min-height: 360px; }
  .quote-card{ position: static; margin-top: -3rem; }
  .fc-one, .fc-two, .fc-three{ display: none; }
}

@media (max-width: 575.98px){
  .benefit-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .contact-box{ padding: 2rem 1.4rem; text-align: center; justify-content: center; }
}
