/* SkyMed homepage extra styles — sections beyond the basic page--front layout */

/* Hero trust line */
.hero-trust {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  font-weight: 500;
}

.section-narrow {
  max-width: 880px;
  margin: 0 auto;
}

.section-text {
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.subsection-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 2rem 0 1rem;
}

.text-center { text-align: center; }

/* ============= STATS SECTION ============= */
.stats-section {
  position: relative;
  padding: 3rem 0;
  background: #fff;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  overflow: hidden;
}

.stats-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--skymed), transparent);
  opacity: 0.25;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item { text-align: center; }

.stat-value {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--skymed) 0%, var(--skymed-800) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
}

/* ============= LISTS ============= */
.dot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dot-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-700);
  margin-bottom: 0.875rem;
  line-height: 1.6;
}
.dot-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--skymed);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-bottom: 0.625rem;
  line-height: 1.55;
}
.bullet-list li::before {
  content: '•';
  color: var(--skymed);
  font-weight: 700;
  flex-shrink: 0;
}
.bullet-list--muted li::before { color: var(--slate-400); }

.info-block-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}
.info-block--rounded { border-radius: 12px; border-left: none; border: 1px solid var(--skymed-200); }

/* ============= LEGAL CARDS ============= */
.legal-grid {
  display: grid;
  gap: 1.5rem;
}
.legal-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem;
}
.legal-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.875rem;
}

/* ============= SUBJECTS GRID ============= */
.subjects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .subjects-grid { grid-template-columns: repeat(3, 1fr); }
}
.subject-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem;
}
.subject-icon {
  width: 48px;
  height: 48px;
  background: var(--skymed-100);
  color: var(--skymed);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.subject-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}
.subject-card p {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ============= WHO GRID ============= */
.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}
.who-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem;
}
.who-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

/* ============= FORMS GRID ============= */
.forms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .forms-grid { grid-template-columns: repeat(3, 1fr); }
}
.form-card {
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem;
}
.form-card--accent { background: var(--skymed-50); }
.form-card--muted { background: var(--slate-50); }
.form-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}
.form-card-sub {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
}

.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(89, 141, 209, 0.05);
  border: 1px solid rgba(89, 141, 209, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--slate-600);
}
.callout strong { color: var(--slate-900); }

/* ============= BPR TABLE ============= */
.bpr-table {
  width: 100%;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  border-collapse: collapse;
  margin: 0 0 2rem;
}
.bpr-table thead {
  background: var(--skymed);
}
.bpr-table th {
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: #fff;
  font-size: 0.875rem;
  text-align: left;
}
.bpr-table td {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--slate-100);
  color: var(--slate-700);
  font-size: 0.95rem;
}
.bpr-table tbody tr:nth-child(even) { background: var(--slate-50); }

/* ============= DIRECTIONS GRID ============= */
.directions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .directions-grid { grid-template-columns: repeat(3, 1fr); }
}
.direction-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--slate-600);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.5;
}
.direction-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--skymed);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}

/* ============= PORTFOLIO ============= */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
.portfolio-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem;
}
.portfolio-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.company-line {
  margin-top: 2rem;
  text-align: right;
  font-size: 0.875rem;
  color: var(--slate-500);
  font-style: italic;
}

/* ============= FINAL CTA ============= */
.cta-final {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(89, 141, 209, 0.2);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}
.cta-badge svg { color: var(--skymed); }
.cta-final h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}
.cta-final p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; }
}
.cta-buttons .btn-lg { max-width: 280px; }

.btn-outline--light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline--light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Hero background image — desktop only */
.hero { position: relative; }
.hero-bg-image {
  display: none;
}
@media (min-width: 1024px) {
  .hero-bg-image {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/3938022/pexels-photo-3938022.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=900&w=900');
    background-size: cover;
    background-position: center;
  }
  .hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.4));
  }
}
/* SkyMed Courses styles */

.courses-hero {
  background: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 100%);
  padding: 4rem 0 3rem;
}
.courses-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.75rem;
  color: #0f172a;
}
.courses-hero p {
  font-size: 1.125rem;
  color: #475569;
  margin: 0;
}

.courses-section { padding: 3rem 0 5rem; }

.courses-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.courses-search-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.courses-search-input:focus { outline: none; border-color: #3b82f6; }

.courses-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.courses-filter {
  flex: 1 1 200px;
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
}
.courses-reset-btn {
  padding: 0.625rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.courses-reset-btn:hover { background: #f1f5f9; }

.courses-count {
  color: #64748b;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.course-card-image-link { display: block; }
.course-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge--specialty { background: rgba(59, 130, 246, 0.95); }
.badge--format    { background: rgba(15, 23, 42, 0.85); }
.badge--featured  { background: rgba(234, 88, 12, 0.95); }

.course-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card-title-link { text-decoration: none; color: inherit; }
.course-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.course-card-title-link:hover .course-card-title { color: #3b82f6; }
.course-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card-instructor {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
}
.course-card-instructor-name { font-weight: 600; display: block; }
.course-card-instructor-title { color: #94a3b8; font-size: 0.8rem; }

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: #64748b;
}

.course-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.price-free {
  font-size: 1rem;
  font-weight: 600;
  color: #16a34a;
}
.course-card-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
}

.courses-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 1.125rem;
}

/* === Course detail === */
.course-detail { padding: 3rem 0 5rem; }
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #3b82f6;
  text-decoration: none;
}
.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .course-detail-grid { grid-template-columns: 1fr; }
}

.course-detail-image {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.course-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-detail-title {
  font-size: 2rem;
  margin: 0 0 0.75rem;
  color: #0f172a;
}
.course-detail-instructor {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 1.5rem;
}
.course-detail-instructor strong { display: block; color: #0f172a; }
.course-detail-instructor span { font-size: 0.875rem; color: #94a3b8; }
.course-detail-description {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.course-detail-program {
  list-style: none;
  padding: 0;
  margin: 0;
}
.course-detail-program li {
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.5rem;
}

.course-detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  position: sticky;
  top: 1.5rem;
}
.course-detail-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}
.course-detail-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.course-detail-meta li {
  padding: 0.625rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #0f172a;
}
.course-detail-meta li span {
  color: #64748b;
  margin-right: 0.5rem;
}
.btn-block { display: block; text-align: center; }

/* === ABOUT PAGE === */
.about-hero {
  background: var(--slate-50, #f8fafc);
  border-bottom: 1px solid var(--slate-200, #e2e8f0);
  padding: 4rem 0;
}
.about-hero-inner { max-width: 760px; }
.about-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--slate-900, #0f172a);
  margin: 0.75rem 0 1.5rem;
  line-height: 1.15;
}
.about-hero-text {
  font-size: 1.125rem;
  color: var(--slate-600, #475569);
  line-height: 1.7;
}

.about-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .about-2col { grid-template-columns: 1fr 1fr; align-items: center; }
}
.about-2col-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}
.about-2col--reverse .about-2col-image { order: 2; }
@media (min-width: 900px) {
  .about-2col--reverse .about-2col-image { order: 0; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: #fff;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.value-card .subject-icon { margin: 0 auto 1rem; }
.value-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
  margin-bottom: 0.5rem;
}
.value-card p {
  font-size: 0.875rem;
  color: var(--slate-600, #475569);
  line-height: 1.5;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  color: var(--slate-600, #475569);
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  color: var(--skymed, #598dd1);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.about-stats-dark {
  background: #0f172a;
  padding: 4rem 0;
}
.about-stats-dark .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .about-stats-dark .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.about-stats-dark .stat-item { text-align: center; }
.stat-value-light {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.stat-label-light {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* FAQ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-section { margin-bottom: 2rem; }
.faq-section-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.faq-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--skymed, #598dd1);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  font-size: 0.875rem;
}
.faq-section-head h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
  margin: 0;
}
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item.open {
  background: #eef4fb;
  border-left: 4px solid var(--skymed, #598dd1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.faq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-300, #cbd5e1);
  flex-shrink: 0;
  transition: background 0.2s;
}
.faq-item.open .faq-dot { background: var(--skymed, #598dd1); }
.faq-q-text {
  flex: 1;
  font-weight: 500;
  color: var(--slate-900, #0f172a);
}
.faq-item.open .faq-q-text { color: var(--skymed-800, #2d5494); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--slate-400, #94a3b8);
  transition: transform 0.3s, color 0.2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--skymed, #598dd1);
}
.faq-a {
  display: none;
  padding: 0 1.25rem 1.125rem 2.625rem;
  font-size: 0.875rem;
  color: var(--slate-600, #475569);
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

.team-block { max-width: 760px; margin: 0 auto; text-align: center; }

/* === CONTACTS PAGE === */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}
.contacts-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
  margin: 0 0 2rem;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--skymed-100, #d4e3f5);
  color: var(--skymed, #598dd1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-line h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900, #0f172a);
  margin: 0 0 0.25rem;
}
.contact-line a {
  color: var(--slate-600, #475569);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.contact-line a:hover { color: var(--skymed, #598dd1); }
.contact-line p {
  color: var(--slate-600, #475569);
  font-size: 0.95rem;
  margin: 0;
}
.contact-hint {
  font-size: 0.8rem !important;
  color: var(--slate-400, #94a3b8) !important;
  margin-top: 0.25rem !important;
}

.faq-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--slate-50, #f8fafc);
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 4px;
}
.faq-cta h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900, #0f172a);
  margin: 0 0 0.5rem;
}
.faq-cta p {
  font-size: 0.875rem;
  color: var(--slate-600, #475569);
  margin: 0 0 1rem;
}

/* Contact form (Drupal FormBase output) */
.contacts-form-wrap form { display: flex; flex-direction: column; gap: 1.25rem; }
.contacts-form-wrap .form-item { margin: 0; }
.contacts-form-wrap label {
  display: block;
  font-weight: 600;
  color: var(--slate-900, #0f172a);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.contacts-form-wrap input[type="text"],
.contacts-form-wrap input[type="email"],
.contacts-form-wrap input[type="tel"],
.contacts-form-wrap textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contacts-form-wrap input[type="text"]:focus,
.contacts-form-wrap input[type="email"]:focus,
.contacts-form-wrap input[type="tel"]:focus,
.contacts-form-wrap textarea:focus {
  outline: none;
  border-color: var(--skymed, #598dd1);
  box-shadow: 0 0 0 3px rgba(89, 141, 209, 0.1);
}
.contacts-form-wrap textarea { resize: vertical; min-height: 140px; }
.contacts-form-wrap .form-actions input[type="submit"] {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--skymed, #598dd1);
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.contacts-form-wrap .form-actions input[type="submit"]:hover {
  background: var(--skymed-700, #3a6bb5);
  transform: translateY(-1px);
}

/* Drupal status messages on /contacts */
.contacts-page .messages--status,
.about-page .messages--status {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
/* Dashboard styles */

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 72px);
  background: #f8fafc;
}
@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
}

.dashboard-sidebar {
  background: #fff;
  border-right: 1px solid #e2e8f0;
  padding: 2rem 1.5rem;
}
@media (max-width: 900px) {
  .dashboard-sidebar { border-right: 0; border-bottom: 1px solid #e2e8f0; padding: 1.25rem; }
}

.dashboard-user {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.dashboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--skymed-100, #d4e3f5);
  color: var(--skymed, #598dd1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
}
.dashboard-user-name { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.25rem; }
.dashboard-user-mail { font-size: 0.85rem; color: #64748b; }

.dashboard-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sidebar-nav-item:hover { background: #f1f5f9; color: var(--skymed, #598dd1); }
.sidebar-nav-item.active {
  background: var(--skymed-100, #d4e3f5);
  color: var(--skymed-800, #2d5494);
}
.sidebar-nav-item--logout {
  margin-top: 1rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  color: #94a3b8;
}
.sidebar-nav-item--logout:hover { color: #dc2626; background: #fef2f2; }

.dashboard-main {
  padding: 2.5rem 2rem;
}
@media (max-width: 768px) {
  .dashboard-main { padding: 1.5rem 1rem; }
}

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}
.dashboard-subtitle {
  color: #64748b;
  margin: 0 0 2rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}
.stat-card-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.875rem;
}
.stat-card-icon--blue   { background: #d4e3f5; color: var(--skymed, #598dd1); }
.stat-card-icon--green  { background: #d1fae5; color: #059669; }
.stat-card-icon--yellow { background: #fef3c7; color: #d97706; }
.stat-card-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-card-label { font-size: 0.875rem; color: #64748b; }

.dashboard-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.dashboard-section-head h2 {
  font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 0;
}

.empty-state {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty-icon {
  width: 64px; height: 64px;
  background: #f1f5f9; color: #94a3b8;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
}
.empty-state h3 { font-size: 1.125rem; color: #0f172a; margin: 0 0 0.5rem; }
.empty-state p { color: #64748b; margin: 0 0 1.5rem; }

.enrollment-list { display: flex; flex-direction: column; gap: 1rem; }
.enrollment-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .enrollment-card { grid-template-columns: 1fr; }
}
.enrollment-image {
  border-radius: 8px;
  overflow: hidden;
  height: 100px;
}
@media (max-width: 640px) {
  .enrollment-image { height: 160px; }
}
.enrollment-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.enrollment-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.5rem;
}
.enrollment-title {
  font-size: 1rem; font-weight: 700; color: #0f172a; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.enrollment-title:hover { color: var(--skymed, #598dd1); }
.enrollment-status {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem; font-weight: 600;
  border-radius: 999px;
}
.enrollment-status--active { background: #d4e3f5; color: var(--skymed-800, #2d5494); }
.enrollment-status--completed { background: #d1fae5; color: #065f46; }
.enrollment-meta {
  display: flex; gap: 0.875rem; font-size: 0.85rem; color: #64748b;
  margin-bottom: 0.875rem;
}
.enrollment-progress { margin-bottom: 0.875rem; }
.progress-head {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: #64748b;
  margin-bottom: 0.375rem;
}
.progress-head strong { color: #0f172a; }
.progress-bar {
  height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--skymed, #598dd1), var(--skymed-700, #3a6bb5));
  border-radius: 999px;
  transition: width 0.4s;
}
.enrollment-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.enrollment-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  text-decoration: none;
}

/* Certificates grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.cert-card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.cert-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--skymed-100, #d4e3f5); color: var(--skymed, #598dd1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cert-card h3 {
  font-size: 1rem; font-weight: 700; color: #0f172a;
  margin: 0 0 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cert-number { font-size: 0.85rem; color: #64748b; margin: 0 0 0.625rem; }
.cert-meta { display: flex; gap: 0.625rem; align-items: center; flex-wrap: wrap; }
.cert-date { font-size: 0.85rem; color: #94a3b8; }

/* Profile */
.profile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.profile-card h2 {
  font-size: 1.125rem; font-weight: 700; color: #0f172a;
  margin: 0 0 1rem;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.profile-field label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.profile-field p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

/* Enroll form on course detail */
.enroll-form { margin: 0; }
.enroll-form button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ============= LESSON PAGE ============= */
.lesson-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 72px);
  background: #fff;
}
@media (max-width: 900px) {
  .lesson-layout { grid-template-columns: 1fr; }
}

.lesson-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 2rem 1.25rem;
}
.lesson-sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 1.5rem 0 0.75rem;
}
.lesson-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.lesson-sidebar-list li a,
.lesson-sidebar-list li > span {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  color: #475569;
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1.4;
}
.lesson-sidebar-list li a:hover { background: #e2e8f0; color: var(--skymed, #598dd1); }
.lesson-sidebar-list li.active a {
  background: var(--skymed-100, #d4e3f5);
  color: var(--skymed-800, #2d5494);
  font-weight: 600;
}
.lesson-sidebar-list .num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: #cbd5e1; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.lesson-sidebar-list li.active .num { background: var(--skymed, #598dd1); }
.lesson-sidebar-list .ttl { flex: 1; }
.lesson-sidebar-list .badge-online {
  background: #dc2626; color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}
.lesson-sidebar-test { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #e2e8f0; }

.lesson-main {
  padding: 2.5rem 2.5rem 4rem;
  max-width: 900px;
}
@media (max-width: 768px) {
  .lesson-main { padding: 1.5rem 1rem 3rem; }
}

.lesson-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}
.lesson-meta {
  display: flex; gap: 0.625rem; align-items: center;
  margin-bottom: 1.5rem;
  color: #64748b; font-size: 0.875rem;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.video-wrap iframe {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  border: 0;
}

.lesson-body {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.lesson-materials-title {
  font-size: 1.125rem; font-weight: 700; color: #0f172a;
  margin: 2rem 0 0.875rem;
}
.lesson-materials { list-style: none; padding: 0; margin: 0 0 2rem; }
.lesson-materials li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.lesson-materials a { color: var(--skymed, #598dd1); text-decoration: none; }
.lesson-materials a:hover { text-decoration: underline; }

.lesson-nav {
  display: flex; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  gap: 1rem;
}

.lesson-live-block {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.lesson-locked-block {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}
.lesson-locked-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.lesson-locked-block h2 { font-size: 1.5rem; color: #0f172a; margin: 0 0 0.5rem; }
.lesson-locked-block p { color: #64748b; margin: 0 0 1rem; }
.lesson-locked-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--skymed, #598dd1) !important;
  margin: 1rem 0 1.5rem !important;
}

/* Curriculum on course detail */
.course-curriculum {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
}
.course-curriculum h2 {
  font-size: 1.5rem; font-weight: 700; color: #0f172a;
  margin: 0 0 1.25rem;
}
.lessons-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  counter-reset: lesson-counter;
}
.lesson-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.lesson-row--locked { background: #f8fafc; }
.lesson-row--test { background: var(--skymed-50, #eef4fb); border-color: var(--skymed-200, #b8d2ed); }
.lesson-row-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--skymed-100, #d4e3f5); color: var(--skymed, #598dd1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
}
.lesson-row-info { flex: 1; }
.lesson-row-info strong { display: block; color: #0f172a; font-size: 0.95rem; }
.lesson-row-type { font-size: 0.85rem; color: #64748b; }
.lesson-row-lock { color: #94a3b8; font-size: 1.25rem; }
.btn-sm { padding: 0.375rem 0.875rem !important; font-size: 0.85rem !important; }
.btn-success { background: #16a34a; color: #fff; border: 0; }
.btn-success:hover { background: #15803d; color: #fff; }

/* ============= TEST PAGE ============= */
.test-page { padding: 2.5rem 0 5rem; background: #f8fafc; min-height: calc(100vh - 72px); }
.test-page .container { max-width: 800px; }

.test-header {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.test-header h1 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0 0 0.75rem; }
.test-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: 0.875rem; color: #64748b; }
.test-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }

.test-timer {
  position: sticky;
  top: 1rem;
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 1.5rem;
  z-index: 10;
  transition: background 0.3s;
}
.test-timer.warning {
  background: #dc2626;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.question-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.question-num { font-size: 0.8rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; margin-bottom: 0.5rem; }
.question-text { font-size: 1.0625rem; font-weight: 600; color: #0f172a; margin: 0 0 1.25rem; line-height: 1.5; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.option:hover { background: #f1f5f9; border-color: #cbd5e1; }
.option input { margin-top: 0.25rem; flex-shrink: 0; }
.option input:checked ~ .option-letter {
  background: var(--skymed, #598dd1);
  color: #fff;
  border-color: var(--skymed, #598dd1);
}
.option:has(input:checked) {
  background: var(--skymed-50, #eef4fb);
  border-color: var(--skymed, #598dd1);
}
.option-letter {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: #fff; border: 2px solid #cbd5e1;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: #64748b;
  transition: all 0.2s;
}
.option-text { flex: 1; color: #334155; line-height: 1.5; }

.test-submit { margin-top: 2rem; text-align: center; }

.test-passed-banner,
.test-failed-banner {
  background: #fff;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
}
.test-passed-banner { border: 2px solid #16a34a; }
.test-failed-banner { border: 2px solid #dc2626; }
.test-passed-icon,
.test-failed-icon { font-size: 4rem; margin-bottom: 1rem; }
.test-passed-banner h2 { color: #15803d; }
.test-failed-banner h2 { color: #991b1b; }

.muted { color: #94a3b8; }
