/* ========================================
   duantong-style.css
   Styles for duantong.html page sections
   ======================================== */

/* ----------------------------------------
   Section: Những câu chuyện thành công
   ---------------------------------------- */
.dt-success-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #feffff 40%, #aeefd9 100%);
    padding: 80px 0 0;
    overflow: hidden;
}

.dt-success-bg {
    position: absolute;
    inset: 0;
    background: url('https://www.figma.com/api/mcp/asset/9d41f356-5867-4766-8b67-5d41f3565867') center / cover no-repeat;
    mix-blend-mode: multiply;
    pointer-events: none;
    opacity: 0.15;
}

.dt-success-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

/* Left column */
.dt-success-left {
    flex: 0 0 auto;
    max-width: 520px;
}

.dt-success-heading {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -2.4px;
    color: #14313a;
    margin: 0 0 40px;
}

.dt-success-heading-accent {
    color: #26ffb1;
}

.dt-success-divider {
    height: 1px;
    background: #14313a;
    opacity: 0.2;
    width: 100%;
    margin-top: 20px;
}

/* Right column */
.dt-success-right {
    flex: 0 0 auto;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 10px;
}

.dt-success-chart {
    width: 100px;
    height: auto;
    align-self: flex-start;
}

.dt-success-desc {
    font-family: 'Google Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: #262626;
    margin: 0;
}

/* Stats Row */
.dt-stats-row {
    max-width: 1280px;
    margin: 60px auto 0;
    padding: 0 40px 80px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.dt-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.dt-stat-number {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 120px;
    line-height: 1;
    letter-spacing: -6px;
    background: linear-gradient(to right, #19d08e, #26ffb1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dt-stat-divider {
    height: 1px;
    background: #14313a;
    opacity: 0.2;
    width: 100%;
}

.dt-stat-label {
    font-family: 'Google Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: #262626;
    text-align: center;
    margin: 0;
    max-width: 200px;
}

/* ----------------------------------------
   Section: Dự án tiêu biểu
   ---------------------------------------- */
.dt-projects-section {
    background: #fff;
    padding-bottom: 80px;
}

/* Filter Bar */
.dt-filter-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.dt-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Google Sans', sans-serif;
    font-size: 20px;
    color: #262626;
    cursor: pointer;
    position: relative;
    background: #f4f9f7;
}

.dt-filter-item:first-child {
    background: #eafff8;
}

.dt-filter-label {
    opacity: 0.65;
}

.dt-filter-value {
    font-weight: 400;
}

.dt-filter-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #262626;
    border-bottom: 2px solid #262626;
    transform: rotate(45deg);
    margin-top: -4px;
}

/* Inner wrapper */
.dt-projects-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Watermark */
.dt-projects-watermark {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 120px;
    color: #f0f0f0;
    letter-spacing: 4px;
    text-align: center;
    margin: 0;
    padding: 20px 0 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    white-space: nowrap;
}

/* Section heading */
.dt-projects-heading {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #262626;
    margin: 24px 0 32px;
    line-height: 1.1;
}

/* Featured Slider */
.dt-slider-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 48px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.dt-slider-wrap.is-dragging {
    cursor: grabbing;
}

.dt-slide {
    display: flex;
    align-items: stretch;
    height: 500px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.dt-slider-wrap.is-dragging .dt-slide {
    transition: none;
}

/* Peeking side images */
.dt-slide-peek {
    flex: 0 0 160px;
    overflow: hidden;
    opacity: 0.5;
}

.dt-slide-peek img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dt-slide-peek-left {
    border-radius: 0 20px 20px 0;
}

.dt-slide-peek-right {
    border-radius: 20px 0 0 20px;
}

/* Slide transition */
.dt-slide-transitioning .dt-slide-main>img,
.dt-slide-transitioning .dt-slide-panel {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dt-slide-main>img,
.dt-slide-panel {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Main slide area */
.dt-slide-main {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 12px;
}

.dt-slide-main>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark info panel overlaying right side of main image */
.dt-slide-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    background: rgba(0, 30, 30, 0.92);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: 0 20px 20px 0;
}

.dt-detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dt-detail-label {
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    color: #dbdbdb;
}

.dt-detail-value {
    font-family: 'Google Sans', sans-serif;
    font-size: 15px;
    color: #00ffa3;
    line-height: 1.45;
}

.dt-detail-list {
    font-family: 'Google Sans', sans-serif;
    font-size: 15px;
    color: #00ffa3;
    margin: 0;
    padding-left: 18px;
    line-height: 1.6;
}

.dt-featured-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(to right, #19d08e, #26ffb1);
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: auto;
}

/* Thumb card inside panel */
.dt-thumb-card {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 200px;
    min-height: 150px;
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border-radius: 0 0 20px 0;
}

.dt-thumb-name {
    font-family: 'Google Sans', sans-serif;
    font-size: 17px;
    color: #000;
    line-height: 1.35;
}

.dt-thumb-dots {
    display: flex;
    gap: 5px;
}

.dt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9d9d9;
}

.dt-dot-active {
    background: #19d08e;
}

.dt-thumb-counter {
    font-family: 'Google Sans', sans-serif;
}

.dt-thumb-current {
    font-size: 20px;
    color: #000;
}

.dt-thumb-total {
    font-size: 11px;
    color: #bfbfbf;
}

/* Slider nav buttons */
.dt-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.dt-slider-prev {
    left: 20px;
}

.dt-slider-next {
    right: 20px;
}

/* Projects Grid */
.dt-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-bottom: 48px;
}

.dt-project-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

.dt-project-img {
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
}

.dt-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.dt-project-card:hover .dt-project-img img {
    transform: scale(1.03);
}

.dt-project-card:hover .dt-project-title,
.dt-project-card:hover .dt-project-subtitle {
    background: var(--gradient, linear-gradient(90deg, #19D08E 0%, #26FFB1 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dt-project-body {
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dt-project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dt-tag {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    color: #828282;
    padding: 4px 16px;
    border-radius: 10px;
}

.dt-tag-green {
    background: #bcebda;
}

.dt-tag-purple {
    background: #e9dfff;
}

.dt-tag-lime {
    background: #def6d6;
}

.dt-tag-blue {
    background: #b5e9ff;
}

.dt-tag-yellow {
    background: #fff0d4;
}

.dt-tag-pink {
    background: #ffc9ed;
}

.dt-project-subtitle {
    font-family: 'Google Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #2f2f2f;
    margin: 0;
    line-height: 1.4;
}

.dt-project-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0a3956;
    margin: 0;
    line-height: 1.3;
}

/* ----------------------------------------
   Section: Đối tác tin tưởng
   ---------------------------------------- */
.dt-partners-section {
    padding: 80px 0;
    background: #fff;
}

.dt-partners-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.dt-partners-heading {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    color: #064666;
    margin: 0;
    flex: 0 0 320px;
}

.dt-partners-accent {
    color: #00ffa3;
}

.dt-partners-logos {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 80px;
    align-items: center;
    justify-items: start;
}

.dt-partners-logos img {
    max-height: 80px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
}

.dt-partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Pagination */
.dt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.dt-page-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dt-page-btn:hover circle {
    stroke: #19d08e;
}

.dt-page-count {
    font-family: 'Google Sans', sans-serif;
}

.dt-page-current {
    font-size: 32px;
    color: #000;
}

.dt-page-total {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.42);
}

/* ========================================
   Responsive Media Queries
   ======================================== */

/* ----------------------------------------
   Breakpoint: 1256px (Laptop nhỏ)
   ---------------------------------------- */
@media (max-width: 1256px) {
    .dt-success-inner {
        gap: 40px;
    }

    .dt-success-heading {
        font-size: 40px;
        letter-spacing: -2px;
    }

    .dt-stat-number {
        font-size: 90px;
        letter-spacing: -4px;
    }

    .dt-projects-watermark {
        font-size: 80px;
    }

    .dt-projects-heading {
        font-size: 40px;
    }

    .dt-partners-inner {
        gap: 50px;
    }

    .dt-partners-heading {
        font-size: 40px;
        flex: 0 0 280px;
    }

    .dt-partners-logos {
        gap: 36px 60px;
    }
}

/* ----------------------------------------
   Breakpoint: 1024px (Tablet)
   ---------------------------------------- */
@media (max-width: 1024px) {
    /* Success section */
    .dt-success-section {
        padding: 60px 0 0;
    }

    .dt-success-inner {
        flex-direction: column;
        gap: 32px;
    }

    .dt-success-left,
    .dt-success-right {
        max-width: 100%;
    }

    .dt-success-heading {
        font-size: 36px;
        letter-spacing: -1.8px;
        margin-bottom: 24px;
    }

    .dt-stats-row {
        padding: 0 40px 60px;
        margin-top: 40px;
        gap: 24px;
    }

    .dt-stat-number {
        font-size: 80px;
        letter-spacing: -3px;
    }

    .dt-stat-label {
        font-size: 17px;
    }

    /* Projects section */
    .dt-projects-section {
        padding-bottom: 60px;
    }

    .dt-projects-watermark {
        font-size: 60px;
    }

    .dt-projects-heading {
        font-size: 32px;
        margin: 16px 0 24px;
    }

    .dt-slide {
        height: 400px;
    }

    .dt-slide-peek {
        flex: 0 0 80px;
    }

    .dt-slide-panel {
        width: 50%;
        padding: 28px 24px;
    }

    .dt-slide-panel .dt-detail-label {
        font-size: 13px;
    }

    .dt-slide-panel .dt-detail-value,
    .dt-slide-panel .dt-detail-list {
        font-size: 14px;
    }

    .dt-project-title {
        font-size: 24px;
    }

    .dt-project-subtitle {
        font-size: 18px;
    }

    /* Partners section */
    .dt-partners-section {
        padding: 60px 0;
    }

    .dt-partners-inner {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .dt-partners-heading {
        font-size: 32px;
        flex: 0 0 auto;
    }

    .dt-partners-logos {
        width: 100%;
        gap: 32px 48px;
    }

    /* Filter bar scroll */
    .dt-filter-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .dt-filter-item {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 18px;
        padding: 10px 20px;
    }
}

/* ----------------------------------------
   Breakpoint: 768px (Mobile)
   ---------------------------------------- */
@media (max-width: 768px) {
    /* Success section */
    .dt-success-section {
        padding: 40px 0 0;
    }

    .dt-success-inner {
        padding: 0 20px;
        gap: 24px;
    }

    .dt-success-heading {
        font-size: 28px;
        letter-spacing: -1.4px;
        margin-bottom: 20px;
    }

    .dt-success-desc {
        font-size: 17px;
    }

    .dt-stats-row {
        flex-direction: column;
        align-items: center;
        padding: 0 20px 40px;
        margin-top: 32px;
        gap: 32px;
    }

    .dt-stat-item {
        width: 100%;
        max-width: 320px;
    }

    .dt-stat-number {
        font-size: 72px;
        letter-spacing: -2.5px;
    }

    .dt-stat-label {
        font-size: 16px;
    }

    /* Projects section */
    .dt-projects-section {
        padding-bottom: 40px;
    }

    .dt-projects-inner {
        padding: 0 20px;
    }

    .dt-filter-bar {
        padding: 0 20px;
    }

    .dt-filter-item {
        font-size: 16px;
        padding: 8px 16px;
    }

    .dt-projects-watermark {
        font-size: 40px;
        letter-spacing: 2px;
    }

    .dt-projects-heading {
        font-size: 24px;
        margin: 12px 0 20px;
    }

    .dt-slide {
        height: auto;
    }

    .dt-slide-peek {
        display: none;
    }

    .dt-slide-main {
        margin: 0;
        display: flex;
        flex-direction: column;
        border-radius: 20px;
        background: #001e1e;
        overflow: visible;
    }

    .dt-slide-main > img {
        height: 240px;
        border-radius: 20px 20px 0 0;
    }

    .dt-slide-panel {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        max-height: none;
        padding: 24px 16px;
        gap: 16px;
        overflow: visible;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0 0 20px 20px;
    }

    .dt-detail-row {
        gap: 4px;
    }

    .dt-detail-label {
        font-size: 13px;
        opacity: 0.7;
    }

    .dt-detail-value,
    .dt-detail-list {
        font-size: 15px;
        line-height: 1.5;
    }

    .dt-detail-list {
        padding-left: 18px;
    }

    .dt-featured-cta {
        width: 44px;
        height: 44px;
        margin-top: 12px;
    }

    .dt-thumb-card {
        position: relative;
        width: 100%;
        min-height: auto;
        padding: 16px;
        margin-top: 20px;
        border-radius: 12px;
        background: #fff;
    }

    .dt-thumb-name {
        font-size: 16px;
        font-weight: 700;
        color: #000;
    }

    .dt-thumb-counter {
        display: flex;
        align-items: baseline;
        gap: 4px;
    }

    .dt-thumb-current {
        font-size: 20px;
        color: #000;
    }

    /* Reposition nav buttons to image area */
    .dt-slider-btn {
        top: 120px;
    }

    .dt-slider-prev {
        left: 10px;
    }

    .dt-slider-next {
        right: 10px;
    }

    .dt-projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dt-project-img {
        height: 200px;
    }

    .dt-project-title {
        font-size: 22px;
    }

    .dt-project-subtitle {
        font-size: 16px;
    }

    .dt-tag {
        font-size: 14px;
        padding: 3px 12px;
    }

    /* Partners section */
    .dt-partners-section {
        padding: 40px 0;
    }

    .dt-partners-inner {
        padding: 0 20px;
        gap: 28px;
    }

    .dt-partners-heading {
        font-size: 24px;
    }

    .dt-partners-logos {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 32px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .dt-partners-logos::-webkit-scrollbar {
        display: none;
    }

    .dt-partners-logos img {
        flex-shrink: 0;
        max-height: 50px;
        max-width: none;
    }

    /* Slider nav */
    .dt-slider-prev {
        left: 8px;
    }

    .dt-slider-next {
        right: 8px;
    }

    /* Pagination */
    .dt-page-current {
        font-size: 24px;
    }

    .dt-page-total {
        font-size: 14px;
    }
}