/* Courses Page Specific Styles */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #8fbc8f, #7aa67a);
  padding: 0px 0 30px;
  text-align: center;
  margin-top: 70px;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Course Categories */
.course-categories {
  padding: 80px 0;
  background: #f8f8f8;
}

.course-categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.category-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: #8fbc8f;
}

.category-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.category-card h3 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.category-card p {
  color: #666;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.category-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.category-card ul li {
  padding: 0.5rem 0;
  color: #555;
  position: relative;
  padding-left: 1.5rem;
}

.category-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8fbc8f;
  font-weight: bold;
}

.course-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.duration {
  background: #8fbc8f;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
}

/* Detailed Courses */
.detailed-courses {
  padding: 80px 0;
  background: white;
}

.detailed-courses h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.course-detail {
  background: #f8f8f8;
  border-radius: 15px;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-header {
  background: linear-gradient(135deg, #8fbc8f, #7aa67a);
  color: white;
  padding: 2rem;
}

.course-header h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.course-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.course-meta span {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.course-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 2.5rem;
}

.course-description h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.course-description p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.course-description ul {
  list-style: none;
  margin-bottom: 2rem;
}

.course-description ul li {
  padding: 0.5rem 0;
  color: #555;
  position: relative;
  padding-left: 1.5rem;
}

.course-description ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8fbc8f;
  font-weight: bold;
  font-size: 1.2rem;
}

.schedule-table {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid #eee;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row .week {
  background: #8fbc8f;
  color: white;
  padding: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.schedule-row .topic {
  padding: 1rem;
  color: #333;
  display: flex;
  align-items: center;
}

.course-footer {
  background: white;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ddd;
}

.course-footer .btn-primary {
  width: auto;
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-left: auto;
  min-width: 150px;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-info .price {
  font-size: 2rem;
  font-weight: bold;
  color: #8fbc8f;
}

.price-info .price-note {
  color: #666;
  font-size: 0.9rem;
}

/* Benefits Section */
.benefits-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
}

.benefits-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.benefit-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.benefit-item h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.benefit-item p {
  color: #666;
  line-height: 1.6;
}

/* Registration Section */
.registration-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  color: white;
}

.registration-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Form Styles */
.form-main {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #f0f0f0;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #555;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8fbc8f;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #ccc;
}

.form-group select option {
  background: #333;
  color: white;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #8fbc8f, #7aa67a);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(143, 188, 143, 0.3);
}

.btn-primary:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form Validation Styles */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #ff6b6b;
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: #8fbc8f;
}

/* Active Navigation Link */
.nav-menu a.active {
  color: #8fbc8f;
  font-weight: bold;
}

/* Logo Link */
.logo-section a {
  text-decoration: none;
  color: inherit;
}

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

  .page-header h1 {
    font-size: 2.5rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .course-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .course-meta {
    gap: 1rem;
  }

  .course-meta span {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .course-footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .course-footer .btn-primary {
    width: auto;
    margin-left: 0;
    align-self: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .schedule-row .week {
    border-radius: 5px 5px 0 0;
  }

  .schedule-row .topic {
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #eee;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .course-categories h2,
  .detailed-courses h2,
  .benefits-section h2,
  .registration-section h2 {
    font-size: 2rem;
  }

  .category-card {
    padding: 2rem;
  }

  .course-header {
    padding: 1.5rem;
  }

  .course-content {
    padding: 2rem;
  }

  .course-footer {
    padding: 1.5rem;
  }

  .price-info .price {
    font-size: 1.5rem;
  }
}

/* Animation for course cards */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card {
  animation: slideInUp 0.6s ease forwards;
}

.category-card:nth-child(2) {
  animation-delay: 0.2s;
}

.category-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Course detail toggle */
.course-detail {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.course-detail.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading state for buttons */
.btn-primary.loading {
  position: relative;
  color: transparent;
}

.btn-primary.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Articles Section */
.articles-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.articles-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.articles-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  color: #666;
  border: 2px solid #ddd;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #8fbc8f;
  color: #8fbc8f;
}

.filter-btn.active {
  background: #8fbc8f;
  color: white;
  border-color: #8fbc8f;
}

.articles-container {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.articles-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.article-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #8fbc8f;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card h4 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #999;
}

.article-date {
  font-weight: bold;
}

.article-time {
  background: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .article-card {
    padding: 1.5rem;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .articles-filter {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .articles-section h2 {
    font-size: 2rem;
  }
  
  .article-card {
    padding: 1rem;
  }
  
  .article-card h4 {
    font-size: 1.1rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* Additional Articles Section */
.additional-articles {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.additional-articles h4 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid #8fbc8f;
  padding-bottom: 1rem;
}

.articles-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mini-article-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 3px solid #8fbc8f;
}

.mini-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.mini-article-card h5 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
}

.mini-article-card p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.article-meta-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #999;
}

.article-tag {
  background: #8fbc8f;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.course-footer-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
}

.course-footer-new .price-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.course-footer-new .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8fbc8f;
}

.course-footer-new .price-note {
  font-size: 0.9rem;
  color: #666;
}

.course-footer-new .btn-primary {
  padding: 12px 24px;
  font-size: 1rem;
  min-width: 180px;
  text-align: center;
}

/* Responsive Design for Additional Articles */
@media (max-width: 768px) {
  .articles-grid-mini {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .additional-articles {
    padding: 1.5rem;
  }
  
  .course-footer-new {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .course-footer-new .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .mini-article-card {
    padding: 1rem;
  }
  
  .mini-article-card h5 {
    font-size: 1rem;
  }
  
  .article-meta-mini {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .additional-articles h4 {
    font-size: 1.3rem;
  }
}
