/* ==========================================
   OTG Training Module - Premium Styling
   ========================================== */
/* Helper spacing classes */
.bg-blue-purple {
    background-color: #665FED !important;
}

.section-otg-training {
    padding: 12rem 0;
}

@media (max-width: 991px) {
    .section-otg-training {
        padding: 8rem 0;
    }
}

.training-rounded-img {
    border: 1px solid #4C40F7;
    border-radius: 2rem;
    transition: transform 0.3s ease;
}

.training-subtitle {
    font-size: 2.5rem;
    font-weight: 300;
}

.training-description p {
    margin-bottom: 3rem;
}

.training-description p:last-child {
    margin-bottom: 0;
}

/* Certificate Area */
.certificate-content {
    border-radius: 2rem;
    overflow: hidden;
    padding: 3rem;
    padding-right: 13.2rem;
    background-color: #665FED;
}

.certificate-content .description {
    margin-top: 1.3rem;
}

.p--40 {
    padding: 4rem;
}

@media (min-width: 768px) {
    .p-md--60 {
        padding: 6rem;
    }
}

.certificate-description p {
    margin-bottom: 1.6rem;
}

.certificate-description p:last-child {
    margin-bottom: 0;
}

.certificate-img-wrap img {
    min-height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    border: 1px solid #4C40F7;
}

/* Why Train With OTG - 2x2 Horizontal Grid */
.why-train-section .list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2rem;
    grid-row-gap: 3rem;
}

@media (max-width: 575px) {
    .why-train-section .list {
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
    }
}

/* Premium Horizontal Cards */
.benefit-card {
    background-color: #EBF2FF;
    /* Light grayish-blue background matching the design */
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    height: 100%;
    gap: 3.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-img-wrap {
    position: relative;
    flex: 0 0 40%;
    overflow: hidden;
    background: #f8fafc;
    min-height: 41rem;
}

@media (max-width: 767px) {
    .benefit-img-wrap {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 10;
    }
}

.benefit-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.benefit-info-wrap {
    padding: 2.8rem;
    flex-grow: 1;
    padding-left: 0;
}

@media (max-width: 767px) {
    .benefit-info-wrap {
        padding: 2rem;
    }
}

.benefit-card-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #121234;
    /* Consistent dark-slate theme color */
    line-height: 1.3;
}

.benefit-card-desc {
    font-family: 'outfit', sans-serif;
    font-size: 1.8rem;
    line-height: calc(27/18);
    color: #121234;
    font-weight: 300;
}

.benefit-card-desc p {
    margin-bottom: 1.5rem;
}

.benefit-card-desc p:last-child {
    margin-bottom: 0;
}

.group-btn .btn.btn-yellow.btn-orange {
    background-color: #F29B00 !important;
}

.group-btn .btn.btn-yellow.btn-orange:hover {
    background-color: #4C40F7 !important;
}


/* ==========================================
   Our Course Module - Premium Styling
   ========================================== */

.section-our-course {
    padding: 8rem 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

@media (max-width: 991px) {
    .section-our-course {
        padding: 8rem 0;
    }
}


.course-nav-item {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    color: #FFFFFF;
    font-family: 'outfit';
    font-size: 2rem;
    font-weight: 600;
    line-height: calc(30/20);
    margin-top: 2.5rem;
    gap: 2.5rem;
}

.course-detail-subtitle {
    font-family: 'lexend-deca';
    font-size: 2.5rem;
    font-weight: 600;
    line-height: calc(28/25);
}

.course-nav-item:first-child {
    margin-top: 0;
}

.course-nav-item:hover {
    background-color: #ffffff;
    color: #4C40F7;
}

.course-nav-item:hover img,
.course-nav-item.active img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(81%) saturate(4198%) hue-rotate(245deg) brightness(115%) contrast(94%);
}

.course-nav-item.active {
    background-color: #ffffff !important;
    color: #4C40F7 !important;
}

.course-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.1rem;
    height: 3.7rem;
    color: inherit;
    transition: all 0.3s ease;
}

.course-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-nav-title {
    flex-grow: 1;
}

/* Detail displays right column */
.course-details-display {
    padding-left: 4rem;
}

@media (max-width: 1199px) {
    .course-details-display {
        padding-left: 2rem;
    }
}

.course-detail-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-detail-pane.active {
    display: block;
    opacity: 1;
}

.course-detail-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: calc(30/20);
    color: #ffffff;
    margin-bottom: 2rem;
}

.course-detail-desc p {
    margin-bottom: 2rem;
}

.course-detail-desc p:last-child {
    margin-bottom: 0;
}

.course-duration-text {
    font-size: 2rem;
    font-weight: 400;
    color: #FFBA2E;
    line-height: calc(28/20);
    margin-top: 0.5rem;
}

/* Mobile Accordion Styles */
.course-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-accordion-item {
    background-color: rgba(101, 95, 239, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 2.5rem;
}

.course-accordion-item:first-child {
    margin-top: 3rem;
}

.course-accordion-header {
    padding: 2rem;
    cursor: pointer;
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 2rem;
}

.course-accordion-title {
    flex-grow: 1;
}

.course-accordion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    transition: transform 0.3s ease;
}

.course-accordion-arrow svg {
    width: 3.1rem;
    height: 3.7rem;
}

.course-accordion-item.active img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(81%) saturate(4198%) hue-rotate(245deg) brightness(115%) contrast(94%);
}

/* Active Accordion State */
.course-accordion-item.active {
    border-color: #4C40F7;
}

.course-accordion-item.active .course-accordion-header {
    background-color: #ffffff;
    color: #4C40F7;
}

.course-accordion-item.active .course-accordion-arrow {
    transform: rotate(180deg);
}

.course-accordion-inner {
    padding: 3rem 2rem;
    background-color: rgba(11, 15, 25, 0.95);
    border-top: 0.1rem solid rgba(255, 255, 255, 0.05);
}

/* ==========================================
   Training Delivery Approach - Premium Styling
   ========================================== */
.section-delivery-approach {
    padding: 12rem 0;
    overflow: hidden;
}

.mt-55 {
    margin-top: 5.5rem;
}

@media (max-width: 991px) {
    .section-delivery-approach {
        padding: 8rem 0;
    }
}

.section-delivery-approach .description ul {
    margin: 0;
}

.section-delivery-approach .description strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-top: 5.5rem;
}

.delivery-image-wrap {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.delivery-image-wrap img {
    border-radius: 2rem;
    box-shadow: 0 2rem 4rem rgba(76, 64, 247, 0.05);
}

/* ==========================================
   Our Trainers Module - Premium Styling
   ========================================== */
.section-our-trainers {
    padding: 12rem 0;
    background-color: #665FED;
    /* Đồng bộ tông màu tím xanh của dự án */
}

@media (max-width: 991px) {
    .section-our-trainers {
        padding: 8rem 0;
    }
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.section-our-trainers .description {
    font-weight: 300;
}

.section-our-trainers .box-content {
    padding-right: 5rem;
}

@media (max-width:991px) {
    .section-our-trainers .box-content {
        padding-right: 0;
    }
}

.trainers-decor-spiral {
    position: absolute;
    top: 0;
    left: 20%;
    width: 45rem;
    height: 19rem;
    background-image: url(../images/bg-trainers.png);
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.section-our-trainers .list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 2rem;
    grid-row-gap: 3rem;
}

@media (max-width: 767px) {
    .section-our-trainers .list {
        display: none !important;
    }
}

@media (max-width:575px) {
    .trainers-decor-spiral {
        left: 30%;
        width: 35rem;
    }
}

.trainer-card {
    border-radius: 2rem;
    overflow: hidden;
    background-color: #ffffff;
    border: none;
}

.trainer-avatar-wrap {
    background-color: #ffffff;
    aspect-ratio: 1/1;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.2rem 1.2rem 0 1.2rem;
    border-radius: 2rem 2rem 0 0;
}

.trainer-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    transition: transform 0.5s ease;
}

.trainer-info {
    padding: 2rem 1.2rem;
    padding-bottom: 2.5rem;
    background-color: #ffffff;
    border-radius: 0 0 2rem 2rem;
    gap: 0.8rem;
}

.trainer-card-icon {
    min-width: 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trainer-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trainer-meta {
    display: flex;
    flex-direction: column;
}

.trainer-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #121234;
    line-height: 1;
}

.trainer-pos {
    font-family: 'outfit', sans-serif;
    font-size: 1.8rem;
    color: #121234;
    line-height: 1;
    margin-bottom: 0;
}

/* ==========================================
   Section Gallery - Swiper Premium Styling
   ========================================== */


.gallery-main-img-wrap {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.4);
    height: 60rem;
}

@media(max-width:991px) {
    .gallery-main-img-wrap {
        height: 40rem;
    }
}

@media(max-width:575px) {
    .gallery-main-img-wrap {
        height: 30rem;
    }
}

.gallery-main-img-wrap img {
    transition: transform 0.6s ease;
    object-fit: cover;
}

.gallery-thumbs-slider {
    padding-top: 2rem;
}

.gallery-thumb-img-wrap {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    cursor: pointer;
    height: 17rem;
}

@media(max-width:991px) {
    .gallery-thumb-img-wrap {
        height: 15rem;
    }
}


@media(max-width:575px) {
    .gallery-thumb-img-wrap {
        height: 13rem;
    }

    .gallery-thumbs-slider {
        padding-top: 1rem;
    }
}

.gallery-thumb-img-wrap img {
    object-fit: cover;
}

.gallery-thumbs-slider .swiper-slide-thumb-active .gallery-thumb-img-wrap {
    opacity: 1;

}

.gallery-thumb-img-wrap:hover {
    opacity: 0.85;
}

/* ==========================================
   Section Testimonial - Premium Styling
   ========================================== */
.section-testimonial {
    padding: 8rem 0;
    background: linear-gradient(135deg, #665FED 0%, #5046E5 100%);
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .section-testimonial {
        padding: 6rem 0;
    }
}

/* Concentric circular curved lines overlay */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 3rem;
    grid-row-gap: 3rem;
}

@media (max-width: 991px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .testimonial-grid {
        display: none !important;
    }
}

.testimonial-card {
    background: #ffffff;
    border-radius: 0;
    padding: 2.8rem;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.testimonial-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimonial-avatar-wrap {
    width: 5.2rem;
    height: 5.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-default-avatar {
    width: 100%;
    height: 100%;

}

.testimonial-custom-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-stars {
    display: flex;
    gap: 0.5rem;
}

.testimonial-stars svg {
    width: 2.85rem;
    height: 2.85rem;
}

.testimonial-author-name {
    font-size: 2.6rem;
    font-weight: 600;
    color: #133240;
    line-height: 1.2;
    letter-spacing: 0.52px;
    margin-top: 1.5rem;
}

.testimonial-comment {
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1.6;
    color: #133240;
    letter-spacing: 0.38px;
    font-family: 'outfit', sans-serif;
    margin-top: 1.5rem;

}

/* Mobile Swiper Layout */
.testimonial-swiper {
    padding-bottom: 3rem;
}

.testimonial-swiper .swiper-slide {
    height: auto;
}

/* ==========================================
   Section Facilities - Premium Styling
   ========================================== */
.section-facilities {
    padding: 12rem 0;
    background-color: #ffffff;
}

@media (max-width: 991px) {
    .section-facilities {
        padding: 8rem 0;
    }
}

.section-facilities .description ul {
    margin: 0;
}

.facilities-desc {
    font-size: 2rem;
    line-height: calc(24/20);
    color: #121234;
}

.facilities-card {
    border-radius: 2rem;
    padding: 3rem;
    height: 100%;
}

.facilities-card-purple {
    background-color: #4C40F7;
    /* Deep brand purple */
    box-shadow: 0 1.5rem 4rem rgba(76, 64, 247, 0.12);
}

.facilities-card-yellow {
    background-color: #FDF9D3;
    /* Light yellow background */
    box-shadow: 0 1.5rem 4rem rgba(253, 249, 211, 0.2);
}

.facilities-card .card-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.facilities-card .card-subtitle {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: calc(33/25);
}

/* ==========================================
   Section FAQ AI - Premium Accordion
   ========================================== */
.section-faq-ai {
    padding: 0 0 12rem;
}

@media (max-width: 991px) {
    .section-faq-ai {
        padding: 8rem 0;
    }
}

@media (max-width: 767px) {
    .faq-ai-section-title {
        font-size: 2.8rem;
    }
}

.faq-ai-list {
    display: flex;
    flex-direction: column;
    padding: 0 6.3rem;
}

@media (max-width: 991px) {
    .faq-ai-list {
        padding: 0;
    }
}

.faq-ai-item {
    border-bottom: 1px solid #EAECF0;
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.faq-ai-item:first-child {
    padding-top: 0;
}

.faq-ai-item-header {
    cursor: pointer;
    user-select: none;
}

.faq-ai-item-question {
    font-size: 2rem;
    font-weight: 500;
    color: #000000;
    line-height: calc(28/20);
    transition: color 0.3s ease;
}

.faq-ai-item-icon {
    width: 2.4rem;
    height: 2.4rem;
    position: relative;
    flex-shrink: 0;
    margin-left: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-ai-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggle image logic */
.faq-ai-item-icon .plus-icon {
    display: block;
}

.faq-ai-item-icon .minus-icon {
    display: none;
}

.faq-ai-item.active .faq-ai-item-icon .plus-icon {
    display: none;
}

.faq-ai-item.active .faq-ai-item-icon .minus-icon {
    display: block;
}

.faq-ai-item-content {
    margin-left: 5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-ai-item-inner {
    padding-top: 2rem;
    font-size: 1.8rem;
    line-height: calc(27/18);
    font-weight: 300;
    color: #121234;
}

.faq-ai-item-content p {
    margin-bottom: 2rem;
}

.faq-ai-item-content p:last-child {
    margin-bottom: 0;
}