* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

:root {
  --dark-gray: #333;
}

main {
  display: block;
}



/*Hero section*/
.hero {
    display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-bg {
  border-radius: 35px;
  display: flex;
  width: 97%;
  height: 97%;
  object-fit: cover;
  position: absolute;
  z-index: 1;
  box-shadow: 0 8px 32px rgb(0, 0, 0);
  filter: brightness(0.8);
}
.hero-overlay {
  position: relative;
  z-index: 2;
  background: #34658b4d; /* Semi-transparent white */
  backdrop-filter: blur(10px);          /* The blur effect */
  -webkit-backdrop-filter: blur(10px);  /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Optional border for glass edge */
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  right: 25%;
  bottom: 25%;
  max-width: 600px;
  text-align: left;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-overlay p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.course-detail {
    transform: translateY(-30px);
    display: flex;
    width: 60%;
    width: 60%;
    margin: 0px 0px 0px 5% ;
}

.course-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-content h2 {
    font-size: 2rem;
    font-weight:700;
}

.course-content p {
    display: flex;
    transform: translateX(40px);

}

.course-detail-1 {
    transform: translateY(-30px);
    transform: translateX(-30px);
    display: flex;
    width: 60%;
    width: 60%;
    margin: 0px 0px 0px 5% ;
}

.course-content-1 {
    display: flex;
    flex-direction: column;
}

.course-content-1 h2 {
    font-size: 2rem;
    font-weight:700;
}

.course-content-1 h3 {
  font-weight: 900;
  font-size: 1.5rem;
    display: flex;
    transform: translateX(20px);
}

.course-content-1 ul {
    transform: translateX(40px);
}

/*Future section*/
.container-main {
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.container-main {
  /* padding: 40px; */
  padding: 204px;
  width: 100%;
  height: 100%;
  max-width: 1200px;
}

.card-container {
  transform: translatey(-170px);
}

.card-container {
  
    position: absolute;
    display: flex;
    align-items: center;
    gap: 60px; 
    padding: 40px;
    width: 90%; 
    overflow: hidden;
    border-radius: 40px;
}

.card-container img {
    max-width: 900px;
    position: absolute;
    display: flex;
    height: auto;
    width: 100%;
    border-radius: 40px;
    filter: blur(2px) brightness(0.7);
    transform: scale(4);
}

/* Left Info Section */
.info-section {
  color: white;
    z-index: 2;
    flex: 1;
    margin: 15px;
    padding-left: 20px;
}

.info-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
}

/* Right Details Section*/
.details-section {
    z-index: 2;
    flex: 1;
    color: white;
    background-color: rgba(33, 58, 63, 0.4); /* Semi-transparent background */
    backdrop-filter: blur(20px); /* The blur effect */
    -webkit-backdrop-filter: blur(20px); /* For Safari support */
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.actions {
    display: flex;
    gap: 15px; /* Space between buttons */
    margin-bottom: 25px;
}

/* Button Styling */
button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-now {
    background-color: #3d9b8b;
    color: white;
  white-space: nowrap;
  min-width: 120px;
}
  .apply-now {
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
  }

.apply-now:hover {
    background-color: #317c70;
}

.contact {
    background-color: rgba(61, 155, 139, 0.5);
    color: #f0f0f0;
    border: 1px solid #3d9b8b;
}

.contact:hover {
    background-color: rgba(61, 155, 139, 0.7);
}


/* Target Audience Styling */
.level {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.target-audience h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.target-audience ul {
    list-style-type: '• ';
    padding-left: 20px;
}

.target-audience ul li {
    margin-bottom: 8px;
    font-size: 1rem;
}

/* === Responsive Enhancements === */
/* Tablets and below */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    height: auto;
    padding: 10rem 1rem;
  }

  .hero-overlay {
    right: 0;
    bottom: 0;
    max-width: 90%;
    padding: 2rem 1rem;
    text-align: center;
  }

  .course-detail,
  .course-detail-1 {
    width: 90%;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  .course-content p,
  .course-content-1 h3,
  .course-content-1 ul {
    transform: none;
    text-align: left;
    padding: 0 1rem;
  }

  .container-main {
    flex-direction: column;
    align-items: center;
    padding: 27rem 1rem;
  }

  .card-container {
    transform: translateY(0px);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
    position: absolute;
  }

  .card-container img {
    position: absolute;
    transform: scale(1.09);
    filter: blur(2px) brightness(0.6);
    border-radius: 20px;
    height: 100%;
    object-fit: cover;
  }

  .info-section,
  .details-section {
    padding: 1.5rem;
    margin: 1rem 0;
    width: 100%;
  }

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

  .actions {
    flex-direction: column;
    gap: 10px;
  }

  button {
    width: 100%;
  }
}

/* Smartphones */
@media (max-width: 576px) {
  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .course-content h2,
  .course-content-1 h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .course-content-1 h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .info-section h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .info-section p {
    font-size: 1rem;
    text-align: center;
    margin: 0 auto;
  }

  .target-audience h2 {
    font-size: 1.2rem;
    text-align: center;
  }

  .target-audience ul {
    padding-left: 1rem;
  }

  .target-audience ul li {
    font-size: 0.95rem;
  }

  .details-section {
    font-size: 0.95rem;
  }
}


