/* ============================================================
   UPCOMING COURSES DESIGN — Complete CSS
   Modern, Clean, Responsive Layout
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* { 
  font-family: 'Inter', sans-serif !important; 
  box-sizing: border-box; 
}

html, body { 
  margin: 0; 
  padding: 0; 
}

body { 
  padding: 40px; 
  background: #f5f6f8; 
  direction: ltr; 
}

:root {
  --n1: #1a2744;
  --n2: #243560;
  --n3: #2d4a8a;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --radius: 14px;
  --radius-sm: 8px;
}

/* ─────────────────────────────────────────
   SECTION HEADER
   ───────────────────────────────────────── */

.cit-sec-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.cit-sec-hd h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--n1);
  white-space: nowrap;
  margin: 0;
}

.cit-sec-line {
  flex: 1;
  height: 0.5px;
  background: #e5e7eb;
}

/* ─────────────────────────────────────────
   FILTER BAR / WRAPPER
   ───────────────────────────────────────── */

.cit-filter-wrap {
  background: #fff;
  border: 0.5px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cit-filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
}

.cit-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cit-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.cit-filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 0.5px solid #e5e7eb;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--n1);
  font-family: 'Inter', sans-serif !important;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.cit-filter-select:focus {
  outline: none;
  border-color: var(--gold);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.cit-filter-select:hover {
  border-color: #d1d5db;
}

/* ─────────────────────────────────────────
   FILTER FOOTER (Stats & Reset)
   ───────────────────────────────────────── */

.cit-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 0;
  border-top: none;
  gap: 16px;
}

.cit-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  flex: 1;
}

.cit-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 0.75rem;
}

.cit-stat-item:not(:last-child) {
  border-right: 0.5px solid #f0f0f0;
}

.cit-stat-item:first-child {
  padding-left: 0;
}

.cit-stat-item svg {
  stroke: #d1b563;
}

.cit-stat-item .stat-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1a2744;
  line-height: 1;
}

.cit-stat-item .stat-sub {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

.cit-results-count {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.cit-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 16px;
  border: 0.5px solid #e5e7eb;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Inter', sans-serif !important;
}

.cit-reset-btn:hover {
  color: var(--n1);
  border-color: #d1d5db;
}

/* ─────────────────────────────────────────
   COURSE GRID (4 Columns)
   ───────────────────────────────────────── */

.cit-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

/* ─────────────────────────────────────────
   COURSE CARD
   ───────────────────────────────────────── */

.cit-course-card {
  background: #fff;
  border: 0.5px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: fadeUp 0.6s ease both;
  opacity: 0;
}

.cit-course-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.15);
}

/* Staggered Animation */
.cit-course-card:nth-child(1) { animation-delay: 0.08s; }
.cit-course-card:nth-child(2) { animation-delay: 0.16s; }
.cit-course-card:nth-child(3) { animation-delay: 0.24s; }
.cit-course-card:nth-child(4) { animation-delay: 0.32s; }
.cit-course-card:nth-child(5) { animation-delay: 0.40s; }
.cit-course-card:nth-child(6) { animation-delay: 0.48s; }

/* ─────────────────────────────────────────
   COURSE IMAGE SECTION
   ───────────────────────────────────────── */

.cit-course-img {
  position: relative;
  height: 130px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--n1), var(--n3));
  border-radius: var(--radius) var(--radius) 0 0;
}

.cit-course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.75) brightness(0.92);
  transition: transform 0.35s ease;
}

.cit-course-card:hover .cit-course-img img {
  transform: scale(1.05);
}

.cit-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 39, 68, 0.25) 0%, rgba(26, 39, 68, 0.7) 100%);
}

/* Category Badge */
.cit-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(201, 168, 76, 0.5);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cit-cat-badge svg {
  stroke: var(--gold-light);
}

/* Chips/Tags */
.cit-img-chips {
  position: absolute;
  bottom: 9px;
  left: 10px;
  display: flex;
  gap: 4px;
}

.cit-chip {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
}

.cit-chip.online {
  background: rgba(186, 230, 253, 0.22);
  color: #bae6fd;
  border: 0.5px solid rgba(186, 230, 253, 0.35);
}

.cit-chip.presn {
  background: rgba(187, 247, 208, 0.18);
  color: #bbf7d0;
  border: 0.5px solid rgba(187, 247, 208, 0.3);
}

.cit-chip.diplo {
  background: rgba(233, 213, 255, 0.18);
  color: #e9d5ff;
  border: 0.5px solid rgba(233, 213, 255, 0.3);
}

/* ─────────────────────────────────────────
   COURSE BODY / CONTENT
   ───────────────────────────────────────── */

.cit-course-body {
  padding: 0.85rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cit-course-body h3 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--n1);
  line-height: 1.45;
  margin: 0 0 0.45rem;
}

.cit-course-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Metadata Row */
.cit-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 0.6rem;
  border-top: 0.5px solid #f0f0f0;
}

.cit-meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #6b7280;
}

.cit-meta-item svg {
  stroke: var(--gold);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   SCHEDULE SECTION
   ───────────────────────────────────────── */

.cit-sched-btn {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--n1);
  background: rgba(201, 168, 76, 0.1);
  border: none;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  cursor: pointer;
  font-family: 'Inter', sans-serif !important;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  transition: background 0.2s;
}

.cit-sched-btn:hover {
  background: rgba(201, 168, 76, 0.22);
}

.cit-sched-btn .btn-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cit-sched-btn .btn-label::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.25s ease;
}

.cit-sched-btn.open .btn-label::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.cit-sched-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.2s;
  background: #fafafa;
}

.cit-sched-wrap.open {
  max-height: 400px;
  padding: 0.5rem 1rem;
  overflow-y: auto;
}

.cit-sched-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 0.5px solid #f0f0f0;
  gap: 6px;
}

.cit-sched-row:last-child {
  border-bottom: none;
}

.cit-sched-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--n1);
  white-space: nowrap;
}

.cit-sched-type {
  font-size: 10px;
  color: #6b7280;
  flex: 1;
  text-align: center;
}

.cit-sched-enroll {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--n1);
  text-decoration: none;
  font-family: 'Inter', sans-serif !important;
  transition: background 0.15s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.cit-sched-enroll:hover {
  background: var(--gold-light);
}

/* ─────────────────────────────────────────
   COURSE FOOTER
   ───────────────────────────────────────── */

.cit-course-foot {
  padding: 0.65rem 1rem;
  border-top: 0.5px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 var(--radius) var(--radius);
}

.cit-price-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--n1);
  line-height: 1;
}

.cit-price-vat {
  font-size: 9px;
  color: #9ca3af;
  margin-top: 2px;
}

.cit-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--n1);
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.cit-details-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────
   LOAD MORE BUTTON
   ───────────────────────────────────────── */

.cit-load-more {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.cit-load-btn {
  padding: 10px 32px;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--n1);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer;
  transition: all 0.18s;
}

.cit-load-btn:hover {
  background: var(--n1);
  color: #fff;
  border-color: var(--n1);
}

/* ─────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────── */

@media (max-width: 1200px) {
  .cit-filter-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cit-courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .cit-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px;
  }
  
  .cit-filter-wrap {
    padding: 1.25rem 1.5rem;
  }
  
  .cit-filter-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cit-filter-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cit-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .cit-stat-item:nth-child(2) {
    border-right: none;
    border-bottom: 0.5px solid #f0f0f0;
  }
  
  .cit-stat-item:nth-child(3) {
    border-right: 0.5px solid #f0f0f0;
  }
  
  .cit-stat-item:nth-child(4) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }
  
  .cit-sec-hd {
    margin-bottom: 1rem;
  }
  
  .cit-filter-wrap {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .cit-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .cit-filter-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cit-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin-bottom: 1.5rem;
    gap: 1rem;
  }
  
  .cit-stat-item {
    border: none;
    border-right: none;
  }
  
  .cit-stat-item:nth-child(2) {
    border-right: none;
  }
  
  .cit-stat-item:nth-child(3) {
    border-right: none;
  }
  
  .cit-stat-item:first-child {
    padding-left: 0;
  }
  
  .cit-courses-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .cit-course-img {
    height: 150px;
  }
  
  .cit-course-body h3 {
    font-size: 0.85rem;
  }
  
  .cit-load-btn {
    padding: 8px 24px;
    font-size: 11px;
  }
}