/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
/* --- Interactive Tabs Widget --- */
.interactive-tabs-widget { display: flex; gap: 40px; align-items: flex-start; }
.it-sidebar { display: flex; flex-direction: column; gap: 20px; width: 200px; flex-shrink: 0; }
.it-sidebar-right { align-items: flex-end; }
.it-sidebar-right .it-tab-item { flex-direction: row-reverse; }
.it-tab-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: white; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; border: 1px solid #e2e8f0; width: max-content;}
.it-tab-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.it-tab-item.active { background: #000369; color: white; border-color: #000369; transform: translateY(-3px); box-shadow: 0 8px 25px rgb(26 31 199 / 31%); }
.it-tab-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(72, 187, 120, 0.1); border-radius: 50%; color: #000369; transition: all 0.3s ease; }
.it-tab-item.active .it-tab-icon { background: rgba(255, 255, 255, 0.2); color: white; }
.it-tab-item span { font-weight: 500; }
.it-content-area { flex: 1; width: 600px; position: relative; min-height: 400px; }
.it-content-card { background: white; border-radius: 20px; padding: 40px; text-align: center; position: absolute; top: 0; left: 0; right: 0; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; border: 1px solid #e2e8f0; visibility: hidden; }
.it-content-card.active { opacity: 1; transform: translateY(0); position: relative; visibility: visible; }
.it-content-number { font-size: 3.5rem; font-weight: 700; color: #000369; margin-bottom: 15px; }
.it-content-card h2 { font-size: 2rem; color: #2d3748; margin: 0 0 20px; }
.it-content-card .it-content-description { color: #4a5568; line-height: 1.7; margin-bottom: 30px; }
.it-cta-button { background: #000369; color: white; border: none; padding: 12px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-block; text-decoration: none; }
.it-cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgb(26 31 199 / 31%); }
@media (max-width: 1024px) {
    .interactive-tabs-widget { flex-direction: column; align-items: center; }
    .it-sidebar { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; }
    .it-sidebar-right { order: 1; }
    .it-sidebar-right .it-tab-item { flex-direction: row; }
    .it-content-area { order: -1; }
}
@media (max-width: 767px) {
    .interactive-tabs-widget { display: block; }
    .it-sidebar { display: none; }
    .it-content-area { min-height: 0; }
    .it-content-card { position: relative; opacity: 1; transform: none; visibility: visible; margin-bottom: 20px; }
    /* Mobile-specific tabs will need a separate implementation or can be simplified to show all content */
}

/* --- Synced Accordion Widget --- */
.synced-accordion-widget { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.sa-image-section { position: sticky; top: 100px; }
.sa-image-container { background: #f9f9f9; padding: 15px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.sa-image-container img { width: 100%; height: auto; display: block; border-radius: 8px; }
.sa-accordion-container { position: relative; }

/* Thanh tiến trình */
.sa-progress-line { position: absolute; left: 18px; top: 19px; bottom: 19px; width: 2px; background: #e0e0e0; z-index: 1; }
.sa-progress-line-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: #000369; }

.sa-accordion { position: relative; z-index: 2; }

/* --- SỬA ĐỔI CHÍNH TẠI ĐÂY --- */

.sa-accordion-item {
    /* Toàn bộ item không có border */
    position: relative;
    padding-left: 58px; /* Đẩy toàn bộ item sang phải, chừa chỗ cho số và đường kẻ */
}

/* Đường kẻ sẽ được tạo bằng pseudo-element ::after của item */
.sa-accordion-item::after {
    content: '';
    position: absolute;
    left: 58px;  /* Bắt đầu từ bên phải của khoảng trống */
    right: 0;    /* Kéo dài đến hết lề phải */
    bottom: 0;   /* Nằm ở dưới cùng của item */
    height: 1px;
    background-color: #eee;
}

.sa-accordion-item:last-child::after {
    display: none; /* Bỏ đường kẻ cho item cuối cùng */
}

.sa-accordion-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 20px 0;
    /* Bỏ border và margin ở đây */
}

.sa-step-number {
    position: absolute; /* Đặt số ra ngoài luồng */
    left: -58px;      /* Kéo số về lại vị trí bên trái */
    top: 20px;        /* Căn theo lề trên của header */
    transform: none;  /* Bỏ transform Y */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 3;
}
/* KẾT THÚC SỬA ĐỔI CHÍNH */

.sa-accordion-item.active .sa-step-number { background: #000369; color: white; }
.sa-accordion-header h3 { flex: 1; font-size: 18px; font-weight: 600; color: #333; margin: 0; transition: color 0.3s ease; }
.sa-accordion-item.active .sa-accordion-header h3 { color: #000369; }
.sa-accordion-icon { width: 24px; height: 24px; border: 2px solid #ccc; border-radius: 4px; position: relative; flex-shrink: 0; transition: all 0.3s ease; }
.sa-accordion-item.active .sa-accordion-icon { border-color: #000369; background-color: #000369; }
.sa-accordion-icon span { position: absolute; top: 50%; left: 50%; background: #ccc; transition: transform 0.3s ease, opacity 0.3s ease; }
.sa-accordion-item.active .sa-accordion-icon span { background: white; }
.sa-accordion-icon .icon-plus { width: 12px; height: 2px; margin-left: -6px; margin-top: -1px; }
.sa-accordion-icon .icon-minus { width: 2px; height: 12px; margin-left: -1px; margin-top: -6px; }
.sa-accordion-item.active .sa-accordion-icon .icon-plus { transform: rotate(90deg); opacity: 0; }
.sa-accordion-item.active .sa-accordion-icon .icon-minus { transform: rotate(90deg); }
.sa-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.sa-accordion-item.active .sa-accordion-content { max-height: 200px; }
.sa-content-inner { padding: 5px 0 25px 0; /* Bỏ padding-left ở đây */ color: #666; font-size: 16px; line-height: 1.7; }
@media (max-width: 767px) {
    .synced-accordion-widget { grid-template-columns: 1fr; }
    .sa-image-section { position: relative; top: 0; }
}
/* --- Comparison Table Widget --- */
.comparison-table-widget { overflow-x: auto; /* Thêm scroll ngang cho mobile */ }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 600px; }

/* Header */
.comparison-table th { padding: 20px 15px; text-align: center; color: #ffffff; /* Màu chữ mặc định */ border-right: 1px solid rgba(255, 255, 255, 0.2); }
.comparison-table th:last-child { border-right: none; }
.criteria-column { background-color: #34495e; }
.traditional-column { background-color: #e74c3c; }
.independent-column { background-color: #f39c12; }
.pih-column { background-color: #27ae60; }

/* Body */
.comparison-table tbody tr:nth-child(even) td { background-color: #f8f9fa; }
.comparison-table tbody tr:nth-child(odd) td { background-color: #ffffff; }
.comparison-table tbody tr:hover td { background-color: #f1f1f1; }
.comparison-table td { padding: 20px 15px; border-bottom: 1px solid #e9ecef; border-right: 1px solid #e9ecef; }
.comparison-table td:last-child { border-right: none; }
.criteria-cell { background-color: #f4f6f8 !important; text-align: left !important; font-weight: 600; color: #333; }
.pih-cell { font-weight: 500; }

/* SỬA LỖI ICON VÀ CĂN GIỮA */
.comparison-table td .cell-content {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: center; /* Căn giữa theo chiều ngang (cho text-align center) */
    text-align: left; /* Mặc định text-align là left */
}
.criteria-cell .cell-content {
    justify-content: flex-start; /* Ghi đè để căn trái cho cột tiêu chí */
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Ngăn icon bị co lại */
    margin-right: 8px;
    width: 1.2em; /* Đặt chiều rộng cố định */
    height: 1.2em; /* Đặt chiều cao cố định */
}
.status-icon i, 
.status-icon svg {
    /* Đảm bảo icon lấp đầy container của nó */
    width: 100%;
    height: 100%;
}
.traditional-cell .status-icon { color: #c0392b; }
.independent-cell .status-icon { color: #e67e22; }
.pih-cell .status-icon { color: #27ae60; }