body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow-x: hidden;

  /* Vibrant animated gradient */
  background: linear-gradient(-45deg, #610221, #8f1433, #241d1e, #1b010a);
  background-size: 300% 300%;
  animation: gradientBG 10s ease infinite;
}

/* Smaller Hero Video */
.video-header.small-hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.video-blur-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.video-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.hero-title {
  font-size: 40px;
  font-weight: 800;
  color: #f1c40f;
}

.hero-title .highlight {
  color: #00ffe5;
  font-style: italic;
}

.hero-subtitle {
  margin-top: 15px;
  font-size: 18px;
  color: #e0e0e0;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 90px; /* Increased padding */
  gap: 90px;
  background-color: rgba(0, 0, 0, 0.3); /* Optional translucent overlay */
  backdrop-filter: blur(6px); /* Optional blur effect */
  border-radius: 20px;
}

.left-box {
  background: linear-gradient(to bottom, #fcd15b, #ffc845);
  box-shadow: 0 0 45px rgba(255, 200, 70, 0.5);
  padding: 40px 30px;
  width: 625px;
  height: 455px;
  border-radius: 9px;
  position: relative;
  overflow: hidden; /* just in case */
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.left-box h1 {
  color: #b22028;
  font-size: 52px;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.left-box p {
   font-size: 1.5rem;
  line-height: 1.5;
  color: #1b1b1b;
  max-height: calc(100% - 80px);
  word-wrap: break-word;
  white-space: normal; 
  overflow:auto;
  text-align: justify;
}

.right-box {
  width: 900px; /* 600 * 1.5 */
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
   backdrop-filter: blur(4px);
}

.right-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.15);
}
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.section-divider {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  z-index: 2;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(133% + 1.3px);
  height: 60px;
  animation: waveMove 15s linear infinite;
}

.section-divider path {
  fill: #a8a7b6; 
  opacity: 0.9;
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Explore Our Courses Section */
.explore-courses {
  text-align: center;
  padding: 60px 0;
  color: #fff;
}

.explore-courses h1 {
  font-size: 36px;
  color: #f1c40f;
  margin-bottom: 30px;
  animation: fadeIn 1.5s ease-out;
}

.courses-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.course-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  padding: clamp(15px, 3vw, 30px);
  border-radius: 10px;
  background: linear-gradient(135deg, #35010e, #180109);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  will-change: transform, opacity;
  animation: slideIn 1s ease-out forwards;
}

.course-box:hover {
  transform: scale(1.05);  
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);  
  background: linear-gradient(135deg, #010827, #012723); 
}

.course-box .video-box {
  width: 50%;
}

.course-box .video-box video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.course-box .description-box {
  width: 50%;
  padding: 15px;
  text-align: justify;
}

.course-box .description-box h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: #f1c40f;
  font-weight: 800;
  margin-bottom: clamp(10px, 2vw, 20px);
  transition: color 0.3s ease;
}

.course-box .description-box p {
  font-size: clamp(16px, 2vw, 26px);
  color: #ddd;
  margin-bottom: clamp(10px, 2vw, 20px);
  line-height: 1.5;
  text-align: justify;
}

.course-box .details-btn {
  background-color: #f1c40f;
  color: #1b010a;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.course-box .details-btn:hover {
  background-color: #8f1433;
  color: #fff;
  transform: translateY(-3px); 
}

.course-box.reverse {
  flex-direction: row-reverse;
}

.course-box.reverse .description-box {
  text-align: right;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    transform: translateX(-50%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.main-navbar {
  width: 100vw;
  box-sizing: border-box;
  background: rgba(28,28,34,0.97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 36px;
  position: fixed;     
  top: 0;
  left: 0;
  z-index: 999;         
  box-shadow: 0 3px 16px 0 #0002;
  min-height: 64px;
}

body {
  padding-top: 72px;   
}
/* Mobile Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 30px;
    flex-direction: column;
    gap: 30px;
  }

  .left-box, .right-box {
    width: 100%;
    padding: 20px;
  }

  .left-box h1 {
    font-size: 36px;
  }

  .left-box p {
    font-size: 1.2rem;
  }

  .courses-container {
    flex-direction: column;
    gap: 20px;
  }

  .course-box {
    flex-direction: column;
    text-align: center;
  }

  .course-box .video-box,
  .course-box .description-box {
    width: 100%;
  }

  .course-box .description-box h2 {
    font-size: 28px;
  }

  .course-box .description-box p {
    font-size: 18px;
  }

  .course-box .details-btn {
    font-size: 16px;
    padding: 12px 20px;
  }
}

/* Course Box Reverse - Mobile Optimization */
@media (max-width: 768px) {
  .course-box.reverse {
    flex-direction: column;  /* Stack video and description vertically */
    align-items: center;  /* Center content */
    text-align: center;  /* Ensure text is centered */
  }

  .course-box.reverse .video-box,
  .course-box.reverse .description-box {
    width: 100%;  /* Make both video and description boxes take full width */
  }

  .course-box.reverse .description-box h2 {
    font-size: 28px;  /* Adjust the title size for mobile */
    margin-bottom: 15px;  /* Adjust space between title and description */
  }

  .course-box.reverse .description-box p {
    font-size: 18px;  /* Adjust the paragraph size for readability */
    margin-bottom: 15px;  /* Add spacing at the bottom */
  }

  .course-box.reverse .details-btn {
    font-size: 16px;  /* Make the button text size smaller */
    padding: 12px 20px;  /* Increase button size for easier tapping */
  }

  /* Adjust video to be responsive on mobile */
  .course-box.reverse .video-box video {
    width: 100%;  /* Ensure video takes full width */
    height: auto;  /* Keep video aspect ratio intact */
  }
}

.course-center img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.course-center img:hover {
  transform: scale(1.05);
}
