/* ===== HERO SECTION ===== */
.hero {
   position: relative;
   height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   background-image: image-set(
    url("/media/resized_background.avif") type("image/avif") 1x,
    url("/media/resized_background.webp") type("image/webp") 1x
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
   margin-top: -10vh;
}
.hero::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: rgba(255, 255, 255, 0.75);
   z-index: 1;
}
.hero > div {
   position: relative;
   z-index: 2;
}
.hero h1 {
   font-size: 3.5rem;
   font-weight: 600;
   color: var(--text-color);
   margin-bottom: 20px;
}
.hero p {
   font-size: 1.3rem;
   color: var(--text-color);
   max-width: 800px;
   margin: 0 auto;
}
.hero-buttons {
   margin-top: 40px;
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 20px;
}
/* ===== FEATURES SECTION ===== */
.features {
   padding: 60px 20px;
   background-color: #f7f9fa;
   text-align: center;
}
.features h2 {
   font-size: 2.5rem;
   margin-bottom: 20px;
}
.features p {
   font-size: 1.1rem;
   max-width: 800px;
   margin: 0 auto;
   color: var(--text-color);
   line-height: 1.7;
   text-align: justify;
}
/* ===== COURSES CAROUSEL ===== */
.courses-carousel {
   background-color: var(--back-light);
   position: relative;
   width: 100%;
   overflow: hidden;
}
.courses-carousel h2 {
   text-align: center;
   font-size: 2.5rem;
   margin-bottom: 40px;
   color: var(--text-color);
}
.courses-swiper {
   width: 100%;
   height: 100%;
   padding: 20px 0 60px;
   position: relative;
}
.swiper-wrapper {
   display: flex;
   width: 100%;
   height: 100%;
}
.swiper-slide {
   width: 100%;
   height: 100%;
   display: flex;
   justify-content: center;
   align-items: center;
}
.course-card {
   width: 100%;
   max-width: 380px;
   background: white;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   display: flex;
   flex-direction: column;
   margin: 0 auto;
}
.course-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.course-image {
   height: 180px;
   position: relative;
   overflow: hidden;
   flex-shrink: 0;
}
.course-image::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 191, 255, 0.05));
   z-index: 1;
   transition: opacity 0.4s ease;
}
.course-card:hover .course-image::before {
   opacity: 0.8;
}
.course-image.finance-101 {
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
      url("../media/finance-101.webp") center/cover no-repeat;
}
.course-image.personal-finance {
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
      url("../media/personal-finance.webp") center/cover no-repeat;
}
.course-image.investing-basics {
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
      url("../media/investing-basics.webp") center/cover no-repeat;
}
.course-image.prop-trading {
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
      url("../media/prop-trading.webp") center/cover no-repeat;
}
.course-image.real-estate {
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
      url("../media/real-estate.webp") center/cover no-repeat;
}
.course-image.crypto-and-defi {
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
      url("../media/crypto-defi.webp") center/cover no-repeat;
}
.course-image.economics-explained {
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
      url("../media/economics-explained.webp") center/cover no-repeat;
}
.course-content {
   padding: 24px;
   flex: 1;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
}
.course-content h3 {
   font-size: 1.3rem;
   font-weight: 600;
   color: var(--text-color);
   margin-bottom: 12px;
   line-height: 1.3;
}
.course-content p {
   font-size: 0.95rem;
   color: #666;
   line-height: 1.5;
   margin-bottom: 20px;
   flex: 1;
}
.course-btn {
   display: inline-block;
   padding: 12px 24px;
   background: var(--primary);
   color: white;
   text-decoration: none;
   border-radius: 8px;
   font-weight: 600;
   font-size: 0.9rem;
   text-align: center;
   transition: all 0.3s ease;
   border: 2px solid var(--primary);
}
.course-btn:hover {
   background: transparent;
   color: var(--primary);
}
.swiper-button-next,
.swiper-button-prev {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   z-index: 10;
   background: var(--primary);
   color: white;
   border-radius: 50%;
   width: 50px;
   height: 50px;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 4px 12px rgba(0,0,0,0.2);
   transition: all 0.3s ease;
}
.swiper-button-next::after,
.swiper-button-prev::after {
   content: none;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
   background: var(--back-light);
   transform: translateY(-50%) scale(1.1);
}
.swiper-button-prev {
   left: 15px;
}
.swiper-button-next {
   right: 15px;
}
.swiper-pagination {
   bottom: 20px;
}
.swiper-pagination-bullet {
   background: #ddd;
   opacity: 1;
   width: 12px;
   height: 12px;
   transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
   background: var(--primary);
   transform: scale(1.2);
}
/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
   background: var(--back-dark);
   text-align: center;
}
.how-it-works h2 {
   font-size: 2.5rem;
   margin-bottom: 0.5rem;
   color: var(--text-color);
}
.how-it-works .subtitle {
   font-size: 1.2rem;
   color: #666;
   margin-bottom: 3rem;
}
.steps {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 2rem;
}
.step {
   background: white;
   padding: 2rem;
   border-radius: 16px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
   transform: translateY(-5px);
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.step-icon {
   font-size: 2.5rem;
   margin-bottom: 1rem;
   color: #3366ff;
}
.step h3 {
   font-size: 1.3rem;
   margin-bottom: 0.5rem;
   color: var(--text-color);
}
.step p {
   font-size: 0.95rem;
   color: #555;
}
/* ===== SKILLS MAP SECTION ===== */
.skills-map {
   background: var(--back-light);
   padding: 4rem 2rem;
   text-align: center;
}
.skills-map h2 {
   font-size: 2.5rem;
   margin-bottom: 0.5rem;
   color: var(--text-color);
}
.skills-subtitle {
   color: #666;
   font-size: 1.2rem;
   margin-bottom: 3rem;
}
.skills-level h3 {
   font-size: 1.5rem;
   margin-bottom: 1.5rem;
   color: var(--text-color);
}
.skills-row {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 1rem;
   margin-bottom: 2rem;
}
.skill-card {
   background: var(--back-dark);
   padding: 1rem 1.5rem;
   border-radius: 12px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
   font-size: 1rem;
   font-weight: 500;
   color: var(--text-color);
   transition: all 0.3s ease;
}
.skill-card:hover {
   transform: translateY(-4px);
   box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.skills-connector {
   font-size: 1.5rem;
   margin: -1rem 0 1rem;
   color: #999;
}
/* ===== CONTENT SECTIONS ===== */
.section-want-more {
   background-color: var(--back-dark);
}
.section-learn-smarter {
   background-color: var(--back-light);
}
.content-wrapper {
   display: flex;
   align-items: center;
   gap: 4rem;
}
.text-block {
   width: 60%;
}
.text-block h2 {
   font-size: 2.5rem;
   margin-bottom: 1rem;
   font-weight: 600;
   color: var(--text-color);
}
.text-block p {
   font-size: 1.125rem;
   line-height: 1.6;
   margin-bottom: 2rem;
   color: var(--text-color);
}
.image-block {
   width: 40%;
}
.image-block img {
   width: 100%;
   border-radius: 10px;
   object-fit: cover;
}
@media (max-width: 1200px) {
   .courses-carousel {
      padding: 60px 40px;
   }
   .course-card {
      max-width: 340px;
      height: 400px;
   }
   .swiper-button-next,
   .swiper-button-prev {
      width: 45px;
      height: 45px;
   }
}
@media (max-width: 992px) {
   .courses-carousel {
      padding: 60px 30px;
   }
   .course-card {
      max-width: 320px;
      height: 380px;
   }
   .course-image {
      height: 160px;
   }
   .swiper-button-next,
   .swiper-button-prev {
      width: 40px;
      height: 40px;
   }
}
@media (max-width: 768px) {
   .courses-carousel {
      padding: 50px 20px;
   }
   .content-wrapper{
      flex-direction: column;
   }
   .content-wrapper.reverse{
      flex-direction: column-reverse;
   }
   .text-block {
      width: 100%;
   }
   .image-block{
      width: 100%;
   }
   .courses-carousel h2 {
      font-size: 2rem;
      margin-bottom: 30px;
   }
   .course-card {
      max-width: 300px;
      height: 360px;
   }
   .course-content {
      padding: 20px;
   }
   .course-content h3 {
      font-size: 1.2rem;
   }
   .swiper-button-next,
   .swiper-button-prev {
      display: none;
   }
   .hero h1 {
      font-size: 2.5rem;
   }
}
@media (max-width: 576px) {
   .courses-carousel {
      padding: 40px 15px;
   }
   .course-card {
      max-width: 280px;
      height: 340px;
   }
   .course-image {
      height: 140px;
   }
   .course-content {
      padding: 16px;
   }   
   .course-btn {
      padding: 10px 20px;
      font-size: 0.85rem;
   }
}
@media screen and (max-width: 420px) {
   .hero-buttons {
      flex-direction: column;
   }
}