/* ===================================
   MODERN CARD DESIGN - Complete Redesign
   =================================== */

/* Card Container */
.modern-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 30px;
  height: auto;
  display: flex;
  flex-direction: column;
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(102, 100, 212, 0.25);
}

/* Image Wrapper */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover .card-image-wrapper {
  height: 280px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-card:hover .card-image {
  transform: scale(1.05);
  object-position: top center;
}

/* Card Content */
.card-content {
  padding: 25px;
  background: #ffffff;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover .card-content {
  transform: translateY(-10px);
}

/* Title - Always Visible */
.card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: #1a1a2e;
  background: linear-gradient(135deg, #f8f9ff 0%, #eff1ff 100%);
  padding: 20px;
  border-radius: 15px;
  border-left: 5px solid #667eea;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 3px 15px rgba(102, 100, 212, 0.1);
}

.modern-card:hover .card-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-left-color: #ffffff;
  transform: translateX(5px);
  box-shadow: 0 5px 25px rgba(102, 100, 212, 0.3);
}

.card-title i {
  font-size: 32px;
  color: #667eea;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: #ffffff;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(102, 100, 212, 0.2);
}

.modern-card:hover .card-title i {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.card-title a {
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.3s ease;
  flex: 1;
}

.card-title a:hover {
  color: #667eea;
}

.modern-card:hover .card-title a {
  color: #ffffff;
}

.modern-card:hover .card-title a:hover {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hover Content - Hidden by Default */
.card-hover-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.modern-card:hover .card-hover-content {
  max-height: 400px;
  opacity: 1;
  margin-top: 20px;
}

/* Description */
.card-description {
  font-size: 16px;
  line-height: 1.7;
  color: #5a5a6e;
  margin: 0;
}

.card-description strong {
  color: #667eea;
  font-weight: 700;
  font-size: 17px;
}

/* Remove unused styles */
.card-overlay,
.overlay-content,
.overlay-icon,
.card-badge,
.card-recipient,
.recipient-icon,
.recipient-info,
.card-btn {
  display: none;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .modern-card {
    margin-bottom: 30px;
  }
  
  .card-image-wrapper {
    height: 450px;
  }
  
  .modern-card:hover .card-image-wrapper {
    height: 260px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card-title {
    font-size: 18px;
    padding: 18px;
    gap: 12px;
  }
  
  .card-title i {
    font-size: 28px;
    width: 50px;
    height: 50px;
  }
  
  .card-description {
    font-size: 15px;
  }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
  .modern-card {
    margin-bottom: 25px;
  }
  
  .card-image-wrapper {
    height: 400px;
  }
  
  .modern-card:hover .card-image-wrapper {
    height: 240px;
  }
  
  .card-content {
    padding: 18px;
  }
  
  .card-title {
    font-size: 17px;
    padding: 16px;
    gap: 10px;
  }
  
  .card-title i {
    font-size: 26px;
    width: 45px;
    height: 45px;
  }
  
  .card-description {
    font-size: 14px;
  }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .modern-card {
    border-radius: 15px;
  }
  
  .card-image-wrapper {
    height: 350px;
  }
  
  .modern-card:hover .card-image-wrapper {
    height: 220px;
  }
  
  .card-content {
    padding: 16px;
  }
  
  .card-title {
    font-size: 16px;
    padding: 14px;
    gap: 8px;
  }
  
  .card-title i {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
  
  .card-description {
    font-size: 13px;
  }
}

/* Fix for equal height cards in row */
@media (min-width: 768px) {
  .our-feature-course-one .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .our-feature-course-one [class*='col-'] {
    display: flex;
  }
}
