
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #3f37c9;
  --accent-color: #4cc9f0;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --success-color: #4bb543;
  --warning-color: #f0ad4e;
  --danger-color: #d9534f;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --max-width: 1400px;
}



a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.btn i {
  font-size: 1.1em;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

.btn-dark:hover {
  background-color: #2a2a3c;
  color: white;
}

/* Header Section */
.courses-header {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5rem 0 8rem;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.main-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.header-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 1;
}

.header-wave svg {
  width: 100%;
  height: 100%;
}

/* Breadcrumb */
.custom-breadcrumb {
  background-color: rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  animation: fadeIn 1s ease 0.6s forwards;
  opacity: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.breadcrumb-item.active {
  color: white;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(255,255,255,0.7);
  padding: 0 0.5rem;
}

/* Stats Cards */
.header-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  animation: fadeInUp 1s ease 0.9s forwards;
  opacity: 0;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
}

.stat-card:hover {
  background-color: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.stat-card i {
  font-size: 1.5rem;
  color: white;
}

.stat-card .count {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.stat-card .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Filter Section */
.courses-filter-section {
  padding: 3rem 0;
  position: relative;
  margin-top: -4rem;
}

.filter-container {
  display: flex;
  gap: 2rem;
  position: relative;
}

.mobile-filter-toggle {
  display: none;
}

.filter-sidebar {
  width: 280px;
  flex-shrink: 0;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.sidebar-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  margin: 0;
}

.close-filter {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-color);
  cursor: pointer;
  display: none;
}

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

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Search Box */
.search-box {
  position: relative;
  margin-bottom: 1rem;
}

.search-box input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 3rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-box button {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-color);
  cursor: pointer;
}

/* Form Elements */
.form-select, .form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  background-color: white;
  transition: var(--transition);
}

.form-select:focus, .form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-check {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0;
}

.form-check-label {
  cursor: pointer;
  user-select: none;
}

.filter-options {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.filter-options::-webkit-scrollbar {
  width: 5px;
}

.filter-options::-webkit-scrollbar-track {
  background: var(--light-gray);
}

.filter-options::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.filter-actions {
  margin-top: 2rem;
}

/* Accordion */
.accordion {
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-header {
  padding: 0.8rem 1rem;
  background-color: var(--light-gray);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-header h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.accordion-icon {
  transition: var(--transition);
}

.accordion.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 1rem;
  background-color: white;
  display: none;
}

.accordion.active .accordion-content {
  display: block;
}

/* Results Section */
.filter-results {
  flex-grow: 1;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.results-count {
  font-size: 1.3rem;
  margin: 0;
}

.search-query {
  background-color: var(--light-gray);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-right: 0.8rem;
}

.view-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-toggle .btn {
  padding: 0.5rem;
  border-radius: 5px;
}

.view-toggle .btn i {
  margin: 0;
}

.view-toggle .btn.active {
  background-color: var(--primary-color);
  color: white;
}

/* Courses List */
.courses-list {
  margin-bottom: 3rem;
}

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

.course-col {
  transition: var(--transition);
}

.course-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.course-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.badge {
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.featured-badge {
  background-color: var(--warning-color);
  color: white;
}

.discount-badge {
  background-color: var(--danger-color);
  color: white;
}

.category-badge {
  background-color: white;
  color: var(--dark-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

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

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

.course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  gap: 0.8rem;
}

.course-card:hover .course-overlay {
  opacity: 1;
}

.wishlist-btn, .quick-view-btn, .preview-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.9);
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.wishlist-btn:hover, .quick-view-btn:hover, .preview-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.wishlist-btn.active {
  background-color: var(--danger-color);
  color: white;
}

.preview-btn {
  background-color: var(--accent-color);
  color: white;
}

.course-details {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.instructor-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instructor-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.instructor-name {
  font-size: 0.85rem;
  color: var(--gray-color);
}

.course-stats {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--gray-color);
}

.course-stats i {
  margin-left: 0.3rem;
}

.course-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  transition: var(--transition);
}

.course-title a:hover {
  color: var(--primary-color);
}

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

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

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

.level-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  background-color: var(--light-gray);
  display: inline-block;
  font-weight: 500;
}

.level-badge.beginner {
  background-color: #e3f2fd;
  color: #1976d2;
}

.level-badge.intermediate {
  background-color: #e8f5e9;
  color: #388e3c;
}

.level-badge.advanced {
  background-color: #fce4ec;
  color: #d81b60;
}

.duration-lessons {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--gray-color);
}

.duration-lessons i {
  margin-left: 0.3rem;
}

.course-price {
  text-align: left;
}

.original-price {
  font-size: 0.85rem;
  color: var(--gray-color);
  text-decoration: line-through;
  display: block;
}

.discounted-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--danger-color);
  display: block;
}

.normal-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--success-color);
  display: block;
}

.course-actions {
  display: flex;
  gap: 0.8rem;
  padding: 0 1.5rem 1.5rem;
}

.details-btn {
  flex-grow: 1;
}

.enroll-btn {
  flex-grow: 2;
}

/* List View */
.courses-list.list-view .row {
  grid-template-columns: 1fr;
}

.courses-list.list-view .course-card {
  flex-direction: row;
  height: auto;
}

.courses-list.list-view .course-image {
  width: 300px;
  height: auto;
  flex-shrink: 0;
}

.courses-list.list-view .course-details {
  flex-grow: 1;
}

.courses-list.list-view .course-actions {
  flex-direction: column;
  padding: 1.5rem;
  justify-content: center;
}

/* Pagination */
.courses-pagination {
  margin-top: 3rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
}

.page-item {
  list-style: none;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background-color: white;
  border: 1px solid var(--light-gray);
  color: var(--gray-color);
  font-weight: 500;
  transition: var(--transition);
}

.page-link:hover {
  background-color: var(--light-gray);
  color: var(--dark-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* No Courses Found */
.no-courses-found {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--box-shadow);
}

.no-results-icon {
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.7;
}

/* Popular Courses Section */
.popular-courses-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--primary-color);
}

.section-divider span {
  width: 50px;
  height: 2px;
  background-color: var(--light-gray);
}

.popular-course-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.popular-courses-slider .owl-nav {
  position: absolute;
  top: -70px;
  right: 0;
  display: flex;
  gap: 0.5rem;
}

.popular-courses-slider .owl-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white !important;
  color: var(--dark-color) !important;
  border: 1px solid var(--light-gray) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.popular-courses-slider .owl-nav button:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background-color: #f9fafc;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  height: 100%;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviewer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--light-gray);
}

.reviewer-details h4 {
  margin-bottom: 0.3rem;
}

.rating-stars {
  color: var(--warning-color);
  margin-bottom: 0.3rem;
}

.review-content {
  margin-bottom: 1.5rem;
  position: relative;
}

.review-content::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -1.5rem;
  right: -0.5rem;
  color: var(--light-gray);
  z-index: 0;
  line-height: 1;
}

.review-content p {
  position: relative;
  z-index: 1;
  font-style: italic;
}

.review-course {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
}

.course-thumb {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  object-fit: cover;
}

.course-title {
  font-size: 0.9rem;
  transition: var(--transition);
}

.course-title:hover {
  color: var(--primary-color);
}

.testimonials-slider .owl-nav {
  position: absolute;
  top: -70px;
  right: 0;
  display: flex;
  gap: 0.5rem;
}

.testimonials-slider .owl-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white !important;
  color: var(--dark-color) !important;
  border: 1px solid var(--light-gray) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.testimonials-slider .owl-nav button:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

/* Stats Section */
.stats-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

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

.stat-card {
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255,255,255,0.2);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
}

.stat-count {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Newsletter Section */
.newsletter-section {
  padding: 4rem 0;
}

.newsletter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--box-shadow);
}

.newsletter-content {
  flex: 1;
}

.newsletter-title {
  color: white;
  margin-bottom: 0.5rem;
}

.newsletter-text {
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

.newsletter-form {
  flex: 1;
  max-width: 600px;
}

.input-group {
  display: flex;
  margin-bottom: 1rem;
}

.input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}

.input-group .btn {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.form-check-label {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}

/* Footer */
.main-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 0;
}

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

.footer-col {
  padding: 0 1rem;
}

.footer-about {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-logo img {
  width: 40px;
}

.footer-about-text {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: white;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-title {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

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

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  transform: translateX(-5px);
}

.footer-links a i {
  font-size: 0.8rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.contact-info i {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-top: 0.2rem;
}

.contact-info a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.contact-info a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: white;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.floating-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: var(--transition);
  position: relative;
}

.floating-button:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.whatsapp {
  background-color: #25D366;
}

.messenger {
  background-color: #006AFF;
}

.scroll-top {
  background-color: var(--primary-color);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 90%;
  max-width: 900px;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  transform: translateY(-50px);
  transition: var(--transition);
}

.modal.show .modal-dialog {
  transform: translateY(0);
}

.modal-lg {
  max-width: 1100px;
}

.modal-xl {
  max-width: 1200px;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3rem);
}

.modal-content {
  position: relative;
}

.btn-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.btn-close:hover {
  background-color: var(--light-gray);
}

.modal-body {
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from { 
    opacity: 0;
    transform: translateY(-20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .container {
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .main-title {
    font-size: 2.3rem;
  }
  
  .newsletter-container {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .header-stats {
    flex-wrap: wrap;
  }
  
  .stat-card {
    width: calc(50% - 0.75rem);
  }
  
  .filter-container {
    flex-direction: column;
  }
  
  .filter-sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: var(--transition);
  }
  
  .filter-sidebar.show {
    right: 0;
  }
  
  .close-filter {
    display: block;
  }
  
  .mobile-filter-toggle {
    display: block;
    margin-bottom: 1.5rem;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .popular-courses-slider .owl-nav,
  .testimonials-slider .owl-nav {
    position: static;
    justify-content: center;
    margin-top: 1.5rem;
  }
  
  .courses-list.list-view .course-card {
    flex-direction: column;
  }
  
  .courses-list.list-view .course-image {
    width: 100%;
  }
  
  .modal-dialog {
    width: 95%;
  }
}

@media (max-width: 575px) {
  .main-title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .header-stats {
    gap: 1rem;
  }
  
  .stat-card {
    width: 100%;
  }
  
  .course-actions {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  
  .floating-buttons {
    bottom: 1rem;
    left: 1rem;
  }
  
  .floating-button {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Print Styles */
@media print {
  .courses-header,
  .filter-sidebar,
  .floating-buttons,
  .popular-courses-section,
  .testimonials-section,
  .newsletter-section,
  
  
  .course-card {
    break-inside: avoid;
    margin-bottom: 1cm;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
  }
}
      
