.elementor-kit-6{--e-global-color-primary:#89B6E2;--e-global-color-secondary:#6B6B6B;--e-global-color-text:#1E1E1E;--e-global-color-accent:#6E9FD1;--e-global-color-230577c:#F6F5F1;--e-global-color-28ef375:#FFFFFF;--e-global-color-3ae7e50:#E4E2DC;--e-global-color-db6c59b:#6BA368;--e-global-color-1767efa:#DCC8A8;--e-global-color-af285e4:#F4C542;--e-global-color-e86bc42:#C0533B;--e-global-color-86edf82:#EEF4FB;--e-global-color-8228194:#E1EDE1;--e-global-color-e7b5f50:#FDF3D9;--e-global-color-33d0ab7:#F8F4EE;--e-global-color-e0380b4:#F1F3F2;--e-global-color-74ceb6d:#FFFFFFCC;--e-global-typography-primary-font-family:"Poppins";--e-global-typography-primary-font-weight:600;--e-global-typography-primary-line-height:1.4em;--e-global-typography-secondary-font-family:"Poppins";--e-global-typography-secondary-font-weight:500;--e-global-typography-secondary-line-height:1.4em;--e-global-typography-text-font-family:"Inter";--e-global-typography-text-font-size:16px;--e-global-typography-text-font-weight:400;--e-global-typography-text-line-height:1.75em;--e-global-typography-accent-font-family:"Poppins";--e-global-typography-accent-font-weight:500;background-color:#F6F5F1;color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Noto Sans Thai, sans-serif;font-size:var( --e-global-typography-text-font-size );font-weight:var( --e-global-typography-text-font-weight );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}.elementor-kit-6 e-page-transition{background-color:#FFBC7D;}.elementor-kit-6 a{color:var( --e-global-color-primary );}.elementor-kit-6 a:hover{color:var( --e-global-color-accent );}.elementor-kit-6 h1{color:var( --e-global-color-text );font-family:"Poppins", Noto Sans Thai, sans-serif;font-size:56px;font-weight:600;line-height:1.4em;}.elementor-kit-6 h2{color:var( --e-global-color-text );font-family:"Poppins", Noto Sans Thai, sans-serif;font-size:30px;font-weight:600;line-height:1.4em;}.elementor-kit-6 h3{color:var( --e-global-color-text );font-family:"Poppins", Noto Sans Thai, sans-serif;font-size:24px;font-weight:600;line-height:1.4em;}.elementor-kit-6 h4{color:var( --e-global-color-text );font-family:"Poppins", Noto Sans Thai, sans-serif;font-size:20px;font-weight:600;line-height:1.4em;}.elementor-kit-6 h5{color:var( --e-global-color-text );font-family:"Poppins", Noto Sans Thai, sans-serif;font-weight:600;line-height:1.4em;}.elementor-kit-6 h6{color:var( --e-global-color-text );font-family:"Poppins", Noto Sans Thai, sans-serif;font-weight:600;line-height:1.4em;}.elementor-kit-6 input:not([type="button"]):not([type="submit"]),.elementor-kit-6 textarea,.elementor-kit-6 .elementor-field-textual{font-family:var( --e-global-typography-text-font-family ), Noto Sans Thai, sans-serif;font-size:var( --e-global-typography-text-font-size );font-weight:var( --e-global-typography-text-font-weight );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );border-style:solid;border-width:1px 1px 1px 1px;border-radius:12px 12px 12px 12px;}.elementor-kit-6 input:focus:not([type="button"]):not([type="submit"]),.elementor-kit-6 textarea:focus,.elementor-kit-6 .elementor-field-textual:focus{border-style:solid;border-width:1px 1px 1px 1px;border-radius:12px 12px 12px 12px;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1152px;}.e-con{--container-max-width:1152px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-kit-6{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}.elementor-kit-6 input:not([type="button"]):not([type="submit"]),.elementor-kit-6 textarea,.elementor-kit-6 .elementor-field-textual{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-kit-6{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}.elementor-kit-6 h1{font-size:36px;}.elementor-kit-6 h2{font-size:24px;}.elementor-kit-6 h3{font-size:20px;}.elementor-kit-6 h4{font-size:18px;}.elementor-kit-6 input:not([type="button"]):not([type="submit"]),.elementor-kit-6 textarea,.elementor-kit-6 .elementor-field-textual{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}:root { --hd-bg:#F6F5F1; --hd-surface:#FFFFFF; --hd-text:#1E1E1E; --hd-text-muted:#6B6B6B; --hd-border:#E4E2DC; --hd-primary:#89B6E2; --hd-primary-hover:#6E9FD1; --hd-green:#6BA368; --hd-tan:#DCC8A8; --hd-yellow:#F4C542; --hd-danger:#C0533B; --hd-primary-tint:#EEF4FB; --hd-green-tint:#E1EDE1; --hd-yellow-tint:#FDF3D9; --hd-tan-tint:#F8F4EE; --hd-section-tint:#F1F3F2; --hd-pill-glass:#FFFFFFCC; --hd-btn-dark:#1E1E1E; --hd-on-btn-dark:#FFFFFF; --hd-tan-soft:#F1E9DC; }
/* Start custom CSS *//* ===== harittodiary design tokens (the only custom CSS on the site) ===== */
:root {
  --hd-shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  --hd-shadow-floating: 0 20px 50px -10px rgba(137, 182, 226, 0.15);
}

/* Thai letters inside Poppins text (headings, buttons) are drawn with
   Noto Sans Thai, so the Thai font is the same everywhere on the site.
   (One rule per weight used on the site: 400 / 500 / 600 / 700.) */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
  src: url(https://fonts.gstatic.com/s/notosansthai/v29/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfKI2hX2g.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
  src: url(https://fonts.gstatic.com/s/notosansthai/v29/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfKI2hX2g.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
  src: url(https://fonts.gstatic.com/s/notosansthai/v29/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfKI2hX2g.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
  src: url(https://fonts.gstatic.com/s/notosansthai/v29/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfKI2hX2g.woff2) format("woff2"); }
/* Same for Inter (body text and the Tutor LMS dashboard). */
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
  src: url(https://fonts.gstatic.com/s/notosansthai/v29/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfKI2hX2g.woff2) format("woff2"); }
 
/* Soft card shadow:  add class  hd-card  */
.hd-card {
  background: var(--hd-surface);
  border: 1px solid var(--hd-border);
  border-radius: 24px;
  box-shadow: var(--hd-shadow-soft);
  overflow: hidden;
}
 
/* Bigger card corners (buy card, curriculum card):  add  hd-card-lg  as well */
.hd-card-lg { border-radius: 32px; }
 
/* Blue-tinted floating shadow:  add class  hd-floating  */
.hd-floating { box-shadow: var(--hd-shadow-floating); }
 
/* Card lifts a little on hover:  class  hd-lift  */
.hd-lift { transition: transform 0.3s ease; }
.hd-lift:hover { transform: translateY(-4px); }
 
/* Hero wrapper: lets the pills be placed inside it, and clips them
   so they never cause sideways scrolling:  class  hd-hero  */
.hd-hero { position: relative; overflow: hidden; }
 
/* Hero pills bobbing gently:  class  hd-float  (or hd-float-slow).
   Uses "translate", so the pill's own Rotate setting still works. */
@keyframes hd-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.hd-float      { animation: hd-float 6s ease-in-out infinite; }
.hd-float-slow { animation: hd-float 7s ease-in-out infinite 1.5s; }
 
/* Respect people who turned off motion on their device */
@media (prefers-reduced-motion: reduce) {
  .hd-float, .hd-float-slow { animation: none; }
  .hd-lift:hover { transform: none; }
}

/* Header buttons: "เข้าสู่ระบบ" shows to visitors, "คอร์สของฉัน" to
   logged-in members:  classes  hd-logged-out-only / hd-logged-in-only */
body.logged-in .hd-logged-out-only,
body:not(.logged-in) .hd-logged-in-only { display: none !important; }

/* Header menu on tablet / phone: a small white card under the ☰ button */
.elementor-widget-nav-menu .elementor-menu-toggle { margin-left: auto; background: transparent; border-radius: 10px; }
.elementor-widget-nav-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container {
  position: absolute; top: 100%; left: auto; right: 0; z-index: 100;
  width: 240px; margin-top: 12px; padding: 8px;
  background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: 16px; box-shadow: var(--hd-shadow-floating);
}
.elementor-widget-nav-menu .elementor-nav-menu--dropdown a { padding: 12px 16px; border-radius: 10px; color: var(--hd-text); background: transparent; }
.elementor-widget-nav-menu .elementor-nav-menu--dropdown a:hover,
.elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-item-active { background: var(--hd-primary-tint); color: var(--hd-text); }
 
/* FAQ (home page): chevron on the right that turns when a question opens */
.hd-faq-question { list-style: none; }
.hd-faq-question::-webkit-details-marker { display: none; }
.hd-faq-question .e-accordion-item-icon-base {
  width: 20px; height: 20px; transition: transform 0.2s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2389B6E2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 20px no-repeat;
}
details[open] > .hd-faq-question .e-accordion-item-icon-base { transform: rotate(180deg); }
 
/* Images cropped to 16:9 (blog + course cards, covers):  class  hd-cover-16x9 */
.hd-cover-16x9 img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
 
/* Cut long text after 1 / 2 / 3 lines with "...":  hd-clamp-1 / -2 / -3 */
.hd-clamp-1 .elementor-heading-title, .hd-clamp-1 p,
.hd-clamp-2 .elementor-heading-title, .hd-clamp-2 p,
.hd-clamp-3 .elementor-heading-title, .hd-clamp-3 p {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.hd-clamp-1 .elementor-heading-title, .hd-clamp-1 p { -webkit-line-clamp: 1; }
.hd-clamp-2 .elementor-heading-title, .hd-clamp-2 p { -webkit-line-clamp: 2; }
.hd-clamp-3 .elementor-heading-title, .hd-clamp-3 p { -webkit-line-clamp: 3; }
 
/* "What will I learn" list shown as 2-column check cards:  class  hd-outcomes
   (Tutor's HTML can change between versions; if this stops matching,
   ask for an updated .elementor-kit-6 rather than adding more CSS elsewhere.) */
.hd-outcomes ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  list-style: none; margin: 0; padding: 0; }
.hd-outcomes li { background: var(--hd-bg); border: 1px solid var(--hd-border); border-radius: 16px;
  padding: 16px; font-size: 14px; font-weight: 500; line-height: 1.7;
  width: auto; max-width: none; }
@media (max-width: 767px) { .hd-outcomes ul { grid-template-columns: 1fr; } }
 
/* Comfortable reading width for posts and article lessons:  class  hd-prose  */
.hd-prose { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Tutor uses the same fonts as the rest of the site (Thai = Noto Sans Thai) */
:root {
  --tutor-font-family-body: "Inter", "Noto Sans Thai";
  --tutor-font-family-heading: "Poppins", "Noto Sans Thai";
}
/* Tutor's tiniest text (e.g. "บทความ" under each lesson) is too small for Thai */
.tutor-tiny-2 { font-size: 12px; }

/* Course page: no author box, no stars at the top (the stars are in the
   sidebar "รีวิว" row instead, see snippet "Course page: who is this course for") */
.single-courses .tutor-course-details-instructors,
.single-courses .tutor-course-details-ratings { display: none; }
.hd-meta-stars { margin: 0 4px; }

/* Course cards (course list): no author line; "ลงทะเบียนเรียน 1 คน" */
.tutor-course-card .tutor-meta.tutor-mt-auto { display: none; }
.tutor-course-card .tutor-meta > div:has(> .tutor-icon-user-line) .tutor-meta-value::before { content: "ลงทะเบียนเรียน "; }
.tutor-course-card .tutor-meta > div:has(> .tutor-icon-user-line) .tutor-meta-value::after { content: " คน"; }

/* Lesson / quiz / assignment pages: Tutor shows its own learning screen,
   so the site header and footer are hidden there. */
.single-lesson #site-header, .single-lesson #site-footer,
.single-tutor_quiz #site-header, .single-tutor_quiz #site-footer,
.single-tutor_assignments #site-header, .single-tutor_assignments #site-footer { display: none; }

/* Tutor dashboard / learning screens follow Tutor's own text colours,
   so Tutor's night mode stays readable. */
:is(.tutor-screen-frontend-dashboard, .single-lesson, .single-tutor_quiz, .single-tutor_assignments, .tutor-learning-page),
:is(.tutor-screen-frontend-dashboard, .single-lesson, .single-tutor_quiz, .single-tutor_assignments, .tutor-learning-page) :is(h1, h2, h3, h4, h5, h6) { color: var(--tutor-text-primary); }

/* Learning screens: hide Tutor's manual "Complete the Course" button
   (courses complete automatically when all lessons are done) */
.tutor-learning-page button[\@click*="tutor-course-complete-modal"] { display: none; }

/* Dashboard: the site name at the top left becomes a "back to home" button
   (change the text inside content: "..." below) */
.tutor-dashboard-sidebar-logo .tutor-brand-logo { display: none; }
.tutor-dashboard-sidebar-logo::before {
  content: "← กลับสู่หน้าหลัก";
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--tutor-border-idle, var(--hd-border)); color: var(--tutor-text-primary);
  font-size: 14px; font-weight: 500;
}
.tutor-dashboard-sidebar-logo:hover::before { border-color: var(--hd-primary); color: var(--hd-primary); }

/* Dashboard: hide the Discussions (Q&A) menu item. Delete this rule to show it again. */
.tutor-dashboard-menu-discussions,
li:has(> a[href$="/dashboard/discussions"]) { display: none; }

/* Tutor LMS pages (course page, course catalog, dashboard): breathing room
   between the header, the content and the footer. */
.tutor-wrap-parent { padding-top: 48px; padding-bottom: 80px; }
@media (max-width: 767px) { .tutor-wrap-parent { padding-top: 32px; padding-bottom: 56px; } }

/* ----- Tutor course page: styled to match the prototype -----
   Tutor still builds this page (price, enroll, curriculum); this only
   changes the look. If a Tutor update renames a class, the page keeps
   working and only the styling here needs a new .elementor-kit-6. */
.single-courses .tutor-course-details-title { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 48px; line-height: 1.25; }
.single-courses .tutor-course-thumbnail { border-radius: 24px; overflow: hidden; border: 1px solid var(--hd-border); box-shadow: var(--hd-shadow-floating); }

/* Section headings with a tinted icon box (about / what you'll learn / curriculum) */
.tutor-course-details-content > h2,
.tutor-tab-item .tutor-course-details-widget-title,
.tutor-course-content-title { display: flex; align-items: center; gap: 12px; font-family: "Poppins", sans-serif; font-size: 24px; font-weight: 600; }
.tutor-course-details-content > h2::before,
.tutor-tab-item .tutor-course-details-widget-title::before,
.tutor-course-content-title::before { content: ""; flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--hd-primary-tint) center / 20px no-repeat; }
.tutor-course-details-content > h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2389B6E2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.tutor-tab-item .tutor-course-details-widget-title::before { background-color: var(--hd-green-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236BA368' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
.tutor-course-content-title::before { background-color: var(--hd-tan-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A97A' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2zM22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E"); }

/* "What you'll learn" as 2-column cards with green checks */
.tutor-tab-item .tutor-course-details-widget-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tutor-tab-item .tutor-course-details-widget-list li { width: 100%; margin: 0 !important; gap: 12px; align-items: flex-start; padding: 16px; background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: 16px; font-size: 14px; font-weight: 500; line-height: 1.7; }
.tutor-tab-item .tutor-course-details-widget-list .tutor-icon-bullet-point { display: none; }
.tutor-tab-item .tutor-course-details-widget-list li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 999px; background: var(--hd-green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236BA368' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* "คอร์สนี้เหมาะกับใคร" (from the course's Target Audience field;
   placed by the snippet "Course page: who is this course for") */
.hd-audience { margin: 40px 0 48px; }
.hd-audience li { display: flex; }
.tutor-tab-item .hd-audience li::before { background-color: var(--hd-tan-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A97A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.tutor-tab-item .hd-audience .tutor-course-details-widget-title::before { background-color: var(--hd-tan-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A97A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M16 3.1a4 4 0 0 1 0 7.8M21 21v-2a4 4 0 0 0-3-3.9'/%3E%3C/svg%3E"); }

/* Sidebar: rounded white cards; full-width dark enroll button */
.single-courses .tutor-sidebar-card,
.single-courses .tutor-single-course-sidebar-more { background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: 32px; box-shadow: var(--hd-shadow-floating); overflow: hidden; }
.single-courses .tutor-sidebar-card > *,
.single-courses .tutor-single-course-sidebar-more > *,
.single-courses .tutor-sidebar-card .tutor-card-body { background: transparent; border-radius: 0; }
.single-courses .tutor-enroll-course-button,
.single-courses .tutor-sidebar-card .tutor-btn-primary { display: flex; width: 100%; justify-content: center; padding: 16px; border-radius: 12px; border-color: var(--hd-btn-dark); background: var(--hd-btn-dark); color: var(--hd-on-btn-dark); font-size: 18px; font-weight: 600; }
.single-courses .tutor-enroll-course-button:hover,
.single-courses .tutor-sidebar-card .tutor-btn-primary:hover { border-color: var(--hd-primary); background: var(--hd-primary); }
.single-courses .tutor-accordion-item { border-radius: 16px; overflow: hidden; }
/* Hide Tutor's manual "จบคอร์ส" button (courses complete automatically,
   see Tutor → Settings → Course) */
.single-courses form:has(button[name="complete_course_btn"]) { display: none; }
/* "ลงทะเบียนแล้ว <date>" as a soft green box */
.single-courses .tutor-card-body > div:has(.tutor-enrolled-info-text) {
  align-items: center; gap: 4px; padding: 12px 16px; border-radius: 12px;
  background: var(--hd-green-tint); color: var(--hd-text); font-size: 15px; font-weight: 500;
}
.single-courses .tutor-enrolled-info-text,
.single-courses .tutor-enrolled-info-date { font-size: 15px; color: var(--hd-text); }
.single-courses .tutor-card-body > div:has(.tutor-enrolled-info-text) .tutor-icon-purchase-mark { font-size: 20px; color: var(--hd-green); }

@media (max-width: 767px) {
  .single-courses .tutor-course-details-title { font-size: 32px; }
  .tutor-tab-item .tutor-course-details-widget-list { grid-template-columns: 1fr; }
}

/* ----- Article pages: spacing for headings, lists, dividers and links
   inside the post text (the Post Content widget) ----- */
.elementor-widget-theme-post-content :is(p, ul, ol, blockquote, figure, table, pre) { margin-top: 0; margin-bottom: 20px; }
.elementor-widget-theme-post-content :is(ul, ol) { padding-left: 24px; }
.elementor-widget-theme-post-content li + li { margin-top: 8px; }
.elementor-widget-theme-post-content h2 { margin: 40px 0 16px; font-size: 26px; line-height: 1.4; }
.elementor-widget-theme-post-content h3 { margin: 32px 0 12px; font-size: 20px; line-height: 1.5; }
.elementor-widget-theme-post-content > :first-child :is(h2, h3):first-child { margin-top: 0; }
.elementor-widget-theme-post-content hr { border: 0; border-top: 1px solid var(--hd-border); margin: 32px 0; }
.elementor-widget-theme-post-content a { color: var(--hd-primary-hover); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.elementor-widget-theme-post-content a:hover { color: var(--hd-text); }
.elementor-widget-theme-post-content img { height: auto; border-radius: 16px; }
@media (max-width: 767px) {
  .elementor-widget-theme-post-content h2 { margin-top: 32px; font-size: 22px; }
  .elementor-widget-theme-post-content h3 { font-size: 18px; }
}

/* Header on tablet / phone: logo on the left, then the button, then ☰ at
   the far right (so the menu card opens inside the screen) */
@media (max-width: 1024px) {
  .elementor-location-header .elementor-widget-nav-menu { order: 10; flex: 0 0 auto !important; width: auto !important; }
  .elementor-location-header .elementor-element-71ae4375 { margin-right: auto !important; }
}

/* Course page: "เรียนคอร์สนี้อีกครั้ง" (Tutor's Course Retake) as a small
   outline button under the progress box */
.single-courses .tutor-course-retake-button { display: flex; width: auto; margin: 16px auto 0; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--hd-border); background: transparent; color: var(--hd-text-muted); font-size: 14px; font-weight: 500; }
.single-courses .tutor-course-retake-button:hover { border-color: var(--hd-primary); background: transparent; color: var(--hd-primary); }

/* ===== Dark mode =====
   The snippet "Dark mode: theme switch" puts data-theme="dark" on <html>
   (the visitor's choice, or their device setting). Every colour on the site
   is an hd-* variable, so dark mode only gives those variables new values.
   New colours go into the variables first, then get a dark value here. */
html[data-theme="dark"] {
  color-scheme: dark;
  --hd-bg: #030712;
  --hd-surface: #111827;
  --hd-text: #F3F4F6;
  --hd-text-muted: #9CA3AF;
  --hd-border: #1F2937;
  --hd-primary-hover: #A7C8EA;
  --hd-primary-tint: #232F43;
  --hd-green-tint: #1F2D31;
  --hd-yellow-tint: #33322B;
  --hd-tan-tint: #2F323A;
  --hd-tan-soft: #3A3B41;
  --hd-section-tint: #0B1120;
  --hd-pill-glass: rgba(31, 41, 55, 0.8);
  --hd-btn-dark: #F3F4F6;
  --hd-on-btn-dark: #111827;
  --hd-shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  --hd-shadow-floating: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
  /* Tutor LMS (course page, course list) */
  --tutor-body-color: #F3F4F6;
  --tutor-body-color-rgb: 243, 244, 246;
  --tutor-border-color: #1F2937;
  --tutor-border-color-rgb: 31, 41, 55;
  --tutor-color-gray: #374151;
  --tutor-color-gray-rgb: 55, 65, 81;
}
/* Elementor's own global colours (body text, headings, links) */
html[data-theme="dark"] .elementor-kit-6 {
  --e-global-color-secondary: var(--hd-text-muted);
  --e-global-color-text: var(--hd-text);
  --e-global-color-accent: var(--hd-primary-hover);
  --e-global-color-230577c: var(--hd-bg);
  --e-global-color-28ef375: var(--hd-surface);
  --e-global-color-3ae7e50: var(--hd-border);
  --e-global-color-86edf82: var(--hd-primary-tint);
  --e-global-color-8228194: var(--hd-green-tint);
  --e-global-color-e7b5f50: var(--hd-yellow-tint);
  --e-global-color-33d0ab7: var(--hd-tan-tint);
  --e-global-color-e0380b4: var(--hd-section-tint);
  --e-global-color-74ceb6d: var(--hd-pill-glass);
}
html[data-theme="dark"] body { background-color: var(--hd-bg); color: var(--hd-text); }

/* Header menu */
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu--main .elementor-item { color: var(--hd-text-muted); }
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--hd-primary); }
html[data-theme="dark"] .elementor-menu-toggle { color: var(--hd-text); }

/* Form fields (checkout, account, Tutor forms) */
html[data-theme="dark"] :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea) {
  background-color: var(--hd-surface); color: var(--hd-text); border-color: var(--hd-border);
}

/* WooCommerce (cart, checkout, order pages) */
html[data-theme="dark"] .woocommerce :is(table.shop_table, table.shop_table td, table.shop_table th, .cart-collaterals .cart_totals tr td, .cart-collaterals .cart_totals tr th) { border-color: var(--hd-border); }
html[data-theme="dark"] :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) { background-color: var(--hd-surface); color: var(--hd-text); }
html[data-theme="dark"] .woocommerce-checkout #payment { background-color: var(--hd-surface); }
html[data-theme="dark"] .woocommerce-checkout #payment div.payment_box { background-color: var(--hd-primary-tint); color: var(--hd-text); }
html[data-theme="dark"] .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--hd-primary-tint); }

/* Tutor LMS cards and panels on the public course pages */
html[data-theme="dark"] :is(.tutor-card, .tutor-course-card, .tutor-accordion-item-header, .tutor-accordion-item-body, .tutor-modal-content, .tutor-table) {
  background-color: var(--hd-surface); color: var(--hd-text); border-color: var(--hd-border);
}

/* Moon / sun switch: an Elementor button with the class hd-theme-toggle
   (its size and colour are in the global class of the same name). */
.hd-theme-toggle::before {
  content: ""; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-theme="dark"] .hd-theme-toggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E");
}/* End custom CSS */