@font-face {
  font-family: "Nunito";
  src: url(Nunito-VariableFont_wght.ttf) format("truetype");
  font-weight: 600;
  font-style: normal;
}

:root {
  --glass-background: rgba(59, 204, 156, 0.7);
  --background: #39a07e;
  --page-color: #e9e9ed;
  --scroll-bar-color: #0f6e56;
  --hover-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito";
}

/* ---- Global Scrollbars & Text Selections ---- */
::-webkit-scrollbar {
  height: 100%;
  width: 0.6rem;
  background-color: var(--page-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-bar-color);
  border-radius: 10px;
}

*::selection {
  color: white;
  background-color: var(--background);
  -webkit-user-drag: none;
}

.hover:hover {
  color: var(--hover-color);
  transition: color 0.3s ease-out;
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: clip;
}

/* ############### PAGE 1 START ############### */
#main {
  min-height: 100%;
  width: 100%;
  background-color: var(--page-color);
}

#main .page1 {
  min-height: calc(100vh - 10vh);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #e0f4fb 0%, #f8fbfd 90%, #f8fbfd 100%);
  position: relative;
  overflow: hidden;
}

#main .page1::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #e0f4fb 30%, rgba(15, 110, 86, 0.33) 95%);
  border-radius: 50%;
  pointer-events: none;
}

#main .page1::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #e0f4fb 30%, rgba(15, 110, 86, 0.33) 95%);
  border-radius: 50%;
  pointer-events: none;
}

#main .page1 .hero {
  position: relative;
  max-width: 1300px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 1;
}

.hero__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: #0f6e56;
  color: white;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(169, 227, 208, 0.3);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  color: #1a1a2e;
  font-weight: 800;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: #4a4a6a;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.cta-btn.primary {
  background: #0f6e56;
  color: white;
  box-shadow: 0 8px 20px rgba(169, 227, 208, 0.3);
}

.cta-btn.secondary {
  background-color: white;
  color: var(--background);
  border: 2px solid var(--background);
}

.cta-btn:hover {
  transform: translateY(-3px);
}

.cta-btn.primary:hover {
  box-shadow: 0 12px 30px rgba(169, 227, 208, 0.4);
}

.cta-btn.secondary:hover {
  background: var(--background);
  color: white;
}

.hero__visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero__visual img {
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* ############### PAGE 2 START ############### */
#main .page2 {
  min-height: 100%;
  width: 100%;
  background-color: #e9e9ed;
  position: relative;
  padding: 4rem 2rem;
}

.page2 > h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: #1a1a2e;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.page2 > h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #0f6e56;
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.popular-subscriptions {
  margin-top: 4rem;
}

.page2 .classes {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.page2 .classes .class {
  height: auto;
  min-height: 320px;
  width: 100%;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.page2 .classes .class::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #0f6e56;
}

.page2 .classes .class:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--background);
}

.page2 .classes .class .classno-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.page2 .classes .class .classno-container .classno {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: #0f6e56;
  border-radius: 10px;
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(169, 227, 208, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page2 .classes .class .classno-container .classno:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(169, 227, 208, 0.4);
}

.page2 .classes .class .subjects {
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.page2 .classes .class .subjects .subject {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.page2 .classes .class .subjects .subject:last-child {
  border-bottom: none;
}

.page2 .classes .class .subjects .subject-type {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.95rem;
}

.page2 .classes .class .subjects .subject-board-type {
  background: #f3f4f6;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #4a4a6a;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page2 .classes .class .subjects .subject-board-type:hover {
  background: var(--background);
  color: white;
  box-shadow: 0 4px 12px rgba(169, 227, 208, 0.2);
}

.page2 .classes .class .subjects .subject a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.page2 .classes .class .subjects .subject a:hover {
  color: var(--background);
}

.page2 .cards {
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--background);
}

.card .price {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 110, 86, 0.42);
  border-radius: 20px;
}

.card .price h4 {
  font-size: 1.3rem;
  color: #0f6e56;
  font-weight: 700;
  margin: 0;
}

.card .chapter {
  font-size: 1.6rem;
  color: #1a1a2e;
  font-weight: 700;
  padding: 1.5rem 2rem 0.5rem;
  line-height: 1.3;
  margin: 0;
}

.card .sub-topic {
  font-size: 0.95rem;
  color: #4a4a6a;
  line-height: 1.6;
  padding: 0.5rem 2rem 1.5rem;
  flex-grow: 1;
  font-weight: 500;
  margin: 0;
}

.join-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.card .join-btn {
  margin: 0 2rem 2rem 2rem;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  background: #0f6e56;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(169, 227, 208, 0.3);
}

.card .join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(169, 227, 208, 0.4);
}

.explore-subscriptions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto 0;
  text-decoration: none;
}

.explore-subscriptions > button {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  background: #0f6e56;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(169, 227, 208, 0.3);
}

.explore-subscriptions > button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(169, 227, 208, 0.4);
}

/* ********************** STANDALONE CLASSES ROUTE ********************** */
#class-main {
  min-height: 90%;
  width: 100%;
  background-color: var(--page-color);
}

#class-main > h2 {
  width: 100%;
  font-size: 3rem;
  text-align: center;
  padding-top: 10rem;
}

#class-main .classes {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 2rem 4rem 2rem;
  flex-wrap: wrap;
  gap: 30px;
}

#class-main .classes .class {
  min-height: 40vh;
  width: 30vw;
  background: var(--background);
  backdrop-filter: blur(10px);
  border: 1.6px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 0.7rem 0 1.5rem 0;
}

#class-main .classes .class .chapter-title-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

#class-main .classes .class .chapter-title {
  width: 80%;
  text-align: center;
}

#class-main .classes .class .chapter-content {
  width: fit-content;
  margin-top: 1.8rem;
  padding: 0 2rem 0 4rem;
}

#class-main .classes .class .chapter-content ol li {
  margin-top: 0.8rem;
}

#class-main .classes .class .chapter-content ol li a {
  text-decoration: none;
  color: black;
}

#class-main .classes .class .subjects .subject {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#class-main .classes .class .subjects .subject a {
  text-decoration: none;
  color: black;
}

#class-main .classes .class .subjects .subject a:hover {
  color: var(--hover-color);
}

/* =================================================== HOMEPAGE UTILITIES =================================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  background: #0f6e56;
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #1a1a2e;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.section-title span {
  color: #0f6e56;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #4a4a6a;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

.section-underline {
  width: 70px;
  height: 4px;
  background: #0f6e56;
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ---- Stats Bar Component ---- */
.stats-bar {
  background: #1a1a2e;
  padding: 2.2rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 1rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #5aac98;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ---- What We Offer Grid Section ---- */
.offers-section {
  padding: 6rem 2rem;
  background: #ffffff;
}

.offer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
  max-width: 1300px;
  margin: 0 auto;
}

.offer-card {
  background: #f8fbfd;
  border: 1.5px solid #e8edf2;
  border-radius: 18px;
  padding: 2.2rem 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.offer-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #0f6e56;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(125, 173, 157, 0.15);
  border-color: #0f6e56;
  background: #ffffff;
}

.offer-card:hover::after {
  transform: scaleX(1);
}

.offer-num {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  font-size: 4rem;
  font-weight: 800;
  color: #edf0f2;
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s ease;
}

.offer-card:hover .offer-num {
  color: #d4eee7;
}

.offer-icon-wrap {
  width: 58px;
  height: 58px;
  background: rgba(15, 110, 86, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.7rem;
  transition: transform 0.3s ease;
}

.offer-card:hover .offer-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.offer-card h3 {
  font-size: 1.2rem;
  color: #1a1a2e;
  font-weight: 800;
  margin-bottom: 0.7rem;
  letter-spacing: -0.3px;
}

.offer-card p {
  font-size: 0.93rem;
  color: #5a6278;
  line-height: 1.75;
  font-weight: 500;
}

/* ---- Structural Benefit Metrics Grid ---- */
.helps-section {
  padding: 6rem 2rem;
  background: #f8fbfd;
}

.helps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto 3rem;
}

.helps-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1.5px solid #e8edf2;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.helps-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #0f6e56;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.helps-card:hover::before {
  opacity: 1;
}

.helps-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(125, 173, 157, 0.14);
  border-color: #0f6e56;
}

.helps-audience-tag {
  display: inline-flex;
  background: rgba(15, 110, 86, 0.08);
  color: #1a1a2e;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.3rem;
}

.helps-card h3 {
  font-size: 1.35rem;
  color: #1a1a2e;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.helps-card p {
  font-size: 0.93rem;
  color: #5a6278;
  line-height: 1.85;
  font-weight: 500;
}

.helps-tagline {
  text-align: center;
  font-size: 1.05rem;
  color: #1a1a2e;
  font-weight: 700;
  font-style: italic;
  padding: 2rem 1rem;
  border-top: 1.5px solid #e8edf2;
  max-width: 900px;
  margin: 0 auto;
}

.helps-tagline span {
  color: #0f6e56;
}

/* ---- Home Plan Feature Matrix Layers ---- */
.subscriptions-section {
  padding: 6rem 2rem;
  background: #ffffff;
}

.subscriptions-section .sub-cards {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.sub-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sub-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sub-cta-btn.primary {
  background: #0f6e56;
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(125, 173, 157, 0.3);
}

.sub-cta-btn.primary:hover {
  background: #6b9e8f;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(125, 173, 157, 0.4);
}

.sub-cta-btn.outline {
  background: transparent;
  color: #0f6e56;
  border: 2px solid #0f6e56;
}

.sub-cta-btn.outline:hover {
  background: #0f6e56;
  color: white;
  transform: translateY(-3px);
}

/* ---- Founder Insight Showcase Segment ---- */
.founder-section {
  padding: 6rem 2rem;
  background: #201f38;
  position: relative;
  overflow: hidden;
}

.founder-section::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(169, 227, 208, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.founder-section::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(169, 227, 208, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.founder-section .section-label {
  background: rgba(169, 227, 208, 0.15);
  color: #a9e3d0;
  border: 1px solid rgba(169, 227, 208, 0.3);
}

.founder-section .section-title {
  color: white;
}

.founder-section .section-underline {
  background: rgba(169, 227, 208, 0.5);
}

.founder-card {
  max-width: 950px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3.5rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.founder-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(169, 227, 208, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border: 3px solid rgba(169, 227, 208, 0.4);
}

.founder-content {
  flex: 1;
}

.quote-mark {
  font-size: 6rem;
  line-height: 0.5;
  color: #0f6e56;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.7;
}

.founder-message {
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: 2rem;
}

.founder-name {
  font-size: 1.15rem;
  color: #a9e3d0;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.founder-role {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ---- User Testimonials Stack Array ---- */
.testimonials-section {
  padding: 6rem 2rem;
  background: #f8fbfd;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1300px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border: 1.5px solid #e8edf2;
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(125, 173, 157, 0.14);
  border-color: #0f6e56;
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.93rem;
  color: #5a6278;
  line-height: 1.8;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  position: relative;
  padding-top: 0.5rem;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  top: -0.8rem;
  left: -0.3rem;
  font-size: 3.5rem;
  color: #ccece4;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid #f0f3f5;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 110, 86, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a2e;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.95rem;
  color: #1a1a2e;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.author-class {
  font-size: 0.8rem;
  color: #0f6e56;
  font-weight: 600;
}

/* ---- Standalone Classes Dynamic Filter Layout ---- */
.classes-page-main {
  min-height: 100%;
  width: 100%;
  background-color: #f8fbfd;
  padding: 4rem 2rem;
}

.classes-page-main > .section-header {
  margin-bottom: 3rem;
}

.subjects-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  background: #f3faf7;
  border: 1.5px solid #d4ede5;
  border-radius: 20px;
  padding: 0.4rem;
  flex-wrap: wrap;
}

.classes-subjects-banner {
  width: 80%;
}

.subject-item {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2rem;
  border-radius: 14px;
  text-decoration: none;
  gap: 0.35rem;
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.subject-item:hover {
  background: #1a5d47;
  transform: scale(1.03);
}

.subject-icon {
  font-size: 0.7rem;
  color: #0f6e56;
  font-weight: 800;
  transition: color 0.25s ease;
}

.subject-item:hover .subject-icon {
  color: #ffffff;
}

.subject-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.5px;
  line-height: 1;
}

.subject-range {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f6e56;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.subject-item:hover .subject-range,
.subject-item:hover .subject-name {
  color: #ffffff;
}

.subject-pipe {
  width: 2px;
  height: 3.5rem;
  background: #d4ede5;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: center;
}

.offers-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.offers-divider-line {
  flex: 1;
  height: 1px;
  background: #d4ede5;
}

.offers-divider-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #0f6e56;
  white-space: nowrap;
  padding: 0.35rem 1rem;
  border: 1.5px solid #d4ede5;
  border-radius: 50px;
  background: #f3faf7;
}

/* ---- Component Dashboard Visibility Nodes ---- */
.auth-hidden {
  display: none !important;
}

.profile-wrapper {
  position: relative;
  display: inline-block;
}

.profile-trigger {
  width: 38px;
  height: 38px;
  background: #f7fafc;
  border: 2px solid #3182ce;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8 rgba(49, 130, 206, 0.2);
}

.profile-wrapper .dropdown-menu {
  position: absolute;
  top: 125%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 210px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 1000;
  animation: navDropdownFade 0.2s ease-out;
}

.profile-wrapper .dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  padding: 0.65rem 1.25rem;
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  text-align: left;
  display: block;
}

.dropdown-item:hover {
  background: #f7fafc;
  color: #3182ce;
}

.dropdown-divider {
  height: 1px;
  background: #edf2f7;
  margin: 0.4rem 0;
}

.logout-item {
  color: #e53e3e !important;
}

.logout-item:hover {
  background: #fff5f5 !important;
  color: #c53030 !important;
}

.mobile-profile-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f7fafc;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  width: 100%;
}

@keyframes navDropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo-name a {
  text-decoration: none;
}

/* ---- Action Top Scroll Assist Bar ---- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background-color: #0f6e56;
  color: #ffffff;
  border: 2px solid #0f6e56;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-top-btn:hover {
  background-color: #0f6e56;
  transform: scale(1.1);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ---- Legal Document Subsections Framework ---- */
.refund-section,
.terms-section {
  padding: 5rem 2rem;
  background-color: var(--page-color);
}

.refund-container,
.terms-container {
  max-width: 850px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3.5rem 3rem;
  border-radius: 20px;
  border: 1.5px solid #e8edf2;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.04);
}

.refund-container p,
.terms-container p {
  font-size: 1rem;
  color: #4a4a6a;
  line-height: 1.8;
  margin-bottom: 1.6rem;
  font-weight: 500;
  text-align: justify;
}

.refund-container p:last-child,
.terms-container p:last-child {
  margin-bottom: 0;
}

.terms-container h3 {
  font-size: 1.2rem;
  color: #1a1a2e;
  font-weight: 800;
  margin: 2rem 0 0.8rem;
  letter-spacing: -0.3px;
}

.terms-container ul {
  margin: 1rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.terms-container li {
  font-size: 0.98rem;
  color: #4a4a6a;
  line-height: 1.6;
  font-weight: 600;
}

.refund-container p strong,
.terms-container strong {
  color: #1a1a2e;
  font-weight: 700;
}

.refund-container a,
.terms-container a {
  color: #0f6e56;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.refund-container a:hover,
.terms-container a:hover {
  color: #39a07e;
  text-decoration: underline;
}

/* ############### RESPONSIVE RESPOND MATRIX BREAKPOINTS ############### */
@media (max-width: 900px) {
  #main .page1 {
    padding: 3rem 1.5rem;
  }
  #main .page1 .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__visual {
    display: none;
  }
  .hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .page2 .classes {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 700px) {
  .stats-bar {
    padding: 1.5rem 1rem;
  }
  .stat-item {
    min-width: 45%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  .stat-item:last-child, 
  .stat-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
  }
  .founder-avatar {
    width: 100px;
    height: 100px;
  }
  .quote-mark {
    font-size: 4rem;
  }
  .founder-message {
    font-size: 1rem;
  }
}

@media (max-width: 625px) {
  .subjects-banner {
    flex-direction: column;
    padding: 0.3rem;
  }
  .classes-subjects-banner {
    width: 80%;
  }
  .subject-pipe {
    width: 80%;
    height: 1px;
  }
  .subject-item {
    width: 100%;
    padding: 1rem 1.5rem;
    flex-direction: row;
    justify-content: space-between;
  }
  .subject-name {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  #main .page1 {
    padding: 2.5rem 1rem 2rem;
  }
  .hero__badge {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }
  .hero__title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin-bottom: 1rem;
  }
  .hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero__actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  .cta-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }
  #main .page2 {
    padding: 2.5rem 1rem;
  }
  .page2 > h2 {
    font-size: 1.8rem;
  }
  .page2 .classes {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .page2 .classes .class {
    min-height: 280px;
    padding: 1.5rem;
  }
  .page2 .classes .class .classno-container .classno {
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
  }
  .page2 .cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .card .chapter {
    font-size: 1.5rem;
    padding: 1.2rem 1.5rem 0.5rem;
  }
  .card .sub-topic {
    padding: 0.5rem 1.5rem 1.2rem;
    font-size: 0.9rem;
  }
  .card .join-btn {
    margin: 0 1.5rem 1.5rem 1.5rem;
  }
  .offers-section,
  .helps-section,
  .subscriptions-section,
  .founder-section,
  .testimonials-section {
    padding: 4rem 1rem;
  }
  .offer-cards,
  .helps-grid,
  .testimonials-grid {
    gap: 1.2rem;
  }
  .offer-card {
    padding: 1.8rem 1.5rem;
  }
  .helps-card {
    padding: 2rem 1.5rem;
  }
  .refund-section,
  .terms-section {
    padding: 3rem 1rem;
  }
  .refund-container,
  .terms-container {
    padding: 2rem 1.5rem;
  }
}