/*
Theme Name: Trang Trieu Yoga
Author: Trang Trieu Yoga
Description: Premium medical wellness eLearning theme for LearnPress and Elementor.
Version: 1.0.0
Text Domain: trang-trieu-yoga
*/

:root {
  --tty-red: #e63946;
  --tty-bg: #f8f9fa;
  --tty-accent: #ffb703;
  --tty-ink: #14213d;
  --tty-muted: #667085;
  --tty-line: #e6e8ec;
  --tty-card: #ffffff;
  --tty-radius: 8px;
  --tty-shadow: 0 18px 45px rgba(20, 33, 61, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--tty-ink);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Be Vietnam Pro", Inter, sans-serif;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 16px;
}

a { color: var(--tty-red); text-decoration: none; }
img { max-width: 100%; height: auto; }

.tty-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.tty-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--tty-line);
  backdrop-filter: blur(16px);
}

.tty-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.tty-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tty-ink);
  font: 800 20px/1 "Be Vietnam Pro", sans-serif;
}

.tty-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--tty-red);
  font-weight: 900;
}

.tty-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.tty-menu a { color: var(--tty-ink); }
.tty-menu a:hover { color: var(--tty-red); }

.tty-header-actions { display: flex; align-items: center; gap: 10px; }

.tty-account-menu {
  position: relative;
}

.tty-account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(230,57,70,.28);
  border-radius: 8px;
  background: #fff;
  color: var(--tty-ink);
  font: 800 14px/1 "Be Vietnam Pro", sans-serif;
  cursor: pointer;
  list-style: none;
}

.tty-account-menu summary::-webkit-details-marker {
  display: none;
}

.tty-account-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tty-red);
  color: #fff;
  text-transform: uppercase;
}

.tty-account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
  display: grid;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--tty-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--tty-shadow);
}

.tty-account-dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--tty-ink);
  font-weight: 800;
  font-size: 14px;
}

.tty-account-dropdown a:hover {
  background: var(--tty-bg);
  color: var(--tty-red);
}

.tty-btn,
button.tty-btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--tty-red);
  color: #fff;
  font: 800 14px/1 "Be Vietnam Pro", sans-serif;
  cursor: pointer;
}

.tty-btn:hover { color: #fff; filter: brightness(.96); }
.tty-btn.secondary { background: #fff; color: var(--tty-red); border-color: rgba(230,57,70,.28); }
.tty-btn.dark { background: var(--tty-ink); }

.tty-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.86) 48%, rgba(255,255,255,.52) 100%),
    url("https://images.unsplash.com/photo-1545205597-3d9d02c29597?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.tty-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(280px, 1fr);
  gap: 40px;
  align-items: center;
  padding: 54px 0;
}

.tty-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,183,3,.18);
  color: #8a5f00;
  font-weight: 800;
  font-size: 13px;
}

.tty-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  max-width: 780px;
}

.tty-hero p {
  max-width: 590px;
  color: #344054;
  font-size: 18px;
  margin: 0 0 28px;
}

.tty-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tty-stat-panel {
  align-self: end;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(230,232,236,.8);
  border-radius: 8px;
  box-shadow: var(--tty-shadow);
  padding: 18px;
}

.tty-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tty-stat {
  padding: 14px;
  border-radius: 8px;
  background: var(--tty-bg);
}

.tty-stat strong {
  display: block;
  font-size: 22px;
  color: var(--tty-red);
  font-family: "Be Vietnam Pro", sans-serif;
}

.tty-section { padding: 78px 0; }
.tty-band { background: var(--tty-bg); }

.tty-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.tty-section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.tty-section-head p { max-width: 560px; margin: 0; color: var(--tty-muted); }

.tty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tty-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tty-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tty-card,
.lp-course,
.product,
.post {
  border: 1px solid var(--tty-line);
  border-radius: 8px;
  background: var(--tty-card);
  box-shadow: 0 10px 30px rgba(20,33,61,.06);
  overflow: hidden;
}

.tty-card-pad { padding: 22px; }
.tty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  margin-bottom: 18px;
  background: rgba(230,57,70,.1);
  color: var(--tty-red);
  font-weight: 900;
}

.tty-course-img {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
}

.tty-course-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--tty-muted);
  font-size: 13px;
  font-weight: 700;
}

.tty-price {
  color: var(--tty-red);
  font: 900 22px/1 "Be Vietnam Pro", sans-serif;
}

.tty-testimonial {
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.tty-stars { color: var(--tty-accent); font-size: 18px; margin-bottom: 12px; }
.tty-person { margin-top: auto; font-weight: 900; }

.tty-teacher {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: center;
}

.tty-teacher img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.tty-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tty-pricing .featured { border: 2px solid var(--tty-red); transform: translateY(-8px); }

.tty-lesson-list {
  display: grid;
  gap: 12px;
}

.tty-inline-curriculum {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--tty-line);
}

.tty-lesson-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--tty-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20,33,61,.05);
}

.tty-lesson-index {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(230,57,70,.1);
  color: var(--tty-red);
  font: 900 15px/1 "Be Vietnam Pro", sans-serif;
}

.tty-lesson-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tty-lesson-title h3 {
  margin: 0;
  font-size: 18px;
}

.tty-lesson-main p {
  margin: 8px 0 0;
  color: var(--tty-muted);
}

.tty-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(255,183,3,.2);
  color: #8a5f00;
  font-size: 12px;
  font-weight: 900;
}

.tty-lesson-action {
  display: flex;
  justify-content: flex-end;
}

.tty-lp-visible-items {
  display: grid !important;
  gap: 8px;
  padding: 12px !important;
  margin: 0 !important;
}

.tty-lp-visible-items .course-item {
  list-style: none;
  border: 1px solid var(--tty-line);
  border-radius: 8px;
  background: #fff;
}

.tty-lp-visible-items .section-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--tty-ink);
  font-weight: 800;
}

.tty-lp-visible-items .course-item-preview {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(255,183,3,.2);
  color: #8a5f00;
  font-size: 12px;
  font-weight: 900;
}

.tty-lp-visible-items .course-item-locked {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(20,33,61,.08);
  color: var(--tty-muted);
  font-size: 12px;
  font-weight: 900;
}

.tty-page-title {
  padding: 58px 0;
  background: var(--tty-bg);
  border-bottom: 1px solid var(--tty-line);
}

.tty-content {
  padding: 54px 0;
}

.tty-footer {
  background: #101828;
  color: #d0d5dd;
  padding: 44px 0;
}

.tty-footer a { color: #fff; }
.tty-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}

.tty-form input,
.tty-form textarea,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--tty-line);
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
}

.tty-form textarea { min-height: 140px; }
.tty-stack { display: grid; gap: 14px; }

@media (max-width: 900px) {
  .tty-menu { display: none; }
  .tty-hero { min-height: auto; }
  .tty-hero-grid,
  .tty-teacher,
  .tty-footer-grid { grid-template-columns: 1fr; }
  .tty-grid,
  .tty-grid.three,
  .tty-grid.two,
  .tty-pricing { grid-template-columns: 1fr; }
  .tty-lesson-row { grid-template-columns: 1fr; }
  .tty-lesson-action { justify-content: flex-start; }
  .tty-stat-row { grid-template-columns: 1fr; }
  .tty-pricing .featured { transform: none; }
}

@media (max-width: 560px) {
  .tty-container { width: min(100% - 24px, 1180px); }
  .tty-header-actions .dark { display: none; }
  .tty-header-actions { gap: 6px; }
  .tty-btn,
  button.tty-btn,
  input[type="submit"] { padding: 0 12px; }
  .tty-section { padding: 54px 0; }
  .tty-section-head { display: block; }
}
