/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

/* === Navigation === */
nav.site-nav {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: #333;
  padding: 8px 24px;
  display: flex;
  align-items: center;
}

nav.site-nav .site-logo {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-login-item {
  margin-left: 8px;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-login {
  margin-left: 0;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4.5px 10.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transition: background-color 0.2s, border-color 0.2s;
}

.nav-login:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* === Hamburger Button === */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* === Header / Hero === */
header {
  background: url('images/banner.jpg') center/cover no-repeat;
  height: 350px; 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

/* Scrim: darkest behind the centered text, lighter at the edges so the
   photo still reads. Still darkest-in-the-middle even with the light desk —
   the pale center is where white text needs the most help, and the corner
   objects (notebook, herb bowl) are darker and want to stay vivid. */
header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.34) 45%,
    rgba(0, 0, 0, 0.15) 100%);
}

header .content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  padding: 0 20px;
}

/* Tight shadows only — just enough to define the letter edges. The wide
   halos these replaced were sized for a dark, busy photo; against the clean
   light desk they read as a grey smudge rather than as shadow. */
/* Capped so the headline breaks to two lines on desktop instead of running
   the full width of the banner — keeps it inside the clean center of the
   photo. Below 700px the viewport is already narrower, so this is a no-op
   on mobile. text-wrap: balance evens the two lines; browsers without it
   just wrap normally, which lands in a reasonable place anyway. */
header h1 {
  font-size: 3rem;
  line-height: 1.15; /* body's 1.6 is far too loose for display type */
  max-width: 820px;  /* scales with the font size — 700px would force a 3rd line */
  margin: 0 auto 0.75rem;
  text-wrap: balance;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* The subtitle is normal-size text, so it needs 4.5:1 — the tighter measure
   keeps it over the scrim's darkest zone, where it clears that comfortably. */
header p {
  font-size: 1.2rem;
  max-width: 760px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* === Intro === */
.intro-text {
  max-width: 800px;
  margin: 40px auto 40px;
  text-align: center;
  color: #555;
  padding: 0 15px;
}

.intro-text h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #007B7F;
}

.intro-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1em;
}

/* === Features List === */
.features-list {
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 40px 20px;
  margin-top: 40px;
}

.features-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  color: #444;
}

.features-container h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #007B7F;
  text-align: center;
}

.features-container ul {
  list-style: none;
  padding-left: 0;
}

.features-container li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.9em;
}

.features-container li strong {
  font-weight: 600;
}

/* === Course Cards === */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover lift — same values as the CEU site */
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-color: #ccc;
}

.course-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.course-card .card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #007B7F;
}

.course-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #555;
}

.course-card .details {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
}

.course-card .price {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.course-card a.btn {
  display: inline-block;
  text-align: center;
  background-color: #007B7F;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  font-weight: bold;
}

.course-card a.disabled-btn {
  display: inline-block;
  text-align: center;
  background-color: #cccccc; /* Gray background */
  color: #777777;            /* Muted text */
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  pointer-events: none;      /* Makes it unclickable */
  cursor: not-allowed;       /* Shows "no" cursor */
  font-weight: normal;
  font-style: italic;
}

.course-card a:hover {
  background-color: #005f61;
}

/* === Testimonials === */
.testimonials {
  background-color: #fff;
  padding: 50px 20px;
  color: #333;
  border-top: 1px solid #ddd;
}

.testimonials h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #007B7F;
  margin-bottom: 40px;
}

.testimonial {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.quote {
  background-color: #f9f9f9; /* slightly warmer than #f8f8f8 */
  padding: 18px 22px;
  border-radius: 10px;
  border: 1px solid #eee;
  flex: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.quote p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.attribution {
  font-weight: bold;
  color: #555;
}

/* === About Page === */
/* Ported from the CEU site's about.html, which keeps these inline per page.
   They live here instead so the four pages stay on one stylesheet. */
.about-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-intro-text {
  flex: 1;
}

.about-photo {
  width: 340px;
  flex-shrink: 0;
  height: auto; /* required — the tag's height attribute would force a 340x543
                   portrait box and object-fit would then crop the photo to it */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-intro-text h2 {
  font-size: 1.5rem;
  color: #007B7F;
  margin-bottom: 8px;
}

.about-intro-text .credentials {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 16px;
}

.about-intro-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1em;
}

.about-story {
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 50px 20px;
}

.about-story-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-story h2 {
  font-size: 1.5rem;
  color: #007B7F;
  margin-bottom: 20px;
  text-align: center;
}

.about-story p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1em;
}

/* Capped at 400px rather than the CEU site's 500px — this photo is portrait,
   and 500px wide would render ~667px tall and dominate the section. */
.about-cat {
  text-align: center;
  margin-top: 32px;
}

.about-cat img {
  width: 100%;
  max-width: 200px;
  height: auto; /* required — the tag's height attribute would stretch it otherwise */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-cat p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #777;
  font-style: italic;
  margin-top: 12px;
}

/* Pull-quote inside the story section. White card on the section's #f8f8f8,
   so it reads as evidence dropped into the argument rather than more prose. */
.about-quote {
  background-color: #fff;
  border-left: 4px solid #007B7F;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 40px; /* inset from the body copy; reset to 0 on mobile below */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.about-quote p {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  color: #444;
  margin-bottom: 10px;
}

.about-quote .attribution {
  font-size: 0.9rem;
  font-style: normal;
}

/* Also used on free.html — the "Ready to Review?" close is shared between the
   two pages, not about-only. */
.about-cta {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
}

.about-cta h2 {
  font-size: 1.5rem;
  color: #007B7F;
  margin-bottom: 12px;
}

.about-cta p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 24px;
}

.about-cta .btn {
  display: inline-block;
  background-color: #007B7F;
  color: #fff;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.about-cta .btn:hover {
  background-color: #005f61;
}


/* === Contact Page === */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 50px 20px;
}

.contact-section h2 {
  font-size: 1.5rem;
  color: #007B7F;
  margin-bottom: 8px;
  text-align: center;
}

.contact-section .subtitle {
  font-size: 1rem;
  color: #555;
  text-align: center;
  margin-bottom: 32px;
}

.contact-info {
  text-align: center;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: #555;
}

.contact-info a {
  color: #007B7F;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #007B7F;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  display: block;
  width: 100%;
  background-color: #007B7F;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #005f61;
}

/* === Thank You Page === */
.thankyou-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.thankyou-section h1 {
  font-size: 2rem;
  color: #007B7F;
  margin-bottom: 16px;
}

.thankyou-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1em;
}

.thankyou-section .btn {
  display: inline-block;
  background-color: #007B7F;
  color: #fff;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: 16px;
}

.thankyou-section .btn:hover {
  background-color: #005f61;
}

.thankyou-cat {
  margin-top: 100px;
  text-align: center;
}

.thankyou-cat img {
  width: 100%;
  max-width: 350px;
  height: auto; /* required alongside the tag's height attribute */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thankyou-cat p {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  margin-top: 12px;
}

/* Hidden until mail.php redirects back with an ?e= code */
.error-message {
  display: none;
  background-color: #fff3f3;
  border: 1px solid #e0a0a0;
  border-radius: 5px;
  padding: 16px;
  color: #333;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* === Footer === */
footer {
  background-color: #f5f5f5;
  color: #777;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  margin-top: 40px;
}

footer a {
  color: #007B7F;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* === Mobile Navigation === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #333;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    gap: 0;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 1rem;
    text-align: left;
  }

  .nav-login-item {
    margin-left: 0;
  }

  .nav-login {
    border: none;
    font-weight: 500;
    color: #ccc;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 1rem;
  }

  nav.site-nav {
    position: relative;
    z-index: 1000;
  }
}

/* === Free Stuff Page ===
   Deliberately NOT .course-card. Cards are the site's visual vocabulary for
   "this is a product you buy" — reusing them for free downloads would put the
   giveaways in the same register as the $49-$99 courses and blunt both. A plain
   bulleted list reads as utility, which is what these are. Keep it plain: the
   value here is the links, not the presentation. */
.free-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

/* Headings stay teal to match every other page. The links are teal too, so the
   two are told apart by weight and underline rather than hue: bold + no
   underline reads as a heading, lighter + underlined reads as clickable. Don't
   "tidy" this by making the links semibold again — that's the change that made
   the list look like four more headings. */
.free-section h2 {
  font-size: 1.5rem;
  color: #007B7F;
  margin-bottom: 6px;
  text-align: left;
}

.free-section .section-note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 16px;
}

.free-list {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
}

.free-list li {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.free-list li::marker {
  color: #007B7F;
}

.free-list a {
  color: #007B7F;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(0, 123, 127, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.free-list a:hover {
  text-decoration-color: #007B7F;
}

/* Grey band around the cat photo, mirroring .about-story so free.html ends the
   same way about.html does: grey photo band, then the white .about-cta. */
.free-cat-band {
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 50px 20px;
  margin-top: 50px;
}

.free-cat {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.free-cat img {
  width: 100%;
  max-width: 600px;
  height: auto; /* required — the tag's height attribute would stretch it otherwise */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.free-cat p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #777;
  font-style: italic;
  margin-top: 12px;
}


/* === Responsive === */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }
  header p {
    font-size: 1rem;
  }

  /* column-reverse puts the photo above the text on mobile */
  .about-intro {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .about-photo {
    width: 100%;
    max-width: 340px;
  }

  /* No room to inset on a phone — reclaim the full column width */
  .about-quote {
    margin: 28px 0;
    padding: 16px 18px;
  }
}
