/* BlueStar 身心靈整合療癒 - Main Stylesheet
   Replicating: https://www.bluemstar.com/
*/

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary-text: #B6A072;
  --secondary-text: #D6A848;
  --accent-color: #C26413;
  --accent-hover: #D6A848;
  --bg-white: #0a0a0a;
  --bg-light: #151515;
  --bg-dark: #000000;
  --border-color: #5E613E;
  --nav-bg: #0a0a0a;
  --nav-text: #B6A072;
  --footer-bg: #050505;
  --font-zh: 'cwTeXYen', 'Noto Serif TC', 'Microsoft JhengHei', serif;
  --font-en: 'Raleway', sans-serif;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.9);
}

/* --- Tribal / Magical Theme Override --- */
body,
#rot,
.b_bg,
.b_body,
.b_html,
.b_pagebg {
  background-color: var(--bg-white) !important;
  color: var(--primary-text) !important;
  background-image: none !important;
}

#rot p,
.b_html p {
  color: var(--primary-text) !important;
}

#rot #rot_ctr1_bod_ctr2 {
  display: block !important;
}

#rot h1,
#rot h2,
#rot h3,
#rot h4,
#rot h5,
#rot h6,
.b_html h1,
.b_html h2,
.b_html h3,
.b_html h4,
.b_html h5,
.b_html h6 {
  color: var(--secondary-text) !important;
  border-color: var(--border-color) !important;
}

/* Force override inline spans that have hardcoded colors */
#rot .b_html span[style*="color"] {
  color: inherit !important;
}

#rot a {
  color: var(--accent-color) !important;
}

#rot a:hover {
  color: var(--accent-hover) !important;
}

/* Navigation Menu overrides */
#rot_ctr1_bod_ctr1_bod ul li a {
  color: var(--nav-text) !important;
}

#rot_ctr1_bod_ctr1_bod ul li a:hover {
  color: var(--accent-hover) !important;
}

#rot_ctr1_bod_ctr1_bod ul li ul {
  background-color: var(--bg-light) !important;
  border-color: var(--border-color) !important;
}

/* Base borders */
#rot_ctr1,
#rot_ctr1_bod_ctr5 {
  border-color: var(--border-color) !important;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-zh);
  color: var(--primary-text);
  background-color: var(--bg-white);
  line-height: 1.8;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

/* ===== Header & Navigation ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 50px;
  width: auto;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list>li {
  position: relative;
}

.nav-list>li>a,
.nav-list>li>span {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-text);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-list>li>a:hover,
.nav-list>li>span:hover {
  color: var(--accent-color);
}

.nav-list>li>a.active,
.nav-list>li.active>a {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Dropdown */
.nav-list li.has-dropdown:hover>.dropdown {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-top: 2px solid var(--accent-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.dropdown.visible {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--primary-text);
  border-bottom: 1px solid #f0eae5;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--accent-color);
  padding-left: 24px;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-text);
  transition: all 0.3s ease;
}

/* ===== Page Banner / Hero ===== */
.page-banner {
  background: linear-gradient(135deg, #f8f0f5 0%, #f0f5f8 100%);
  padding: 60px 20px;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-zh);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 12px;
}

.page-banner .subtitle {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--secondary-text);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.page-banner p {
  max-width: 700px;
  margin: 16px auto 0;
  color: var(--secondary-text);
  font-size: 0.95rem;
}

/* ===== Homepage Hero Section ===== */
.hero-section {
  background: var(--bg-white);
  padding: 60px 20px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary-text);
  line-height: 1.6;
}

.hero-text p {
  color: var(--secondary-text);
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 0.95rem;
}

.hero-text .cta-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 2px;
}

.hero-image {
  flex: 0 0 300px;
}

.hero-image img {
  width: 100%;
  border-radius: 4px;
}

/* ===== Services Grid ===== */
.services-section {
  background: var(--bg-light);
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 8px;
}

.section-title .en-title {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--secondary-text);
  text-transform: uppercase;
}

.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card-body {
  padding: 20px;
}

.service-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-text);
}

.service-card-body p {
  font-size: 0.875rem;
  color: var(--secondary-text);
  line-height: 1.7;
}

/* ===== Updates Section ===== */
.updates-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.updates-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 24px;
}

.updates-list {
  list-style: none;
}

.updates-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--secondary-text);
}

.updates-list li:last-child {
  border-bottom: none;
}

/* ===== Content Page Layout ===== */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
}

.content-page h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-text);
  margin: 30px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.content-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-text);
  margin: 24px 0 12px;
}

.content-page p {
  color: var(--secondary-text);
  margin-bottom: 14px;
  line-height: 1.9;
  font-size: 0.95rem;
}

.content-page ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.content-page ul li {
  color: var(--secondary-text);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.content-image {
  margin: 30px 0;
  text-align: center;
}

.content-image img {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* ===== Two-column layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 30px 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent-color);
  color: #ffffff;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  text-align: center;
}

.btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-outline:hover {
  background: var(--accent-color);
  color: #ffffff;
}

/* ===== Highlighted Box ===== */
.highlight-box {
  background: var(--bg-light);
  border-left: 4px solid var(--accent-color);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}

.highlight-box p {
  margin: 0;
  color: var(--primary-text);
}

/* ===== Testimonial Cards ===== */
.testimonial {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 24px;
  margin: 20px 0;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--border-color);
  line-height: 1;
  position: absolute;
  top: 10px;
  left: 16px;
}

.testimonial p {
  padding-left: 10px;
  color: var(--secondary-text);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
}

/* ===== Pricing Box ===== */
.pricing-box {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.pricing-box .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.pricing-box p {
  font-size: 0.875rem;
  color: var(--secondary-text);
  margin: 4px 0;
}

/* ===== Schedule Table ===== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.schedule-table th {
  background: var(--accent-color);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
}

.schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--secondary-text);
}

.schedule-table tr:nth-child(even) td {
  background: var(--bg-light);
}

/* ===== About / Instructor Bio ===== */
.instructor-bio {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin: 30px 0;
  padding: 30px;
  background: var(--bg-light);
  border-radius: 4px;
}

.instructor-bio img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.instructor-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-text);
}

.instructor-info .motto {
  font-style: italic;
  color: var(--accent-color);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.instructor-info ul {
  list-style: none;
  padding: 0;
}

.instructor-info ul li {
  font-size: 0.875rem;
  color: var(--secondary-text);
  padding: 3px 0;
}

.instructor-info ul li::before {
  content: '• ';
  color: var(--accent-color);
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 30px auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-family: var(--font-zh);
  font-size: 0.9rem;
  color: var(--primary-text);
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #e8e0f0 0%, #d5e5f5 100%);
  padding: 50px 20px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--primary-text);
}

.cta-banner p {
  font-size: 0.95rem;
  color: var(--secondary-text);
  margin-bottom: 24px;
}

/* ===== Certifications / Logos Bar ===== */
.cert-bar {
  background: var(--bg-white);
  padding: 30px 20px;
  border-top: 1px solid var(--border-color);
}

.cert-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cert-bar img {
  height: 45px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.cert-bar img:hover {
  opacity: 1;
}

/* ===== Footer ===== */
#site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.footer-nav-bar {
  background: #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
}

.footer-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-nav-inner a {
  font-size: 0.875rem;
  color: var(--secondary-text);
}

.footer-nav-inner a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--secondary-text);
}

.footer-cc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--secondary-text);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.footer-social a:hover img {
  opacity: 0.8;
}

/* ===== GetButton Chat Widget ===== */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.chat-widget a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0084ff;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.chat-widget a:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.5);
  transform: translateY(-2px);
}

/* ===== Activity Banner (Homepage repeating BG) ===== */
.activity-banner {
  background-image: url('https://www.bluemstar.com/static/designs/images/repository/business9_area3_bg_repeat.jpg');
  background-repeat: repeat;
  padding: 50px 20px;
  text-align: center;
}

.activity-banner h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 24px;
}

.activity-items {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.activity-item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
}

.activity-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-text);
}

.activity-item .btn {
  margin-top: 12px;
  font-size: 0.85rem;
  padding: 9px 20px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    flex-direction: column;
    gap: 30px;
  }

  .hero-image {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .instructor-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .activity-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-list>li>a,
  .nav-list>li>span {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    background: var(--bg-light);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown.mobile-open {
    display: block;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .page-banner h1 {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav-inner {
    justify-content: center;
  }
}

/* ===== Q&A Section ===== */
.qa-section {
  margin: 30px 0;
}

.qa-item {
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.qa-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 8px;
}

.qa-item p {
  font-size: 0.9rem;
  color: var(--secondary-text);
  line-height: 1.8;
  margin: 0;
}

/* ===== Divider ===== */
hr.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 30px 0;
}

/* ===== Notice ===== */
.notice {
  background: #fff8e1;
  border: 1px solid #ffe08a;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #7a6000;
  margin: 16px 0;
}

/* ===== Floating Contact Widgets ===== */
.floating-widgets {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.magic-float-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 20, 15, 0.8), rgba(10, 5, 5, 0.9));
  border: 1px solid rgba(214, 168, 72, 0.5);
  box-shadow: 0 0 15px rgba(214, 168, 72, 0.3), inset 0 0 15px rgba(214, 168, 72, 0.1);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #D6A848;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  gap: 3px;
  /* Ensure it looks like a button */
  cursor: pointer;
}

.magic-float-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 25px rgba(214, 168, 72, 0.6), inset 0 0 20px rgba(214, 168, 72, 0.3);
  color: #fff;
  border-color: #D6A848;
}

.magic-float-btn svg {
  fill: #D6A848;
  transition: fill 0.3s ease;
}

.magic-float-btn:hover svg {
  fill: #fff;
}

.line-btn svg {
  width: 26px;
  height: 26px;
}

.fb-btn svg {
  width: 28px;
  height: 28px;
}

/* Hide the old chat widget if it still exists via some class */
.chat-widget {
  display: none !important;
}

/* ===== Desktop Logo Constraints ===== */
#rot_ctr1_bod_ctr1_blk1 img {
  width: auto;
  height: 80px;
  max-width: 100%;
}

/* ===== Mobile Hamburger Menu ===== */
@media screen and (max-width: 768px) {

  /* Show checkbox label as the hamburger menu */
  #rot #rot_ctr1_bod_ctr1_bod #__res_main_nav_label {
    display: block !important;
    height: 40px !important;
    width: 40px !important;
    position: relative !important;
    cursor: pointer;
    background-image: none !important;
    /* Remove missing image */
    background-color: transparent !important;
    margin: 10px 0 10px auto !important;
    /* Align right */
  }

  /* Hamburger Bars using pseudo-elements */
  #rot #rot_ctr1_bod_ctr1_bod #__res_main_nav_label::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 5px !important;
    right: 5px !important;
    height: 3px !important;
    background-color: var(--primary-text) !important;
    box-shadow: 0 10px 0 0 var(--primary-text), 0 20px 0 0 var(--primary-text);
    transition: box-shadow 0.2s, background-color 0.2s, transform 0.2s;
  }

  /* Hamburger to X animation when checked */
  #rot #rot_ctr1_bod_ctr1_bod #__res_main_nav_button:checked~#__res_main_nav_label::before {
    background-color: transparent !important;
    box-shadow: 0 10px 0 0 var(--primary-text), 0 10px 0 0 var(--primary-text);
    transform: rotate(45deg);
  }

  #rot #rot_ctr1_bod_ctr1_bod #__res_main_nav_button:checked~#__res_main_nav_label::after {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 5px !important;
    right: 5px !important;
    height: 3px !important;
    background-color: transparent !important;
    box-shadow: 0 10px 0 0 var(--primary-text);
    transform: rotate(-45deg);
    transition: transform 0.2s;
  }

  /* Hide normal desktop menu */
  #rot #rot_ctr1_bod_ctr1_bod>ul[menu_position="top"] {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    background-color: var(--nav-bg) !important;
    position: absolute !important;
    top: 55px !important;
    left: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
  }

  /* Show menu when checkbox is checked */
  #rot #rot_ctr1_bod_ctr1_bod #__res_main_nav_button:checked~ul[menu_position="top"] {
    display: flex !important;
  }

  #rot #rot_ctr1_bod_ctr1_bod>ul[menu_position="top"]>li {
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 15px 0 !important;
  }

  #rot #rot_ctr1_bod_ctr1_bod>ul[menu_position="top"]>li:last-child {
    border-bottom: none !important;
  }

  /* Submenus on mobile - show initially hidden */
  #rot #rot_ctr1_bod_ctr1_bod ul li ul {
    position: static !important;
    width: 100% !important;
    background-color: #1a1a1a !important;
  }

  /* Make sure the header is sticky or relative to hold the absolute menu */
  #rot #rot_ctr1_bod_ctr1 {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    display: flex;
    justify-content: center;
    /* Center the logo container */
    align-items: center;
    padding: 10px 15px !important;
  }

  /* Anchor the hamburger menu to the absolute right so it doesn't push the logo */
  #rot #rot_ctr1_bod_ctr1_bod {
    position: absolute !important;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Logo adjustment */
  #rot #rot_ctr1_bod_ctr1_blk1 {
    width: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #rot #rot_ctr1_bod_ctr1_blk1 p {
    margin: 0 !important;
  }

  #rot #rot_ctr1_bod_ctr1_blk1 img {
    width: auto !important;
    height: 60px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }
}

/* ===== Hero Text Box Font Size Adjustments ===== */
.hero-text-box p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

@media screen and (max-width: 768px) {
  .hero-text-box p {
    font-size: 20px;
    line-height: 1.6;
  }
}

/* ===== Typography Size Fixes ===== */
/* Ensure headings are larger than body text (20px) */
.b_html h2,
.b_html h2 span {
  font-size: 36px !important;
  line-height: 1.4 !important;
}

.b_html h3,
.b_html h3 span {
  font-size: 32px !important;
  line-height: 1.4 !important;
}

.b_html h4,
.b_html h4 span {
  font-size: 28px !important;
  line-height: 1.4 !important;
}

.b_html h5,
.b_html h5 span,
.b_html h6,
.b_html h6 span {
  font-size: 24px !important;
  line-height: 1.4 !important;
}

@media screen and (max-width: 768px) {

  .b_html h2,
  .b_html h2 span {
    font-size: 32px !important;
  }

  .b_html h3,
  .b_html h3 span {
    font-size: 28px !important;
  }

  .b_html h4,
  .b_html h4 span {
    font-size: 26px !important;
  }

  .b_html h5,
  .b_html h5 span,
  .b_html h6,
  .b_html h6 span {
    font-size: 24px !important;
  }
}

/* Override existing inline or component styles for hero text */
#rot .hero-text-box p {
  font-size: 20px !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
  letter-spacing: 0.5px !important;
}

@media screen and (max-width: 768px) {
  #rot .hero-text-box p {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }
}

/* Ensure font-size applies even if there are nested span elements with inline styles */
#rot .hero-text-box p span {
  font-size: 18px !important;
}

@media screen and (max-width: 768px) {
  #rot .hero-text-box p span {
    font-size: 18px !important;
  }
}

/* ===== Standard Body Text Typography ===== */
/* Make all standard paragraph text comfortable sized and smaller than headings */
.b_html p,
.b_html p span,
#rot p,
#rot p span {
  font-size: 20px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.5px !important;
}

@media screen and (max-width: 768px) {

  .b_html p,
  .b_html p span,
  #rot p,
  #rot p span {
    font-size: 18px !important;
    line-height: 1.8 !important;
  }
}

/* ===== Instructor Profile Bio Word Wrapping Fix ===== */
/* Prevent text like '出生即走過瀕死經驗' from awkward mid-word breaks on narrow mobile screens */
#rot_ctr1_bod_blk5_custom_blk2_custom p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ===== Footer Layout Overrides ===== */
/* Overrides builder template limits that cause the social icons on the right to block the logos */
#rot_ctr1_bod_ctr5_blk1_custom,
#rot_ctr1_bod_ctr5_blk2 {
  width: 100% !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  position: static !important;
}

#rot_ctr1_bod_ctr5_blk1_custom_blk1_custom {
  width: 100% !important;
  max-width: 100% !important;
}

/* IMPORTANT FIX: Override the minified CSS that breaks submenu displays causing overlap */
#rot #rot_ctr1_bod_ctr1_bod ul li ul.sub_menu {
  display: none;
  /* Hide by default to prevent overlap, JS and hover will naturally override */
  background-color: var(--bg-light) !important;
  border: 1px solid var(--border-color) !important;
  position: absolute !important;
  z-index: 1000 !important;
}

#rot #rot_ctr1_bod_ctr1_bod ul li:hover>ul.sub_menu {
  display: block;
  /* Show on hover in desktop */
}

/* Magic Wand Cursor globally */
* {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text y='24' font-size='28'>🪄</text></svg>") 0 0, auto !important;
}
a, button, input, .parent_menu_item {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text y='24' font-size='28'>🌟</text></svg>") 16 16, pointer !important;
}


/* Global Mobile Navigation Background Fix */
@media (max-width: 1000px) {
  .b_menu > ul {
      background: rgba(10, 8, 6, 0.98) !important;
      background-color: #050505 !important;
      backdrop-filter: blur(15px) !important;
      -webkit-backdrop-filter: blur(15px) !important;
  }
  .b_menu > ul > li.parent_menu_item::after {
      color: #D6A848 !important;
  }
}
