/* CSS for section section:Hero */
.hero-section {
  position: relative;
  background-color: var(--background-light);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.hero-slide {
  min-width: 100%;
  position: relative;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-slide-content {
  position: absolute;
  bottom: 50px;
  left: 50px;
  right: 50px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.hero-slide-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-slide-description {
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-slide-link {
  display: inline-block;
  background-color: var(--primary-orange);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero-slide-link:hover {
  background-color: var(--primary-red);
}

@media (max-width: 768px) {
  .hero-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .hero-slide-content {
    bottom: 30px;
    left: 20px;
    right: 20px;
  }
  .hero-slide-title {
    font-size: 1.8rem;
  }
  .hero-slide-description {
    font-size: 1rem;
  }
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.dot.active {
  background-color: rgba(255, 255, 255, 1);
}
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}
.hero-prev {
  left: 20px;
}
.hero-next {
  right: 20px;
}
.hero-prev:hover,
.hero-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
@media (max-width: 768px) {
  .hero-prev,
  .hero-next {
    /* display: none; */
  }
}

/* CSS for section section:Benefits */
.benefits-section {
  /* background-color: var(--background-offwhite); */
  background-color: var(--background-light);
  padding: 32px 0;
}

.benefits-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 20px;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  flex: 1;
}

.benefit-icon {
  position: relative;
  width: 70px;
  height: 70px;
}

.benefit-icon .icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.benefit-icon .icon-fg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
}
.benefit-text {
  font-size: 20px;
  line-height: 30px;
  color: var(--text-medium);
}

@media (max-width: 768px) {
  .benefits-container {
    /* flex-direction: column; */
    align-items: center;
    gap: 30px;
  }

  .benefit-icon {
    width: 50px;
    height: 50px;
  }

  .benefit-icon .icon-fg {
    width: 30px;
    height: auto;
  }

  .benefit-text {
    font-size: 14px;
    line-height: 24px;
  }
}

.section-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin-bottom: 56px;
}

.section-subtitle {
  color: var(--primary-orange);
  font-size: 16px;
  line-height: 24px;
}

.section-title {
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }
}

/* CSS for section section:Courses */
.courses-section {
  padding: 80px 0;
  /* background-color: var(--background-light); */
  background-color: var(--background-offwhite);
}
.courses-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.course-card {
  position: relative;
  width: 413px;
  height: 440px;
  overflow: hidden;
  color: var(--text-dark);
}
.course-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.course-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card-bg img:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
}

.course-card.card-1 {
  border-radius: 20px 200px 20px 60px;
}

.course-card.card-2 {
  border-radius: 32px;
}

.course-card.card-3 {
  border-radius: 120px 20px 60px 20px;
}

@media (max-width: 768px) {
  .course-card.card-1 {
    border-radius: 32px;
  }

  .course-card.card-3 {
    border-radius: 32px;
  }
}

.course-card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12.5px);
  padding: 12px 20px;
  border-radius: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.course-card-content h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
}
.course-card-content p {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-light);
}

.course-card-content .cta,
.course-card-content a {
  font-size: 16px;
  line-height: 24px;
  color: var(--primary-blue);
  font-weight: 400;
}

@media (max-width: 1300px) {
  .courses-grid {
    flex-direction: column;
    align-items: center;
  }
  .course-card {
    width: 100%;
    max-width: 413px;
  }
}

/* CSS for section section:Podcast */
.podcast-section {
  padding: 60px 0;
  background-color: #fdfdfd; /* A very light gray from the image */
}
.podcast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}

.podcast-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.podcast-logo img {
  width: 413px;
}
.podcast-title-group {
  text-align: left;
  max-width: 575px;
}
.podcast-title-group .section-title {
  text-align: left;
}
.podcast-title-group p {
  font-size: 18px;
  line-height: 27px;
  color: var(--text-medium);
  margin-top: 12px;
}
.podcast-content {
  display: flex;
  gap: 24px;
}
.podcast-featured-card {
  flex: 1;
  max-width: 681px;
  border: 1px solid var(--background-gray);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.featured-image {
  border-radius: 20px;
  width: 100%;
}
.featured-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.featured-card-body h3 {
  font-size: 16px;
  font-weight: bold;
  line-height: 24px;
  color: var(--text-dark);
}

.featured-card-body p {
  font-size: 16px;
  color: var(--text-light);
  flex-grow: 1;
}

@media (max-width: 768px) {
  .featured-card-body a {
    margin: 0 auto;
  }
}

.arrow-link {
  align-self: flex-end;
  transform: rotate(-45deg);
}
.podcast-list {
  flex: 1;
  max-width: 575px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.podcast-item-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--background-gray);
  border-radius: 20px;
}

.featured-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.featured-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

.item-card-image .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  filter: brightness(0.7);
}

.item-card-image {
  position: relative;
  height: 120px;
  width: 230px;
  object-fit: cover;
  object-position: center;
}

.item-card-image .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.item-card-text {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.item-card-text p {
  font-size: 16px;
  color: var(--text-dark);
}

.arrow-icon {
  transform: rotate(-45deg);
  flex-shrink: 0;
  margin-top: auto;
}

.podcast-nav {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 16px;
}
.podcast-nav button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
@media (max-width: 1200px) {
  .podcast-content {
    flex-direction: column;
  }
  .podcast-featured-card,
  .podcast-list {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .podcast-header {
    justify-content: center;
    text-align: center;
  }
  .podcast-title-group .section-title,
  .podcast-title-group p {
    text-align: center;
  }
  .podcast-item-card {
    flex-direction: column;
    text-align: center;
  }
  .item-card-text {
    flex-direction: column;
    align-items: center;
  }
}

/* CSS for section section:Blog */
.blog-section {
  background-color: var(--background-offwhite);
  padding: 60px 20px;
}
.blog-header {
  margin-bottom: 56px;
}
.blog-header .section-title {
  text-align: left;
}
.blog-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.large-card {
  flex-basis: 65%;
  min-width: 300px;
  background-color: var(--background-light);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  gap: 12px;
}
.card-image-container {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
}
.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px;
}

.small-cards-container {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.blog-card {
  position: relative;
  background-color: var(--background-light);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.small-cards-container .blog-card:first-child {
  flex-direction: row;
  grid-column: span 2;
  gap: 20px;
}

.small-card {
  padding: 20px;
}

.small-card > img {
  width: calc(100% + 40px);
  margin-bottom: 20px;
  height: 151px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.small-card > img:hover {
  transform: scale(1.05);
}

.small-cards-container .blog-card:first-child > img {
  /* height: 340px;
  width: 450px; */
  width: 60%;
  height: 100%;
  object-position: center;
  margin-bottom: 0;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 137px;
  left: 30px;
}

.small-cards-container .blog-card:first-child .card-tags {
  position: unset;
}

.tag {
  background-color: var(--background-light);
  border: 0.5px solid var(--background-gray);
  border-radius: 60px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-light);
}

.tag:hover {
  background-color: var(--primary-orange);
  color: var(--color-white);
  border-color: var(--primary-orange);
}

.card-date {
  font-size: 14px;
  color: var(--text-light);
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}

.card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.small-cards-container .blog-card:first-child .card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: unset;
  line-height: 22px;
}

.blog-card .btn {
  align-self: center;
  width: 100%;
}

.blog-footer {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 1280px) {
  .blog-grid {
    flex-direction: column;
  }
  .large-card {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .small-cards-container {
    grid-template-columns: 1fr;
  }

  .small-cards-container .blog-card:first-child {
    gap: unset;
    grid-column: span 1;
    flex-direction: column;
  }

  .small-cards-container .blog-card:first-child > img {
    height: 151px;
    width: 100%;
    margin-bottom: 20px;
  }

  .small-cards-container .blog-card:first-child .card-tags {
    position: absolute;
  }

  .small-cards-container .blog-card:first-child .card-excerpt {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.5;
  }
}

/* CSS for section section:Sponsors */
.sponsors-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

.filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 4px 12px;
  border: 0.5px solid #b6bbbe;
  border-radius: 60px;
  font-size: 16px;
  color: #323234;
  background-color: var(--color-background);
  transition: all 0.3s ease;
  text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-orange);
  color: var(--color-white);
  border-color: var(--primary-orange);
}
.sponsors-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.sponsors-subtitle {
  color: var(--primary-orange);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.sponsors-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  max-width: 100%;
  flex-wrap: wrap;
}
.sponsors-logos.wrap {
  flex-wrap: wrap;
  gap: 24px;
}
.sponsors-logos img {
  height: auto;
  max-height: 80px;
  max-width: 120px;
}

@media (max-width: 768px) {
  .sponsors-logos img {
    max-height: 60px;
    max-width: 70px;
  }
}

.sponsors-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.sponsors-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.sponsors-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.sponsors-slide img {
  height: auto;
  max-height: 80px;
  max-width: 120px;
}

@media (max-width: 768px) {
  .sponsors-slide img {
    max-height: 60px;
    max-width: 70px;
  }
}

.category-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-orange);
}
