/**
 * Module: Lý Do Lựa Chọn
 */

/* Fullpage Section override for this module */
.hdev-fullpage .row:has(.hdev-ldlc-wrapper),
.hdev-fullpage .row.has-hdev-ldlc {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hdev-fullpage .col:has(.hdev-ldlc-wrapper),
.hdev-fullpage .col.has-hdev-ldlc {
    padding-bottom: 0 !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}

.hdev-ldlc-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hdev-ldlc-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hdev-ldlc-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hdev-ldlc-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    /* Ensure columns sit above border */
}

.hdev-ldlc-center {
    flex: 0 0 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    /* Lower than side columns to let numbers overlap border */
}

.hdev-ldlc-border-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    /* Slightly larger than badge */
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.hdev-ldlc-border-img img {
    width: 100%;
    height: auto;
    display: block;
    /* Optional rotation for border */
    /* animation: hdev-spin 60s linear infinite; */
}

/* Main Image (Building) */
.hdev-ldlc-main-img {
    position: absolute;
    top: 55%;
    /* Moved down slightly to sit inside circle nicely */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    /* Fit inside ring */
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.hdev-ldlc-main-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hdev-ldlc-badge {
    position: relative;
    z-index: 3;
    width: 80%;
    /* Badge smaller than border */
    /* transform: translateY(-200px); */
    top: -200px;
    /* Push Text/Badge UP to top of circle */
}

.hdev-ldlc-badge img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Animation pulse
    animation: hdev-pulse 3s infinite;  */
}

@keyframes hdev-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


.hdev-ldlc-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    /* Increased vertical spacing */
    position: relative;
    transition: all 0.3s ease;
    z-index: 20;
    /* Ensure items (including numbers) are above everything */
}

/* Laptop Responsive Fix (1025px - 1536px) - SCALED */
@media (min-width: 1025px) and (max-width: 1536px) {
    .hdev-ldlc-container {
        width: 1400px;
        /* Force desktop width to maintain proportions */
        max-width: none;
        /* Override responsive constraint */
        transform: scale(0.85);
        /* Shrink everything proportionally */
        transform-origin: center center;
    }
}

/* Curve Effect Implementation using nth-child */

/* LEFT COLUMN Items: 1, 2, 3, 4, 5 */
/* Push 1 and 5 (Top/Bottom) slightly RIGHT (Towards Center) to close the circle at top/bottom */
/* Push 3 (Middle) slightly LEFT (Away from Center) to make room for the circle width */

.hdev-ldlc-left .hdev-ldlc-item:nth-child(1),
.hdev-ldlc-left .hdev-ldlc-item:nth-child(5) {
    transform: translateX(40px);
    /* Push IN */
}

.hdev-ldlc-left .hdev-ldlc-item:nth-child(2),
.hdev-ldlc-left .hdev-ldlc-item:nth-child(4) {
    /* Intermediate */
    transform: translateX(10px);
}

.hdev-ldlc-left .hdev-ldlc-item:nth-child(3) {
    /* Middle - Push OUT/Stay Left */
    transform: translateX(-20px);
}

/* RIGHT COLUMN Items: 6, 7, 8, 9, 10 */
/* Mirroring the logic */

.hdev-ldlc-right .hdev-ldlc-item:nth-child(1),
.hdev-ldlc-right .hdev-ldlc-item:nth-child(5) {
    transform: translateX(-40px);
    /* Push IN */
    margin-left: 0;
    /* Reset margin override if needed, or keep it */
}

.hdev-ldlc-right .hdev-ldlc-item:nth-child(2),
.hdev-ldlc-right .hdev-ldlc-item:nth-child(4) {
    transform: translateX(-10px);
}

.hdev-ldlc-right .hdev-ldlc-item:nth-child(3) {
    transform: translateX(20px);
    /* Push OUT (Right) */
}

.hdev-ldlc-item:last-child {
    margin-bottom: 0;
}

.hdev-ldlc-number {
    font-family: var(--hdev-font-heading);
    font-size: 3rem;
    line-height: 1;
    color: #fff;
    /* White Color */
    font-weight: bold;
    flex-shrink: 0;
    margin: 0 15px;
    /* Remove Gradient - Use White */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Strong Shadow */
    position: relative;
    z-index: 25;
    /* Higher than border */
}

.hdev-ldlc-title {
    font-family: var(--hdev-font-body);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    color: #fff;
}

.hdev-ldlc-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.9;
    color: #fff;
    /* Ensure it is white */
}

/* Specific Alignment */
/* Left Column: Content - Number */
.hdev-item-left {
    justify-content: flex-end;
    text-align: right;
}

.hdev-item-left .hdev-ldlc-number {
    order: 2;
    margin-left: 15px;
    margin-right: 0;
}

.hdev-item-left .hdev-ldlc-content {
    order: 1;
}

/* Right Column: Number - Content */
.hdev-item-right {
    justify-content: flex-start;
    text-align: left;
}

.hdev-item-right .hdev-ldlc-number {
    margin-right: 15px;
    margin-left: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hdev-ldlc-center {
        flex: 0 0 300px;
    }

    .hdev-ldlc-number {
        font-size: 2.5rem;
    }

    .hdev-ldlc-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hdev-ldlc-wrapper {
        min-height: auto;
        height: auto;
        padding: 60px 0;
    }

    .hdev-ldlc-bg {
        position: absolute;
        /* Keep it fixed or absolute covering the area */
    }

    .hdev-ldlc-container {
        flex-direction: column;
    }

    .hdev-ldlc-center {
        order: 1;
        margin-bottom: 0;
        flex: 0 0 auto;
        width: 100%;
        /* Expanded width */
        max-width: none;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Badge First */
    .hdev-ldlc-badge {
        order: 1;
        top: auto;
        transform: none;
        margin-bottom: -78px;
        width: 100%;
        max-width: 280px;
        /* Adjust size */
    }

    /* Image Group Second */
    .hdev-ldlc-img-group {
        order: 2;
        width: 100%;
        height: 350px;
        /* Space for the absolute images */
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Adjust Images to fit in Group */
    .hdev-ldlc-border-img {
        width: 80%;
        max-width: 350px;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hdev-ldlc-main-img {
        width: 60%;
        /* Smaller than border */
        max-width: 250px;
        position: absolute;
        top: 55%;
        /* Keep slight offset */
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hdev-ldlc-left {
        order: 2;
        width: 100%;
        padding: 0 15px;
    }

    .hdev-ldlc-right {
        order: 3;
        width: 100%;
        padding: 0 15px;
    }

    .hdev-item-left {
        justify-content: flex-start;
        text-align: left;
    }

    /* Reset order for left items on mobile to be Number - Content */
    .hdev-item-left .hdev-ldlc-number {
        order: 0;
        margin-left: 0;
        margin-right: 15px;
    }

    .hdev-item-left .hdev-ldlc-content {
        order: 1;
    }

    .hdev-ldlc-number {
        font-size: 2rem;
    }

    /* Reset Curve Transforms for Mobile */
    .hdev-ldlc-item,
    .hdev-ldlc-item:nth-child(n) {
        transform: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        margin-bottom: 30px !important;
        /* Ensure consistent spacing */
    }

    /* Remove margin bottom for very last item (10) */
    .hdev-ldlc-right .hdev-ldlc-item:last-child {
        margin-bottom: 0 !important;
    }
}