/* FAQ Page Styles */
.think-faq-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-family: 'Inter', sans-serif;
}
.think-faq-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Tabs */
.tf-tabs {
    display: flex;
    margin-bottom: 40px;
}
.tf-tab {
    flex: 1;
    text-align: center;
    padding: 25px;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.tf-tab.active {
    background: #e6e9ed; /* Light grey */
    color: #111;
}
.tf-tab.inactive-tab {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    color: #888;
}
.tf-tab.inactive-tab:hover {
    color: #fff;
}

/* Filters */
.tf-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 40px;
}
.tf-filter-label {
    color: #fff;
    font-weight: bold;
    margin-right: 30px;
    font-size: 14px;
}
.tf-filter-btn {
    color: #888;
    text-decoration: none;
    margin-right: 25px;
    font-size: 14px;
    transition: all 0.3s;
}
.tf-filter-btn:hover,
.tf-filter-btn.active {
    color: #fff;
}

/* Term Header (e.g. FAQ Category | Related Business) */
.tf-term-group {
    margin-bottom: 50px;
}
.tf-term-header {
    display: flex;
    margin-bottom: 20px;
    align-items: stretch;
}
.tf-term-label {
    background: #e6e9ed;
    color: #111;
    padding: 12px 25px;
    font-weight: bold;
    font-size: 14px;
}
.tf-term-name {
    background: #1f1f1f;
    color: #fff;
    padding: 12px 25px;
    border: 1px solid #333;
    border-left: none;
    font-size: 14px;
}

/* Accordion */
.tf-accordion-item {
    margin-bottom: 0;
    border: 1px solid #333;
    border-bottom: none;
}
.tf-accordion-item:last-child {
    border-bottom: 1px solid #333;
}

/* Accordion Title (Question) */
.tf-accordion-title {
    background: #1a1a1a;
    color: #fff;
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 16px;
}
.tf-accordion-title:hover {
    background: #222;
}
.tf-accordion-title.active {
    color: #ff3333; /* Chuyển màu đỏ khi mở */
}

/* Dấu + và - */
.tf-icon {
    position: relative;
    width: 14px;
    height: 14px;
}
.tf-icon::before,
.tf-icon::after {
    content: '';
    position: absolute;
    background-color: #fff;
    transition: all 0.3s ease;
}
.tf-icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 1px;
}
.tf-icon::after {
    top: 0;
    left: 6px;
    width: 1px;
    height: 14px;
}
/* Đổi màu dấu thành đỏ và biến thành dấu trừ khi active */
.tf-accordion-title.active .tf-icon::before {
    background-color: #ff3333;
}
.tf-accordion-title.active .tf-icon::after {
    transform: rotate(90deg);
    opacity: 0; /* Biến mất để tạo thành dấu trừ */
}

/* Accordion Content (Answer) */
.tf-accordion-content {
    background: linear-gradient(180deg, #d8dbe0 0%, #f0f2f5 100%);
    color: #444;
    padding: 30px;
    display: none; /* Mặc định ẩn, sẽ mở ra bằng jQuery slideDown */
}
.tf-answer p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}
.tf-answer p:last-child {
    margin-bottom: 0;
}

/* Button */
.tf-btn {
    display: inline-block;
    border: 1px solid #111;
    color: #111;
    padding: 12px 25px;
    text-decoration: none;
    margin-top: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.tf-btn .arrow {
    margin-left: 10px;
}
.tf-btn:hover {
    background: #111;
    color: #fff;
}

/* Glossary Specific Styles */
.tf-glossary-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    justify-content: center;
}
.tf-alphabet-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 18px 20px;
    background: linear-gradient(180deg, #3a3a3a 0%, #1f1f1f 100%);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #444;
    line-height: 1.3;
    text-align: center;
}
.tf-alphabet-btn span.row-jp {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 4px;
}
.tf-alphabet-btn:hover,
.tf-alphabet-btn.active {
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border-color: #888;
    color: #fff;
}
.tf-glossary-title {
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
}
.tf-glossary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 50px auto;
    width: 100%;
}
.tf-glossary-letter-title {
    font-size: 32px;
    color: #888;
    font-weight: 300;
    margin-bottom: 30px;
    margin-top: 50px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}
.tf-glossary-group:first-child .tf-glossary-letter-title {
    margin-top: 0;
}

/* Sub-group within each Row */
.tf-glossary-subgroup {
    margin-bottom: 40px;
}
.tf-glossary-subletter {
    font-size: 16px;
    color: #aaa;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    border-left: 3px solid #555;
}
