:root {
  --red: #ff0000;
  --red-dark: #cc0000;
  --black: #000000;
  --dark: #121212;
  --dark-2: #1a1a1a;
  --white: #ffffff;
  --gray-100: #f4f4f4;
  --gray-200: #e3e5eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #212327;
  --navy: #1e2a4a;
  --container: 1200px;
  --font: "Heebo", "Inter", system-ui, sans-serif;
  --font-heading: "Poppins", "Heebo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
}

.skip-link:focus {
  left: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  text-decoration: none;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--black);
  color: var(--red);
  border-color: var(--red);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--red);
}

.btn-ghost:hover {
  background: var(--red);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  width: 100%;
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.link-btn {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 4rem 1rem;
}

.hero h1,
.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-about h2 span {
  color: var(--red);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-gray {
  background: var(--gray-100);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
}

.section h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-card .feature-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  font-weight: 600;
}

.feature-text {
  padding: 1.5rem 0;
}

.text-center {
  text-align: center;
}

/* Community CTA */
.community-cta {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/features/guided-by-experts.jpg") center/cover;
  color: var(--white);
  text-align: center;
  padding: 5rem 1rem;
}

.community-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

/* Courses */
.courses-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.course-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.course-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.course-card h3 a {
  color: var(--red);
  text-decoration: none;
}

.course-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.load-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* CTA banner */
.cta-banner {
  background: var(--gray-100);
  padding: 4rem 1rem;
  text-align: center;
}

.cta-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1,
.page-hero h2 {
  font-family: var(--font-heading);
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* About */
.about-content {
  padding: 4rem 0;
}

.about-content h2 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-image img {
  border-radius: 8px;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.contact-info h3 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.char-counter {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-align: right;
}

/* FAQ */
.faq-section {
  padding: 3rem 0 4rem;
}

.faq-category {
  margin-bottom: 2.5rem;
}

.faq-category h3 {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}

.faq-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--gray-600);
}

/* Policy */
.policy-content {
  padding: 3rem 0 4rem;
  max-width: 800px;
}

.policy-content h3 {
  margin-top: 2rem;
}

/* Get started */
.payment-form {
  max-width: 520px;
  margin: 2rem auto 4rem;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

.payment-form .note {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 1rem 0;
}

.checkbox-group {
  margin: 1rem 0;
}

.checkbox-group label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.payment-divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--gray-400);
}

/* Course detail */
.course-page {
  padding: 2rem 0 4rem;
}

.course-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.meta-sep::before {
  content: "|";
  margin-right: 0.75rem;
  color: var(--gray-400);
}

.course-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.course-hero {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.course-sidebar {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.course-stats {
  list-style: none;
  padding: 1rem 0;
  margin: 1rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.course-stats li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.course-author-box h3 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.course-outline {
  padding-left: 1.25rem;
}

.course-progress-box {
  margin-bottom: 1rem;
}

.course-progress-box h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0.5rem 0 0;
}

/* Welcome banner */
.welcome-banner {
  background: var(--red);
  color: var(--white);
  padding: 1rem 0;
  text-align: center;
}

.welcome-banner h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

/* Dashboard */
.dashboard-page {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

.dashboard-shell > h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1.5rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.dashboard-sidebar {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-nav a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  font-weight: 500;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: var(--gray-100);
  color: var(--red);
  text-decoration: none;
}

.dashboard-nav li:last-child a {
  border-bottom: none;
}

.dashboard-content h2 {
  font-family: var(--font-heading);
  margin: 0 0 1.25rem;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.dashboard-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-600);
  margin-bottom: -1px;
}

.dashboard-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.enrolled-list {
  display: grid;
  gap: 1.25rem;
}

.enrolled-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  align-items: center;
}

.enrolled-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 120px;
}

.enrolled-card-body {
  padding: 1rem 1rem 1rem 0;
}

.enrolled-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.enrolled-progress {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0 0 0.75rem;
}

.dashboard-empty {
  color: var(--gray-600);
}

.profile-list {
  margin: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.profile-row dt {
  font-weight: 600;
  color: var(--gray-600);
}

.profile-row dd {
  margin: 0;
}

/* Learn page */
body.learn-active .site-footer {
  display: none;
}

body.learn-active .chatbot {
  bottom: 1rem;
}

.learn-page {
  padding: 0;
  min-height: calc(100vh - 72px);
}

.learn-player {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 72px);
}

.learn-sidebar {
  background: #f8f9fb;
  border-right: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}

.learn-sidebar-head {
  padding: 0 1.25rem 0.75rem;
}

.learn-topic-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

.learn-topic-block {
  border-top: 1px solid var(--gray-200);
}

.learn-topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--red);
}

.learn-course-title {
  font-size: 0.95rem;
}

.learn-progress {
  font-size: 0.85rem;
  color: var(--gray-600);
  white-space: nowrap;
}

.learn-lessons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.learn-lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--gray-200);
}

.learn-lesson-item a {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
  padding: 0.85rem 1.25rem;
  color: var(--gray-800);
  text-decoration: none;
  font-size: 0.9rem;
}

.learn-lesson-item.is-active a {
  background: rgba(255, 0, 0, 0.06);
  color: var(--red);
  font-weight: 600;
}

.lesson-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.lesson-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-400);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.lesson-check.done {
  border-color: var(--red);
  background: var(--red);
}

.learn-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.learn-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  min-height: 56px;
}

.learn-back,
.learn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.learn-back:hover,
.learn-close:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.learn-topbar-title {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.learn-topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.learn-topbar-progress {
  font-size: 0.9rem;
  white-space: nowrap;
}

.learn-complete-btn {
  background: var(--white);
  color: var(--red);
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.learn-complete-btn:hover:not(:disabled) {
  background: #ffe5e5;
}

.learn-complete-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.learn-body {
  flex: 1;
  background: #eef0f4;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.learn-preview-wrap {
  width: min(100%, 860px);
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.learn-preview {
  width: 100%;
  height: auto;
  display: block;
}

.learn-download {
  min-width: 200px;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-info {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-info a {
  color: var(--white);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.footer-nav a {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

/* Login modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: var(--white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.modal-image {
  background-size: cover;
  background-position: center;
}

.modal-content {
  padding: 2rem 1.5rem;
}

.modal-tabs {
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.modal-tab {
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--red);
  color: var(--gray-800);
}

.modal-form .form-group {
  position: relative;
}

.modal-form .form-group input {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.modal-form .input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
}

.modal-form .form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.form-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
}

.chatbot-window {
  width: 320px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.chatbot-window[hidden] {
  display: none;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

.chatbot-body {
  padding: 1rem;
}

.chatbot-message {
  background: var(--gray-100);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.chatbot-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chatbot-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
}

.chatbot-btn:hover {
  background: var(--red-dark);
}

.chatbot-reply {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 0.85rem;
}

.chatbot-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4);
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 7px;
}

body::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #f0f0f0;
}

body::-webkit-scrollbar-thumb {
  border-radius: 50px;
  background: #dfdbdb;
}

/* Responsive */
@media (max-width: 900px) {
  .two-col,
  .contact-grid,
  .course-layout,
  .modal-grid,
  .feature-grid,
  .dashboard-layout,
  .learn-player,
  .enrolled-card {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
  }

  .modal-image {
    display: none;
  }

  .course-sidebar {
    position: static;
  }

  .learn-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .learn-topbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .learn-topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .learn-topbar-progress {
    width: 100%;
  }

  .enrolled-card-body {
    padding: 0 1rem 1rem;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .chatbot-window {
    width: calc(100vw - 2rem);
  }
}
