/* Cấu hình chung */
.vca-about-content {
    --vca-primary: #007BAA;
    --vca-hover: #005C85;
    --vca-light: #F0F5F8;
    --vca-border: #DCE5EA;
    --vca-text: #222222;

    min-width: 0;
    color: var(--vca-text);
    font-size: 16px;
    line-height: 1.75;
}

/* Nội dung văn bản */
.vca-about-content p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.vca-about-content p:last-child {
    margin-bottom: 0;
}

.vca-about-content h3 {
    line-height: 1.45;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Tiêu đề các khu vực */
.vca-about-content .vca-about-heading h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--vca-primary);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.vca-about-content .vca-about-heading h2::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 4px solid var(--vca-primary);
    border-radius: 50%;
    box-sizing: border-box;
}

/* Banner giới thiệu */
.vca-about-content .vca-about-hero {
    overflow: hidden;
    isolation: isolate;
    --vca-hero-overlay-height: 55%;
}

.vca-about-content .vca-about-hero .banner-bg {
    z-index: 0;
}

.vca-about-content .vca-about-hero .overlay {
    background: transparent !important;
}

/* Lớp phủ gradient chỉ ở dưới ảnh */
.vca-about-content .vca-about-hero .banner-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--vca-hero-overlay-height);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.55) 30%,
        rgba(0, 0, 0, 0.75) 60%,
        rgba(0, 0, 0, 0.90) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.vca-about-content .vca-about-hero .banner-layers {
    z-index: 3;
}

.vca-about-content .vca-about-hero h2,
.vca-about-content .vca-about-hero p {
    color: #FFFFFF !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.vca-about-content .vca-about-hero h2 {
    font-size: clamp(26px, 2.2vw, 38px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.vca-about-content .vca-about-hero p {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 12px;
}

/* Chức năng và nhiệm vụ */
.vca-about-content .vca-about-missions .col-inner {
    height: 100%;
    border: 1px solid transparent;
    transition: background-color 0.3s ease,
                border-color 0.3s ease;
}

.vca-about-content .vca-about-missions h2 {
    font-weight: 700;
    margin-bottom: 15px;
}

.vca-about-content .vca-about-missions h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

@media (hover: hover) {
    .vca-about-content .vca-about-missions
    .col-inner:hover {
        background-color: #E5F2F8 !important;
        border-color: #B9DCEB;
    }
}

/* Hoạt động tiêu biểu */
.vca-about-content .vca-about-activities
.accordion-title {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.25s ease,
                background-color 0.25s ease;
}

.vca-about-content .vca-about-activities
.accordion-title:hover {
    color: var(--vca-primary);
}

.vca-about-content .vca-about-activities
.accordion-title.active {
    color: var(--vca-primary);
    background-color: var(--vca-light);
    border-top-color: var(--vca-primary);
}

.vca-about-content .vca-about-activities
.accordion-inner {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Các mốc lịch sử */
.vca-about-content .vca-history-item {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
}

.vca-about-content .vca-history-item > .col {
    display: flex;
    padding-bottom: 0;
}

.vca-about-content .vca-history-item
> .col > .col-inner {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Cột năm */
.vca-about-content .vca-history-item
> .col:first-child > .col-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--vca-primary);
}

.vca-about-content .vca-history-item
> .col:first-child h2 {
    margin: 0 !important;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

/* Cột nội dung lịch sử */
.vca-about-content .vca-history-item
> .col:last-child > .col-inner {
    border: 1px solid var(--vca-border);
    border-left: 0;
    background-color: var(--vca-light);
    transition: background-color 0.25s ease;
}

.vca-about-content .vca-history-item h3 {
    font-size: 20px;
    color: var(--vca-primary);
    line-height: 1.45;
    margin-bottom: 15px;
}

.vca-about-content .vca-history-item
p:last-child {
    margin-bottom: 0;
}

/* Ảnh tư liệu lịch sử */
.vca-about-content .vca-about-history-image {
    width: 100%;
    margin-bottom: 0;
}

.vca-about-content .vca-about-history-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Ảnh hoạt động */
.vca-about-content .vca-about-activity-image {
    overflow: hidden;
}

.vca-about-content .vca-about-activity-image
.img-inner {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.vca-about-content .vca-about-activity-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .vca-about-content .vca-about-activity-image:hover img {
        transform: scale(1.035);
    }
}

/* Nút chức năng */
.vca-about-content .button.primary {
    background-color: var(--vca-primary);
    border-color: var(--vca-primary);
    color: #FFFFFF;
    border-radius: 0;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.25s ease,
                border-color 0.25s ease,
                color 0.25s ease;
}

.vca-about-content .button.primary.is-outline {
    background-color: transparent;
    border-color: var(--vca-primary);
    color: var(--vca-primary);
}

.vca-about-content .button.primary:hover {
    background-color: var(--vca-hover);
    border-color: var(--vca-hover);
    color: #FFFFFF;
}

/* Tablet */
@media only screen and (max-width: 849px) {

    .vca-about-content .vca-about-hero {
        --vca-hero-overlay-height: 65%;
    }

    .vca-about-content {
        font-size: 15px;
    }

    .vca-about-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .vca-about-content .vca-about-heading h2 {
        font-size: 22px !important;
    }

    .vca-about-content .vca-about-hero p {
        font-size: 15px;
    }

    .vca-about-content .vca-history-item h3 {
        font-size: 18px;
    }
}

/* Điện thoại */
@media only screen and (max-width: 549px) {

    .vca-about-content .vca-about-hero {
        --vca-hero-overlay-height: 80%;
    }

    .vca-about-content .vca-about-heading h2 {
        font-size: 20px !important;
        gap: 8px;
    }

    .vca-about-content .vca-about-heading
    h2::before {
        width: 11px;
        height: 11px;
        border-width: 3px;
    }

    .vca-about-content .vca-about-hero h2 {
        font-size: 24px;
    }

    .vca-about-content .vca-about-hero p {
        font-size: 14px;
        line-height: 1.6;
    }

    .vca-about-content .vca-history-item
    > .col:first-child > .col-inner {
        padding: 15px !important;
    }

    .vca-about-content .vca-history-item
    > .col:first-child h2 {
        font-size: 26px;
    }

    .vca-about-content .vca-history-item
    > .col:last-child > .col-inner {
        padding: 20px !important;
        border-left: 1px solid var(--vca-border);
        border-top: 0;
    }

    .vca-about-content .vca-about-missions
    .col-inner {
        padding: 20px !important;
    }

    .vca-about-content .button.primary {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* Hạn chế chuyển động */
@media (prefers-reduced-motion: reduce) {

    .vca-about-content * {
        transition: none !important;
    }

    .vca-about-content
    .vca-about-activity-image:hover img {
        transform: none;
    }
}


/* Sơ đồ tổ chức */
.vca-organization-content .vca-organization-chart {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 15px;
}

.vca-organization-content .vca-organization-chart img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Chân dung lãnh đạo */
.vca-organization-content .vca-leader-card {
    height: 100%;
    text-align: center;
}

.vca-organization-content .vca-leader-card .box-image {
    overflow: hidden;
    background-color: #F0F5F8;
}

.vca-organization-content .vca-leader-card .box-image img {
    transition: transform 0.4s ease;
}

.vca-organization-content .vca-leader-card .box-text {
    padding: 20px 10px 15px;
}

.vca-organization-content .vca-leader-card h4,
.vca-organization-content .vca-leader-card h5 {
    color: #222222;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    margin-bottom: 6px;
}

.vca-organization-content .vca-leader-card .person-title {
    color: #007BAA;
    font-size: 16px;
    font-weight: 500;
    opacity: 1;
    text-transform: none;
}

/* Ẩn mạng xã hội khi không có liên kết */
.vca-organization-content .vca-leader-card .social-icons:empty {
    display: none;
}

/* Hiệu ứng chân dung */
@media (hover: hover) {
    .vca-organization-content .vca-leader-card:hover .box-image img {
        transform: scale(1.035);
    }

    .vca-organization-content .vca-leader-card:hover h4,
    .vca-organization-content .vca-leader-card:hover h5 {
        color: #007BAA;
    }
}

/* Bảng danh sách nhân sự */
.vca-organization-content .vca-organization-table {
    width: 100%;
    overflow-x: auto;
}

.vca-organization-content .vca-organization-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #DCE5EA;
    margin: 15px 0 20px;
    font-size: 16px;
    line-height: 1.6;
}

/* Tiêu đề bảng */
.vca-organization-content .vca-organization-table thead {
    background-color: #007BAA;
}

.vca-organization-content .vca-organization-table th {
    padding: 15px 18px;
    color: #FFFFFF;
    background-color: #007BAA;
    border-bottom: 1px solid #007BAA;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
}

/* Nội dung bảng */
.vca-organization-content .vca-organization-table td {
    padding: 14px 18px;
    color: #333333;
    font-size: 15px;
    border-bottom: 1px solid #DCE5EA;
    vertical-align: middle;
    overflow-wrap: break-word;
    transition: background-color 0.25s ease;
}

/* Chiều rộng các cột */
.vca-organization-content .vca-organization-table th:nth-child(1),
.vca-organization-content .vca-organization-table td:nth-child(1) {
    width: 12%;
    text-align: center;
}

.vca-organization-content .vca-organization-table th:nth-child(2),
.vca-organization-content .vca-organization-table td:nth-child(2) {
    width: 40%;
}

.vca-organization-content .vca-organization-table th:nth-child(3),
.vca-organization-content .vca-organization-table td:nth-child(3) {
    width: 48%;
}

/* Màu nền xen kẽ */
.vca-organization-content .vca-organization-table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

.vca-organization-content .vca-organization-table tbody tr:nth-child(even) {
    background-color: #F0F5F8;
}

/* Hover từng hàng */
@media (hover: hover) {
    .vca-organization-content .vca-organization-table tbody tr:hover td {
        background-color: #DFF0F7;
    }
}

/* Các bộ phận chuyên môn */
.vca-organization-content .vca-about-activities .accordion-title {
    font-size: 17px;
    font-weight: 500;
}

.vca-organization-content .vca-about-activities .accordion-title.active {
    color: #007BAA;
    background-color: #F0F5F8;
    border-top-color: #007BAA;
}

.vca-organization-content .vca-about-activities .accordion-inner {
    padding: 20px;
}

.vca-organization-content .vca-about-activities table {
    margin-bottom: 0;
}

/* Tablet */
@media only screen and (max-width: 849px) {

    .vca-organization-content .vca-organization-table th,
    .vca-organization-content .vca-organization-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .vca-organization-content .vca-leader-card h4,
    .vca-organization-content .vca-leader-card h5 {
        font-size: 17px;
    }

    .vca-organization-content .vca-leader-card .person-title {
        font-size: 14px;
    }
}

/* Điện thoại */
@media only screen and (max-width: 549px) {

    .vca-organization-content .vca-organization-table th,
    .vca-organization-content .vca-organization-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .vca-organization-content .vca-organization-table th:nth-child(1),
    .vca-organization-content .vca-organization-table td:nth-child(1) {
        width: 15%;
    }

    .vca-organization-content .vca-organization-table th:nth-child(2),
    .vca-organization-content .vca-organization-table td:nth-child(2) {
        width: 35%;
    }

    .vca-organization-content .vca-organization-table th:nth-child(3),
    .vca-organization-content .vca-organization-table td:nth-child(3) {
        width: 50%;
    }

    .vca-organization-content .vca-about-activities .accordion-inner {
        padding: 15px 5px;
    }

    .vca-organization-content .vca-about-activities .accordion-title {
        font-size: 15px;
    }

    .vca-organization-content .vca-leader-card .box-text {
        padding: 12px 5px;
    }

    .vca-organization-content .vca-leader-card h4,
    .vca-organization-content .vca-leader-card h5 {
        font-size: 16px;
    }
}
