:root {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --secondary: #2c3e50;
  --accent: #f39c12;
  --bg-light: #f5f5f5;
  --text-dark: #333;
  --text-light: #fff;
  --border-light: #e0e0e0;
  --success: #2ecc71;
  --info: #3498db;
  --warning: #f1c40f;
  --danger: #e74c3c;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  background-color: #fff;
}

/* Header Styles */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--secondary);
  color: var(--text-light);
  padding: 8px 0;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  gap: 20px;
}

.contact-info span {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.contact-info i {
  margin-right: 5px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.main-nav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-buttons {
  display: flex;
  gap: 15px;
}

.header-buttons a {
  padding: 8px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.login-btn {
  color: var(--primary);
  border: 1px solid var(--primary);
}

.login-btn:hover {
  background-color: rgba(231, 76, 60, 0.1);
}

.register-btn {
  background-color: var(--primary);
  color: white;
  border: 1px solid transparent;
}

.register-btn:hover {
  background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  border: 1px solid white;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--secondary);
}

/* Features Section */
.features {
  padding: 80px 20px;
  background-color: var(--bg-light);
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--secondary);
}

.section-title p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  font-size: 30px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--secondary);
}

/* Courses Section */
.courses {
  padding: 80px 20px;
}

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

.course-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

.course-price {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 500;
}

.course-content {
  padding: 20px;
}

.course-category {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.course-title {
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
  color: var(--secondary);
  text-decoration: none;
}

.course-stats {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid var(--border-light);
  color: #666;
  font-size: 14px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 20px;
  background-color: var(--bg-light);
}

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

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding: 0 20px;
}

.testimonial-content::before {
  content: '"';
  font-size: 60px;
  color: rgba(231, 76, 60, 0.2);
  position: absolute;
  left: -10px;
  top: -20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0 0 5px 0;
  color: var(--secondary);
}

.author-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Contact Form */
.contact-section {
  padding: 80px 20px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  background-color: rgba(231, 76, 60, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-details h4 {
  margin: 0 0 10px 0;
  color: var(--secondary);
}

.contact-details p {
  margin: 0;
  color: #666;
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: inherit;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer Styles */
.footer {
  background-color: var(--secondary);
  color: #ccc;
  padding: 60px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.social-icon:hover {
  background-color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* About Page Styles */
.about-section {
  padding: 80px 20px;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--secondary);
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.team-section {
  padding: 80px 20px;
  background-color: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-image {
  height: 250px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.team-content {
  padding: 20px;
  text-align: center;
}

.team-content h3 {
  margin-bottom: 5px;
  color: var(--secondary);
}

.team-content p {
  color: var(--primary);
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .nav-container {
    flex-direction: column;
    padding: 10px;
  }

  .main-nav {
    margin-top: 15px;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .header-buttons {
    margin-top: 15px;
    width: 100%;
    justify-content: center;
  }
}

/* Form Specific Styles */
.auth-form-section {
  padding: 60px 20px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
}

.auth-form {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
}

.auth-form h2 {
  text-align: center;
  color: var(--secondary);
  margin-bottom: 30px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.form-check input {
  width: auto;
}

.form-submit {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
}

/* Alert Messages */
.alert {
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--danger);
  color: var(--danger);
}

.alert-success {
  background-color: rgba(46, 204, 113, 0.1);
  border-left: 4px solid var(--success);
  color: var(--success);
}

/* Stats Section */
.stats-section {
  padding: 60px 20px;
  background-color: var(--primary);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 36px;
  margin-bottom: 10px;
}

.breadcrumbs {
  background-color: var(--bg-light);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumbs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumbs-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
  content: '/';
  margin: 0 10px;
  color: #999;
}

.breadcrumbs-item a {
  color: var(--secondary);
  text-decoration: none;
}

.breadcrumbs-item a:hover {
  color: var(--primary);
}

.breadcrumbs-item.active {
  color: var(--primary);
}

.page-title {
  font-size: 24px;
  margin: 0;
  color: var(--secondary);
}

/* Course Catalog Specific Styles */
.filter-sidebar {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 90px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h3 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 18px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-option input {
  width: auto;
}

.price-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-inputs input {
  width: 80px;
  padding: 8px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.course-search {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .filter-sidebar {
    position: static;
    margin-bottom: 30px;
  }
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 20px; }
.mb-4 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.bg-light { background-color: var(--bg-light); }
.full-width { width: 100%; }
