
/* ============================================= */
/* COURSE ARCHIVE STYLES (Eduker classes) */
/* ============================================= */

/* Modern Course Directory - Contemporary Design */
.eduker-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
background-color: #FAFAED;
  font-family: 'Inter', system-ui, sans-serif;
}

.eduker-archive-header {
  margin-bottom: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eduker-archive-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(to right, #2563eb, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.eduker-archive-description {
  font-size: 18px;
  color: #6b7280;
  max-width: 640px;
  line-height: 1.5;
}

/* Main course grid layout */
.eduker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* Modern card style */
.edu-course {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  isolation: isolate;
}

.edu-course:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Card header with image */
.thumbnail {
  height: 200px;
  position: relative;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card body with content */
.inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-category {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edu-course .course-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.course-excerpt {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Card footer with button */
.eduker-btn {
  width: 100%;
  background-color: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.eduker-btn:hover {
  background-color:#A58F53;
  color: #ffffff;
}

/* Message when no courses are found */
.eduker-no-courses {
  grid-column: 1 / -1;
  background-color: #ffffff;
  padding: 40px;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.eduker-no-courses p {
  color: #6b7280;
  font-size: 16px;
}

/* Featured courses with different styling */
.edu-course.featured {
  border: 2px solid #60a5fa;
}


/* Custom "new" card decoration */
.eduker-grid .edu-course:nth-child(7n)::before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 80px;
  height: 80px;
  background: #2563eb;
  transform: rotate(45deg);
  z-index: -1;
}

.eduker-grid .edu-course:nth-child(7n)::after {
  content: "NEW";
  position: absolute;
  top: 12px;
  right: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  z-index: 2;
}

/* Hover effects */
.edu-course:hover .course-title {
  color: #A58F53;
}

.edu-course:hover .thumbnail img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

/* Archive responsive adjustments */
@media (max-width: 1024px) {
  .eduker-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
  
  .eduker-archive-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .eduker-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .eduker-archive-title {
    font-size: 36px;
  }
  
  .eduker-container {
    padding: 40px 20px;
  }
}

@media (max-width: 640px) {
  .eduker-grid {
    grid-template-columns: 1fr;
  }
  
  .eduker-archive-title {
    font-size: 32px;
  }
  
  .thumbnail {
    height: 180px;
  }
}

