/* Hero Section with Carousel */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  visibility: hidden; /* Hide slides by default */
}

.hero-slide.active {
  opacity: 1;
  visibility: visible; /* Show active slide */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 48, 143, 0.7), rgba(0, 71, 171, 0.8));
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 150px 20px 0;
  text-align: center;
  color: var(--text-light);
}

.hero-content {
  position: absolute;
  top: 150px;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.hero-content.active {
  opacity: 1;
  visibility: visible;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInDown 1s ease-out;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeIn 1.5s ease-out;
  margin-top: 30px; /* Reduced from 320px to 30px */
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-indicator.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

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

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

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

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

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

.feature-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

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

/* Popular Courses Section */
.popular-courses {
  padding: 10px 0;
  background-color: #f8f9fa;
}

.featured-courses {
  padding: 50px 0;
  background-color: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

.course-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #ff5722;
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.course-image {
  height: 200px;
  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-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.course-content h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.course-content h3 a:hover {
  color: #007bff;
}

.instructor {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #777;
}

.course-meta span {
  display: flex;
  align-items: center;
}

.course-meta i {
  margin-right: 5px;
  color: #007bff;
}

.description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  display: flex;
  flex-direction: column;
}

.original-price {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #007bff;
}

.section-footer {
  text-align: center;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 71, 171, 0.9), rgba(0, 48, 143, 0.95)), url('https://source.unsplash.com/random/1600x900/?business');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Partner Logos Section */
.partner-logos {
  padding: 10px 0;
  background-color: var(--bg-light);
  overflow: hidden;
}

.logo-ticker {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  animation: ticker 30s linear infinite;
  width: fit-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  flex-shrink: 0;
  width: 200px;
  height: 100px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Partners Section */
.partners {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.partner-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.partner-logos img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
  max-width: 150px;
  height: 60px;
  background-color: #f0f0f0;
}

.partner-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Filters Section Styles */
.filters-section {
    margin-bottom: 40px;
    padding: 15px 20px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.filters-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filters-group.categories {
    justify-content: flex-start;
}

.filters-group.meta-filters {
    justify-content: flex-end;
    position: relative;
}

.filter-separator {
    display: inline-block;
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    margin: 0 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 36px;
    line-height: 1.2;
}

.filter-btn:hover {
    background-color: var(--primary-color-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .filters-row {
        flex-direction: column;
        gap: 20px;
    }

    .filters-group.categories,
    .filters-group.meta-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;  /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        flex-wrap: nowrap;
    }

    .filters-group.categories::-webkit-scrollbar,
    .filters-group.meta-filters::-webkit-scrollbar {
        display: none;  /* Chrome, Safari, Opera */
    }
}

/* Responsive Styles for Index Page */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 550px;
  }

  .hero-content {
    top: 120px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    margin-top: 150px;
    flex-direction: column;
    align-items: center;
  }
}

.btn-yellow {
    background-color: #FFD700; /* Gold/yellow color */
    color: #000; /* Black text for better contrast on yellow */
    border: 1px solid #E6C200; /* Slightly darker border */
}

.btn-yellow:hover {
    background-color: #FFC800; /* Slightly darker yellow on hover */
    color: #000;
    border-color: #D4B300;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #000000; /* Changed from primary-color (gold) to black */
}

.blog-card p {
    color: var(--text-color);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.blog-card .read-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}