/**
 * Introduct Project Slider - Long Thành Công
 * Class: introduct-project
 */

.introduct-project {
    position: relative;
    padding: 30px 0 40px;
    background-color: transparent;
    overflow: hidden;
}

.introduct-project * {
    box-sizing: border-box;
}

/* Background Leaves Watermark */
.introduct-project::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background-image: url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M85 15C60 15 40 35 40 60C40 70 45 80 50 85C75 85 95 65 95 40C95 30 90 20 85 15Z' fill='%23056941' fill-opacity='0.12'/%3E%3Cpath d='M65 35C45 40 30 55 30 75C30 82 35 90 40 95C60 90 75 75 75 55C75 48 70 40 65 35Z' fill='%230f8a55' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top right;
    pointer-events: none;
    z-index: 1;
}

.ltc-ip-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header: Title Left, Nav Controls Right */
.ltc-ip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.ltc-ip-title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ltc-ip-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ltc-heading, #056941);
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.ltc-ip-sep {
    display: inline-block;
    color: var(--ltc-primary, #056941);
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

.ltc-ip-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--ltc-primary, #056941);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Nav Controls: Prev / Next round buttons */
.ltc-ip-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.ltc-ip-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d1dcd5;
    background: #ffffff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ltc-ip-nav-btn:hover {
    border-color: var(--ltc-primary, #056941);
    background-color: var(--ltc-primary, #056941);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 105, 65, 0.25);
    transform: scale(1.05);
}

.ltc-ip-nav-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   Slider Wrapper & Cards (Draggable)
   ========================================================================== */
.ltc-ip-slider-wrap {
    position: relative;
    width: 100%;
    cursor: grab;
}

.ltc-ip-slider-wrap.is-dragging,
.ltc-ip-slider-wrap:active {
    cursor: grabbing;
}

/* Flickity or Flex track */
.ltc-ip-slider {
    width: 100%;
}

.ltc-ip-slider.flickity-enabled {
    outline: none;
}

.ltc-ip-slider .flickity-viewport {
    overflow: hidden;
    width: 100%;
    transition: height 0.2s;
}

/* Slide Item Card */
.ltc-ip-item {
    width: 20%; /* 5 columns on desktop */
    padding: 0 9px;
    text-decoration: none !important;
    display: block;
    color: inherit;
    flex-shrink: 0;
}

.ltc-ip-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.ltc-ip-card:hover {
    transform: translateY(-3px);
}

/* Image Thumbnail */
.ltc-ip-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background-color: #e5ece8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.ltc-ip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-drag: none;
}

.ltc-ip-card:hover .ltc-ip-thumb img {
    transform: scale(1.06);
}

/* Card Body (Title & Location) */
.ltc-ip-info {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
}

.ltc-ip-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 3px !important;
    padding: 0 !important;
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ltc-ip-card:hover .ltc-ip-item-title {
    color: var(--ltc-primary, #056941);
}

.ltc-ip-item-location {
    font-size: 12.5px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Columns */
@media (max-width: 1200px) {
    .ltc-ip-item {
        width: 25%; /* 4 columns */
    }
}

@media (max-width: 900px) {
    .ltc-ip-item {
        width: 33.333%; /* 3 columns */
    }
    .ltc-ip-title {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .ltc-ip-item {
        width: 60%; /* 1.6 columns swipe */
        padding: 0 6px;
    }
    .ltc-ip-header {
        flex-direction: row;
        align-items: center;
    }
    .ltc-ip-title {
        font-size: 17px;
    }
    .ltc-ip-subtitle {
        font-size: 11.5px;
    }
}
