/* ============================================
   COURSES.CSS — Courses Overview Page Styles
============================================ */

/* ============================================
   QUICK STATS STRIP
============================================ */
.courses-quick-stats {
  padding: 60px 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-2);
}

.cqs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cqs-item {
  background: #fff;
  border: 1px solid var(--gray-2);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s;
}

.cqs-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.cqs-ico {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cqs-blue { background: var(--blue-light); color: var(--blue); }
.cqs-orange { background: var(--orange-light); color: var(--orange); }
.cqs-green { background: var(--green-light); color: var(--green); }
.cqs-purple { background: var(--purple-light); color: var(--purple); }

.cqs-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--dark);
  line-height: 1;
}

.cqs-item p {
  font-size: 0.88rem;
  color: var(--gray-5);
  margin-top: 4px;
}

/* ============================================
   ALL COURSES GRID
============================================ */
.all-courses-sec {
  padding: 100px 0;
  background: var(--grad-soft);
}

.ac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ac-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--gray-2);
  transition: all 0.4s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ac-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.ac-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--grad-orange);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 6px 15px rgba(255,107,26,0.4);
  letter-spacing: 0.3px;
}

.ac-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.ac-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ac-card:hover .ac-img img {
  transform: scale(1.08);
}

.ac-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.ac-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.ac-blue .ac-icon { color: var(--blue); }
.ac-green .ac-icon { color: var(--green); }
.ac-orange .ac-icon { color: var(--orange); }
.ac-purple .ac-icon { color: var(--purple); }

.ac-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ac-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ac-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-5);
  font-weight: 500;
}

.ac-meta i {
  color: var(--orange);
  font-size: 0.78rem;
}

.ac-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.ac-body h3 sup {
  font-size: 0.6em;
}

.ac-body > p {
  font-size: 0.92rem;
  color: var(--gray-5);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.ac-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  padding: 16px 0;
  border-top: 1px dashed var(--gray-3);
  border-bottom: 1px dashed var(--gray-3);
  margin-bottom: 20px;
}

.ac-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-6);
  font-weight: 500;
}

.ac-features i {
  color: var(--green);
  font-size: 0.78rem;
}

.ac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ac-link {
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.ac-blue .ac-link { color: var(--blue); }
.ac-green .ac-link { color: var(--green); }
.ac-orange .ac-link { color: var(--orange); }
.ac-purple .ac-link { color: var(--purple); }

.ac-card:hover .ac-link {
  gap: 10px;
}

.ac-cta {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: all 0.3s;
}

.ac-blue .ac-cta { background: var(--blue); }
.ac-blue .ac-cta:hover { background: var(--blue-dark); transform: translateY(-2px); }

.ac-green .ac-cta { background: var(--green); }
.ac-green .ac-cta:hover { background: #059669; transform: translateY(-2px); }

.ac-orange .ac-cta { background: var(--orange); }
.ac-orange .ac-cta:hover { background: #e55e15; transform: translateY(-2px); }

.ac-purple .ac-cta { background: var(--purple); }
.ac-purple .ac-cta:hover { background: #6c2bd9; transform: translateY(-2px); }

/* ============================================
   COURSE COMPARE TABLE
============================================ */
.course-compare-sec {
  padding: 100px 0;
  background: #fff;
}

.compare-table-wrap {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-2);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.compare-table thead {
  background: var(--grad-dark);
  color: #fff;
}

.compare-table th {
  padding: 20px 24px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.compare-table td {
  padding: 22px 24px;
  font-size: 0.92rem;
  color: var(--gray-6);
  border-bottom: 1px solid var(--gray-2);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr {
  transition: background 0.2s;
}

.compare-table tbody tr:hover {
  background: var(--gray-1);
}

.ct-prog {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ct-prog strong {
  font-weight: 700;
  color: var(--dark);
}

.ct-btn {
  display: inline-block;
  padding: 8px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.3s;
}

.ct-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ============================================
   HOW TO JOIN
============================================ */
.how-join-sec {
  padding: 100px 0;
  background: var(--grad-soft);
}

.hj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.hj-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gray-3) 0 8px, transparent 8px 16px);
  z-index: 0;
}

.hj-step {
  background: #fff;
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--gray-2);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.hj-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.hj-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gray-2);
  line-height: 1;
}

.hj-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  box-shadow: 0 10px 25px rgba(30,91,255,0.3);
}

.hj-step:nth-child(2) .hj-icon { background: var(--grad-orange); box-shadow: 0 10px 25px rgba(255,107,26,0.3); }
.hj-step:nth-child(3) .hj-icon { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 25px rgba(16,185,129,0.3); }
.hj-step:nth-child(4) .hj-icon { background: linear-gradient(135deg, #7c3aed, #5b21b6); box-shadow: 0 10px 25px rgba(124,58,237,0.3); }

.hj-step h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.hj-step p {
  font-size: 0.9rem;
  color: var(--gray-5);
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1100px) {
  .cqs-grid { grid-template-columns: repeat(2, 1fr); }
  .ac-grid { grid-template-columns: repeat(2, 1fr); }
  .hj-grid { grid-template-columns: repeat(2, 1fr); }
  .hj-grid::before { display: none; }
}

@media (max-width: 768px) {
  .courses-quick-stats { padding: 50px 0; }
  .all-courses-sec,
  .course-compare-sec,
  .how-join-sec { padding: 60px 0; }
  .ac-grid { grid-template-columns: 1fr; }
  .ac-features { grid-template-columns: 1fr; }
  .compare-table { min-width: 600px; }
}

@media (max-width: 480px) {
  .cqs-grid { grid-template-columns: 1fr; }
  .hj-grid { grid-template-columns: 1fr; }
  .ac-footer { flex-direction: column; align-items: stretch; }
  .ac-cta { text-align: center; }
}

/* ============================================
   FOOTER LINKS — ALWAYS VISIBLE CHEVRON
============================================ */
.footer-col ul li a {
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.footer-col ul li a::before {
  content: '\f105'; /* chevron-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--orange);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.footer-col ul li a:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.footer-col ul li a:hover::before {
  background: var(--orange);
  color: #fff;
  transform: rotate(360deg);
}