/* ===== About (Giới thiệu chung) Page Styles ===== */

.about-section {
    padding: 70px 0 80px;
    background: #f4f8fb;
}

/* Hai cột giới thiệu: 50/50 từ lg (row-cols-lg-2), cùng chiều cao */
.about-intro-row {
    align-items: stretch;
}

@media (min-width: 992px) {
    /* Đảm bảo hai cột chia đều, nội dung rộng (bảng) không “đẩy” tỷ lệ */
    .about-intro-row--equal > .col {
        min-width: 0;
    }

    .about-intro-col--left {
        display: flex;
        flex-direction: column;
    }

    /* Cột phải: liên hệ trên, ngành nghề dưới — khối ngành nghề giãn nhẹ để cân chiều cao */
    .about-intro-col--right {
        display: flex;
        flex-direction: column;
    }

    .about-intro-col--right .about-block--biz {
        flex: 1;
        min-height: 0;
    }
}

/* ---- Identity Card ---- */
.about-identity-card {
    background: white;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 24px;
    border-top: 4px solid var(--primary-color);
}

.about-logo {
    height: 180px;
    object-fit: contain;
}

.about-identity-names {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-vn-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.4;
}

.about-en-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.about-abbr-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 16px;
    border-radius: 50px;
    margin-top: 4px;
}

/* ---- Contact List ---- */
.about-contact-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Liên hệ ở cột phải, phía trên khối ngành nghề */
.about-intro-col--right .about-contact-list {
    margin-bottom: 24px;
}

/* Khối hình thức dưới logo — bỏ margin đáy thừa */
.about-intro-col--left > .about-block--operating:last-child {
    margin-bottom: 0;
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-contact-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(0, 137, 208, 0.12);
}

.about-contact-item--highlight {
    background: var(--gradient-primary);
}

.about-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 137, 208, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.about-contact-item--highlight .about-contact-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.about-contact-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.about-contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
}

.about-contact-item--highlight .about-contact-label {
    color: rgba(255,255,255,0.75);
}

.about-contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.about-contact-value a {
    color: inherit;
    text-decoration: none;
}

.about-contact-value a:hover {
    text-decoration: underline;
}

.about-contact-item--highlight .about-contact-value {
    color: white;
}

.about-contact-value--big {
    font-size: 1.3rem;
    font-weight: 800;
    color: white !important;
    letter-spacing: 0.04em;
}

.about-contact-value--big a {
    color: white !important;
}

/* ---- Info Blocks (right column) ---- */
.about-block {
    background: white;
    border-radius: 20px;
    padding: 32px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin-bottom: 24px;
}

.about-block-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.about-block-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 137, 208, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-block-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.about-block-text {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 20px;
}

/* Owner badge */
.about-owner-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0f7fc;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    padding: 14px 20px;
}

.about-owner-badge i {
    font-size: 1.4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.about-owner-badge > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.about-owner-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.about-owner-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Bullet list */
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-list li {
    font-size: 0.96rem;
    line-height: 1.7;
    color: #555;
    padding-left: 22px;
    position: relative;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

/* ---- Ngành nghề kinh doanh: Xem thêm / Thu gọn ---- */
.about-block--biz .about-biz-body {
    position: relative;
    max-height: 250px;
    overflow: hidden;
    transition: max-height 0.48s cubic-bezier(0.33, 1, 0.32, 1);
}

.about-biz-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 88px;
    pointer-events: none;
    transition: opacity 0.3s;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.52) 42%,
        rgba(255, 255, 255, 0.94) 76%,
        #ffffff 100%
    );
}

.about-block--biz.expanded .about-biz-fade {
    opacity: 0;
}

.about-biz-read-more {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.9), 0 1px 0 rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    color: var(--primary-color, #0089d0);
    transition: opacity 0.2s, color 0.2s;
}

.about-biz-read-more:hover {
    opacity: 0.85;
}

.about-block--biz.expanded .about-biz-read-more {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 14px auto 0;
    display: flex;
    width: fit-content;
    max-width: 100%;
}

.about-biz-rm-less {
    display: none;
}

.about-block--biz.expanded .about-biz-rm-more {
    display: none;
}

.about-block--biz.expanded .about-biz-rm-less {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.about-biz-read-more i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

/* ---- Bảng ngành nghề kinh doanh (GPKD) ---- */
.about-business-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 4px;
    border-radius: 12px;
    border: 1px solid #e8eef4;
}

.about-business-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

.about-business-table thead th {
    text-align: left;
    padding: 12px 14px;
    background: #f1f6fb;
    color: var(--primary-dark, #0a3d62);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #dce7f0;
    white-space: nowrap;
}

.about-business-table tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
    line-height: 1.65;
    color: #444;
}

.about-business-table tbody tr:last-child td {
    border-bottom: none;
}

.about-business-table tbody tr:hover td {
    background: #fafcfe;
}

.about-business-table .col-stt {
    width: 48px;
    text-align: center;
    font-weight: 800;
    color: var(--primary-color, #0089d0);
}

.about-business-table .col-code {
    width: 118px;
    white-space: nowrap;
    font-weight: 700;
}

.about-biz-cell p {
    margin: 0 0 0.4em;
}

.about-biz-cell p:last-child {
    margin-bottom: 0;
}

.about-biz-cell ul {
    margin: 0.35em 0 0;
    padding-left: 1.15em;
}

.about-biz-cell li {
    margin-bottom: 0.25em;
}

.about-biz-note {
    font-size: 0.82em;
    color: #666;
    font-style: italic;
    margin-top: 0.5em !important;
}

.about-biz-code {
    color: var(--primary-dark, #0a3d62);
}

.about-biz-primary {
    color: #009245;
    font-weight: 700;
    font-size: 0.88em;
}

@media (max-width: 767.98px) {
    .about-business-table thead {
        display: none;
    }

    .about-business-table tbody tr {
        display: block;
        padding: 14px 12px;
        border-bottom: 1px solid #edf2f7;
    }

    .about-business-table tbody td {
        display: block;
        width: 100% !important;
        padding: 4px 0;
        border: none;
    }

    .about-business-table .col-stt::before {
        content: 'TT: ';
        font-weight: 700;
        color: #64748b;
    }

    .about-business-table tbody td.col-code::before {
        content: 'Mã ngành: ';
        font-weight: 700;
        color: #64748b;
        display: inline-block;
        margin-right: 6px;
    }
}

/* ---- Coverage Section ---- */
.about-coverage {
    background: white;
    border-radius: 20px;
    padding: 36px 36px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin-top: 8px;
}

.coverage-card {
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.coverage-card--direct {
    background: linear-gradient(135deg, #e8f5ff 0%, #f0faff 100%);
    border: 1px solid #c6e5f8;
}

.coverage-card--partner {
    background: linear-gradient(135deg, #edf9f4 0%, #f4fbf8 100%);
    border: 1px solid #b8e8d5;
}

.coverage-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.coverage-card--direct .coverage-card-icon {
    background: rgba(0, 137, 208, 0.12);
    color: var(--primary-color);
}

.coverage-card--partner .coverage-card-icon {
    background: rgba(0, 146, 69, 0.12);
    color: #009245;
}

.coverage-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.coverage-card-body {
    position: relative;
    flex: 1;
    max-height: 150px;
    overflow: hidden;
    /* max-height khi mở/đóng do JS set theo scrollHeight — tránh animate 2000px→150px gây giật */
    transition: max-height 0.48s cubic-bezier(0.33, 1, 0.32, 1);
}

.coverage-card-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Gradient đậm dần xuống đáy để chữ phía dưới không bị nhạt chồng lên nút */
.coverage-card--direct .coverage-card-fade {
    background: linear-gradient(
        to bottom,
        rgba(232, 245, 255, 0) 0%,
        rgba(232, 245, 255, 0.55) 45%,
        rgba(237, 248, 255, 0.92) 78%,
        #e8f5ff 100%
    );
}

.coverage-card--partner .coverage-card-fade {
    background: linear-gradient(
        to bottom,
        rgba(237, 249, 244, 0) 0%,
        rgba(237, 249, 244, 0.55) 45%,
        rgba(244, 251, 248, 0.94) 78%,
        #edf9f4 100%
    );
}

.coverage-card.expanded .coverage-card-fade {
    opacity: 0;
}

.coverage-card-text {
    font-size: 0.94rem;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

.coverage-read-more {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.9), 0 1px 0 rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s, color 0.2s;
}

.coverage-card--direct .coverage-read-more {
    color: var(--primary-color, #0089d0);
}

.coverage-card--partner .coverage-read-more {
    color: #009245;
}

.coverage-read-more:hover {
    opacity: 0.85;
}

.coverage-card.expanded .coverage-read-more {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 12px auto 0;
    display: flex;
    width: fit-content;
    max-width: 100%;
}

.coverage-card.expanded .coverage-read-more:hover {
    opacity: 0.85;
}

.coverage-rm-less {
    display: none;
}

.coverage-card.expanded .coverage-rm-more {
    display: none;
}

.coverage-card.expanded .coverage-rm-less {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.coverage-read-more i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.coverage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.coverage-tags span {
    background: rgba(0, 137, 208, 0.1);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(0, 137, 208, 0.2);
}

.coverage-tags--partner span {
    background: rgba(0, 146, 69, 0.1);
    color: #009245;
    border-color: rgba(0, 146, 69, 0.2);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .about-section {
        padding: 50px 0 60px;
    }

    .about-block {
        padding: 28px 24px;
    }

    .about-coverage {
        padding: 28px 24px 32px;
    }
}

@media (max-width: 575.98px) {
    .about-identity-card {
        padding: 28px 20px;
    }

    .about-contact-item {
        padding: 12px 16px;
    }

    .coverage-card {
        padding: 24px 20px;
    }
}
