/* Override main element margins */
main.container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* Ensure proper spacing for the content wrapper */
.profile-content-wrapper {
  min-height: calc(100vh - 400px);
}

/* ===== Trainer Profile Custom Styles ===== */

/* Cover Section */
.trainer-cover-section {
  margin-bottom: 0;
}

/* Avatar Wrapper */
.trainer-avatar-wrapper {
  margin-top: -75px;
  margin-bottom: 1rem;
}

/* Trainer Info Section */
.trainer-info-section {
  margin-top: 0;
  margin-bottom: 2rem;
}

.trainer-name {
  margin-bottom: 0.25rem;
  font-size: 2rem;
}

.trainer-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Utility Classes */
.no-extra-margin {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.mt-custom {
  margin-top: 0.5rem;
}

/* Card Styles */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(30, 60, 114, 0.15) !important;
}

/* Consistent Card Styling */
.consistent-card {
  border-radius: 1rem !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 0 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.consistent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Empty Courses Card */
.empty-courses-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.02));
  border-radius: 1rem !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 0 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.empty-courses-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Section Header */
.section-header {
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Hover lift effect */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Course card specific styles */
.course-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-avatar {
    width: 120px;
    height: 120px;
    margin-top: -60px;
  }
  
  h3.fw-bold {
    font-size: 1.5rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .trainer-name {
    font-size: 1.5rem;
  }
  
  .trainer-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .profile-avatar {
    width: 100px;
    height: 100px;
    margin-top: -50px;
  }
  
  .card-body {
    padding: 1rem !important;
  }
  
  .btn-primary {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .trainer-name {
    font-size: 1.3rem;
  }
  
  .trainer-title {
    font-size: 0.85rem;
  }
  
  .trainer-avatar-wrapper img,
  .trainer-avatar-wrapper div {
    width: 120px !important;
    height: 120px !important;
  }
  
  .trainer-avatar-wrapper {
    margin-top: -60px;
  }
}

/* Ensure footer doesn't get pushed */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}

/* Badge Styles */
.info-badge {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
  border-radius: 60px;
  padding: 0.5rem 1.2rem;
}

/* Consistent border radius for cards */
.rounded-4 {
  border-radius: 1rem !important;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}