:root {
  --primary-orange: #ff6b35;
  --dark-navy: #1e3a5f;
  --teal: #26c6da;
  --light-gray-bg: #f5f7fa;
  --text-gray: #6c757d;
  --dark-footer: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark-navy);
  background: var(--light-gray-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* Navigation */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-orange) !important;
}

.navbar-nav .nav-link {
  color: var(--dark-navy);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-orange);
}

.lang-selector {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--primary-orange);
  border-radius: 20px;
  color: var(--primary-orange);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary-orange);
  color: white;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2c4a6f 100%);
  color: white;
  padding: 100px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

/* Filters Section */
.filters-section {
  background: white;
  padding: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 12px 45px 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  width: 100%;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--primary-orange);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.search-box i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
}

.filter-select {
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: white;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary-orange);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-gray);
}

.view-btn.active,
.view-btn:hover {
  border-color: var(--primary-orange);
  background: var(--primary-orange);
  color: white;
}

/* Results Info */
.results-info {
  padding: 30px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-count {
  font-size: 1.1rem;
  color: var(--dark-navy);
}

.sort-select {
  padding: 8px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
}

/* Grid View */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding-bottom: 60px;
}

.course-card-grid {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-orange);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.course-badge.popular {
  background: var(--teal);
}

.course-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-category {
  color: var(--primary-orange);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-title {
  font-size: 1.25rem;
  color: var(--dark-navy);
  margin-bottom: 1rem;
}

.course-description {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.course-meta i {
  color: var(--primary-orange);
  margin-right: 5px;
}

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

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-orange);
}

.course-btn {
  background: var(--primary-orange);
  color: white;
  padding: 10px 25px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.course-btn:hover {
  background: #e55a2a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
  color: white;
}

/* List View */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-bottom: 60px;
}

.course-card-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
}

.course-card-list:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.course-card-list .course-image {
  width: 300px;
  flex-shrink: 0;
}

.course-card-list .course-content {
  padding: 30px;
  flex-grow: 1;
}

.course-card-list .course-footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Hide/Show Views */
.courses-grid.hidden,
.courses-list.hidden {
  display: none;
}

/* Footer */
.footer {
  background: var(--dark-footer);
  color: white;
  padding: 60px 0 30px;
}

.footer h5 {
  color: white;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

.social-icon:hover {
  background: var(--primary-orange);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

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

  .filters-section {
    position: relative;
  }

  .results-info {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .course-card-list {
    flex-direction: column;
  }

  .course-card-list .course-image {
    width: 100%;
    height: 200px;
  }

  .view-toggle {
    margin-top: 15px;
  }
}
