﻿/* CSS riêng cho trang Kỹ thuật Xây dựng */
.construction-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}
.construction-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* Header riêng cho trang */
.construction-header {
    text-align: center;
    padding: 40px 0 30px;
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: white;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}
    .construction-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #ffd700, #ff9800);
    }
    .construction-header h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    }
    .construction-header .tagline {
        font-size: 1.2rem;
        opacity: 0.9;
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.6;
    }
.highlight {
    color: #ffd700;
    font-weight: bold;
}
/* Thanh trượt điều hướng mới */
.modern-scroll-nav {
    /*position: sticky;*/
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.nav-scroll-track {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 100px;
    transition: all 0.4s ease;
    z-index: 1;
    border-radius: 3px;
}
.modern-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}
    .modern-nav-container a {
        flex: 1;
        text-decoration: none;
        color: #555;
        font-weight: 600;
        padding: 18px 10px;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        background: transparent;
        border: none;
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
    }
        .modern-nav-container a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #3498db, #2980b9);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }
        .modern-nav-container a:hover {
            color: white;
        }
            .modern-nav-container a:hover::before {
                opacity: 1;
            }
        .modern-nav-container a.active {
            color: white;
        }
            .modern-nav-container a.active::before {
                opacity: 1;
            }
.nav-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}
.modern-nav-container a:hover .nav-icon,
.modern-nav-container a.active .nav-icon {
    transform: translateY(-3px);
}
.nav-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
/* Info cards */
.info-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}
.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    transition: transform 0.3s ease;
    border-top: 4px solid #2980b9;
}
    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    .info-card i {
        font-size: 2.5rem;
        color: #2980b9;
        margin-bottom: 15px;
    }
    .info-card h3 {
        margin-bottom: 10px;
        color: #1a5276;
        font-size: 1.3rem;
    }
    .info-card p {
        color: #555;
        line-height: 1.5;
    }
/* Section styling */
.construction-section {
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    scroll-margin-top: 100px;
}
    .construction-section h2 {
        color: blue;
        border-left: 4px solid #2980b9;
        padding-left: 15px;
        margin-bottom: 25px;
        font-size: 1.8rem;
        position: relative;
    }
        .construction-section h2::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 15px;
            width: 80px;
            height: 3px;
            background: #3498db;
        }
/* Specialties grid */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.specialty-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
    .specialty-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: #2980b9;
    }
    .specialty-card:hover {
        border-color: #2980b9;
        box-shadow: 0 8px 20px rgba(41, 128, 185, 0.1);
        transform: translateY(-3px);
    }
    .specialty-card h4 {
        color: #2980b9;
        margin-bottom: 10px;
        font-size: 1.2rem;
        min-height: 50px;
    }
    .specialty-card p {
        color: #555;
        margin-bottom: 15px;
        font-size: 0.95rem;
        line-height: 1.5;
    }
.badge {
    display: inline-block;
    background: #e8f4fc;
    color: #2980b9;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}
    .badge.new {
        background: #ffebee;
        color: #e74c3c;
    }
/* Career opportunities */
.career-opportunitieschung {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.career-sector {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}
    .career-sector:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
.sector-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
    .sector-header .icon {
        font-size: 1.8rem;
        color: #2980b9;
    }
    .sector-header h4 {
        margin: 0;
        color: #2980b9;
        font-size: 1.2rem;
    }
.career-sector ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.career-sector li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    padding-left: 20px;
}
    .career-sector li::before {
        content: '→';
        position: absolute;
        left: 0;
        color: #3498db;
        font-weight: bold;
    }
/* Gallery */
.gallery-container {
    margin-top: 25px;
    
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 180px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 300px;/*chiều cao các chuyên ngành*/
}
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    .gallery-item:hover img {
        transform: scale(1.05);
    }
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 82, 118, 0.85);
    color: white;
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}
.gallery-caption h5 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}
.gallery-caption p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}
/* Success story */
.success-story {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: white;
    padding: 35px;
    border-radius: 15px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}
    .success-story::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: rgba(255,255,255,0.05);
        transform: rotate(45deg);
    }
.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}
.company-logo {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255,255,255,0.9);
    letter-spacing: 2px;
    font-family: 'Arial Black', sans-serif;
}
.story-body {
    position: relative;
}
.achievements {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}
.achievement {
    text-align: center;
    min-width: 100px;
}

    .achievement .number {
        display: block;
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .achievement .label {
        font-size: 0.85rem;
        opacity: 0.9;
    }

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background: #3498db;
        transform: translateX(-50%);
    }

.timeline-item {
    margin: 30px 0;
    position: relative;
    width: 50%;
    padding: 0 30px;
}

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }

.timeline-year {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

    .timeline-content h5 {
        color: #2980b9;
        margin-bottom: 8px;
        font-size: 1.1rem;
    }

/* Contact section */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info h3, .registration-form h3 {
    color: #1a5276;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 1.3rem;
    color: #3498db;
    min-width: 25px;
}

.registration-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.form-groupXD {
    margin-bottom: 15px;
}

    .form-groupXD input, .form-groupXD select {
        width: 100%;
        padding: 12px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
        background: white;
        box-sizing: border-box;
    }

        .form-groupXD input:focus, .form-groupXD select:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

.submit-btnXD {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2980b9, #1a5276);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

    .submit-btnXD:hover {
        background: linear-gradient(135deg, #1a5276, #154360);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(26, 82, 118, 0.3);
    }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

    .back-to-top:hover {
        background: linear-gradient(135deg, #2980b9, #1a5276);
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(41, 128, 185, 0.6);
    }

    .back-to-top.show {
        display: flex;
        animation: fadeInUp 0.3s ease;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section active highlight */
.construction-section.active {
    animation: highlightSection 1s ease;
}

@keyframes highlightSection {
    0% {
        background-color: white;
    }

    50% {
        background-color: rgba(52, 152, 219, 0.1);
    }

    100% {
        background-color: white;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .construction-container {
        padding: 15px;
    }

    .construction-header h1 {
        font-size: 1.8rem;
    }

    .construction-header .tagline {
        font-size: 1rem;
    }

    .modern-nav-container {
        flex-direction: column;
        padding: 0;
    }

        .modern-nav-container a {
            width: 100%;
            padding: 15px;
            border-bottom: 1px solid #eee;
        }

            .modern-nav-container a:last-child {
                border-bottom: none;
            }

    .nav-scroll-track {
        display: none;
    }

    .construction-section {
        padding: 20px;
        scroll-margin-top: 150px;
    }

        .construction-section h2 {
            font-size: 1.5rem;
        }

    .specialties-grid,
    .knowledge-section,
    .career-opportunitieschung,
    .gallery {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        padding-right: 15px;
    }

    .achievements {
        flex-direction: column;
        gap: 15px;
    }

    .contact-section {
        padding: 20px;
    }

    .info-cards {
        flex-direction: column;
        align-items: center;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Kiến thức và kỹ năng */
.knowledge-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.knowledge-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

    .knowledge-card .icon {
        font-size: 2.5rem;
        color: #2980b9;
        margin-bottom: 15px;
    }

    .knowledge-card h3 {
        color: #2c3e50;
        margin-bottom: 15px;
        font-size: 1.3rem;
    }

    .knowledge-card ul {
        list-style: none;
        text-align: left;
        padding: 0;
        margin: 0;
    }

    .knowledge-card li {
        padding: 8px 0;
        border-bottom: 1px dashed #ddd;
        position: relative;
        padding-left: 25px;
        line-height: 1.4;
    }

        .knowledge-card li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #27ae60;
            font-weight: bold;
        }

/* ===== Hiệu ứng hover toàn khối ===== */
.knowledge-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .knowledge-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    }

    /* ===== Hiệu ứng hover từng dòng – trượt ngang ===== */
    .knowledge-card li {
        transition: all 0.3s ease;
        border-radius: 4px;
    }

        /* Hover: trượt ngang + nền sáng */
        .knowledge-card li:hover {
            /*background: slategray;*/
            padding-left: 35px; /* di chuyển ngang */
            color: blue;
        }

            /* Dấu ✓ đổi màu khi hover */
            .knowledge-card li:hover::before {
                color: #1f6fb2;
            }

    /* Làm mờ các dòng khác để tập trung */
    .knowledge-card ul:hover li {
        opacity: 0.55;
    }

    .knowledge-card ul li:hover {
        opacity: 1;
    }

    /* Icon nổi nhẹ khi hover card */
    .knowledge-card:hover .icon {
        transform: scale(1.1);
        color: #1f6fb2;
        transition: all 0.35s ease;
    }

/*hết kiến thức và kỹ năng*/

/* ===== CSS Đồng ý luật bảo vệ thông tin cá nhân ===== */
.simple-consent-sectionXD {
    margin: 25px 0 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f7ff 100%);
    border-radius: 10px;
    border: 1px solid #e1e8ff;
}

/* Checkbox custom */
.consent-checkboxXD-wrapperXD {
    margin-bottom: 15px;
}

.checkbox-itemXD {
    position: relative;
}

    .checkbox-itemXD input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .checkbox-itemXD label {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        padding: 12px 15px;
        background: white;
        border: 2px solid #dc3545; /* Mặc định màu đỏ (chưa check) */
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

        .checkbox-itemXD label:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
        }

    .checkbox-itemXD input[type="checkbox"]:checked + label {
        border-color: #28a745;
        background: #f0fff4;
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    }

.custom-checkboxXD {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #dc3545;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: transparent;
    font-size: 11px;
    transition: all 0.3s ease;
}

.checkbox-itemXD input[type="checkbox"]:checked + label .custom-checkboxXD {
    border-color: #28a745;
    background: #28a745;
    color: white;
}

.checkbox-contentXD {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.checkbox-titleXD {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.checkbox-descXD {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* Links section */
.consent-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #e1e5eb;
}

.details-link, .change-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c80ff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

    .details-link:hover, .change-link:hover {
        color: #1a5fd8;
        background-color: rgba(44, 128, 255, 0.05);
        text-decoration: none;
    }

    .details-link i, .change-link i {
        font-size: 12px;
    }

/* Nút submit - Enable/Disable */
.submit-btnXD {
    background: linear-gradient(135deg, #2c80ff 0%, #1a5fd8 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    opacity: 1;
    transform: translateY(0);
}

    .submit-btnXD:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(44, 128, 255, 0.4);
    }

    .submit-btnXD:disabled {
        background: #6c757d;
        cursor: not-allowed;
        opacity: 0.7;
        transform: none;
        box-shadow: none;
    }

/* Animation cho khi enable */
@keyframes enableButton {
    from {
        opacity: 0.7;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.submit-btnXD:not(:disabled) {
    animation: enableButton 0.3s ease;
}

/* ===== CSS CHO POPUP CHI TIẾT ===== */
.privacy-details-popupXD {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.details-overlayXD {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.details-containerXD {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 10vh auto;
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

.details-headerXD {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #2c80ff 0%, #1a5fd8 100%);
    color: white;
}

    .details-headerXD h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.btn-close-detailsXD {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .btn-close-detailsXD:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.details-contentXD {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.legal-infoXD {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

    .legal-infoXD p {
        margin-bottom: 20px;
    }

.info-pointsXD {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pointXD {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid #2c80ff;
}

    .pointXD i {
        font-size: 18px;
        color: #2c80ff;
        margin-top: 3px;
    }

    .pointXD strong {
        display: block;
        margin-bottom: 8px;
        color: #333;
    }

    .pointXD ul {
        margin: 0;
        padding-left: 20px;
    }

    .pointXD li {
        margin-bottom: 5px;
        color: #555;
    }

.legal-linkXD {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e5eb;
}

    .legal-linkXD a {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #2c80ff;
        text-decoration: none;
        font-size: 14px;
    }

        .legal-linkXD a:hover {
            text-decoration: underline;
        }

.details-footerXD {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.btn-understoodXD {
    background: linear-gradient(135deg, #2c80ff 0%, #1a5fd8 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .btn-understoodXD:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(44, 128, 255, 0.3);
    }

/* Responsive */
@media (max-width: 768px) {
    .consent-linksXD {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .details-containerXD {
        width: 95%;
        margin: 5vh auto;
        max-height: 90vh;
    }

    .pointXD {
        flex-direction: column;
        gap: 10px;
    }

    .checkbox-itemXD label {
        padding: 10px 12px;
    }

    .submit-btnXD {
        padding: 12px 20px;
        font-size: 15px;
    }
}
/*Hết luật bảo vệ thông tin cá nhân*/

/* ============ CSS CHO HIỂN THỊ LỖI ============ */

/* Style cho error messages */
.field-error {
    color: #dc3545 !important; /* Màu đỏ đậm */
    font-size: 14px !important;
    margin-top: 5px !important;
    padding: 5px 10px !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-radius: 4px !important;
    border-left: 3px solid #dc3545 !important;
    display: block !important; /* QUAN TRỌNG: Phải có display: block */
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease !important;
}

    /* Khi error bị ẩn */
    .field-error.hidden {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

/* Style cho input có lỗi */
input.border-red-500,
select.border-red-500 {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
}

/* Style cho input hợp lệ */
input.border-green-500,
select.border-green-500 {
    border-color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.05) !important;
}

/* Animation shake cho input lỗi */
.input-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both !important;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0) !important;
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0) !important;
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0) !important;
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0) !important;
    }
}


/*Hiệu ứng nhấp nháy chữ chi tiết*/
.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-wrapper img {
    width: 100%;
    display: block;
}

/* Badge NEW */
.badge-new {
    position: absolute;
    bottom: 12px; /* cách đáy ảnh */
    right: 12px; /* cách phải ảnh */
    background: red;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    animation: blinkNew 1s infinite;
    z-index: 2;
}


/* Hiệu ứng chớp nháy */
@keyframes blinkNew {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}
/*Hết hiệu ứng nháp nháy*/

/* CSS để modal scale theo tỷ lệ màn hình */
.modalchung {
    display: none; /* Mặc định ẩn, sẽ được hiển thị bằng JS */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modalchung-content {
    background-color: #fefefe;
    margin: 5vh auto; /* Căn giữa theo chiều dọc với margin % viewport height */
    padding: 2.5vw; /* Padding theo % viewport width */
    border: 1px solid #888;
    border-radius: 12px;
    width: 85%; /* Chiếm 85% chiều rộng màn hình */
    max-width: 1000px; /* Giới hạn chiều rộng tối đa lớn hơn */
    min-width: 300px; /* Giới hạn chiều rộng tối thiểu */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    position: relative;
    max-height: 85vh; /* Giới hạn chiều cao tối đa */
    overflow: hidden; /* ĐỔI TỪ auto THÀNH hidden */
    display: flex;
    flex-direction: column;
}

/* Tùy chỉnh thanh cuộn - DI CHUYỂN XUỐNG DƯỚI */
.modalchung-body::-webkit-scrollbar {
    width: 8px;
}

.modalchung-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modalchung-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modalchung-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.close-modalchung {
    color: #666;
    float: right;
    font-size: clamp(28px, 2.5vw, 32px); /* Font size co giãn */
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    transition: color 0.2s;
}

    .close-modalchung:hover,
    .close-modalchung:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

/* HEADER CỐ ĐỊNH */
.modalchung-header {
    margin-bottom: 1.5vh;
    padding-right: 30px; /* Để tránh chồng lên nút close */
    flex-shrink: 0; /* KHÔNG cho header co lại */
    position: sticky;
    top: 0;
    background-color: #fefefe; /* Màu nền trùng với modal */
    z-index: 5; /* Để header luôn trên cùng */
    padding-bottom: 10px; /* Thêm padding dưới để tách biệt */
    border-bottom: 1px solid #eaeaea; /* Đường phân cách với body */
}

    .modalchung-header h3 {
        margin-top: 0;
        font-size: clamp(1.4rem, 2.8vw, 2.2rem); /* Font size lớn hơn cho màn hình lớn */
        color: #2c3e50;
        border-bottom: 3px solid #3498db;
        padding-bottom: 12px;
        font-weight: 600;
        line-height: 1.2;
    }

/* BODY CÓ THANH CUỘN */
.modalchung-body {
    flex: 1; /* Chiếm không gian còn lại */
    margin: 1.5vh 0;
    overflow-y: auto; /* THÊM DÒNG NÀY - cho phép cuộn */
    padding: 10px 0; /* Thêm padding cho đẹp */
}

.modalchung-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Cột rộng hơn */
    gap: clamp(20px, 3vw, 30px); /* Khoảng cách co giãn */
    margin-bottom: clamp(25px, 3vh, 35px);
    text-align: justify;
}

.info-sectionchung {
    background: #f8fafc;
    padding: clamp(15px, 2vw, 20px);
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto; /* Tự động ngắt từ khi cần */
}

    .info-sectionchung h4 {
        font-size: clamp(1.1rem, 2.2vw, 1.6rem); /* Chữ lớn hơn cho màn hình lớn */
        color: #2980b9;
        margin-bottom: 15px;
        padding-left: 10px;
        font-weight: 600;
        line-height: 1.3;
    }

    .info-sectionchung p {
        font-size: clamp(0.95rem, 1.8vw, 1.2rem); /* Chữ lớn hơn cho màn hình lớn */
        line-height: 1.6;
        margin-bottom: 8px;
        word-break: keep-all; /* Giữ từ không bị tách */
        white-space: normal;
        padding-left: 0; /* Đảm bảo không có padding thừa */
    }

    .info-sectionchung strong {
        font-weight: 600;
        color: #2c3e50;
    }

/* Cấu trúc lại danh sách với icon riêng biệt */
.styled-listchung {
    padding-left: 0;
    margin: 0;
    list-style-type: none;
}

    .styled-listchung li {
        font-size: clamp(0.95rem, 1.8vw, 1.2rem);
        line-height: 1.6;
        margin-bottom: 10px;
        padding-left: 30px; /* Khoảng cách cho icon */
        position: relative;
        word-break: keep-all;
        white-space: normal;
        text-align: left;
        display: block;
    }

 /* Cấu trúc lại danh sách với icon riêng biệt */
.styled-listchung {
    padding-left: 0;
    margin: 0;
    list-style-type: none;
}

.styled-listchung li {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 30px; /* Khoảng cách cho icon */
    position: relative;
    word-break: keep-all;
    white-space: normal;
    text-align: left;
    display: block;
}

/* Icon cho danh sách - TẤT CẢ ĐỀU MÀU XANH */
.list-iconchung {
    position: absolute;
    left: 0;
    top: 0;
    color: #3498db; /* Màu xanh duy nhất cho tất cả icon */
    font-weight: bold;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    width: 24px;
    text-align: center;
    display: inline-block;
}

.career-opportunitieschung li {
    line-height: 1.7;
}

/* FOOTER CỐ ĐỊNH */
.modalchung-footer {
    text-align: center;
    padding-top: clamp(15px, 2vh, 20px);
    border-top: 1px solid #e0e0e0;
    margin-top: auto; /* Đẩy footer xuống dưới cùng */
    flex-shrink: 0; /* KHÔNG cho footer co lại */
    position: sticky;
    bottom: 0;
    background-color: #fefefe; /* Màu nền trùng với modal */
    z-index: 5; /* Để footer luôn dưới cùng */
    padding-bottom: 10px; /* Thêm padding dưới */
    background: linear-gradient(to bottom, rgba(254, 254, 254, 0.9), #fefefe); /* Gradient để blend */
    backdrop-filter: blur(5px); /* Hiệu ứng mờ nền */
}

.applychung-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: clamp(12px, 2.2vw, 16px) clamp(25px, 4.5vw, 40px);
    font-size: clamp(1rem, 2vw, 1.3rem); /* Chữ nút lớn hơn cho màn hình lớn */
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-height: 44px; /* Đảm bảo dễ touch trên mobile */
}

    .applychung-btn:hover {
        background: linear-gradient(135deg, #2980b9, #2471a3);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
    }

    .applychung-btn:active {
        transform: translateY(0);
    }

/* Media queries cho responsive */
@media (max-width: 1200px) {
    .modalchung-content {
        width: 90%;
        padding: 3vw;
    }

    .modalchung-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .styled-listchung li {
        padding-left: 28px;
    }
}

@media (max-width: 768px) {
    .modalchung-content {
        width: 92%;
        padding: 4vw;
        margin: 3vh auto;
        max-height: 90vh;
    }

    .modalchung-info-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
        gap: 20px;
    }

    .info-sectionchung {
        padding: 18px;
    }

    .styled-listchung li {
        padding-left: 26px;
    }

    .close-modalchung {
        font-size: 26px;
        top: 10px;
        right: 15px;
    }
    
    /* Điều chỉnh padding cho mobile */
    .modalchung-header {
        padding-right: 40px; /* Tăng để tránh chồng nút close */
    }
    
    .modalchung-body {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .modalchung-content {
        width: 95%;
        padding: 5vw;
        margin: 2vh auto;
        border-radius: 8px;
    }

    .modalchung-header h3 {
        font-size: 1.3rem;
        padding-bottom: 8px;
    }

    .info-sectionchung h4 {
        font-size: 1.1rem;
    }

    .info-sectionchung p,
    .styled-listchung li {
        font-size: 0.95rem;
    }

    .styled-listchung li {
        padding-left: 24px;
    }

    .list-icon {
        font-size: 1.1rem;
        width: 20px;
    }

    .applychung-btn {
        width: 100%;
        padding: 14px;
        font-size: 1.1rem;
    }
    
    /* Giảm kích thước header/footer trên mobile */
    .modalchung-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .modalchung-footer {
        padding-top: 12px;
        padding-bottom: 5px;
    }
}

/* Đảm bảo không bị rớt dòng ở các kích thước */
@media (max-width: 350px) {
    .modalchung-content {
        width: 98%;
        padding: 4vw;
    }

    .info-sectionchung {
        padding: 15px 12px;
    }

    .styled-listchung li {
        font-size: 0.9rem;
        line-height: 1.5;
        padding-left: 22px;
    }

    .list-icon {
        font-size: 1rem;
        width: 18px;
    }
}

/* Hiệu ứng cho header và footer khi cuộn */
.modalchung-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #eaeaea, transparent);
}

.modalchung-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #eaeaea, transparent);
}
/*Chữ xem chi tiết trên chuyên ngành*/
.badge {
    display: inline-block;
    background: red;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

    .badge.new {
        background: #ffebee;
        color: white;
    }

    .badge:hover {
        background: red;
        color: white;
        width: 110px;
        font-weight: 800;
    }
/* Hết chữ xem chi tiết trên chuyên ngành*/
