/* =================================================================
   TECHWEM Platform — public.css
   Acts as both plugin styles AND a rescue stylesheet that backstops
   any v2.2 theme changes that may not have deployed cleanly.
================================================================= */

/* ============ TOKENS (rescue if theme didn't deploy them) ============ */
:root {
  --tw-bg:           #FAFAF7;
  --tw-bg-2:         #F2F2EE;
  --tw-surface:      #FFFFFF;
  --tw-surface-2:    #F7F7F4;
  --tw-ink:          #0A0A0A;
  --tw-ink-2:        #1A1A1A;
  --tw-ink-soft:     #525252;
  --tw-ink-mute:     #8A8A8A;
  --tw-line:         rgba(10,10,10,0.08);
  --tw-line-2:       rgba(10,10,10,0.16);
  --tw-accent:       #FF5722;
  --tw-highlight:    #C7FF3D;
  --tw-r-pill:       999px;
  --tw-r-card:       20px;
}
[data-theme="dark"] {
  --tw-bg:           #0A0A0A;
  --tw-bg-2:         #131313;
  --tw-surface:      #161616;
  --tw-ink:          #FAFAFA;
  --tw-ink-soft:     #A3A3A3;
  --tw-ink-mute:     #737373;
  --tw-line:         rgba(255,255,255,0.08);
  --tw-line-2:       rgba(255,255,255,0.18);
}

/* ============ FORMS — generic plugin forms ============ */
.techwem-form { display: flex; gap: 8px; flex-wrap: wrap; }
.techwem-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 12px 16px;
  border: 1px solid var(--line-2, var(--tw-line-2));
  border-radius: var(--r-pill, var(--tw-r-pill));
  font: 500 15px "Inter", sans-serif;
}
.techwem-form button {
  padding: 12px 22px; border: 0;
  border-radius: var(--r-pill, var(--tw-r-pill));
  background: var(--accent, var(--tw-accent));
  color: #fff; font-weight: 500; cursor: pointer;
}
.techwem-form button:hover { background: var(--ink, var(--tw-ink)); }
.techwem-msg { font-size: 14px; padding: 8px 0; }
.techwem-msg.success { color: #10B981; }
.techwem-msg.error   { color: #EF4444; }


/* =================================================================
   THEME RESCUE — v2.2 CSS that may not have deployed via main.css
================================================================= */

/* ---- Hero v2 meta strip ---- */
.hero-v2__meta {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  margin: 32px 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-mute, #8A8A8A);
  letter-spacing: 0.02em;
}
.hero-v2__meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-v2__meta-item strong { color: var(--ink, #0A0A0A); font-family: "Space Grotesk", sans-serif; }
.hero-v2__meta-divider { width: 1px; height: 14px; background: rgba(10,10,10,0.32); }
.hero-v2__trust {
  margin-top: 28px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-mute, #8A8A8A);
  letter-spacing: 0.04em;
  text-align: center;
}
.hero-v2__trust strong {
  color: var(--ink-soft, #525252);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
}

/* ---- Brand __logo wordmark ---- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { flex-shrink: 0; transition: transform 0.15s; }
.brand:hover .brand__logo { transform: rotate(-3deg) scale(1.05); }
.brand__text {
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  letter-spacing: -0.02em !important;
  color: var(--ink, #0A0A0A);
}
.brand--footer .brand__text { color: #FAFAFA; }

/* ---- Lime gradient text variant ---- */
.grad-text-lime {
  background: linear-gradient(95deg, #C7FF3D 0%, #B8FF00 50%, #C7FF3D 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- TEAM SECTION (replaces single-author CTA) ---- */
.team-cta {
  padding: 100px 0;
  background: #0A0A0A !important;
  color: #FAFAFA !important;
  position: relative;
  overflow: hidden;
}
.team-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,87,34,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(199,255,61,0.10), transparent 60%);
  pointer-events: none;
}
.team-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.team-cta__inner { position: relative; z-index: 1; }
.team-cta .section__title { color: #FAFAFA !important; }
.team-cta .section__sub { color: rgba(255,255,255,0.72) !important; }
.team-cta .eyebrow {
  background: rgba(255,255,255,0.04) !important;
  color: rgba(255,255,255,0.60) !important;
  border-color: rgba(255,255,255,0.10) !important;
}
.team-cta .eyebrow .dot-pulse {
  background: #C7FF3D !important;
  box-shadow: 0 0 12px rgba(199,255,61,0.6);
}

.team-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-top: 56px;
  margin-bottom: 56px;
}
.team-card {
  padding: 32px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-card, 20px);
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
}
.team-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
  border-color: rgba(255,87,34,0.30);
}
.team-card__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FF5722, #FF8C42);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.team-card h4 {
  color: #FAFAFA !important;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.team-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.6) !important;
  line-height: 1.5;
  margin: 0;
}
.team-cta__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.team-cta .btn-outline {
  border: 1px solid rgba(255,255,255,0.20) !important;
  color: #FAFAFA !important;
  background: transparent !important;
}
.team-cta .btn-outline:hover {
  background: #FAFAFA !important;
  color: #0A0A0A !important;
  border-color: #FAFAFA !important;
}

/* ---- SOCIAL ICONS — proper flex layout ---- */
.social-icons {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.social-icon {
  width: 36px !important; height: 36px !important;
  border-radius: 10px;
  display: grid !important;
  place-items: center;
  background: rgba(10,10,10,0.04);
  border: 1px solid var(--line, rgba(10,10,10,0.08));
  color: var(--ink-soft, #525252);
  transition: all 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}
.social-icon svg { width: 16px !important; height: 16px !important; }
.social-icon:hover {
  background: var(--ink, #0A0A0A);
  color: var(--bg, #FAFAF7);
  border-color: var(--ink, #0A0A0A);
  transform: translateY(-2px);
}
.social-icon--youtube:hover  { background: #FF0000 !important; color: #FFF !important; border-color: #FF0000 !important; }
.social-icon--linkedin:hover { background: #0A66C2 !important; color: #FFF !important; border-color: #0A66C2 !important; }
.social-icon--twitter:hover  { background: #000 !important; color: #FFF !important; border-color: #000 !important; }
.social-icon--facebook:hover { background: #1877F2 !important; color: #FFF !important; border-color: #1877F2 !important; }
.social-icon--instagram:hover { background: #E1306C !important; color: #FFF !important; border-color: #E1306C !important; }
.social-icon--whatsapp:hover { background: #25D366 !important; color: #FFF !important; border-color: #25D366 !important; }
.social-icon--tiktok:hover   { background: #FF0050 !important; color: #FFF !important; border-color: #FF0050 !important; }

/* Header social icons — no border background, smaller */
.social-icons--header { gap: 4px; padding-right: 8px; border-right: 1px solid var(--line, rgba(10,10,10,0.08)); margin-right: 4px; }
.social-icons--header .social-icon {
  width: 32px !important; height: 32px !important;
  background: transparent !important;
  border: 0 !important;
  color: #8A8A8A !important;
}
.social-icons--header .social-icon svg { width: 15px !important; height: 15px !important; }
.social-icons--header .social-icon:hover {
  background: rgba(10,10,10,0.04) !important;
  color: #0A0A0A !important;
  transform: none !important;
}

/* Footer social icons — dark variant */
.footer .social-icons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  margin-top: 24px;
  gap: 8px !important;
}
.footer .social-icon {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.7) !important;
}
.footer .social-icon:hover { background: #FF5722 !important; color: #FFF !important; border-color: #FF5722 !important; }


/* ---- FALLBACK: hide header__social on smaller screens ---- */
.header__social { display: none; }
@media (min-width: 1100px) { .header__social { display: flex; } }
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr !important; }
  .hero-v2__meta { flex-direction: column; gap: 8px; }
  .hero-v2__meta-divider { display: none; }
}


/* =================================================================
   WP COMMENT FORM — modernize the unstyled comment area
================================================================= */
.comments-area {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 40px 0;
  border-top: 1px solid var(--line, rgba(10,10,10,0.08));
}
.comments-title, .comment-reply-title {
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 24px !important;
  color: var(--ink, #0A0A0A) !important;
}
.comment-form {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, rgba(10,10,10,0.08));
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.comment-form p {
  margin: 0 0 16px;
}
.comment-form label {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft, #525252);
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  background: var(--bg, #FAFAF7);
  border: 1px solid var(--line-2, rgba(10,10,10,0.16));
  border-radius: 999px;
  color: var(--ink, #0A0A0A);
  outline: none;
  transition: all 0.15s;
}
.comment-form textarea {
  border-radius: 14px !important;
  min-height: 120px;
  resize: vertical;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--ink, #0A0A0A);
  background: var(--surface, #FFFFFF);
  box-shadow: 0 0 0 4px rgba(10,10,10,0.06);
}
.comment-form .form-submit {
  margin-top: 8px;
}
.comment-form input[type="submit"] {
  display: inline-flex !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 13px 24px !important;
  background: var(--ink, #0A0A0A) !important;
  color: var(--bg, #FAFAF7) !important;
  border: 0 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  letter-spacing: -0.01em !important;
  transition: all 0.15s !important;
  width: auto !important;
  text-shadow: none !important;
}
.comment-form input[type="submit"]:hover {
  background: var(--accent, #FF5722) !important;
  transform: translateY(-1px);
}
.comment-form .form-allowed-tags { display: none; }
.comment-form .comment-form-cookies-consent {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-soft, #525252);
}
.comment-form .comment-form-cookies-consent input { width: auto !important; padding: 0 !important; }

.comment-list { padding: 0; margin: 32px 0 0; list-style: none; }
.comment-list li.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--line, rgba(10,10,10,0.08));
  list-style: none;
}
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author cite {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #0A0A0A);
  font-style: normal;
}
.comment-meta { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-mute, #8A8A8A); }
.comment-content { font-size: 15px; line-height: 1.6; color: var(--ink-2, #1A1A1A); }
.reply { margin-top: 12px; }
.comment-reply-link {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  color: var(--accent, #FF5722);
  text-decoration: none;
}


/* =================================================================
   BLOG INDEX RESCUE — if home.php didn't deploy, force page 1709
   to render posts via JS using REST API
================================================================= */
body.page-id-1709 .post-content,
body.page-id-1709 .page-content { display: none; }
.tw-blog-rescue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0;
  margin: 0 auto 80px;
  max-width: 1280px;
  padding: 0 28px;
}
.tw-blog-rescue article {
  background: var(--bg, #FAFAF7);
  border: 1px solid var(--line, rgba(10,10,10,0.08));
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
  display: flex;
  flex-direction: column;
}
.tw-blog-rescue article:hover {
  transform: translateY(-3px);
  border-color: var(--ink, #0A0A0A);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
.tw-blog-rescue a { text-decoration: none; color: inherit; display: block; }
.tw-blog-rescue__media {
  aspect-ratio: 16 / 10;
  position: relative;
  background-size: cover;
  background-position: center;
}
.tw-blog-rescue__media::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--ink, #0A0A0A), rgba(10,10,10,0.6));
  opacity: 0.6;
}
.tw-blog-rescue__cat {
  position: absolute; top: 16px; left: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: var(--ink, #0A0A0A);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 1;
}
.tw-blog-rescue__body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; }
.tw-blog-rescue__date {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-mute, #8A8A8A);
  margin-bottom: 12px;
}
.tw-blog-rescue h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink, #0A0A0A);
  margin: 0 0 10px;
}
.tw-blog-rescue p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft, #525252);
  margin: 0 0 16px;
  flex: 1;
}
.tw-blog-rescue__link {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent, #FF5722);
  margin-top: auto;
}
@media (max-width: 1024px) { .tw-blog-rescue { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tw-blog-rescue { grid-template-columns: 1fr; } }


/* =================================================================
   DARK MODE FIXES — footer always dark, form fields visible
================================================================= */

/* Footer should be visually dark in BOTH light and dark mode (it's a "dark always" component) */
.footer,
[data-theme="dark"] .footer {
  background: #0A0A0A !important;
  color: rgba(255,255,255,0.65) !important;
}
.footer h5,
[data-theme="dark"] .footer h5 {
  color: #FAFAFA !important;
}
.footer ul a,
.footer p,
.footer__contact p,
[data-theme="dark"] .footer ul a,
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer__contact p {
  color: rgba(255,255,255,0.65) !important;
}
.footer ul a:hover,
[data-theme="dark"] .footer ul a:hover {
  color: #FAFAFA !important;
}
.footer__bottom,
[data-theme="dark"] .footer__bottom {
  color: rgba(255,255,255,0.45) !important;
  border-top: 1px solid rgba(255,255,255,0.10) !important;
}
.footer__top,
[data-theme="dark"] .footer__top {
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
}
.footer .brand,
.footer .brand__text,
[data-theme="dark"] .footer .brand,
[data-theme="dark"] .footer .brand__text {
  color: #FAFAFA !important;
}
.footer .brand__logo rect:first-of-type,
[data-theme="dark"] .footer .brand__logo rect:first-of-type {
  fill: #FAFAFA !important;
}
.footer__contact a,
[data-theme="dark"] .footer__contact a {
  color: rgba(255,255,255,0.85) !important;
}
.footer__contact a:hover,
[data-theme="dark"] .footer__contact a:hover {
  color: #FF5722 !important;
}

/* Footer social icons — always dark variant */
.footer .social-icon {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.7) !important;
}
.footer .social-icon:hover {
  background: #FF5722 !important;
  color: #FFF !important;
  border-color: #FF5722 !important;
}

/* Pillar--challenge dark always (also a "dark always" card) */
.pillar--challenge,
[data-theme="dark"] .pillar--challenge {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%) !important;
  color: #FAFAFA !important;
}
.pillar--challenge h3,
[data-theme="dark"] .pillar--challenge h3 {
  color: #FAFAFA !important;
}
.pillar--challenge p,
[data-theme="dark"] .pillar--challenge p {
  color: rgba(255,255,255,0.65) !important;
}
.pillar--challenge .pillar__cta,
[data-theme="dark"] .pillar--challenge .pillar__cta {
  color: #C7FF3D !important;
  border-top: 1px solid rgba(255,255,255,0.10) !important;
}

/* Team CTA always dark (we already covered this above but reinforcing) */
[data-theme="dark"] .team-cta { background: #0A0A0A !important; }


/* =================================================================
   TUTOR LMS — course archive dark-mode form/UI fixes
================================================================= */

/* Course archive layout — ensure body has light text in dark mode */
[data-theme="dark"] body { color: #C9D6D1; }

/* Tutor course catalog search input */
[data-theme="dark"] .tutor-form-control,
[data-theme="dark"] .tutor-courses-filter input,
[data-theme="dark"] .tutor-courses-filter select,
[data-theme="dark"] .tutor-form-select,
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="text"] {
  background: #161616 !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: #FAFAFA !important;
}
[data-theme="dark"] .tutor-form-control::placeholder,
[data-theme="dark"] input[type="search"]::placeholder,
[data-theme="dark"] input[type="text"]::placeholder {
  color: #737373 !important;
}
[data-theme="dark"] .tutor-form-control:focus,
[data-theme="dark"] input[type="search"]:focus,
[data-theme="dark"] input[type="text"]:focus {
  border-color: #FAFAFA !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06) !important;
}

/* Tutor LMS sidebar filter widgets */
[data-theme="dark"] .tutor-courses-filter,
[data-theme="dark"] .tutor-courses-filter-widget,
[data-theme="dark"] .tutor-widget,
[data-theme="dark"] .tutor-widget-title,
[data-theme="dark"] .tutor-widget-content {
  background: transparent !important;
  color: #C9D6D1 !important;
}
[data-theme="dark"] .tutor-courses-filter-widget label,
[data-theme="dark"] .tutor-widget label {
  color: #C9D6D1 !important;
}

/* Tutor checkbox & radio — make visible in dark mode */
[data-theme="dark"] input[type="checkbox"],
[data-theme="dark"] input[type="radio"] {
  accent-color: #FF5722 !important;
  background: #1F1F1F !important;
  border: 1px solid rgba(255,255,255,0.32) !important;
}

/* Tutor course card — ensure visibility */
[data-theme="dark"] .tutor-course,
[data-theme="dark"] .tutor-course-card,
[data-theme="dark"] .tutor-card {
  background: #161616 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #FAFAFA !important;
}
[data-theme="dark"] .tutor-course-name,
[data-theme="dark"] .tutor-course-title,
[data-theme="dark"] .tutor-card h3,
[data-theme="dark"] .tutor-card h4,
[data-theme="dark"] .tutor-card a {
  color: #FAFAFA !important;
}
[data-theme="dark"] .tutor-course-author,
[data-theme="dark"] .tutor-course-meta,
[data-theme="dark"] .tutor-card p,
[data-theme="dark"] .tutor-card span {
  color: #A3A3A3 !important;
}

/* Tutor enroll button + price */
[data-theme="dark"] .tutor-btn,
[data-theme="dark"] .tutor-btn-primary {
  background: #FF5722 !important;
  color: #FFF !important;
  border: 0 !important;
}
[data-theme="dark"] .tutor-btn:hover,
[data-theme="dark"] .tutor-btn-primary:hover {
  background: #FAFAFA !important;
  color: #0A0A0A !important;
}

/* Course archive page-hero contrast */
[data-theme="dark"] .archive-hero,
[data-theme="dark"] .page-hero,
[data-theme="dark"] .post-hero {
  background: linear-gradient(180deg, #0F2419 0%, transparent 100%) !important;
}

/* Pagination */
[data-theme="dark"] .pagination-wrap .page-numbers {
  background: #161616 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #A3A3A3 !important;
}
[data-theme="dark"] .pagination-wrap .page-numbers:hover,
[data-theme="dark"] .pagination-wrap .page-numbers.current {
  background: #FAFAFA !important;
  color: #0A0A0A !important;
  border-color: #FAFAFA !important;
}

/* Tutor LMS dropdown / select */
[data-theme="dark"] select {
  background: #161616 !important;
  color: #FAFAFA !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}
[data-theme="dark"] select option {
  background: #161616;
  color: #FAFAFA;
}

/* =================================================================
   WOOCOMMERCE + TUTOR LMS — Course Purchase Flow (v1.4.0)
================================================================= */

/* ---- Page wrapper ---- */
.woocommerce-page .woocommerce,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1000px;
  margin: 48px auto;
  padding: 0 28px;
}
.woocommerce-checkout .woocommerce { max-width: 1060px; }

/* ---- Headings ---- */
.woocommerce-page h2,
.woocommerce-page h3 {
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--tw-ink, #0A0A0A) !important;
}

/* ---- Notices ---- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 12px !important;
  border-left: 4px solid #FF5722 !important;
  padding: 14px 18px 14px 22px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
}
.woocommerce-error { border-left-color: #EF4444 !important; background: #FFF5F5 !important; }
.woocommerce-message { border-left-color: #22C55E !important; background: #F0FFF4 !important; }
[data-theme="dark"] .woocommerce-message { background: #0a1f0a !important; color: #6ee77e !important; }
[data-theme="dark"] .woocommerce-error   { background: #1f0a0a !important; color: #f87171 !important; }

/* ---- All buttons ---- */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
  background: #FF5722 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
  transition: background .2s, transform .15s !important;
  box-shadow: 0 2px 8px rgba(255,87,34,0.22) !important;
  text-decoration: none !important;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #E64A19 !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(255,87,34,0.32) !important;
}
.woocommerce .button.alt,
.woocommerce button.button.alt { background: #0A0A0A !important; box-shadow: none !important; }
.woocommerce .button.alt:hover  { background: #FF5722 !important; }

/* ---- THE PLACE ORDER BUTTON — extra prominent ---- */
.woocommerce #payment #place_order,
.woocommerce-checkout #payment #place_order,
#place_order {
  background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%) !important;
  color: #fff !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  padding: 18px 40px !important;
  width: 100% !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 6px 24px rgba(255,87,34,0.40) !important;
  transition: all .2s !important;
  margin-top: 16px !important;
  display: block !important;
  text-align: center !important;
}
#place_order:hover {
  background: linear-gradient(135deg, #E64A19 0%, #FF5722 100%) !important;
  box-shadow: 0 8px 32px rgba(255,87,34,0.55) !important;
  transform: translateY(-2px) !important;
}

/* ---- Form fields ---- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  border: 1.5px solid #E5E5E5 !important;
  border-radius: 10px !important;
  padding: 11px 15px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 0.95rem !important;
  background: #FAFAF7 !important;
  color: #0A0A0A !important;
  transition: border-color .15s, box-shadow .15s !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  outline: none !important;
  border-color: #FF5722 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255,87,34,0.12) !important;
}
.woocommerce form .form-row label {
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #525252 !important;
  margin-bottom: 5px !important;
  display: block !important;
}
.woocommerce form .form-row label .required { color: #EF4444 !important; }

/* ---- Order table ---- */
.woocommerce table.shop_table {
  border: 1px solid rgba(10,10,10,0.08) !important;
  border-radius: 14px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  font-family: "Inter", sans-serif !important;
  font-size: 0.95rem !important;
}
.woocommerce table.shop_table th {
  background: #F7F7F4 !important;
  padding: 14px 18px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #525252 !important;
  border-bottom: 1px solid rgba(10,10,10,0.06) !important;
}
.woocommerce table.shop_table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(10,10,10,0.05) !important;
  vertical-align: middle !important;
}
.woocommerce table.shop_table tfoot tr:last-child td,
.woocommerce table.shop_table tfoot tr:last-child th {
  border-bottom: none !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: #0A0A0A !important;
}

/* ---- Two-column checkout layout enhancement ---- */
.woocommerce-checkout #customer_details { margin-bottom: 32px; }
.woocommerce-checkout .col2-set { gap: 24px; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 16px;
  padding: 28px 24px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.woocommerce-checkout #order_review_heading {
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #0A0A0A !important;
  margin-bottom: 16px !important;
}

/* ---- Payment section ---- */
.woocommerce-checkout #payment {
  background: #FFFFFF !important;
  border: 1px solid rgba(10,10,10,0.08) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid rgba(10,10,10,0.08) !important;
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
  list-style: none !important;
  padding-left: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods li {
  padding: 12px 16px !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
  border: 1.5px solid #E5E5E5 !important;
  cursor: pointer !important;
  transition: border-color .15s, background .15s !important;
}
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
  border-color: #FF5722 !important;
  background: rgba(255,87,34,0.04) !important;
}
.woocommerce-checkout #payment ul.payment_methods label {
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  color: #0A0A0A !important;
  margin-left: 8px !important;
}
.woocommerce-checkout #payment div.payment_box {
  background: #F7F7F4 !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  margin-top: 10px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #525252 !important;
  border: none !important;
}
.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #F7F7F4 !important;
}
/* BACS bank transfer details table */
#payment .wc-bacs-bank-details,
.wc-bacs-bank-details { margin-top: 12px; }
.wc-bacs-bank-details-account-name {
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #0A0A0A !important;
  margin: 10px 0 6px !important;
}
.wc-bacs-bank-details table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.wc-bacs-bank-details table tr { border-bottom: 1px solid rgba(10,10,10,0.06); }
.wc-bacs-bank-details table td { padding: 8px 4px; font-size: 13px; }
.wc-bacs-bank-details table td:first-child {
  font-weight: 600; color: #525252; width: 42%;
}
.wc-bacs-bank-details table td:last-child { color: #0A0A0A; font-family: "JetBrains Mono", monospace; }

/* ---- Stripe card element ---- */
#stripe-card-element,
.StripeElement {
  border: 1.5px solid #E5E5E5 !important;
  border-radius: 10px !important;
  padding: 13px 15px !important;
  background: #FAFAF7 !important;
  transition: border-color .15s, box-shadow .15s !important;
}
.StripeElement--focus {
  border-color: #FF5722 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255,87,34,0.12) !important;
}

/* ---- Cart item remove link ---- */
.woocommerce-cart table.cart a.remove {
  color: #EF4444 !important;
  font-size: 1.2rem !important;
}
.woocommerce-cart table.cart a.remove:hover { color: #DC2626 !important; background: none !important; }

/* ---- Coupon / totals row ---- */
.woocommerce-cart .cart-collaterals { margin-top: 24px; }
.woocommerce .cart_totals,
.woocommerce .cart-collaterals .cart_totals {
  background: #FFFFFF !important;
  border: 1px solid rgba(10,10,10,0.08) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

/* ---- Tutor LMS course single page ---- */
.tutor-course-details-page .tutor-sidebar-card {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10) !important;
}

/* Enroll button */
.tutor-enroll-box .tutor-btn,
.tutor-course-sidebar .tutor-btn-primary,
.tutor-enroll-btn,
.tutor-btn.tutor-btn-primary {
  background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 14px 24px !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(255,87,34,0.30) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all .2s !important;
}
.tutor-enroll-box .tutor-btn:hover,
.tutor-btn.tutor-btn-primary:hover {
  background: linear-gradient(135deg, #E64A19 0%, #FF5722 100%) !important;
  box-shadow: 0 6px 24px rgba(255,87,34,0.45) !important;
  transform: translateY(-1px) !important;
}

/* Course price display */
.tutor-course-price .tutor-fs-4,
.tutor-course-price ins,
.tutor-course-price .amount {
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: #FF5722 !important;
}

/* Content protection overlay message */
.tw-content-locked {
  background: linear-gradient(135deg, #FF5722 0%, #6B21A8 100%);
  color: #fff;
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
  margin: 32px 0;
}
.tw-content-locked h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.tw-content-locked p { opacity: 0.9; margin-bottom: 20px; }
.tw-content-locked .tw-btn-enroll {
  display: inline-block;
  background: #fff;
  color: #FF5722;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.tw-content-locked .tw-btn-enroll:hover { opacity: 0.9; }

/* ---- Video player — no download UI ---- */
video::-webkit-media-controls-download-button { display: none !important; }
video::-webkit-media-controls-enclosure { overflow: hidden; }
video { pointer-events: auto; user-select: none; }

/* ---- My Account page ---- */
.woocommerce-account .woocommerce {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.woocommerce-MyAccount-navigation {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  padding: 16px 12px;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.woocommerce-MyAccount-navigation ul { padding: 0; list-style: none; margin: 0; }
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #525252;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a {
  background: rgba(255,87,34,0.08);
  color: #FF5722;
}
.woocommerce-MyAccount-content { flex: 1; }

/* ---- Order received / thank you ---- */
.woocommerce-order-received .woocommerce-thankyou-order-received,
.woocommerce-order-received h2 { color: #FF5722 !important; }
.woocommerce-order-details,
.woocommerce-customer-details {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.woocommerce-notice--success {
  border-left: 4px solid #22C55E;
  background: #F0FFF4;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
}
/* BACS "pay now" notice on thank you page */
.woocommerce-bacs-bank-details {
  background: #F0F9FF;
  border: 1.5px solid #93C5FD;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
}

/* ---- Login / Register forms ---- */
.woocommerce .woocommerce-form-login,
.woocommerce .woocommerce-form-register {
  background: #FFFFFF;
  border: 1.5px solid rgba(10,10,10,0.08);
  border-radius: 16px;
  padding: 36px;
  max-width: 480px;
  margin: 32px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.woocommerce-form__label-for-checkbox { font-size: 14px !important; }

/* ---- Dark mode WC overrides ---- */
[data-theme="dark"] .woocommerce form .form-row input.input-text,
[data-theme="dark"] .woocommerce form .form-row select,
[data-theme="dark"] .woocommerce form .form-row textarea {
  background: #161616 !important;
  color: #FAFAFA !important;
  border-color: rgba(255,255,255,0.14) !important;
}
[data-theme="dark"] .woocommerce form .form-row input.input-text:focus,
[data-theme="dark"] .woocommerce form .form-row select:focus {
  border-color: #FF5722 !important;
  background: #1e1e1e !important;
}
[data-theme="dark"] .woocommerce form .form-row label { color: #A3A3A3 !important; }
[data-theme="dark"] .woocommerce table.shop_table,
[data-theme="dark"] .woocommerce-checkout #payment {
  background: #161616 !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: #FAFAFA !important;
}
[data-theme="dark"] .woocommerce table.shop_table th {
  background: #1e1e1e !important;
  color: #A3A3A3 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] .woocommerce table.shop_table td { color: #FAFAFA !important; border-color: rgba(255,255,255,0.06) !important; }
[data-theme="dark"] .woocommerce-checkout .col2-set .col-1,
[data-theme="dark"] .woocommerce-checkout .col2-set .col-2,
[data-theme="dark"] .woocommerce .cart_totals,
[data-theme="dark"] .woocommerce-MyAccount-navigation,
[data-theme="dark"] .woocommerce-order-details,
[data-theme="dark"] .woocommerce-customer-details {
  background: #161616 !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: #FAFAFA !important;
}
[data-theme="dark"] .woocommerce-checkout #payment ul.payment_methods li {
  border-color: rgba(255,255,255,0.12) !important;
}
[data-theme="dark"] .woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
  border-color: #FF5722 !important;
  background: rgba(255,87,34,0.08) !important;
}
[data-theme="dark"] .woocommerce-checkout #payment ul.payment_methods label { color: #FAFAFA !important; }
[data-theme="dark"] .woocommerce-checkout #payment div.payment_box {
  background: #1f1f1f !important;
  color: #A3A3A3 !important;
}
[data-theme="dark"] .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #1f1f1f !important; }
[data-theme="dark"] .StripeElement {
  background: #1a1a1a !important;
  border-color: rgba(255,255,255,0.15) !important;
}
[data-theme="dark"] .woocommerce-MyAccount-navigation ul li a { color: #A3A3A3 !important; }
[data-theme="dark"] .woocommerce-MyAccount-navigation ul li a:hover,
[data-theme="dark"] .woocommerce-MyAccount-navigation ul li.is-active a {
  background: rgba(255,87,34,0.15) !important;
  color: #FF8A65 !important;
}
[data-theme="dark"] .woocommerce-notice--success { background: #0a1f0a !important; color: #6ee77e !important; }

/* ---- WC quantity +/- buttons — keep contained, fix misalignment ---- */
.woocommerce .quantity {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
}
.woocommerce .quantity .qty {
  width: 64px !important;
  text-align: center !important;
  padding: 8px !important;
  border: 1.5px solid #E5E5E5 !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  background: #FAFAF7 !important;
  margin: 0 !important;
}
/* Prevent any stray +/- icons from floating outside their container */
.woocommerce .quantity input[type="number"] { -moz-appearance: textfield !important; }
.woocommerce .quantity input[type="number"]::-webkit-inner-spin-button,
.woocommerce .quantity input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; margin: 0 !important; }

/* Fix: WC table cart +/- buttons sometimes rendered as text outside of flex */
.woocommerce-cart table.cart td.quantity,
.woocommerce-checkout table.cart td.quantity { text-align: center !important; }

/* Fix icon misalignment — any stray ::before/::after glyphs in WC order areas */
.woocommerce-order-overview li::before,
.woocommerce-order-overview li::after,
.woocommerce-customer-details address::before,
.woocommerce-column--billing-address::before,
.woocommerce-column--shipping-address::before {
  vertical-align: middle !important;
  line-height: 1 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  margin-right: 6px !important;
  display: inline-block !important;
}

/* Fix WC order summary icons on thank-you page */
.woocommerce-order-overview {
  list-style: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin: 0 0 24px !important;
}
.woocommerce-order-overview li {
  background: #F7F7F4 !important;
  border-radius: 10px !important;
  padding: 12px 18px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  border: 1px solid rgba(10,10,10,0.07) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.woocommerce-order-overview li strong {
  font-family: "Space Grotesk", sans-serif !important;
  color: #0A0A0A !important;
  display: block !important;
  font-size: 15px !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .woocommerce-page .woocommerce,
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce { padding: 0 16px; margin: 24px auto; }
  .woocommerce-account .woocommerce { flex-direction: column; }
  .woocommerce-MyAccount-navigation { min-width: 100%; }
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 { padding: 20px 16px !important; }
  .woocommerce-order-overview { flex-direction: column; gap: 10px; }
}

