/* ═══════════════════════════════════════════════════════
   SECTION: Chứng Chỉ — Full Background Image
   Ảnh chứng chỉ = background section, title overlay trên
   ═══════════════════════════════════════════════════════ */

.sec-cc {
    background-image: url(https://cdn.diemnhangroup.com/cenovaasia.com/2026/03/CHUNG-CHI-CHUNG-NHAN-PC.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    aspect-ratio: 1920 / 980; /* Hiển thị tỉ lệ chuẩn 16:9 của ảnh PC */
    display: flex;
    align-items: flex-start;
}

/* Overlay tối nhẹ phía trên để title đọc rõ */
.sec-cc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* ── Header ── */
.sec-cc__header {
    text-align: center;
    padding-top: clamp(20px, 3.125vw, 60px); /* Co giãn tự động theo tỷ lệ width màn hình */
    padding-bottom: clamp(10px, 1.5vw, 30px);
    position: relative;
    z-index: 2;
    width: 100%;
}

.sec-cc__label {
    display: inline-block;
    font-size: clamp(10px, 0.625vw, 12px); /* Co giãn tự động tỷ lệ thuận */
    font-weight: 600;
    color: #e8d44d;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: clamp(6px, 1vw, 16px);
}

.sec-cc__title {
    font-size: clamp(16px, 1.875vw, 36px); /* Co giãn theo tỷ lệ cho khớp tỷ lệ ảnh nền scale */
    font-weight: 800;
    color: #fff;
    margin: 0 0 clamp(10px, 1vw, 20px);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sec-cc__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sec-cc__divider span {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8d44d, transparent);
}

/* ── Responsive ── */
@media (max-width: 549px) {
    .sec-cc {
        aspect-ratio: 780 / 1000; /* Tỷ lệ ảnh MB (780x1000) */
        background-image: url(https://cdn.diemnhangroup.com/cenovaasia.com/2026/03/CHUNG-CHI-CHUNG-NHAN-MB.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Ẩn Header trên Mobile theo yêu cầu (Ảnh MB đã có sẵn đầy đủ thông tin) */
    .sec-cc__header {
        display: none !important;
    }
}
