/* Reset */

.hero-section {
  width: 100%;
  height: 100vh;
  background: #10192f;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wrapper {
  width: 100%;
  height: 100vh;
  perspective: 700px;
  overflow: hidden;
}

.hero-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  width: 100%;
  height: 75rem;
  transform: translate3d(20%, -2%, 0) scale3d(0.9, 0.8, 1) rotateX(15deg)
    rotateY(-9deg) rotateZ(32deg);
  transform-origin: 50% 0%;
  scale: 1.2;
}

.hero-grid-col {
  display: grid;
  gap: 1.2rem;
}

.hero-col-1 {
  animation: hero-slide-up-1 30s linear infinite;
}

.hero-col-2 {
  animation: hero-slide-down-2 30s linear infinite;
}

.hero-col-3 {
  animation: hero-slide-up-3 30s linear infinite;
}

@keyframes hero-slide-up-1 {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-636px);
  }
}

@keyframes hero-slide-down-2 {
  0% {
    transform: translateY(-536px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes hero-slide-up-3 {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-636px);
  }
}

.hero-grid-col img {
  width: 100%;
  display: block;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero-grid-container {
    transform: translate3d(20%, -2%, 0) scale3d(0.9, 0.8, 1) rotateX(19deg)
      rotateY(340deg) rotateZ(45deg);
    transform-origin: 36% 13%;
    gap: 0.5rem;
    scale: 2.4;
  }

  .hero-grid-col {
    gap: 0.2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* courses sections */
.courses-header {
  margin-bottom: 40px;
}

.courses-main-title {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
  position: relative;
}

.courses-title-border {
  position: relative;
  width: 120px;
  height: 1px;
  background: #ccc;
  margin: 0 auto 15px;
}

.courses-title-border::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3.4px;
  background: #e63946;
}

.courses-subtitle {
  font-size: 16px;
  color: #444;
}

/* Grid container */
.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Each item */
.course-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Thumbnail */
.course-thumb img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #eee;
}

/* Title */
.course-title {
  font-size: 18px;
  font-weight: 600;
  padding: 15px 10px;
  color: #002147;
}

.courses-section {
  padding: 60px 20px;
  text-align: center;
  color: #000;
}

.courses-header {
  margin-bottom: 40px;
}

.courses-main-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.courses-subtitle {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.marquee-heading {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.marquee-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.image-marquee {
  overflow: hidden;
  background: #07294d;
  position: relative;
}

.marquee-track {
  display: flex;
  animation: scrollMarquee 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 calc(100% / 3);
  padding: 0 10px;
}

.marquee-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.marquee-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
  .marquee-item {
    flex: 0 0 calc(100% / 2);
  }

  .marquee-item img {
    max-height: 350px;
  }
}

@media (max-width: 576px) {
  .marquee-item {
    flex: 0 0 100%;
  }

  .marquee-item img {
    max-height: 383px;
  }

  .marquee-heading {
    font-size: 1.5rem;
  }

  .courses-main-title {
    font-size: 1.5rem;
  }

  .courses-subtitle {
    font-size: 0.9rem;
  }

  .marquee-subtitle {
    font-size: 0.9rem;
  }
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
