/* 
* The Tower School - Estilos para la página de Cursos
*/

/* Page Banner */
.page-banner {
  background: linear-gradient(rgba(93, 93, 93, 0.7), rgba(93, 93, 93, 0.7)), url('../images/menu_cursos.png');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.page-banner h1 {
  color: var(--light-text);
  margin-bottom: 15px;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Course Categories */
.course-categories {
  padding: 80px 0;
  background-color: var(--light-text);
}

.categories-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.category-button {
  padding: 12px 24px;
  background-color: var(--light-bg);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-button:hover,
.category-button.active {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Course Cards */
.course-list {
  padding: 0 0 80px;
  background-color: var(--light-text);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
}

.course-image {
  height: 200px;
  overflow: hidden;
}

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

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.course-content {
  padding: 20px;
}

.course-level {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.course-title {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.course-details {
  margin: 15px 0;
}

.course-detail {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.course-detail i {
  color: var(--primary-color);
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.course-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

/* Course Details Section */
.course-details-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.course-details-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.course-description {
  background-color: var(--light-text);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-sidebar {
  background-color: var(--light-text);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  align-self: start;
}

.course-features {
  margin: 20px 0;
}

.course-feature {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.course-feature i {
  color: var(--success-color);
  margin-right: 10px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(rgba(93, 93, 93, 0.9), rgba(93, 93, 93, 0.9)), url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  text-align: center;
}

.cta-section h2 {
  color: var(--light-text);
  margin-bottom: 20px;
}

.cta-section p {
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .course-details-container {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .page-banner {
    padding: 60px 0;
  }
  
  .course-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .course-actions .btn {
    width: 100%;
    text-align: center;
  }
}
