.container {
  max-width: 1200px;
  margin: 0 auto;
}

.academy-logo {
  font-size: 32px;
  font-weight: 800;
  color: #1866b6;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.academy-subtitle {
  font-size: 18px;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.academy-section {
  margin: 0; /* Remove all margin to ensure full width */
  width: 100%; /* Ensure the section covers the full width */
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 60px;
}

.section-header {
  background: linear-gradient(90deg, #1866b6 0%, #3d3b40 100%);
  padding: 25px 35px;
  color: white;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  flex: 1;
  min-width: 300px;
}

.section-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-badge i {
  color: #ffc107;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  padding: 35px;
}

.course-card {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.course-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

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

.course-header {
  padding: 25px;
  color: white;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
}

.offline .course-header {
  background: linear-gradient(135deg, #1866b6 0%, #3d3b40 100%);
}

.live .course-header {
  background: linear-gradient(135deg, #8e24aa 0%, #4527a0 100%);
}

.course-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.course-title {
  color: #4a92ff !important;
  font-size: 16px;
  font-weight: bold;
  margin: 8px 0 4px;
  padding: 0 8px;
  line-height: 1.2;
}

.course-description {
  color: #ffffff;
  font-size: 14px;
  margin: 0 0 8px;
  padding: 0 8px;
  line-height: 1.3;
}

.course-date {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-date i {
  font-size: 16px;
  color: #ffc107;
}

.course-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.course-desc {
  font-size: 15px;
  color: #495057;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e9ecef;
  line-height: 1.7;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.course-price {
  font-size: 20px;
  font-weight: 800;
  color: #1866b6;
}

.course-price.free {
  color: #2e7d32;
}

.live .enroll-btn {
  background: linear-gradient(135deg, #8e24aa 0%, #4527a0 100%);
  box-shadow: 0 4px 15px rgba(142, 36, 170, 0.25);
}

.live .enroll-btn:hover {
  box-shadow: 0 7px 20px rgba(142, 36, 170, 0.4);
}

.stats-container {
  display: flex;
  justify-content: space-around;
  padding: 30px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  text-align: center;
  min-width: 200px;
}

.stat-value {
  font-size: 42px;
  font-weight: 800;
  color: #1866b6;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 16px;
  color: #6c757d;
  font-weight: 500;
}

footer {
  text-align: center;
  padding: 30px;
  color: #6c757d;
  font-size: 14px;
  border-top: 1px solid #e9ecef;
  margin-top: 50px;
}

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    min-width: 100%;
  }
}

@media (max-width: 600px) {
  body {
    padding: 20px 10px;
  }

  .academy-section {
    margin: 0 auto !important; /* Center the section */
    padding: 0 !important; /* Remove padding */
    width: 100% !important; /* Ensure full width */
    max-width: 100% !important; /* Prevent any max-width restrictions */
    box-sizing: border-box; /* Include padding and border in width */
  }

  .section-title {
    font-size: 22px;
  }

  .courses-container {
    grid-template-columns: 1fr;
    padding: 0; /* Remove unnecessary padding */
    justify-items: center; /* Center the cards */
    margin: 0 auto; /* Center the container */
    width: 100%; /* Ensure full width */
  }

  .course-header {
    padding: 20px;
  }

  .course-title {
    font-size: 18px;
  }

  .course-price {
    font-size: 18px;
  }

  .enroll-btn {
    padding: 10px 20px;
  }

  .stats-container {
    padding: 0; /* Remove unnecessary padding */
    margin: 0 auto; /* Center the stats container */
    width: 100%; /* Ensure full width */
  }

  .academy-poster {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
    height: auto;
  }
}
