/* GoldenSeat Agent Academy v1.0.0 — RTL/LTR, accessible, responsive */

.gs-academy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: 'Heebo','Plus Jakarta Sans',Arial,Helvetica,sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

.gs-academy[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.gs-academy[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.gs-ac-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 16px;
  margin-bottom: 24px;
  position: relative;
}

.gs-ac-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #111;
}

.gs-ac-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0 0 14px;
}

.gs-ac-progress-bar {
  position: relative;
  height: 10px;
  background: #e8e8e8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.gs-ac-progress-inner {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  border-radius: 999px;
  transition: width .4s ease;
}

.gs-ac-progress-text {
  display: block;
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

.gs-ac-reset {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.gs-academy[dir="rtl"] .gs-ac-reset {
  right: auto;
  left: 0;
}

.gs-ac-hero {
  margin-bottom: 28px;
}

.gs-ac-hero-card {
  background: linear-gradient(135deg, #f7f9fc, #eef2f7);
  border: 1px solid #dde3eb;
  border-radius: 12px;
  padding: 24px 22px;
}

.gs-ac-hero-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.gs-ac-hero-card p {
  font-size: 14px;
  color: #444;
  margin: 0 0 16px;
  max-width: 720px;
}

.gs-ac-cta {
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  margin-right: 10px;
}

.gs-academy[dir="rtl"] .gs-ac-cta {
  margin-right: 0;
  margin-left: 10px;
}

.gs-ac-cta-meta {
  font-size: 13px;
  color: #888;
}

.gs-ac-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.gs-ac-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.gs-ac-card {
  flex: 1 1 260px;
  max-width: 360px;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  position: relative;
  outline: none;
}

.gs-ac-card:hover,
.gs-ac-card:focus {
  border-color: #90caf9;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.gs-ac-card:focus-visible {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

.gs-ac-card-admin {
  border-left: 4px solid #ff9800;
}

.gs-academy[dir="rtl"] .gs-ac-card-admin {
  border-left: none;
  border-right: 4px solid #ff9800;
}

.gs-ac-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.gs-ac-card-badge.not_started {
  background: #eceff1;
  color: #546e7a;
}

.gs-ac-card-badge.in_progress {
  background: #fff3e0;
  color: #e65100;
}

.gs-ac-card-badge.completed {
  background: #e8f5e9;
  color: #2e7d32;
}

.gs-ac-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #222;
}

.gs-ac-card-desc {
  font-size: 13px;
  color: #555;
  margin: 0 0 10px;
  line-height: 1.5;
}

.gs-ac-card-dur {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

.gs-ac-admin-divider {
  border-top: 1px dashed #ccc;
  padding-top: 20px;
  margin-top: 8px;
}

.gs-ac-detail {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.gs-ac-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #f7f9fc;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
}

.gs-ac-detail-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.gs-ac-detail-dur {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

.gs-ac-back {
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.gs-ac-detail-body {
  padding: 18px;
}

.gs-ac-detail-desc {
  font-size: 14px;
  color: #444;
  margin: 0 0 18px;
}

.gs-ac-video video {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  background: #000;
  display: block;
  margin: 0 0 18px;
}

.gs-ac-steps h3,
.gs-ac-mistakes h3,
.gs-ac-try h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #222;
}

.gs-ac-steps ol {
  padding-left: 20px;
  margin: 0 0 18px;
}

.gs-academy[dir="rtl"] .gs-ac-steps ol {
  padding-left: 0;
  padding-right: 20px;
}

.gs-ac-steps li {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.gs-ac-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: #1976d2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.gs-ac-mistakes ul {
  padding-left: 18px;
  margin: 0 0 18px;
}

.gs-academy[dir="rtl"] .gs-ac-mistakes ul {
  padding-left: 0;
  padding-right: 18px;
}

.gs-ac-mistakes li {
  font-size: 14px;
  color: #b71c1c;
  margin-bottom: 6px;
}

.gs-ac-mist-icon {
  margin-right: 4px;
  color: #e65100;
}

.gs-academy[dir="rtl"] .gs-ac-mist-icon {
  margin-right: 0;
  margin-left: 4px;
}

.gs-ac-try p {
  font-size: 14px;
  color: #555;
  margin: 0 0 10px;
}

.gs-ac-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.gs-ac-transcript {
  margin-top: 14px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  font-size: 13px;
  color: #444;
  max-height: 300px;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .gs-academy { padding: 14px 10px; }
  .gs-ac-header h1 { font-size: 22px; }
  .gs-ac-card { flex: 1 1 100%; max-width: 100%; }
  .gs-ac-detail-header { gap: 8px; }
  .gs-ac-detail-header h2 { font-size: 16px; }
}
