/**************************/
/* BASE & TYPOGRAPHY      */
/**************************/

html {
  box-sizing: border-box;
  font-size: 62.5%; /* 1rem = 10px */
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: #343a40;
  background-color: #ffffff;
  line-height: 1.5;
}

/* Generic container */
.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Generic grid helper */
.grid {
  display: grid;
  gap: 3.2rem;
}

/* Keep header on top of everything */
/* header.site-header {
  position: relative;
  z-index: 1000;
} */

/**************************/
/* BLOG PAGE              */
/**************************/

.grid--blog-col {
  grid-template-columns: 1fr;
  align-items: start;
}

.main-header {
  background-color: #f7f7f7;
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: hidden;
}

.post-header {
  margin-bottom: 4rem;
}

p {
  font-size: 2.2rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

ul,
ol {
  margin-left: 5rem;
  margin-bottom: 2rem;
}

li {
  font-size: 2rem;
  margin-bottom: 1rem;
}

li:last-child {
  margin-bottom: 0;
}

#author {
  font-style: italic;
  font-size: 1.8rem;
}

.related-author {
  font-size: 1.8rem;
  font-weight: bold;
}

.related {
  list-style: none;
  margin-left: 0;
}

.related-author {
  margin-bottom: 0;
  font-size: 1.4rem;
  font-weight: normal;
  font-style: italic;
}

/* Styling links */
a:link {
  color: #000000;
  text-decoration: none;
}

a:visited {
  color: #000000;
}

a:hover {
  color: orangered;
  font-weight: bold;
  text-decoration: underline orangered;
}

a:active {
  background-color: black;
  font-style: italic;
}

.post-img {
  width: 100%;
  height: auto;
}

/* Scroll only blog article area */
.container.grid.grid--blog-col {
  overflow: auto;
}

/* Label on paid content */
.blog-secondary-header::before {
  content: 'PAID';
  background-color: #ffe70e;
  color: #444;
  font-size: 1.6rem;
  font-weight: bold;
  display: inline-block;
  padding: 0.5rem 1rem;
  position: absolute;
  top: -1rem;
  right: -2.5rem;
}

.author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.author {
  margin-bottom: 0;
  margin-left: 1.5rem;
}

.related-post {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.related-link:link {
  font-size: 1.6rem;
  font-weight: bold;
  font-style: normal;
  margin-bottom: 5rem;
  display: block;
}

.favorites-notes-icon {
  height: 2.4rem;
  width: 2.4rem;
  color: orangered;
}

.form-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

/* Rating / review */
.review-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-content: center;
  margin-top: 1rem;
}

.review-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
  gap: 1rem;
}

.review-link:link,
.review-link:visited {
  text-decoration: none;
  font-size: 1.6rem;
  color: #767676;
  transition: all 0.3s;
}

.review-link:hover,
.review-link:active {
  color: #555;
}

.review-link.active {
  color: red;
}

.rating-replace {
  font-style: italic;
}

/**************************/
/* BLOG BROWSING          */
/**************************/

.section-blog {
  padding: 3.2rem 0;
}

.blog-box {
  /* background-color: #fdf2e9; */
  border-radius: 11px;
  padding: 1.6rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.blog-metadata {
  color: #333;
  font-weight: 400;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 0.8rem;
}

.blog-title {
  font-size: 3.2rem;
  font-weight: 600;
  color: #cf711f;
}

.blog-preview-text {
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 3.2rem;
  text-align: center;
}

.blog-read-more {
  text-align: center;
}

.grid-view {
  row-gap: 3.2rem;
}

/**************************/
/* HEADER & TOP NAV – HOMEPAGE */
/**************************/

.logo {
  height: 7.8rem;
}

/* Homepage header wrapper (gradient) */
/* .site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #f2c092;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
} */

/* Flex: logo left, nav + child selector right */
.nav-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 2rem;
  height: 7rem;
  gap: 2rem;
  background-color: #f2c092;
}

/* Group for menu + child selector on the right */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.logo-wrap .logo {
  height: 5rem;
  width: auto;
}

/* Main nav list (desktop) */
.main-nav {
  display: block;
}

.main-nav-list {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Make nav list peach + align items like the JS snippet did */
.site-header .main-nav-list {
  /* background-color: #fdf2e9; */
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* Same effect as your JS: li as flex, centered, no weird height */
.site-header .main-nav-list > li {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  height: auto;
}

/* Shared link style (homepage default) */
.main-nav-link,
.main-nav-link:link,
.main-nav-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
  font-size: 1.6rem;
}

.main-nav-link ion-icon {
  font-size: 1.6rem;
}

/* General styling for icon-mobile-nav */
.icon-mobile-nav {
  width: 4.8rem;
  height: 4.8rem;
  color: #333; /* Default color */
}

/* Hover (homepage) */
.main-nav-link:hover {
  color: #eb984e;
}

/* Hover underline animation */
.main-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background-color: #f2c092;
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.main-nav-link:hover::after {
  width: 100%;
}

/* CTA Button */
.main-nav-link.nav-cta,
.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  background-color: #f97316;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: #cf711f;
}

.main-nav-link.nav-cta::after {
  display: none;
}

/**************************/
/* MOBILE NAV TOGGLE      */
/**************************/

.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav[name='close-outline'] {
  display: none;
}

/* Swap icons when nav is open */
.nav-open .icon-mobile-nav[name='menu-outline'] {
  display: none;
}

.nav-open .icon-mobile-nav[name='close-outline'] {
  display: block;
}

/**************************/
/* STICKY NAVIGATION      */
/**************************/
/* Initial state of the spacer (no height) */
.header-spacer {
  height: 0;
  /* Optional: Add a transition for a smoother effect if the height changes visually */
  transition: height 0.3s ease-out;
}

/* When body is sticky, give the spacer the exact height of the sticky header */
body.sticky .header-spacer {
  height: 8rem; /* Matches the height of .sticky .site-header */
}

/* Your existing sticky header rules (ensure height matches the spacer) */
.sticky .site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 8rem; /* This must match the spacer's height */
  padding-top: 0;
  padding-bottom: 0;
  background-color: #fff;
  z-index: 999;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}

.menu--dashboard-mobile {
  display: none;
}

/**************************/
/* HERO SECTION           */
/**************************/

.section-hero {
  background-color: #fdf2e9;
  padding: 4.8rem 0 9.6rem 0;
}

.hero {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9.6rem;
  align-items: center;
}

.hero-description {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 4.8rem;
}

.hero-img {
  width: 100%;
}

.hero-img-box img {
  transition: all 0.4s;
}

.hero-img-box img:hover {
  transform: scale(1.05);
}

/**************************/
/* FEATURED SECTION       */
/**************************/

.section-featured {
  padding: 4.8rem 0 3.2rem 0;
}

.heading-featured-in {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  text-align: center;
  margin-bottom: 2.4rem;
  color: #888;
}

.logos {
  display: flex;
  justify-content: space-around;
}

.logos img {
  height: 3.2rem;
  filter: brightness(0);
  opacity: 50%;
}

/**************************/
/* CTA (HOME) SECTION     */
/**************************/

.delivered-meals {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 8rem;
}

.delivered-imgs {
  display: flex;
}

.delivered-imgs img {
  height: 4.8rem;
  width: 4.8rem;
  border-radius: 50%;
  margin-right: -1.6rem;
  border: 3px solid #fdf2e9;
}

.delivered-imgs img:last-child {
  margin: 0;
}

.delivered-text {
  font-size: 1.8rem;
  font-weight: 600;
}

.delivered-text span {
  color: #cf711f;
  font-weight: 700;
}

/**************************/
/* HOW IT WORKS SECTION   */
/**************************/

.section-how {
  padding: 9.6rem 0;
  background-color: #fdf2e9;
}

.step-number {
  font-size: 8.6rem;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 1.2rem;
}

.step-description {
  font-size: 1.8rem;
  line-height: 1.8;
}

/**************************/
/* TESTIMONIALS SECTION   */
/**************************/

.section-testimonials {
  background-color: #fdf2e9;
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
}

.testimonials-container {
  padding: 9.6rem;
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 4.8rem;
  column-gap: 8rem;
}

.testimonial-img {
  width: 6.4rem;
  border-radius: 50%;
  margin-bottom: 1.2rem;
}

.testimonial-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.testimonial-name {
  font-size: 1.6rem;
  color: #6f6f6f;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding: 1.6rem;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  transition: all 0.4s;
}

.gallery-item img:hover {
  transform: scale(1.1);
}

/**************************/
/* PRICING / MEALS        */
/**************************/

.section-pricing {
  padding: 9.6rem 0;
}

.pricing-plan {
  border-radius: 11px;
  width: 75%;
}

.pricing-plan--starter {
  justify-self: end;
  border: 2px solid #fdf2e9;
  padding: 4.6rem;
}

.pricing-plan--complete {
  background-color: #fdf2e9;
  padding: 4.8rem;
  position: relative;
  overflow: hidden;
}

.pricing-plan--complete::after {
  content: 'Best value';
  position: absolute;
  top: 6%;
  right: -18%;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  background-color: #ffd43b;
  padding: 0.8rem 8rem;
  transform: rotate(45deg);
}

.plan-header {
  text-align: center;
  margin-bottom: 4.8rem;
}

.plan-name {
  color: #cf711f;
  font-weight: 600;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 3.2rem;
}

.plan-price {
  font-size: 6.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.6rem;
}

.plan-price span {
  font-size: 3rem;
  font-weight: 500;
  margin-right: 0.8rem;
}

.plan-text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #6f6f6f;
}

.plan-sing-up {
  text-align: center;
  margin-top: 4.8rem;
}

.plan-details {
  font-size: 1.6rem;
  line-height: 1.6;
  text-align: center;
}

.feature-icon {
  color: #e67e22;
  height: 3.2rem;
  width: 3.2rem;
  background-color: #fdf2e9;
  margin-bottom: 3.2rem;
  padding: 1.6rem;
  border-radius: 50%;
}

.feature-title {
  font-size: 2.4rem;
  color: #333;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.feature-text {
  font-size: 1.8rem;
  line-height: 1.8;
}

/**************************/
/* CTA SECTION (FORM)     */
/**************************/

.section-cta {
  padding: 9.6rem 0 2.4rem;
}

.cta {
  display: grid;
  grid-template-columns: 2fr; /* When I have to column add 1fr once I get an image*/
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.15);
  border-radius: 11px;
  background-color: #f2c092;
  overflow: hidden;
}

.cta-text-box {
  padding: 4.8rem 6.4rem 6.4rem 6.4rem;
  color: #45260a;
}

.cta .heading-secondary {
  color: inherit;
  margin-bottom: 3.2rem;
}

.cta-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 4.8rem;
}

.cta-img-box {
  background-size: cover;
  background-position: center;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr; /*Adusting to test */
  column-gap: 3.2rem;
  row-gap: 2.4rem;
}

.cta-form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.cta-form input,
.cta-form select {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.8rem;
  font-family: inherit;
  color: inherit;
  border: none;
  background-color: #fdf2e9;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-form input::placeholder {
  color: #aaa;
}

.cta *:focus {
  outline: none;
  box-shadow: 0 0 0 0.8rem rgba(253, 242, 233, 0.5);
}

/* ========================= */
/* CTA FORM — TEXTAREA FIX */
/* ========================= */

.cta-form textarea {
  grid-column: 1 / -1;

  width: 100%;
  min-height: 12rem;
  max-height: 18rem;
  resize: none;

  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1.6;

  padding: 1.2rem;
  border-radius: 0.8rem;
  border: 1px solid #ccc;
  background-color: #fdf2e9;

  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cta-form textarea:focus {
  border-color: #cf711f;
  box-shadow: 0 0 0 2px rgba(207, 113, 31, 0.15);
}

/**************************/
/* ADD PAGE – SOFT STYLE  */
/**************************/

.section-add-page {
  background-color: #fdf2e9;
  padding: 4.8rem 0 9.6rem 0;
}

.add-page {
  background-color: #fff;
  border-radius: 11px;
  padding: 4.8rem;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
}

.add-page-text-box {
  background-color: #fae5d3;
  border-radius: 11px;
  padding: 3.2rem;
  margin-bottom: 4.8rem;
  box-shadow: 0 1.6rem 3.2rem rgba(0, 0, 0, 0.05);
}

.add-page-text-box .heading-secondary {
  color: #45260a;
}

.add-page-text {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #6f6f6f;
}

/**************************/
/* GENERIC FORM STYLES    */
/**************************/
.form-group {
  margin-bottom: 3.2rem; /* Spacing system: 32px */
}

.form-label {
  font-size: 1.6rem; /* Font size: 16px */
  font-weight: 500; /* Weight: Medium */
  color: #333; /* Color: Darkest Grey */
  margin-bottom: 1.2rem; /* Spacing system: 12px */
  display: inline-block;
}

.required {
  color: #cf711f; /* Shade: Primary Shade */
}

.form-input {
  width: 100%;
  padding: 1.2rem 1.6rem; /* Spacing: 12px/16px */
  border-radius: 0.9rem; /* Default Border Radius: 9px */
  border: 1px solid #ddd;
  font-size: 1.6rem; /* Font size: 16px */
  font-family: inherit;
  color: #555; /* Color: Grey */
  background-color: #fff;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #e67e22; /* Primary */
  /* Shadow: 0 0 0 8px with 15% opacity of Primary */
  box-shadow: 0 0 0 0.8rem rgba(230, 125, 34, 0.15);
}

/**************************/
/* TOOLTIP & HINT STYLES  */
/**************************/
.tooltip-container {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  cursor: help;
}

.hint-icon {
  background: #fdf2e9; /* Tint: Primary Tint */
  color: #cf711f; /* Shade: Primary Shade */
  width: 1.8rem; /* 18px */
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem; /* Font size: 12px */
  font-weight: 700; /* Weight: Bold */
  margin-left: 0.8rem; /* Spacing: 8px */
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 24rem; /* 240px */
  background-color: #333; /* Darkest Grey */
  color: #fff;
  border-radius: 0.9rem; /* Match Default: 9px */
  padding: 1.6rem; /* Spacing: 16px */
  position: absolute;
  z-index: 100;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 1.4rem; /* Font size: 14px */
  line-height: 1.6; /* Paragraph default: 1.6 */
  pointer-events: none;
  /* Shadow System: 0 24px 48px 7.5% opacity */
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
}

/* Tooltip Arrow */
.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0.8rem; /* Spacing: 8px */
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text,
.tooltip-container:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-1.2rem); /* Slide up 12px */
}

/**************************/
/* PASSWORD CHECKLIST     */
/**************************/
.lists,
.list-sub {
  margin: 0.8rem 0; /* Spacing: 8px */
  padding: 0;
  list-style: none;
}

.list-sub {
  padding-left: 1.6rem; /* Spacing: 16px */
  color: #767676; /* Lightest grey allowed on dark bg for contrast */
  font-size: 1.2rem; /* Font size: 12px */
}

/* Default state icon (Empty Circle) */
.lists li::before,
.list-sub li::before {
  content: '○ ';
  font-weight: 700;
  margin-right: 0.8rem;
  transition: all 0.2s;
}

/* Valid state (Highlight and Checkmark) */
.lists li.is-valid,
.list-sub li.is-valid {
  color: #e67e22; /* Primary */
  font-weight: 600; /* Weight: Semi-bold */
}

.lists li.is-valid::before,
.list-sub li.is-valid::before {
  content: '✔ ';
  color: #e67e22;
}

/**************************/
/* BUTTONS & MESSAGES     */
/**************************/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}

.btn--primary {
  background-color: #e67e22;
  color: #fff;
}

.btn--primary:hover {
  background-color: #cf711f;
}

.btn--form {
  background-color: #cf711f;
  color: #fff;
}

.btn--form:hover {
  background-color: #45260a;
  color: #fdf2e9;
}

.form-messages {
  padding: 1.6rem;
  border-radius: 9px;
  margin: 3.2rem 0;
}

.error {
  background-color: #d12e2e;
  color: #fff;
  padding: 1.2rem;
  border-radius: 9px;
  margin-bottom: 1.6rem;
  font-size: 1.6rem;
}

.success {
  background-color: #26bf44;
  color: #fff;
  padding: 1.2rem;
  border-radius: 9px;
  margin-bottom: 1.6rem;
  font-size: 1.6rem;
}

.u-hidden {
  display: none;
}

.u-field-error {
  border: 2px solid #ff6b6b !important;
  background: #ffecec;
}

/**************************/
/* LOGIN PAGE             */
/**************************/

.section-login {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fdf2e9;
  padding: 6.4rem 0;
}

.section-login .container {
  width: 90%;
  max-width: 45rem;
}

.section-login .login {
  background-color: #fff;
  padding: 4.8rem 3.2rem;
  border-radius: 11px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.075);
}

.section-login .login-text-box {
  text-align: center;
  margin-bottom: 3.2rem;
}

.section-login .heading-secondary {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1.6rem;
  color: #45260a;
}

.section-login .login-text {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  margin-bottom: 4.8rem;
}

.section-login .js-login {
  display: flex;
  flex-direction: column;
}

.section-login .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 3.2rem;
}

.section-login .form-label {
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #45260a;
}

.section-login .required {
  color: #d12e2e;
}

.section-login .form-input {
  padding: 1.6rem 1.6rem;
  font-size: 1.6rem;
  border-radius: 9px;
  border: 1px solid #888;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.section-login .form-input:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 8px rgba(230, 125, 34, 0.15);
}

.section-login .form-hint {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  color: #767676;
}

.section-login .form-hint .link {
  color: #e67e22;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.section-login .form-hint .link:hover {
  color: #cf711f;
  border-bottom: 1px solid transparent;
}

.section-login .form-messages {
  margin-bottom: 3.2rem;
}

.section-login .error {
  background-color: #d12e2e;
  color: #fff;
  padding: 1.6rem;
  border-radius: 9px;
  text-align: center;
  font-size: 1.8rem;
}

.section-login .success {
  background-color: #26bf44;
  color: #fff;
  padding: 1.6rem;
  border-radius: 9px;
  text-align: center;
  font-size: 1.8rem;
}

.section-login .form-actions {
  margin-top: 1.6rem;
}

.section-login .btn {
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.section-login .btn--primary {
  background-color: #e67e22;
  color: #fff;
}

.section-login .btn--primary:hover {
  background-color: #cf711f;
}

.section-login .btn-text {
  margin-right: 0.8rem;
}

.section-login .btn-loader {
  font-size: 1.6rem;
  display: none;
}

.section-login .login-links {
  margin-top: 4.8rem;
  text-align: center;
}

.section-login .login-link-text {
  font-size: 1.6rem;
  color: #555;
}

.section-login .login-link-text .link {
  color: #e67e22;
  font-weight: 500;
  text-decoration: none;
}

.section-login .login-link-text .link:hover {
  color: #cf711f;
  text-decoration: underline;
}

/**************************/
/* REGISTER PAGE          */
/**************************/

.section-register {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fdf2e9;
  padding: 6.4rem 0;
}

.section-register .container {
  width: 90%;
  max-width: 50rem;
}

.section-register .register {
  background-color: #fff;
  padding: 4.8rem 3.2rem;
  border-radius: 11px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.075);
}

.section-register .register-text-box {
  text-align: center;
  margin-bottom: 3.2rem;
}

.section-register .heading-secondary {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1.6rem;
  color: #45260a;
}

.section-register .register-text {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  margin-bottom: 4.8rem;
}

.section-register .js-register {
  display: flex;
  flex-direction: column;
}

.section-register .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 3.2rem;
}

.section-register .form-label {
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #45260a;
}

.section-register .required {
  color: #d12e2e;
}

.section-register .form-input {
  padding: 1.6rem;
  font-size: 1.6rem;
  border-radius: 9px;
  border: 1px solid #888;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.section-register .form-input:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 8px rgba(230, 125, 34, 0.15);
}

.section-register .form-hint {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  color: #767676;
}

.section-register .form-hint .link {
  color: #e67e22;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.section-register .form-hint .link:hover {
  color: #cf711f;
  border-bottom: 1px solid transparent;
}

.section-register .form-messages {
  margin-bottom: 3.2rem;
}

.section-register .error {
  background-color: #d12e2e;
  color: #fff;
  padding: 1.6rem;
  border-radius: 9px;
  text-align: center;
  font-size: 1.8rem;
}

.section-register .success {
  background-color: #26bf44;
  color: #fff;
  padding: 1.6rem;
  border-radius: 9px;
  text-align: center;
  font-size: 1.8rem;
}

.section-register .form-actions {
  margin-top: 1.6rem;
}

.section-register .btn {
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.section-register .btn--primary {
  background-color: #e67e22;
  color: #fff;
}

.section-register .btn--primary:hover {
  background-color: #cf711f;
}

.section-register .btn-text {
  margin-right: 0.8rem;
}

.section-register .btn-loader {
  font-size: 1.6rem;
  display: none;
}

.section-register .register-links {
  margin-top: 4.8rem;
  text-align: center;
}

.section-register .register-link-text {
  font-size: 1.6rem;
  color: #555;
}

.section-register .register-link-text .link {
  color: #e67e22;
  font-weight: 500;
  text-decoration: none;
}

.section-register .register-link-text .link:hover {
  color: #cf711f;
  text-decoration: underline;
}

/**************************/
/* ADD LESSON PAGE        */
/**************************/

.section-add-lesson {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #fdf2e9;
  padding: 6.4rem 0;
}

.section-add-lesson .container {
  width: 90%;
  max-width: 70rem;
}

.section-add-lesson .add-lesson {
  background-color: #fff;
  padding: 4.8rem 3.2rem;
  border-radius: 11px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.075);
}

.section-add-lesson .add-lesson-text-box {
  text-align: center;
  margin-bottom: 3.2rem;
}

.section-add-lesson .heading-secondary {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1.6rem;
  color: #45260a;
}

.section-add-lesson .add-lesson-text {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  margin-bottom: 4.8rem;
}

.section-add-lesson .js-add-lesson {
  display: flex;
  flex-direction: column;
}

.section-add-lesson .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 3.2rem;
}

.section-add-lesson .form-label {
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #45260a;
}

.section-add-lesson .required {
  color: #d12e2e;
}

.section-add-lesson .form-input,
.section-add-lesson .form-select,
.section-add-lesson .form-textarea {
  padding: 1.6rem;
  font-size: 1.6rem;
  border-radius: 9px;
  border: 1px solid #888;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
  width: 100%;
}

.section-add-lesson .form-input:focus,
.section-add-lesson .form-select:focus,
.section-add-lesson .form-textarea:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 8px rgba(230, 125, 34, 0.15);
}

.section-add-lesson .form-hint {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  color: #767676;
}

.section-add-lesson .form-messages {
  margin-bottom: 3.2rem;
}

.section-add-lesson .error {
  background-color: #d12e2e;
  color: #fff;
  padding: 1.6rem;
  border-radius: 9px;
  text-align: center;
  font-size: 1.8rem;
}

.section-add-lesson .success {
  background-color: #26bf44;
  color: #fff;
  padding: 1.6rem;
  border-radius: 9px;
  text-align: center;
  font-size: 1.8rem;
}

.section-add-lesson .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.section-add-lesson .btn {
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  text-align: center;
}

.section-add-lesson .btn--primary {
  background-color: #e67e22;
  color: #fff;
}

.section-add-lesson .btn--primary:hover {
  background-color: #cf711f;
}

.section-add-lesson .btn--secondary {
  background-color: #fdf2e9;
  color: #45260a;
  border: 2px solid #45260a;
}

.section-add-lesson .btn--secondary:hover {
  background-color: #e5d5c7;
  color: #301b09;
  border-color: #301b09;
}

.section-add-lesson .btn-text {
  margin-right: 0.8rem;
}

.section-add-lesson .btn-loader {
  font-size: 1.6rem;
  display: none;
}

/**************************/
/* SELECT CATEGORY GRID   */
/**************************/

.section--select-category {
  padding: 5rem 3rem;
}

.grid--responsive {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

/* Course card */
.course-card {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1.2rem 2.4rem rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2rem 4rem rgba(15, 23, 42, 0.12);
  border-color: #fb923c;
}

.course-card img {
  width: 100%;
  max-width: 100%;
  height: 15rem;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.course-category {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.course-description {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #555;

  /* ✅ HARD CLAMP */
  max-height: 7.2rem; /* 3 lines */
  overflow: hidden;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  margin-bottom: 2.4rem;
}

/**************************/
/* PROFILE / CHILD AVATAR */
/**************************/

.current-child-img,
.child-avatar-img {
  width: 4rem !important;
  height: 4rem !important;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  flex-shrink: 0;
}

.global-child-bar img,
.child-avatar-btn img {
  width: 4rem !important;
  height: 4rem !important;
  max-width: 4rem !important;
}

/*******************************************/
/* REMOVE RANDOM BACKGROUND IMAGES         */
/*******************************************/
.profile-hero,
.parent-profile-wrapper,
.profile-wrapper {
  background-image: none;
}

/*******************************************/
/* TOP NAV CHILD SELECTOR                  */
/*******************************************/

.child-selector-wrapper {
  position: relative;
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

.nav-child-avatar {
  width: 4rem; /* Sets a fixed width for the avatar */
  height: 4rem; /* Sets a fixed height for the avatar, making it square */
  object-fit: cover; /* Ensures the image covers the entire area without distorting its aspect ratio, cropping if necessary */
  border-radius: 50%; /* Makes the avatar circular */
}

/* Active child pill */
.nav-child-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  background: #ffffff;
  border: 0.1rem solid rgba(140, 140, 140, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav-child-pill:hover {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.3rem 1.2rem rgba(0, 0, 0, 0.1);
}

.nav-child-name {
  font-size: 1.4rem;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-child-chevron {
  font-size: 1.5rem;
  color: #666;
}

/*******************************************/
/* CHILD DROPDOWN MENU                     */
/*******************************************/

.child-dropdown-menu {
  position: absolute;
  top: 6rem;
  right: 0;
  min-width: 22rem;
  background: #ffffff;
  border: 0.1rem solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.12);
  z-index: 1000;
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.6rem);
  transition: all 0.2s ease;
}

.child-dropdown-menu.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.child-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 1.4rem;
  line-height: 1.2;
}

.child-switch-btn:hover {
  background: #f3f4f6;
}

.child-switch-btn span {
  font-size: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-add-btn {
  display: block;
  padding: 0.8rem 1rem;
  text-align: center;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  font-size: 1.6rem;
}

.child-add-btn:hover {
  background: #fef3c7;
  color: #a16207;
}

/**************************/
/* GLOBAL CHILD BAR       */
/**************************/

.global-child-bar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1rem 2rem;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
}

.child-avatar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-width: 6rem;
  padding: 0.5rem;
}

/* Default size for the icon */
.child-icon {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

/* Potentially different size when the parent button is active (adjust if needed) */
.child-switch-btn.active .child-icon {
  width: 2rem; /* Maybe slightly smaller when active */
  height: 2rem;
}

.child-avatar-btn.active {
  border-bottom: 3px solid #4a90e2;
}

.child-avatar-btn span {
  margin-top: 4px;
  font-size: 0.75rem;
}

.child-avatar-btn.add-child {
  font-size: 2.8rem;
  font-weight: bold;
  border: 2px dashed #777;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/**************************/
/* ORDER SECTION          */
/**************************/

.order-img-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.order-img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  border: 3px solid #fdf2e9;
}

/**************************/
/* DRAG AND DROP          */
/**************************/

.draggable {
  cursor: grab;
}

.draggable.dragging {
  opacity: 0.5;
}

/**************************/
/* FAQ SECTION            */
/**************************/

.section-faq {
  padding: 6.4rem 0;
  background-color: #fdf2e9;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 120rem;
  margin: 0 auto;
}

.faq-item {
  border: 0.1rem solid #e0e0e0;
  border-radius: 0.9rem;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-question {
  width: 100%;
  text-align: left;
  font-family: 'Rubik', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.05rem;
  padding: 1.6rem 2.4rem;
  background-color: #fae5d3;
  color: #45260a;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #eb984e;
  color: #fff;
}

.faq-question::after {
  content: '+';
  font-weight: 700;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-family: 'Rubik', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  padding: 0 2.4rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 50rem;
  padding: 1.6rem 2.4rem;
}

.section-faq .subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: #cf711f;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.075rem;
}

.section-faq .heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 9.6rem;
  color: #333;
}

/**************************/
/* SUCCESS STORIES        */
/**************************/

.section-success {
  padding: 6.4rem 0;
  /* background-color: #fdf2e9; */
}

.success-container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.section-success .subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: #cf711f;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.075rem;
}

.section-success .heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 4.8rem;
  color: #333;
}

.success-intro {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 4.8rem;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3.2rem;
  margin-bottom: 4.8rem;
}

.success-card {
  background-color: #fff;
  border-radius: 0.9rem;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
  padding: 2.4rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.success-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 3.2rem 6.4rem rgba(0, 0, 0, 0.1);
}

.success-content ion-icon {
  font-size: 3rem;
  color: #e67e22;
  margin-bottom: 1.6rem;
}

.success-title {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  color: #45260a;
}

.success-card p {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #555;
}

.success-cta {
  text-align: center;
  margin-top: 4.8rem;
}

.success-cta h3 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 2.4rem;
  color: #333;
}

.success-cta .btn {
  font-size: 2rem;
  padding: 1.6rem 3.2rem;
}

/**************************/
/* FOOTER                 */
/**************************/

.footer {
  padding: 6rem 0;
  border-top: 1px solid #eee;
  margin-top: 4rem;
}

.grid--footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
}

.logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: block;
  margin-bottom: 2rem;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.social-icon {
  height: 2.4rem;
  width: 2.4rem;
}

.copyright {
  font-size: 1.4rem;
  color: #767676;
  margin-top: auto;
}

.footer-heading {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 1.6rem;
  color: #555;
  transition: 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: #111;
}

/**************************/
/* DASHBOARD LAYOUT       */
/**************************/

.dashboard-wrapper {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 260px;
  gap: 2rem;
  padding: 1rem 2rem 8rem;
  align-items: flex-start;
}

/* Left sidebar */
.sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  height: calc(100vh - 9rem); /* viewport minus top nav */
  overflow-y: auto;
}

/* Center content area */
.content-area {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 2rem;
  min-height: 60rem;
}

/* Right sidebar */
.right-sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  height: calc(100vh - 9rem);
  overflow-y: auto;
}

/* Sidebar headings */
.sidebar h3,
.right-sidebar h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.category {
  margin-bottom: 1.5rem;
}

.category-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* Details/summary (years/months) */
.years details,
.months details {
  margin-left: 1rem;
  font-size: 1.4rem;
}

details summary {
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: bold;
}

details[open] > summary {
  color: #0ea5e9;
}

.details-list {
  margin-left: 1.5rem;
}

/* Files in sidebar */
.files {
  list-style: none;
  padding-left: 1.5rem;
}

.files li {
  margin: 0.3rem 0;
}

.files li a {
  text-decoration: none;
  color: #333;
  font-size: 1.4rem;
  display: block;
  padding: 0.3rem 0;
}

.files li a:hover {
  color: #0ea5e9;
}

/* Sidebar toggle button for mobile */
.sidebar-toggle {
  display: none;
  background: #0f172a;
  color: #fff;
  border: none;
  width: 100%;
  padding: 0.8rem;
  cursor: pointer;
  margin-bottom: 1rem;
  border-radius: 8px;
  font-size: 1.5rem;
}

/**************************/
/* DASHBOARD NAVIGATION   */
/**************************/

/* Top bar menu unique to dashboard pages if used */
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu a {
  text-decoration: none;
  color: #333;
  margin-right: 15px;
}

.menu a:hover {
  color: #007bff;
}

/* Desktop container for dashboard menu */
.menu--dashboard {
  display: flex;
}

/* Dashboard header variant
   Use: <header class="site-header nav--dashboard"> */
.site-header.nav--dashboard {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dashboard nav container override */
.site-header.nav--dashboard .nav-container {
  justify-content: space-between;
  background-color: #fff;
}

/* Dashboard nav links override (so hover isn't white on white) */
.site-header.nav--dashboard .main-nav-link,
.site-header.nav--dashboard .main-nav-link:link,
.site-header.nav--dashboard .main-nav-link:visited {
  color: #333;
}

.site-header.nav--dashboard .main-nav-link:hover {
  color: #000;
}

/* CTA button in dashboard (re-use class) */
.nav-cta {
  background-color: #fa6705;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.nav-cta:hover {
  background-color: #eb510a;
}

/* Unified nav holder */
.unified-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Mobile dashboard bottom bar */
.menu--dashboard-mobile {
  display: none;
}

/* Tracking of Child Mood */
.mood-btn {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 1.4rem;
  transition: 0.2s;
}

.mood-btn:hover {
  background: #e0e0e0;
}

.mood-btn.selected {
  background: #0ea5e9;
  border-color: #0284c7;
  color: white;
}

/* Checkout inside login layout */
.login.checkout {
  max-width: 58rem;
}

.login.checkout .cta-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #555;
}

/* shared image styling */
.step-img-box {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  min-height: 32rem;
}

/* step-specific images */
.step-img--one {
  background-image: url('/resources/img/Capture.svg');
}

.step-img--two {
  background-image: url('/resources/img/Organize.svg');
}

.step-img--three {
  background-image: url('/resources/img/Share.svg');
}

/**************************/
/* RESPONSIVE BREAKPOINTS */
/**************************/

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  .grid--responsive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-wrapper {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

/* Mobile (768px) general layout */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .grid--responsive {
    grid-template-columns: 1fr;
  }

  .course-card img {
    height: 20rem;
  }

  .nav-container {
    gap: 1rem;
  }

  .grid--footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo-col {
    align-items: center;
  }

  footer.footer {
    clear: both;
    width: 100%;
  }

  .dashboard-wrapper + .footer {
    width: 100% !important;
  }
}

/* Mobile nav + dashboard layout (≤ 768px, using rem) */
@media (max-width: 76.8rem) {
  /* Show hamburger */
  .btn-mobile-nav {
    display: block;
  }

  /* Hide desktop nav by default on mobile */

  .main-nav {
    display: none;
    position: fixed;
    top: 7rem;
    left: 0;
    width: 100%;
    background-color: #ffffff; /* ✅ white mobile nav */
    padding: 1rem 2rem 2rem;
    z-index: 998;
  }

  /* When nav is open (supports either body.nav-open or header.nav-open) */
  .nav-open .main-nav,
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-open .main-nav-list,
  .site-header.nav-open .main-nav-list {
    flex-direction: column;
    width: 100%;
    padding: 1rem 2rem;
    margin: 0;
  }

  .main-nav-list li {
    margin: 0.6rem 0;
  }

  .main-nav-list li a {
    color: #000;
    font-size: 1.8rem;
    text-decoration: none;
  }

  /* Dashboard layout stacks */
  .dashboard-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle {
    display: block;
  }

  .sidebar,
  .right-sidebar {
    height: auto;
  }

  .footer {
    padding-bottom: 8rem;
  }

  /* Bottom mobile menu bar for dashboard */
  .menu--dashboard-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.6rem 1.6rem;
    display: flex;
    justify-content: space-between;
    z-index: 998;
  }

  .menu--dashboard-mobile .footer-link {
    color: #e5e7eb;
    text-decoration: none;
  }

  .menu--dashboard-mobile .social-icon {
    font-size: 2.2rem;
  }
}

/* Ensure footer always full width after dashboard wrapper */
footer.footer {
  clear: both;
  width: 100%;
  display: block;
}

/* -------------------------------------------------------------
   INACTIVITY MODAL — CLEAN CLASS-ONLY VERSION
   Matches your design system (10px = 1rem)
--------------------------------------------------------------*/

/* Overlay */
.inactivity-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal */
.inactivity-modal {
  background-color: #fff;
  padding: 3.2rem;
  width: 90%;
  max-width: 40rem;
  border-radius: 9px;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
  text-align: center;
}

/* Title */
.inactivity-title {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.6rem;
  line-height: 1.2;
}

/* Message */
.inactivity-message {
  font-size: 1.8rem;
  color: #555;
  margin-bottom: 3.2rem;
  line-height: 1.6;
}

/* Buttons wrapper */
.inactivity-actions {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}

/* Action buttons (reuse your design system's btn classes) */
.inactivity-btn {
  font-size: 1.6rem;
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  font-weight: 600;
  font-family: inherit;
}

/* Primary confirm button */
.inactivity-btn--continue {
  background-color: #e67e22;
  color: #fff;
}

.inactivity-btn--continue:hover {
  background-color: #cf711f;
}

/* Secondary "reset" button */
.inactivity-btn--reset {
  background-color: #fdf2e9;
  color: #45260a;
  border: 2px solid #45260a;
}

.inactivity-btn--reset:hover {
  background-color: #fae5d3;
  color: #301b09;
  border-color: #301b09;
}

/* Show modal */
.inactivity-overlay.active {
  display: flex;
}
/* -------------------------------------------------------------
   Share MODAL — CLEAN CLASS-ONLY VERSION
   Matches your design system (10px = 1rem)
--------------------------------------------------------------*/
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.share-modal.hidden {
  display: none;
}

.share-modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
}

.share-row {
  display: flex;
  gap: 0.5rem;
}

.share-help {
  font-size: 0.9rem;
  color: #666;
}

.modal-close {
  margin-top: 1rem;
  background: none;
  border: none;
  color: #777;
}

/* CKEditor 4: hide support / security notice (UI only) */
.cke_notification,
.cke_notification_warning,
.cke_notification_message {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 10000;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-form-container {
  background-color: #fdf2e9; /* Light cream to match your theme */
  padding: 4.8rem;
  border-radius: 12px;
  max-width: 550px;
  width: 95%;
  position: relative;
  box-shadow: 0 3.2rem 6.4rem rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 3.5rem;
  border: none;
  background: none;
  cursor: pointer;
  color: #333;
}

/* Ensure the form stacks vertically in the popup */
.popup-form-container .cta-form {
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 2.4rem;
}
