/* Student stories only. Existing review and featured-video carousels stay independent. */
#khach-hang-noi-gi { scroll-margin-top: 110px; }
.dtlx-stories, .dtlx-stories * { box-sizing: border-box; }
.dtlx-stories {
    --story-blue: #123578;
    --story-muted: #5b6980;
    margin: 12px 28px 38px;
    padding: 28px;
    border: 1px solid #e2e9f5;
    border-radius: 24px;
    background: linear-gradient(145deg, #f1f6ff 0%, #f8faff 52%, #edf3fb 100%);
    text-align: left;
    min-width: 0;
}
.dtlx-stories__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dtlx-stories__eyebrow { display: block; color: #45628e; font-size: 11px; font-weight: 700; letter-spacing: .16em; margin-bottom: 9px; }
.dtlx-stories .dtlx-stories__heading h3 { color: var(--story-blue); font-size: clamp(21px, 2vw, 27px); line-height: 1.3; font-weight: 700; margin: 0 0 8px; text-transform: none; }
.dtlx-stories .dtlx-stories__heading p { margin: 0; color: var(--story-muted); font-size: 15px; line-height: 1.6; }
.dtlx-stories__format { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #dce4f2; border-radius: 100px; background: #fff; font-size: 12px; font-weight: 600; color: var(--story-blue); }
.dtlx-stories__format svg { color: #d72435; }
.dtlx-stories__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.dtlx-stories__track::-webkit-scrollbar { display: none; }
.dtlx-story { scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; margin: 0; border-radius: 17px; background: #fff; box-shadow: 0 6px 20px rgb(18 53 120 / 5%); }
.dtlx-stories .dtlx-story__open { display: block; height: 100%; color: var(--story-blue); border-radius: 17px; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.dtlx-story__poster { display: block; position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; isolation: isolate; background: linear-gradient(155deg, #315f9a, #101f43); }
.dtlx-story__poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 17 41 / 28%), transparent 33%, rgb(5 17 41 / 12%) 55%, rgb(5 17 41 / 80%)); pointer-events: none; }
.dtlx-story__poster .dtlx-story__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .35s ease; }
.dtlx-story__badge { position: absolute; z-index: 1; left: 12px; top: 12px; padding: 7px 10px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 7px; background: rgb(15 40 81 / 80%); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; }
.dtlx-story__play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; display: grid; place-items: center; color: var(--story-blue); background: rgb(255 255 255 / 94%); box-shadow: 0 0 0 9px rgb(255 255 255 / 15%), 0 8px 24px rgb(0 0 0 / 16%); transition: background .2s ease, color .2s ease; }
.dtlx-story__play svg { margin-left: 3px; }
.dtlx-story__watch { position: absolute; z-index: 1; bottom: 18px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 13px; font-weight: 600; }
.dtlx-story__watch > span { font-size: 21px; line-height: 1; }
.dtlx-story__body { display: flex; gap: 10px; align-items: flex-start; padding: 17px 14px 20px; }
.dtlx-story__number { flex-shrink: 0; padding-top: 2px; font-size: 11px; font-weight: 700; color: #6480a8; }
.dtlx-story__title { display: block; font-size: 16px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.dtlx-story__caption { display: block; margin-top: 5px; color: var(--story-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dtlx-stories .dtlx-story__open:focus-visible, .dtlx-stories button:focus-visible { outline: 3px solid #2972db; outline-offset: 4px; }
.dtlx-stories__controls[hidden] { display: none; }
.dtlx-stories__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 12px; color: var(--story-muted); }
.dtlx-stories__controls > div { display: flex; align-items: center; gap: 10px; }
.dtlx-stories__controls button { display: grid; place-items: center; min-width: 42px; width: 42px; height: 42px; min-height: 42px; padding: 0; margin: 0; border: 1px solid #d3def0; border-radius: 50%; background: #fff; color: var(--story-blue); box-shadow: none; font-size: 20px; line-height: 1; cursor: pointer; }
.dtlx-stories__controls button:disabled { opacity: .35; cursor: default; }
.dtlx-stories__position { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.dtlx-testimonials--with-stories .dtlx-stories-reviews-heading { margin: 0 28px 8px; font-size: 21px; color: #123578; text-align: center; text-transform: none; }
@media (hover: hover) {
    .dtlx-stories .dtlx-story__open:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(18 53 120 / 13%); }
    .dtlx-story__open:hover .dtlx-story__image { transform: scale(1.035); }
    .dtlx-story__open:hover .dtlx-story__play { background: #123578; color: #fff; }
}
@media (min-width: 1001px) {
    .dtlx-testimonial-layout-split .dtlx-stories { margin: 12px 0 30px; padding: 18px; }
    .dtlx-testimonial-layout-split .dtlx-stories__track { grid-auto-columns: calc((100% - 18px) / 2); }
    .dtlx-testimonial-layout-split .dtlx-stories__format { display: none; }
}
@media (min-width: 768px) and (max-width: 1000px) {
    .dtlx-stories__track { grid-auto-columns: calc((100% - 18px) / 2); }
    .dtlx-story__poster { max-height: 510px; }
}
@media (max-width: 767px) {
    .dtlx-stories { margin: 8px 0 28px; padding: 22px 16px 16px; border-radius: 20px; }
    .dtlx-stories__heading { margin-bottom: 20px; }
    .dtlx-stories__heading p { max-width: 28ch; }
    .dtlx-stories__format { display: none; }
    .dtlx-stories__track { grid-auto-columns: 100%; gap: 16px; margin: 0; padding: 0; scroll-padding: 0; }
    .dtlx-story__body { padding: 16px; }
    .dtlx-stories .dtlx-story__open { transform: none; }
    .dtlx-testimonials--with-stories .dtlx-stories-reviews-heading { margin-inline: 12px; font-size: 19px; }
}
/* Native dialog keeps keyboard focus inside the player and supports Escape. */
.dtlx-story-dialog { width: min(440px, calc(100vw - 24px)); width: min(440px, calc(100vw - 24px), calc(56.25dvh - 78.75px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid #334461; border-radius: 18px; color: #fff; background: #101b30; box-shadow: 0 30px 100px rgb(0 0 0 / 40%); overflow: auto; }
.dtlx-story-dialog:not([open]) { display: none; }
.dtlx-story-dialog::backdrop { background: rgb(4 12 27 / 84%); backdrop-filter: blur(5px); }
.dtlx-story-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 18px; }
.dtlx-story-dialog .dtlx-story-dialog__title { margin: 0; color: #fff; font-size: 15px; line-height: 1.45; font-weight: 600; text-transform: none; }
.dtlx-story-dialog .dtlx-story-dialog__close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0; border: 1px solid #586477; border-radius: 50%; background: #233149; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.dtlx-story-dialog__player { width: 100%; aspect-ratio: 9 / 16; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); background: #000; }
.dtlx-story-dialog__player iframe { display: block; width: 100%; height: 100%; border: 0; margin: 0; }
.dtlx-story-dialog__footer { margin: 0; padding: 12px 18px 15px; text-align: center; }
.dtlx-story-dialog .dtlx-story-dialog__external { color: #d6e5ff; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.dtlx-story-dialog button:focus-visible, .dtlx-story-dialog a:focus-visible { outline: 3px solid #bcd7ff; outline-offset: 3px; }
html.dtlx-story-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .dtlx-stories .dtlx-story__open, .dtlx-story__poster .dtlx-story__image, .dtlx-story__play { transition: none; }
}
