/* ==================== VẬN HÀNH XLNT (BỆNH VIỆN - TRƯỜNG HỌC - KHU DÂN CƯ) ==================== */
/* 1. Đảm bảo toàn bộ trang không bị trượt ngang */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.main-wrapper-ww {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.main-wrapper-ww {
    background-color: #f8fafc;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    line-height: 1.6;
    min-height: 70vh;
}

/* 1. Hero Banner */
.ww-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%), url('/images/banner-XLNT-PhuYen.png') center/cover no-repeat;
    color: #fff;
    padding: 90px 5% 80px 5%;
    text-align: center;
}

.ww-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ww-hero-badge {
    background: rgba(52, 211, 153, 0.25);
    color: #34d399;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(52,211,153,0.4);
    display: inline-block;
}

.ww-hero-title {
    font-size: 38px;
    font-weight: 800;
    margin: 20px 0 15px 0;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ww-hero-desc {
    font-size: 16px;
    color: #e2e8f0;
    line-height: 1.7;
    margin: 0 auto 30px auto;
    max-width: 780px;
}

.ww-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-ww-primary {
    background-color: #10b981;
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background 0.2s;
}
.btn-ww-primary:hover { background-color: #059669; }

.btn-ww-outline {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.btn-ww-outline:hover { background: rgba(255,255,255,0.25); }

/* 2. Cam kết chất lượng stats bar */
.ww-stats-section {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 35px 5%;
}

.ww-stats-container {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}

.ww-stat-num-green { font-size: 32px; font-weight: 800; color: #059669; }
.ww-stat-num-blue { font-size: 32px; font-weight: 800; color: #0284c7; }
.ww-stat-num-amber { font-size: 32px; font-weight: 800; color: #d97706; }
.ww-stat-num-purple { font-size: 32px; font-weight: 800; color: #9333ea; }
.ww-stat-label { font-size: 13px; color: #64748b; font-weight: 600; margin-top: 5px; }

/* 3. Phân khúc chuyên sâu */
.ww-segments-section {
    padding: 70px 5%;
    background-color: #f8fafc;
}

.ww-container {
    max-width: 1150px;
    margin: 0 auto;
}

.ww-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.ww-section-tag {
    color: #059669;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ww-section-title {
    color: #0f172a;
    font-size: 30px;
    font-weight: 800;
    margin-top: 8px;
}

.ww-section-desc {
    color: #64748b;
    font-size: 15px;
    max-width: 700px;
    margin: 10px auto 0 auto;
}

.ww-grid-3cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.ww-segment-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.ww-segment-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.bg-blue-soft { background: #e0f2fe; color: #0284c7; }
.bg-green-soft { background: #ecfdf5; color: #059669; }
.bg-amber-soft { background: #fef3c7; color: #d97706; }

.ww-segment-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.ww-segment-list {
    padding-left: 18px;
    color: #475569;
    font-size: 14px;
    margin: 0;
    line-height: 1.8;
}

/* 4. Phạm vi công việc hằng ngày */
.ww-tasks-section {
    padding: 70px 5%;
    background: #fff;
}

.ww-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ww-task-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
}
.border-top-green { border-top: 4px solid #059669; }
.border-top-blue { border-top: 4px solid #0284c7; }
.border-top-amber { border-top: 4px solid #d97706; }
.border-top-purple { border-top: 4px solid #9333ea; }

.ww-task-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.ww-task-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* 5. Dự án tiêu biểu */
.ww-projects-section {
    padding: 70px 5%;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ww-project-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.ww-project-img-1 {
    height: 200px;
    background: url('/images/benh-vien-thu-duc.jpg') center/cover no-repeat;
    position: relative;
}

.ww-project-img-2 {
    height: 200px;
    background: url('/images/vien-tim.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ww-project-img-3 {
    height: 200px;
    background: url('/images/xlnt-bau-cat.jpg') center/cover no-repeat;
    position: relative;
}

.ww-project-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #34d399;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.ww-project-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ww-project-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.ww-project-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ww-project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    font-size: 13px;
    color: #475569;
}

/* 6. Form đăng ký */
.ww-form-section {
    padding: 70px 5%;
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
    color: #fff;
}

.ww-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 45px;
    border-radius: 16px;
    color: #334155;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.ww-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.ww-form-group {
    margin-bottom: 15px;
}

.ww-form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}

.ww-form-input, .ww-form-select, .ww-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.ww-form-textarea {
    resize: vertical;
}

.btn-submit-ww {
    width: 100%;
    background: #10b981;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit-ww:hover { background: #059669; }

/* Responsive Mobile */
@media (max-width: 768px) {
   /* 1. Ép wrapper form về đúng chiều rộng màn hình */
    .ww-form-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 12px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* 2. Chuyển ww-form-grid từ 2 cột thành 1 cột xếp dọc */
    .ww-form-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
        box-sizing: border-box !important;
    }

    /* 3. Đảm bảo tất cả nhóm thẻ form-group bên trong chiếm đủ 100% chiều rộng */
    .ww-form-group {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }

    /* 4. Fix ô input, select, textarea không bị đâm thủng lề */
    .ww-form-input, 
    .ww-form-select, 
    .ww-form-textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}