/* ═══════════════════════════════════════════
   Artem Academy – Career Track Courses
   Frontend Styles
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --artem-radius: 14px;
  --artem-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --artem-shadow-hover: 0 10px 36px rgba(0,0,0,0.14);
  --artem-transition: 0.3s ease;
}

/* ── Section ── */
.artem-courses-section {
  font-family: 'Inter', sans-serif;
  padding: 56px 16px;
  background: transparent;
}

/* ── Header ── */
.artem-courses-header {
  text-align: center;
  margin-bottom: 40px;
}
.artem-courses-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
}
.artem-courses-sub {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

/* ══════════════════════════════════════════
   COURSE CARD
══════════════════════════════════════════ */
.artem-course-card {
  position: relative;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--artem-radius);
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--artem-transition), transform var(--artem-transition);
  min-width: 0;
}
.artem-course-card:hover {
  box-shadow: var(--artem-shadow-hover);
  transform: translateY(-4px);
}

/* Featured card — slightly elevated border */
.artem-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent), var(--artem-shadow);
}

/* ── Badge ── */
.artem-card-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--badge-bg, #f97316);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
}

/* ── Card Body ── */
.artem-card-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  padding-top: 12px;
}

.artem-card-left {
  flex: 1;
  min-width: 0;
}

.artem-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent, #1e3cbc);
  margin: 0 0 5px;
  line-height: 1.25;
}
.artem-card-subtitle {
  font-size: 16px;
  color: #374151;
  margin: 0 0 16px;
  line-height: 1.4;
}

/* ── Feature List ── */
.artem-card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.artem-card-features li {
  font-size: 16px;
  color: #374151;
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.artem-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent, #1e3cbc);
  font-weight: 700;
  font-size: 14px;
}

/* ── Card Image ── */
.artem-card-image {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artem-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 160px;
  display: block;
}

/* ── Card Footer ── */
.artem-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  margin-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.artem-card-price {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}
.artem-card-btn {
  display: inline-block;
  background: var(--btn-bg, #1e3cbc);
  color: #fff !important;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.artem-card-btn:hover {
  opacity: 0.88;
  transform: scale(1.03);
}

/* ══════════════════════════════════════════
   GRID (Inner Page)
══════════════════════════════════════════ */
.artem-courses-grid {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.artem-grid-col-3 { grid-template-columns: repeat(3, 1fr); }
.artem-grid-col-2 { grid-template-columns: repeat(2, 1fr); }
.artem-grid-col-4 { grid-template-columns: repeat(4, 1fr); }

/* ══════════════════════════════════════════
   CAROUSEL (Homepage)
══════════════════════════════════════════ */
.artem-carousel-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.artem-carousel-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.artem-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each card in carousel takes equal width */
.artem-carousel-track .artem-course-card {
  flex: 0 0 calc((100% - 48px) / 3);  /* 3 visible, 2 gaps */
  width: calc((100% - 48px) / 3);
}

/* ── Arrows ── */
.artem-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  padding: 0;
}
.artem-carousel-arrow svg {
  width: 20px;
  height: 20px;
  color: #374151;
}
.artem-carousel-arrow:hover {
  background: #1e3cbc;
  border-color: #1e3cbc;
  transform: translateY(-50%) scale(1.08);
}
.artem-carousel-arrow:hover svg { color: #fff; }

.artem-arrow-prev { left: -22px; }
.artem-arrow-next { right: -22px; }

/* ── Dots ── */
.artem-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.artem-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.artem-dot.active {
  background: #1e3cbc;
  transform: scale(1.3);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .artem-grid-col-3 { grid-template-columns: repeat(2, 1fr); }
  .artem-grid-col-4 { grid-template-columns: repeat(2, 1fr); }

  /* Carousel: show 2 cards */
  .artem-carousel-track .artem-course-card {
    flex: 0 0 calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .artem-courses-title { font-size: 1.55rem; }
  .artem-grid-col-3,
  .artem-grid-col-4 { grid-template-columns: 1fr; }

  /* Carousel: show 1 card */
  .artem-carousel-track .artem-course-card {
    flex: 0 0 100%;
    width: 100%;
  }
  .artem-carousel-track { gap: 16px; }

  .artem-arrow-prev { left: 0; }
  .artem-arrow-next { right: 0; }
  .artem-carousel-viewport { margin: 0 48px; }

  .artem-card-image { width: 100px; }
  .artem-card-title { font-size: 16px; }
  .artem-card-subtitle { font-size: 14px; }
  .artem-card-features li { font-size: 14px; }
  .artem-card-price { font-size: 16px; }
  .artem-card-btn { font-size: 16px; padding: 9px 16px; }
}

@media (max-width: 480px) {
  .artem-courses-section { padding: 36px 10px; }
  .artem-card-body { flex-direction: column; }
  .artem-card-image { width: 100%; text-align: center; }
  .artem-card-image img { max-height: 120px; margin: 0 auto; }
}
