/* Module: Dòng Chảy Tương Lai */

.hdev-dctl-wrapper {
    width: 100%;
    /* Min height to ensure visibility if empty */
    min-height: 600px;
    position: relative;
    /* If container is full-height */
    height: 100vh;
    overflow: hidden;
}

/* Content Positioning */
.hdev-dctl-col-content {
    position: absolute;
    bottom: 50px;
    left: 20px;
    right: 20px;
    color: #fff;
    /* Assuming dark background */
    transition: transform 0.4s ease-out;
    z-index: 2;
    /* Ensure text is above the overlay */
}

.hdev-dctl-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: background-image 0.5s ease-in-out;
}

.hdev-dctl-container {
    position: relative;
    z-index: 2;
    /* Increased to be above the ::after overlay */
    width: 100%;
    height: 100%;
    max-width: 100%;
    /* Full width */
    margin: 0 auto;
}

.hdev-dctl-columns {
    display: flex;
    width: 100%;
    height: 100%;
}

.hdev-dctl-col {
    width: 20%;
    /* 5 columns */
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    /* Subtle divider */
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hdev-dctl-col:last-child {
    border-right: none;
}

.hdev-dctl-col:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Highlight on hover */
}

/* Content Positioning */
.hdev-dctl-col-content {
    position: absolute;
    bottom: 50px;
    left: 20px;
    right: 20px;
    color: #fff;
    padding: 15px;
}

/* Hover Effect: Push text up - Desktop Only */
@media (min-width: 769px) {
    .hdev-dctl-col:hover .hdev-dctl-col-content {
        transform: translateY(-20px);
    }

    .hdev-dctl-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40%;
        background: rgba(17, 76, 68, 0.39);
        z-index: 1;
        pointer-events: none;
    }
}

.hdev-dctl-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #fff;
    /* Dark text based on image, adjust if bg is dark */
    text-transform: uppercase;
    line-height: 1.2;
}

.hdev-dctl-desc {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .hdev-dctl-wrapper {
        min-height: auto;
        height: auto;
        padding: 40px 0;
    }

    .hdev-dctl-wrapper {
        min-height: auto;
        height: auto;
        padding: 0;
        /* Remove padding for full slider */
    }

    .hdev-dctl-bg-overlay {
        display: none;
    }

    .hdev-dctl-container {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        max-width: 100%;
        /* Full width */
        margin: 0 auto;
    }

    .hdev-dctl-columns {
        display: flex;
        width: 100%;
        height: 100%;
    }

    .hdev-dctl-col {
        width: 20%;
        /* 5 columns */
        height: 100%;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        /* Subtle divider */
        position: relative;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .hdev-dctl-col:last-child {
        border-right: none;
    }

    .hdev-dctl-col:hover {
        background-color: rgba(255, 255, 255, 0.1);
        /* Highlight on hover */
    }

    /* Content Positioning */
    .hdev-dctl-col-content {
        position: absolute;
        bottom: 50px;
        left: 20px;
        right: 20px;
        color: #fff;
        padding: 15px;
    }

    /* Hover Effect: Push text up - Desktop Only */
    @media (min-width: 769px) {
        .hdev-dctl-col:hover .hdev-dctl-col-content {
            transform: translateY(-20px);
        }
    }

    .hdev-dctl-title {
        font-size: 22px;
        font-weight: 500;
        margin-bottom: 10px;
        color: #fff;
        /* Dark text based on image, adjust if bg is dark */
        text-transform: uppercase;
        line-height: 1.2;
    }

    .hdev-dctl-desc {
        font-size: 14px;
        color: #fff;
        line-height: 1.5;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .hdev-dctl-wrapper {
            min-height: auto;
            height: auto;
            padding: 40px 0;
        }

        .hdev-dctl-wrapper {
            min-height: auto;
            height: auto;
            padding: 0;
            /* Remove padding for full slider */
        }

        .hdev-dctl-bg-overlay {
            display: none;
            /* Hide background overlay on mobile */
        }

        .hdev-dctl-columns {
            display: block;
            /* Required for Slick */
            flex-direction: column;
        }

        .hdev-dctl-col {
            width: 100%;
            height: auto;
            border: none;
            padding: 0;
            margin-bottom: 0;
        }

        /* Mobile Image */
        .hdev-dctl-mobile-img {
            display: block !important;
            width: 100%;
            height: 350px;
            /* Adjust height as needed */
            background-size: cover;
            background-position: center;
        }

        .hdev-dctl-col-content {
            position: relative;
            bottom: auto;
            left: auto;
            right: auto;
            padding: 40px 20px;
            background-color: var(--color-primary);
            text-align: center;
            min-height: 250px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .hdev-dctl-title {
            color: #fff;
            font-size: 28px;
            margin-bottom: 20px;
        }

        .hdev-dctl-desc {
            color: #ddd;
            font-size: 16px;
        }

        /* Slick Stylings */
        .hdev-slick-arrow {
            position: absolute;
            top: 30%;
            /* Align with image */
            z-index: 10;
            background: rgba(0, 0, 0, 0.3);
            border: none;
            color: #fff;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.3s;
        }

        .hdev-slick-arrow:hover {
            background: rgba(0, 0, 0, 0.6);
        }

        .slick-prev {
            left: 0;
        }

        .slick-next {
            right: 0;
        }

        .slick-dots {
            position: absolute;
            bottom: 20px;
            width: 100%;
            padding: 0;
            margin: 0;
            list-style: none;
            text-align: center;
        }

        .slick-dots li {
            display: inline-block;
            margin: 0 5px;
        }

        .slick-dots li button {
            font-size: 0;
            line-height: 0;
            display: block;
            width: 10px;
            height: 10px;
            padding: 5px;
            cursor: pointer;
            color: transparent;
            border: 0;
            outline: none;
            background: transparent;
        }

        .slick-dots li button:before {
            content: '•';
            font-size: 30px;
            line-height: 20px;
            color: rgba(255, 255, 255, 0.4);
            opacity: 1;
        }

        .slick-dots li.slick-active button:before {
            color: #dcb174;
            /* Gold active dot */
        }
    }
}