/* ========================
   Global Styles
========================= */
:root {
  --primary-color: #00A673;
  --primary-dark: #00875c;
  --primary-light: #00c78a;
  --secondary-color: #1a237e;
  --accent-color: #FF6D00;
  --text-dark: #333;
  --text-medium: #555;
  --text-light: #777;
  --bg-light: #f9f9f9;
  --white: #fff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ========================
   Course Section
========================= */
.courses {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.course-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.course-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.course-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

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

.course-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.course-content p {
  flex-grow: 1;
  color: var(--text-medium);
  font-size: 15px;
  margin-bottom: 20px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.course-meta span {
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.course-meta i {
  color: var(--primary-color);
  margin-right: 6px;
}

/* ========================
   Single Course Page
========================= */
.wpcell-course-wrapper {
  max-width: 900px;
  margin: 40px auto;
  font-family: 'Montserrat', 'SolaimanLipi', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.wpcell-course-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.wpcell-course-content {
  padding: 30px;
}

.wpcell-course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.wpcell-course-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
  color: #3c312c;
  margin-bottom: 10px;
  flex: 1 1 60%;
}

.wpcell-course-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  text-align: right;
}

.wpcell-per {
  font-size: 16px;
  color: var(--text-light);
  margin-left: 4px;
}

.wpcell-section-title {
  color: var(--accent-color);
  margin: 25px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.wpcell-course-details p {
  margin-bottom: 15px;
  color: var(--text-medium);
}

.wpcell-join-btn {
  display: inline-block;
  background: linear-gradient(90deg, #d96e40 0%, #e48340 100%);
  color: #fff;
  border-radius: 35px;
  padding: 14px 40px;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.wpcell-join-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.wpcell-enroll-form {
  display: inline-block;
}

.wpcell-enrolled-message {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 14px 40px;
  margin-top: 30px;
  border-radius: 35px;
  font-weight: 600;
}

.wpcell-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-weight: 600;
}

.wpcell-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wpcell-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ========================
   Animation
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}

/* ========================
   Responsive Design
========================= */
@media (max-width: 768px) {
  .courses {
    padding: 40px 0;
  }

  .course-content {
    padding: 20px;
  }

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

  .course-content p {
    font-size: 14px;
  }

  .wpcell-course-content {
    padding: 20px;
  }

  .wpcell-course-title {
    font-size: 24px;
  }

  .wpcell-course-price {
    font-size: 22px;
    text-align: left;
    margin-top: 10px;
  }

  .wpcell-section-title {
    font-size: 16px;
  }

  .wpcell-join-btn {
    width: 100%;
    text-align: center;
    padding: 16px;
  }

  .wpcell-enrolled-message {
    width: 100%;
    text-align: center;
  }
}