.courses-section {
    width: 100%;
    padding: 186px 64px 64px 64px;
    background: #E7E8E9;
    /* Mirage-Lightest */
    display: flex;
    justify-content: center;
}

.courses-container {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.courses-content {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    align-items: center;
}

.courses-text {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.courses-title {
    color: black;
    font-size: 72px;
    font-weight: 500;
    line-height: 86.4px;
}

.courses-description {
    color: black;
    font-size: 18px;
    line-height: 27px;
}

.courses-image {
    flex: 1 1 100px;
}

.courses-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    max-width: 500px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .courses-title {
        font-size: 48px;
        line-height: 60px;
    }

    .courses-content {
        flex-direction: column;
        gap: 0px;
    }
}


.allvideos-section {
    width: 100%;
    padding: 112px 64px;
    background: #05070B;
    display: flex;
    justify-content: center;
}

.allvideos-container {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: white;
}

.allvideos-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 39.2px;
}

.allvideos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.allvideos-card {
    flex: 1 1 calc(33% - 24px);
    background: #05070B;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.allvideos-thumbnail {
    position: relative;
    width: 100%;
    height: 223px;
    background-size: cover;
    background-position: center;
}

.allvideos-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 128px;
    height: 102px;
    /* background: rgba(0, 0, 0, 0.15); */
    transform: translate(-50%, -50%);
}

.allvideos-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 53px;
    height: 53px;
    /* background: white; */
    transform: translate(-50%, -50%);
}

.allvideos-card-content {
    padding: 24px;
}

.allvideos-card-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 30.8px;
}

.allvideos-pagination {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.allvideos-page-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.allvideos-page-numbers {
    display: flex;
    gap: 2px;
}

.allvideos-page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 18px;
    cursor: pointer;
}

.allvideos-page.active {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .allvideos-card {
        flex: 1 1 calc(50% - 24px);
    }
}

@media (max-width: 600px) {
    .allvideos-card {
        flex: 1 1 100%;
    }

    .allvideos-pagination {
        flex-direction: column;
        gap: 16px;
    }
}



/* contactoneweb-section */

.contactoneweb-section {
    width: 100%;
    padding: 112px 64px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)),
        url('../images/Contact_BG.svg') center/cover no-repeat;
    display: flex;
    justify-content: center;
}

.contactoneweb-container {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.contactoneweb-content {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: space-between;
    align-items: center;
}

.contactoneweb-text {
    flex: 1 1 400px;
    color: white;
    font-size: 40px;
    font-weight: 500;
    line-height: 62.4px;
}

.contactoneweb-action {
    flex: 0 0 auto;
}

.contactoneweb-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: white;
    color: black;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border-radius: 100px;
    border: 1px solid white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contactoneweb-button:hover {
    background: transparent;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contactoneweb-text {
        font-size: 36px;
        line-height: 40px;
        flex: 1 1 0px;
    }

    .contactoneweb-content {
        flex-direction: column;
        gap: 30px;
        /* align-items: flex-start; */
    }
}


.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* margin-top: 50px; */
}

.video-wrapper {
    position: relative;
    width: 50%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: black;
}

/* --- md --- */
@media (min-width: 768px) and (max-width: 1024px){
 .video-wrapper {
    position: relative;
    width: 80%  !important;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: black;
}
}
/* --- sm xs --- */
@media (min-width: 200px) and (max-width: 767px){
 .video-wrapper {
    position: relative;
    width: 80%  !important;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: black;
}
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* .video-close {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  cursor: pointer;
  z-index: 9999;
  border-radius: 99px;
background: var(--Color-Neutral-Darkest, #000);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
display: flex;
padding: 8px;
align-items: center;
gap: 10px;
} */

.video-close {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    cursor: pointer;
    z-index: 9999;
    border-radius: 99px;
    background: var(--Color-Neutral-Darkest, #000);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    padding: 8px;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* hover effect */
.video-close:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.85);
}



.allvideos-play-icon svg {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.allvideos-card:hover .allvideos-play-icon svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.allvideos-card:active .allvideos-play-icon svg {
    transform: scale(0.9);
}


/* --- xl --- */
@media (min-width: 1281px) {}

/* --- lg --- */
@media (min-width: 1025px) and (max-width: 1280px) {}

/* --- md --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .courses-title {
        color: black;
        font-size: 50px;
        font-weight: 500;
        line-height: normal;
    }
}

/* --- sm xs --- */
@media (min-width: 200px) and (max-width: 767px) {
    .courses-title {
        color: black;
        font-size: 36px;
        font-weight: 500;
        line-height: normal;
    }

    .courses-text {
        display: flex;
        flex-direction: column;
        gap: 0px;
        flex: 1 1 0px;
    }
}


.coming-soon-thumbnail {
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    position: relative;
    animation: fadeIn 1s ease;
}




/* ===== AllCourses (ac-*) ===== */
.ac-allcourses {
    --ac-bg: var(--Color-Scheme-1-Foreground, #05070B);
    --ac-text: var(--Color-Scheme-1-Text, #FFFFFF);
    --ac-border: var(--Color-Scheme-1-Border, rgba(255, 255, 255, 0.15));
    --ac-radius: 16px;
    --ac-gap: 24px;

    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 24px);
    padding-block: clamp(16px, 4vw, 24px);
    color: var(--ac-text);

    padding: 112px 64px;
    background: #05070B;
    display: flex;
    justify-content: center;
}

.ac-grid {
    display: grid;
    gap: var(--ac-gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    align-items: start;
}

.ac-card {
    background: var(--ac-bg);
    border-radius: var(--ac-radius);
    outline: 1px solid var(--ac-border);
    outline-offset: -1px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform .18s ease, outline-color .18s ease, box-shadow .18s ease;
}

.ac-card:where(:hover, :focus-within) {
    transform: translateY(-2px);
    outline-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.ac-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 41 / 26.6;
    object-fit: cover;
    display: block;
}

.ac-card__body {
    display: grid;
    gap: 12px;
    padding: 20px clamp(16px, 3vw, 24px);
}

.ac-card__title {
    font-weight: 600;
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.3;
    margin: 0;
}

.ac-card__desc {
    font-weight: 400;
    font-size: clamp(14px, 1.9vw, 18px);
    line-height: 1.6;
    margin: 0;
    opacity: .9;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* จำกัด 3 บรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.ac-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.6;
    justify-content: space-between;
}

.ac-card__duration {
    opacity: .95;
}

.ac-card__dot {
    opacity: .35;
}

.ac-card__videos {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: .95;
}

.ac-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* Accessibility helper */
.ac-visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    clip-path: inset(50%);
}

/* ===== Responsive tweaks ===== */
@media (min-width: 1200px) {
    .ac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 380px) {
    .ac-card__meta {
        gap: 8px;
    }

    .ac-card__dot {
        display: none;
    }
}




/* ===== GettingStarted (gs-*) ===== */
.gs-gettingstarted {
    --gs-text: var(--Color-Scheme-1-Text, #fff);
    --gs-border: var(--Color-Scheme-1-Border, rgba(255, 255, 255, .15));
    --gs-brand: var(--Color-Brand--Light, #59B0FF);
    --gs-gap: 24px;
    color: var(--gs-text);
    
    width: 100%;
    padding: 112px 64px;
    background: #05070B;
    display: flex;
    justify-content: center;
    
}

.gs-gettingstarted{
    background-color: #191919;
}

/* Breadcrumb */
.gs-breadcrumb {
    margin-bottom: 10px;
}

.gs-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
    font: 400 clamp(14px, 1.8vw, 18px)/1.6;
}

.gs-breadcrumb__link {
    color: var(--gs-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: .95;
}


.gs-breadcrumb__sep {
    opacity: .5;
}

.gs-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Meta row */
.gs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    font: 300 clamp(12px, 1.6vw, 14px)/1.6;
    margin-bottom: 16px;
    opacity: .95;
}

.gs-meta__dot {
    opacity: .4;
}

/* Title */
.gs-header {
    /* padding-block: 12px 12px; */
}

.gs-title {
    margin: 0;
    font: 500 clamp(28px, 4.2vw, 44px)/1.2;
}

/* Summary */
.gs-summary {
    padding-block: 8px 16px;
}

.gs-summary__text {
    margin: 0;
    font: 400 clamp(14px, 1.9vw, 18px)/1.7;
    opacity: .92;
  
}

@media (max-width: 520px) {
    .gs-summary__text {
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Subtitles */
.gs-subtitle {
    margin: 20px 0 8px 0;
    font: 500 clamp(20px, 3vw, 28px)/1.35;
}

/* Who section */
.gs-for__text {
    margin: 0 0 8px 0;
    font: 400 clamp(14px, 1.9vw, 18px)/1.7;
    opacity: .92;
}

/* Video list */
.gs-videos {
    margin-top: 8px;
}

.gs-video-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    border-block: 1px solid var(--gs-border);
}

.gs-video {
    border-top: 1px solid var(--gs-border);
}

.gs-video__row {
    width: 100%;
    padding: 16px clamp(12px, 2.5vw, 20px);
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background .18s ease;
}

.gs-video__row:hover,
.gs-video__row:focus-visible {
    background: rgba(255, 255, 255, .04);
    outline: none;
}

.gs-video__left {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.gs-video__title {
    font: 500 clamp(16px, 2.2vw, 22px)/1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-video__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.gs-pill {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--gs-brand);
    display: inline-block;
}

.gs-watch {
    color: var(--gs-brand);
    font: 400 clamp(14px, 1.9vw, 18px)/1.6;
}

/* Instructor */
.gs-instructor {
    margin-top: 16px;
}

.gs-instructor__card {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 480px;
}

.gs-instructor__avatar {
    width: 110px;
    height: 110px;
    border-radius: 9999px;
    object-fit: cover;
    flex: 0 0 auto;
}

.gs-instructor__bio {
    display: grid;
    gap: 6px;
}

.gs-instructor__name {
    margin: 0;
    font: 500 clamp(18px, 2.2vw, 22px)/1.35;
}

.gs-instructor__role {
    margin: 0;
    font: 400 clamp(14px, 1.9vw, 18px)/1.6;
    opacity: .9;
}

/* Responsive layout helpers */


@media (max-width: 640px) {
    .gs-instructor__card {
        gap: 16px;
    }

    .gs-instructor__avatar {
        width: 84px;
        height: 84px;
    }

    .gs-breadcrumb__list {
        gap: 10px;
    }

    .gs-video__row {
        grid-template-columns: 1fr auto;
    }
}