/* ===========================
        NAVBAR
=========================== */

.navbar {
  width: 95%;
  max-width: 1300px;
  margin: 20px auto;
  border-radius: 25px;
  position: sticky;
  top: 16px;
  z-index: 100;
  background: rgba(238, 244, 236, 0.9);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(217, 229, 215, 0.92);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition);
}

/* Reserve the floating sticky navbar's height when navigating to page anchors. */
#home,
#features,
#about,
#contact {
  scroll-margin-top: clamp(104px, 9vw, 128px);
}

.nav-container {
  height: 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 700;
  color: #315e52;
  font-family: "Fraunces", serif;
}

.logo span {
  font-size: 26px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mobile-menu {
  display: contents;
}

.nav-toggle {
  display: none;
}

.nav-links {
  display: flex;
  gap: 42px;
}

.nav-links a {
  position: relative;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--secondary-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  gap: 14px;
}

.btn-login {
  padding: 12px 28px;
  border: 2px solid var(--border);
  border-radius: 40px;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}

.btn-login:hover {
  background: var(--background-alt);
  border-color: var(--primary-light);
  color: var(--heading);
}

.btn-register {
  padding: 12px 28px;
  border-radius: 40px;
  background: var(--gradient-accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(53, 89, 77, 0.25);
  transition: var(--transition);
}

.btn-register:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(53, 89, 77, 0.35);
}

/* ==========================
        HERO
========================== */

.hero {
  position: relative;
  max-width: 1400px;
  margin: auto;
  padding: 60px 40px 100px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  background: rgba(201, 125, 83, 0.22);
  top: -80px;
  left: -60px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: rgba(79, 133, 119, 0.2);
  bottom: -120px;
  right: -80px;
}

.hero-content,
.hero-image {
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero-tag {
  display: inline-block;
  background: #eef4ec;
  color: var(--secondary-dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 25px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #d9e5d7;
}

.hero h1 {
  font-size: 68px;
  color: var(--heading);
  line-height: 1.08;
  margin-bottom: 25px;
  font-weight: 600;
  letter-spacing: -1.5px;
}

.hero p {
  color: var(--text);
  font-size: 19px;
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
}

.btn-primary {
  background: var(--gradient-btn);
  color: white;
  padding: 16px 34px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 10px 24px rgba(53, 89, 77, 0.26);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(53, 89, 77, 0.34);
}

.btn-secondary {
  border: 2px solid rgba(201, 125, 83, 0.55);
  background: rgba(255, 253, 249, 0.7);
  color: var(--primary-dark);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #f8e6d7;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 620px;
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: translateY(-8px);
}

/* ==========================
        FEATURES
========================== */

.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title span {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--background-alt);
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 40px;
  color: var(--heading);
  margin-bottom: 20px;
  font-weight: 600;
}

.section-title p {
  max-width: 650px;
  margin: auto;
  line-height: 1.8;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--surface);
  padding: 40px;
  border-radius: 25px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: var(--background-alt);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
}

/* Alternate accent tint so the grid isn't monochrome */
.feature-card:nth-child(2) .feature-icon {
  background: rgba(79, 133, 119, 0.16);
}

.feature-card h3 {
  margin-bottom: 18px;
  color: var(--heading);
  font-weight: 600;
}

.feature-card p {
  color: var(--text);
  line-height: 1.8;
}

/* ==========================
      HOW IT WORKS
========================== */

.how-it-works {
  padding: 110px 0;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--background-alt);
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 34px;
  color: var(--heading);
  margin-bottom: 18px;
  font-weight: 600;
}

.section-header p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.steps {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.step-card {
  width: 320px;
  background: var(--surface);
  border-radius: 25px;
  padding: 35px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.step-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.step-icon {
  font-size: 46px;
  margin-bottom: 22px;
}

.step-card h3 {
  font-size: 26px;
  color: var(--heading);
  margin-bottom: 14px;
  font-weight: 600;
}

.step-card p {
  color: var(--text);
  line-height: 1.8;
}

.step-arrow {
  font-size: 40px;
  color: var(--secondary);
  font-weight: bold;
}

/* ==========================
   ABOUT SECTION
========================== */

.about {
  padding: 90px 0;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  transition: transform 0.4s ease;
}

.about-image img:hover {
  transform: translateY(-10px);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 30px;
  color: var(--heading);
  margin: 20px 0;
  line-height: 1.25;
  font-weight: 600;
}

.about-content p {
  color: var(--text);
  line-height: 1.9;
  font-size: 17px;
  margin-bottom: 30px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 35px;
}

.about-item {
  font-size: 17px;
  color: var(--heading);
  font-weight: 500;
  transition: transform var(--transition);
}

.about-item:hover {
  transform: translateX(6px);
  color: var(--secondary-dark);
}

.about .btn-primary {
  display: inline-block;
}

/* ==========================
   STUDENT FEEDBACK
========================== */

.feedback {
  padding: 110px 0;
}

.feedback-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.feedback-filter {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid rgba(76, 117, 91, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.feedback-filter:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.feedback-filter.is-active {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
}

.feedback-filter:focus-visible,
.feedback-empty a:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.testimonial-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 55px;
}

.testimonial-card {
  width: 330px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 25px;
  padding: 40px;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.stars {
  font-size: 24px;
  margin-bottom: 26px;
}

.stars > span {
  display: inline-flex;
  gap: 4px;
}

.review-star {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
}

.review-star--filled {
  color: #e1a72c;
}

.review-star--outline {
  color: #9a7b3c;
}

.testimonial-card p {
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
  margin-bottom: 32px;
  overflow-wrap: anywhere;
}

.user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.avatar {
  width: 62px;
  height: 62px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform var(--transition);
}

.testimonial-card:hover .avatar {
  transform: scale(1.08);
}

.user h4 {
  color: var(--heading);
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 600;
}

.user span {
  color: var(--gray);
  font-size: 14px;
}

.feedback-empty {
  width: min(100% - 40px, 760px);
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  margin: 55px auto 0;
  padding: 32px;
  background: var(--surface);
  border: 1px dashed rgba(76, 117, 91, 0.3);
  border-radius: 25px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feedback-empty p {
  margin: 0;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
}

.feedback-empty a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  color: white;
  background: var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ==========================
   FAQ SECTION
========================== */

.faq {
  padding: 110px 0;
}

.faq-container {
  width: 90%;
  max-width: 900px;
  margin: auto;
}

.faq-item {
  background: var(--surface);
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.faq-item.active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 133, 119, 0.25);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 24px 30px;
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 20px;
}

.faq-question span {
  font-size: 16px;
  color: var(--secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question span {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 30px 24px;
  color: var(--text);
  line-height: 1.8;
}

/* ==========================
   CONTACT SECTION
========================== */

.contact {
  padding: 100px 8%;
  background: var(--background-alt);
  text-align: center;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 55px;
}

.contact-card {
  background: var(--surface);
  padding: 40px 30px;
  border-radius: 25px;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  font-size: 42px;
  margin-bottom: 18px;
}

.contact-card h3 {
  font-size: 22px;
  color: var(--heading);
  margin-bottom: 14px;
  font-weight: 600;
}

.contact-card p {
  color: var(--text);
  line-height: 1.7;
}

.contact-card p + p {
  margin-top: 12px;
}

.contact-link {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition:
    color var(--transition),
    text-decoration-color var(--transition);
}

.contact-link:hover {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.contact-link:focus-visible {
  outline: 3px solid rgba(53, 89, 77, 0.3);
  outline-offset: 4px;
  border-radius: 4px;
}

.contact-btn {
  display: inline-block;
  margin-top: 55px;
  background: var(--gradient-btn);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(53, 89, 77, 0.24);
  transition: var(--transition);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(53, 89, 77, 0.32);
}

/* ==========================
   FOOTER
========================== */

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 32px 20px;
  text-align: center;
  overflow: hidden;
}

.footer-content h2 {
  font-size: 32px;
  margin-bottom: 6px;
  color: var(--footer-text);
  font-weight: 600;
}

.footer-content p {
  opacity: 0.9;
  line-height: 1.8;
}

.footer-copy {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.65;
  line-height: 1.8;
}

/* ==========================
   CORNER LEAF DECORATION
   Pure CSS: a single line-art leaf shape (--leaf-shape) reused as a
   mask across sections, alternating accent colors and corners so it
   doesn't feel like a repeated stamp. Sits behind content (z-index)
   and never intercepts clicks (pointer-events: none).
========================== */

.features,
.how-it-works,
.about,
.feedback,
.faq,
.contact,
footer {
  position: relative;
}

.features,
.how-it-works,
.about,
.feedback,
.faq,
.contact {
  overflow-x: clip;
}

.features > *,
.about-container,
.feedback > *,
footer > * {
  position: relative;
  z-index: 1;
}

.how-it-works .section-header,
.how-it-works .steps,
.faq .section-header,
.faq .faq-container,
.contact .section-header,
.contact .contact-container,
.contact .contact-btn {
  position: relative;
  z-index: 1;
}

.features::before,
.features::after,
.how-it-works::before,
.how-it-works::after,
.about::before,
.about::after,
.feedback::before,
.feedback::after,
.faq::before,
.faq::after,
.contact::before,
.contact::after,
footer::before,
footer::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 170px;
  -webkit-mask-image: var(--leaf-shape);
  mask-image: var(--leaf-shape);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
}

.features::before {
  top: -20px;
  left: -30px;
  background: var(--primary);
  transform: rotate(-18deg);
}

.features::after {
  bottom: -25px;
  right: -25px;
  background: var(--secondary);
  transform: rotate(150deg);
}

.how-it-works::before {
  top: 10px;
  right: -35px;
  background: var(--secondary);
  transform: rotate(25deg);
}

.how-it-works::after {
  bottom: -20px;
  left: -30px;
  background: var(--primary);
  transform: rotate(-160deg);
}

.about::before {
  top: -15px;
  left: -30px;
  background: var(--secondary);
  transform: rotate(-30deg);
}

.about::after {
  bottom: -30px;
  right: -20px;
  background: var(--primary);
  transform: rotate(165deg);
}

.feedback::before {
  top: 0;
  right: -30px;
  background: var(--primary);
  transform: rotate(20deg);
}

.feedback::after {
  bottom: -15px;
  left: -25px;
  background: var(--secondary);
  transform: rotate(-150deg);
}

.faq::before {
  top: -10px;
  left: -30px;
  background: var(--primary);
  transform: rotate(-22deg);
}

.faq::after {
  bottom: -25px;
  right: -30px;
  background: var(--secondary);
  transform: rotate(155deg);
}

.contact::before {
  top: 10px;
  right: -30px;
  width: 110px;
  height: 145px;
  background: var(--secondary);
  transform: rotate(18deg);
}

.contact::after {
  bottom: 10px;
  left: -25px;
  width: 110px;
  height: 145px;
  background: var(--primary);
  transform: rotate(-165deg);
}

footer::before {
  top: -10px;
  left: -25px;
  width: 100px;
  height: 130px;
  background: var(--footer-text);
  opacity: 0.06;
  transform: rotate(-20deg);
}

footer::after {
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 130px;
  background: var(--footer-text);
  opacity: 0.06;
  transform: rotate(160deg);
}
