/*=============================================
=            MAIN-COURSES WRAPPER             =
=============================================*/
.main-courses-wrapper .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.main-courses-wrapper .section-title {
  color: #171717;
  font-weight: 700;
  font-size: 2rem; /* 32px */
  line-height: 2.75rem; /* 44px */
  margin-bottom: 2rem;
}
.main-courses-wrapper .text-highlight {
  color: #a40000;
}
@media (min-width: 1024px) {
  .main-courses-wrapper .section-title {
    font-size: 2.5rem; /* 40px */
    line-height: 3.5rem; /* 56px */
    text-align: center;
    margin-bottom: 2.5rem;
  }
}

/*=============================================
=                 BREADCRUMBS                 =
=============================================*/
.main-courses-wrapper .breadcrumbs {
  background-color: #fafafa;
  padding: 8px 0;
}
.main-courses-wrapper .breadcrumbs .container {
  display: flex;
  align-items: center;
}
.main-courses-wrapper .breadcrumbs__current-page {
  padding: 0.25rem 0.75rem;
}
.main-courses-wrapper .breadcrumbs__current-page p {
  color: #404040;
  font-size: 0.875rem;
  font-weight: 500;
}

/*=============================================
=               BANNER SECTION                =
=============================================*/
.main-courses-wrapper .banner-section {
  background-color: #edf7ff;
  margin-bottom: 2.5rem;
}
.main-courses-wrapper .banner-section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.main-courses-wrapper .banner-section__text {
  flex: 1;
}
.main-courses-wrapper .banner-section__text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #171717;
  margin-bottom: 2rem;
  line-height: 56px;
}
.main-courses-wrapper .banner-section__text p {
  font-size: 1.125rem;
  color: #262626;
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.2px;
}
.main-courses-wrapper .banner-section__buttons {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}
.main-courses-wrapper .banner-section__buttons .btn {
  font-weight: 600;
  padding: 10px 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.main-courses-wrapper .banner-section__buttons .btn-primary {
  background-color: #a40000;
  color: white;
  border: 1px solid #a40000;
}
.main-courses-wrapper .banner-section__buttons .btn-secondary a:hover {
  color: white;
}
.main-courses-wrapper .banner-section__buttons .btn-primary:hover {
  background-color: white;
  color: #004aad;
  border-color: #004aad;
}
.main-courses-wrapper .banner-section__buttons .btn-secondary {
  background-color: transparent;
  color: #004aad;
  border: 1px solid #004aad;
}
.main-courses-wrapper .banner-section__buttons .btn-secondary:hover {
  background-color: #a40000;
  color: white;
  border-color: #a40000;
}
.main-courses-wrapper .banner-section__images {
  flex: 1;
  display: flex;
  gap: 7px;
}
.main-courses-wrapper .banner-section__image-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.main-courses-wrapper .banner-section__image-col img {
  width: 100%;
  height: auto;
}
@media (min-width: 1024px) {
  .main-courses-wrapper .banner-section {
    margin-bottom: 5rem;
  }
  .main-courses-wrapper .banner-section__content {
    flex-direction: row;
  }
  .main-courses-wrapper .banner-section__text h1 {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    line-height: 72px;
  }
  .main-courses-wrapper .banner-section__buttons {
    flex-direction: row;
  }
  .main-courses-wrapper .banner-section__image-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .main-courses-wrapper .banner-section__images {
    flex: 1;
    display: flex;
    gap: 0.75rem;
  }
}

/*=============================================
=           COURSE CAROUSEL SECTION           =
=============================================*/
.course-carousel-section {
  margin-bottom: 1rem;
}
.course-carousel-section .section-title {
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: left;
}
/* Desktop */
.course-carousel-section__desktop {
  display: none;
  padding: 20px 0 80px;
}
.course-carousel-section__desktop .container {
  position: relative;
  overflow: hidden;
}
.course-carousel-section__desktop .timeline-track {
  width: 100%;
  height: 1px;
  background-color: #d4d4d4;
  position: absolute;
  top: 20px; /* Half of dot height */
  left: 0;
  z-index: 0;
}
.course-carousel-section__desktop .carousel-container {
  position: relative;
  overflow: hidden;
}
.course-carousel-section__desktop .carousel-track {
  display: flex;
  transition: transform 0.3s ease-out;
}
.course-carousel-section__desktop .carousel-item-courses {
  flex-shrink: 0;
  width: 33.3333%;
  padding: 0 1rem;
  box-sizing: border-box;
}
.course-carousel-section__desktop .item-content {
  transition: all 0.3s ease;
}
.course-carousel-section__desktop .item-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid #fff !important;
  background-color: #d4d4d4;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.course-carousel-section__desktop .item-dot:hover {
  background-color: #a0aec0;
}
.course-carousel-section__desktop .item-dot.active {
  background-color: #174ea2;
}
.course-carousel-section__desktop .item-text {
  padding-top: 2rem;
}
.course-carousel-section__desktop .item-text h3 {
  font-size: 2rem;
  line-height: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #374151;
  transition: color 0.3s ease;
}
.course-carousel-section__desktop .item-text p {
  font-size: 1rem;
  line-height: 1.625;
  color: #4b5563;
  transition: color 0.3s ease;
}
.course-carousel-section__desktop .carousel-item-courses.active .item-text h3 {
  color: #174ea2;
}
.course-carousel-section__desktop .carousel-item-courses.active .item-text p {
  color: #1f2937;
}

/* Mobile */
.course-carousel-section__mobile {
  display: block;
  padding: 6px 0 40px;
}
.course-carousel-section__mobile .container {
  display: flex;
}
.course-carousel-section__mobile .mobile-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 1.5rem;
  margin-right: 2.5rem;
  position: relative;
  flex-shrink: 0;
}
.course-carousel-section__mobile .mobile-timeline__track-bg,
.course-carousel-section__mobile .mobile-timeline__track-active {
  width: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
}
.course-carousel-section__mobile .mobile-timeline__track-bg {
  background-color: #d4d4d4;
  z-index: 1;
}
.course-carousel-section__mobile .mobile-timeline__track-active {
  background-color: #2563eb;
  z-index: 2;
  transition: height 0.5s ease-out;
}
.course-carousel-section__mobile .mobile-timeline__dots {
  position: relative;
  z-index: 3;
}
.course-carousel-section__mobile .item-dot {
  width: 32px;
  height: 32px;
  border: 4px solid white;
  border-radius: 50%;
  background-color: #d4d4d4;
  transition: all 0.3s ease;
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  cursor: pointer;
}
.course-carousel-section__mobile .item-dot:hover {
  background-color: #a0aec0;
}
.course-carousel-section__mobile .item-dot.past {
  background-color: #60a5fa;
}
.course-carousel-section__mobile .item-dot.active {
  background-color: #2563eb;
  transform: translateX(-50%) scale(1);
}
.course-carousel-section__mobile .mobile-content {
  flex: 1;
}
.course-carousel-section__mobile .mobile-content__item {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}
.course-carousel-section__mobile .mobile-content__item:last-child {
  margin-bottom: 0;
}
.course-carousel-section__mobile .mobile-content__item.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.course-carousel-section__mobile .mobile-content__item-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #374151;
  transition: color 0.3s ease;
}
.course-carousel-section__mobile .mobile-content__item-title.active {
  color: #2563eb;
}
.course-carousel-section__mobile .mobile-content__item p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
  transition: color 0.3s ease;
}
.course-carousel-section__mobile .mobile-content__item.active p {
  color: #1f2937;
}

@media (min-width: 1024px) {
  .course-carousel-section {
    margin-bottom: 0;
  }
  .course-carousel-section .section-title {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }
  .course-carousel-section__desktop {
    display: block;
  }
  .course-carousel-section__mobile {
    display: none;
  }
}

/*=============================================
=             HIGHLIGHTS SECTION              =
=============================================*/
.highlights-section {
  margin-bottom: 2.5rem;
}
.highlights-grid {
  display: none; /* Hidden by default, shown on LG */
  gap: 2rem;
  align-items: stretch;
}
.highlight-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(246, 230, 230, 0.6);
  border-radius: 1rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
  padding-right: 0.75rem;
  color: #262626;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 300px;
}
.highlight-card:hover {
  background-color: #a40000;
  color: white;
}
.highlight-card__text {
  font-size: 1.5rem;
  font-weight: 600;
  flex: 1;
  margin: 0;
}
.highlight-card__number {
  font-size: 115px;
  line-height: 138px;
  font-weight: 700;
  text-align: right;
  margin-bottom: -18px;
  margin-top: 0;
  color: transparent;
  -webkit-text-stroke: 1.16px #f63535;
  transition: all 0.3s ease;
}
.highlight-card:hover .highlight-card__number {
  -webkit-text-stroke: 1.16px #a40000;
  color: white;
}
/* Mobile Scroll Container */
.highlights-scroll-container {
  overflow-x: auto;
}

.highlights-scroll-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding-bottom: 5px;
}
.highlight-card-mobile-wrapper {
  width: 18rem; /* 288px */
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .highlights-grid {
    display: flex;
  }
  .highlights-scroll-container {
    display: none;
  }
  .highlights-section {
    margin-bottom: 80px;
  }
}

/*=============================================
=             ACHIEVEMENT SECTION             =
=============================================*/
.achievements-grid {
  display: flex;
  flex-direction: column-reverse; /* Đảo ngược thứ tự trên mobile */
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
}
#iia-achievement {
  margin-bottom: 40px;
}
.achievement-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-achievement-bg);
  padding: 2rem;
  color: white;
}
.achievement-title {
  text-align: left;
  color: #262626;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  letter-spacing: 0.1px;
  margin-bottom: 32px;
}
.achievement-title-color {
  color: #a40000;
}
.achievement-name {
  font-size: 1.5rem; /* 2xl */
  line-height: 2.25rem; /* leading-9 */
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.achievement-bio {
  margin-bottom: 1.5rem;
}

.achievement-points-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  padding: 1rem 0;
  border-top: 1px solid var(--color-achievement-border);
  border-bottom: 1px solid var(--color-achievement-border);
  margin-bottom: 1.5rem;
}

.achievement-points-circle {
  width: 70px;
  height: 70px;
  display: grid;
  place-content: center;
  background-color: var(--color-achievement-points-bg);
  border-radius: 9999px;
  padding: 0.5rem;
}

.achievement-desc {
  line-height: 1.6;
}

.achievements-thumbs-swiper {
  margin-top: 3rem;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

.achievements-thumbs-swiper .swiper-slide {
  cursor: pointer;
  width: 72px !important;
  height: 72px;
}

.achievement-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
}

.achievement-slider-wrapper {
  position: relative;
  width: 100%;
  height: 210px; /* Chiều cao mặc định cho mobile */
}

.achievements-main-swiper {
  height: 100%;
}

.achievement-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* --- CSS tùy chỉnh cho Thumbs Swiper (Sếp cung cấp) --- */

div[class*="thumbs-swiper"]::before,
div[class*="thumbs-swiper"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
div[class*="thumbs-swiper"]::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
div[class*="thumbs-swiper"]::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

/* --- Responsive Styles for Achievements Section --- */
@media (min-width: 1024px) {
  /* lg breakpoint */
  #iia-achievement {
    margin-bottom: 80px;
  }
  .achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .achievement-slider-wrapper {
    grid-column: span 2 / span 2;
    height: auto; /* Chiều cao tự động trên desktop */
  }

  .achievement-title {
    text-align: center;
    color: #262626;
    font-weight: 700;
    font-size: 40px;
    line-height: 56px;
    letter-spacing: 0.1px;
    margin-bottom: 40px;
  }
  .achievement-title-color {
    color: #a40000;
  }
}

/*=============================================
=                 FAQ SECTION                 =
=============================================*/
.faq-section {
  padding-bottom: 2.5rem;
}
/* Desktop Tabs */
.faq-tabs__desktop {
  display: none;
  border: 1px solid #d4d4d4;
  border-radius: 0.375rem;
  gap: 1rem;
  padding: 0.25rem;
  margin-bottom: 2.5rem;
}
.faq-tab {
  flex: 1;
  padding: 10px 1rem;
  text-align: center;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background-color: transparent;
  color: #737373;
}
.faq-tab:hover {
  color: white;
  background-color: #a40000;
}
.faq-tab.active {
  background-color: #a40000;
  color: white;
}
/* Mobile Dropdown */
.faq-tabs__mobile {
  position: relative;
  margin-bottom: 1.5rem;
}
.faq-dropdown-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 1rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.375rem;
  background-color: #a40000;
  color: white;
  font-weight: 500;
  cursor: pointer;
}
.faq-dropdown-toggle .chevron-down {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  color: white;
}
.faq-dropdown-toggle[aria-expanded="true"] .chevron-down {
  transform: rotate(180deg);
}
.faq-dropdown-menu {
  position: absolute;
  left: 0;
  width: 100%;
  top: 100%;
  z-index: 10;
  margin-top: 0.25rem;
  background-color: white;
  border: 1px solid #d4d4d4;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: none; /* Toggled by JS */
}
.faq-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: #171717;
  border-bottom: 1px solid #f3f4f6;
}
.faq-dropdown-item:last-child {
  border-bottom: none;
}
.faq-dropdown-item:hover {
  background-color: #f3f4f6;
}
.faq-dropdown-item.active {
  background-color: #a40000;
  color: white;
}
/* Accordion */
.accordion-item {
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}
.accordion-toggle {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-weight: 600;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #262626;
}
.accordion-toggle .chevron-down {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}
.accordion-item.open .accordion-toggle {
  padding-bottom: 1rem;
}
.accordion-item.open .accordion-toggle .chevron-down {
  transform: rotate(180deg);
}
.accordion-content-wrapper {
  overflow: hidden;
  transition: height 0.3s ease-in-out;
}
.accordion-content {
  margin: 0 1rem;
  padding: 1rem 0;
  border-top: 1px solid #e5e5e5;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #262626;
}
.accordion-item.open .accordion-content {
  opacity: 1;
}
@media (min-width: 1024px) {
  .faq-tabs__desktop {
    display: flex;
  }
  .faq-tabs__mobile {
    display: none;
  }
  .faq-section {
    padding-bottom: 80px;
  }
  .accordion-toggle {
    padding: 1.5rem;
  }
  .accordion-item.open .accordion-toggle {
    padding-bottom: 1rem;
  }
  .accordion-content {
    margin: 0 1.5rem;
    padding: 1.5rem 0;
  }
}

/*=============================================
|=            CSS VARIABLES                    =
=============================================*/
:root {
  --color-achievement-bg: #00357b;
  --color-achievement-border: #336ebd;
  --color-achievement-points-bg: #3889ff;
}
