﻿/* --- PHẦN CHUNG & MOBILE FIRST (Mặc định) --- */
.exp-section {
    padding: 60px 5%;
    position: relative;
    overflow: hidden;
}

.exp-container {
    max-width: 1200px;
    margin: 0 auto;
}

.exp-heading {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}
.exp-company {
    font-size: 1.25rem ;
    font-weight: 700;
    color: #64ffda;
    margin-bottom: 5px;
}
.exp-chitiet {
    list-style: none !important; 
    padding: 0 !important;
    margin: 8px 0 !important;
}

    .exp-chitiet li {
        position: relative !important;
        padding-left: 18px !important; 
        margin-bottom: 5px !important;
        color: #a8b2d1 !important; 
        font-size: 0.9rem;
        line-height: 1.5;
    }
        .exp-chitiet li::before {
            content: "•"; 
            position: absolute !important;
            left: 0 !important;
            color: #64ffda !important;
            font-weight: bold;
        }
.timeline {
    position: relative;
    padding-left: 30px; 
    margin: 40px 0;
}

    /* Đường kẻ dọc mặc định bên trái cho Mobile */
    .timeline::before {
        content: '';
        position: absolute;
        width: 2px;
        background: rgba(100, 255, 218, 0.2);
        top: 0;
        bottom: 0;
        left: 10px;
    }

.timeline-item {
    display: block; /* Ép một cột dọc */
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}

.exp-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #64ffda;
    border-radius: 50%;
    left: 10px;
    top: 25px;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 0 10px #64ffda;
}

.exp-card {
    width: 100%;
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: 0.3s all ease;
}
.exp-date {
    display: inline-flex !important; /* Sử dụng inline-flex để co lại chính xác theo text */
    align-items: center;
    justify-content: center;
    background: #64ffda !important;
    color: #0a192f !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    width: fit-content !important; /* Ép nó chỉ dài bằng nội dung chữ */
    white-space: nowrap !important; /* Không cho phép xuống dòng */
}
/* Mặc định ẩn ảnh trên Mobile để tránh đè chữ */
.exp-visual {
    display: none;
}
.skill-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

    .skill-tags span {
        display: inline-block !important;
        font-size: 0.75rem !important;
        color: #64ffda !important;
        background: rgba(100, 255, 218, 0.1) !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(100, 255, 218, 0.3) !important;
        white-space: nowrap !important;
    }

/* --- ĐỊNH DẠNG CHO PC (Từ 1024px trở lên) --- */
@media screen and (min-width: 1024px) {
    .exp-section {
        padding: 100px 10%;
    }
  
    .exp-dot {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .timeline {
        padding-left: 0;
    }

        .timeline::before {
            left: 50% !important;
            transform: translateX(-50%) !important;
        }

    .timeline-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 80px !important;
    }

        /* Đảo chiều xen kẽ */
        .timeline-item:nth-child(even) {
            flex-direction: row-reverse !important;
        }

        /* Hiệu ứng Hover cho item */
        .timeline-item:hover .visual-img {
            transform: scale(1.05) rotate(2deg);
            box-shadow: 0 15px 40px rgba(100, 255, 218, 0.2);
        }

        .timeline-item:hover .exp-card {
            border-color: #64ffda;
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }
    .exp-card {
        width: 45% !important;
        min-height: 250px; 
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    /* Căn lề chữ: Card bên TRÁI (item lẻ) thì chữ căn PHẢI */
    .timeline-item:nth-child(odd) .exp-card {
        text-align: right !important;
    }
    .timeline-item:nth-child(odd) .exp-date {
        margin-left: auto !important; /* Đẩy khung date sang bên phải của card trái */
    }
    /* Căn lề chữ: Card bên PHẢI (item chẵn) thì chữ căn TRÁI */
    .timeline-item:nth-child(even) .exp-card {
        text-align: left !important;
    }
    .timeline-item:nth-child(even) .exp-date {
        margin-right: auto !important; /* Giữ khung date bên trái của card phải */
    }

    /* Điều chỉnh các tag và list cho card bên trái */
    .timeline-item:nth-child(odd) .skill-tags {
        justify-content: flex-end;
    }

    .timeline-item:nth-child(odd) .exp-chitiet li {
        padding-left: 0;
        padding-right: 25px;
    }

        .timeline-item:nth-child(odd) .exp-chitiet li::before {
            left: auto;
            right: 0;
        }
    /* --- CARD BÊN PHẢI (Item chẵn) --- */
    .timeline-item:nth-child(even) .exp-card {
        text-align: left !important;
        margin-left: 0;
    }

    .timeline-item:nth-child(even) .skill-tags {
        justify-content: flex-start; /* Giữ tag bên trái */
    }

    .timeline-item:nth-child(even) .exp-chitiet li {
        padding-left: 25px;
        padding-right: 0;
    }

        .timeline-item:nth-child(even) .exp-chitiet li::before {
            left: 0;
            right: auto;
        }

    .exp-visual {
        display: flex !important;
        width: 45% !important;
        justify-content: center !important;
    }

    .visual-img {
        width: 100%;
        max-width: 500px;
        border-radius: 12px;
        transition: all 0.5s ease;
    }
}