/* ============================================
   CURE BATUMI - Courses List Page Styles
   Author: Gocha Shevardnadze
   Company: Fix-Dev.com
   ============================================ */

/* Hero Section */
.courses-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
              url('../images/contact-bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.courses-hero .container {
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
}

.courses-hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  line-height: 1.1;
}

.courses-hero p {
  font-size: 22px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.3;
}

/* Courses List Section */
.courses-list {
  padding: 80px 0;
  background-color: #ffffff;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin-top: 40px;
  justify-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  grid-auto-rows: 1fr;
}

/* Course Card */
.course-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 450px;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.course-image-link {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.course-image-link:hover .course-image {
  transform: scale(1.05);
}

.course-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #eaf7ff 0%, #d4f1f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.course-image-placeholder::after {
  content: '📚';
  font-size: 64px;
  opacity: 0.3;
}

.course-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #262626;
  margin-bottom: 15px;
  line-height: 1.3;
}

.course-content p {
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-description {
  min-height: 80px;
  max-height: none;
  overflow: visible;
}

/* Course Meta */
.course-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666666;
}

.meta-item .icon {
  font-size: 18px;
}

/* Course Footer */
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.course-date {
  font-size: 14px;
  font-weight: 600;
  color: #5dade2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #5dade2;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #4a9dd1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 173, 226, 0.3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state p {
  font-size: 24px;
  color: #999999;
  margin-bottom: 30px;
}

/* Status Indicator (Pulsing Dot) */
.status-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
  z-index: 10;
}

.status-indicator.status-active {
  background-color: #4caf50;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
}

.status-indicator.status-full {
  background-color: #ff9800;
  box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  animation: pulse-orange 2s infinite;
}

.status-indicator.status-completed {
  background-color: #9e9e9e;
  box-shadow: 0 0 0 0 rgba(158, 158, 158, 0.7);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}

/* Filter Section */
.courses-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background-color: #f5f5f5;
  color: #666666;
  border: 2px solid transparent;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #e8f4f8;
  color: #5dade2;
}

.filter-btn.active {
  background-color: #5dade2;
  color: #ffffff;
  border-color: #5dade2;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
  }

  .courses-hero h1 {
    font-size: 48px;
  }

  .courses-hero p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .courses-hero {
    height: 240px;
  }

  .courses-hero .container {
    margin-top: 70px;
  }

  .courses-hero h1 {
    font-size: 38px;
  }

  .courses-hero p {
    font-size: 18px;
  }

  .courses-list {
    padding: 0 20px 60px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .course-content h3 {
    font-size: 24px;
  }

  .course-meta {
    flex-direction: column;
    gap: 10px;
  }

  .course-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .courses-hero {
    height: 240px;
  }

  .courses-hero .container {
    margin-top: 70px;
  }

  .courses-hero h1 {
    font-size: 36px;
  }

  .courses-hero p {
    font-size: 20px;
  }

  .courses-list {
    padding: 0 20px 60px;
  }

  .course-content {
    padding: 20px;
  }

  .course-content h3 {
    font-size: 20px;
  }
}
