/* PAGE HERO */
.page-hero {
    background: var(--dark);
    padding: 60px 0 56px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 90% at 85% 50%, rgba(184, 41, 47, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 5% 80%, rgba(201, 168, 76, 0.07) 0%, transparent 55%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-left {
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.22);
    color: var(--gold-light);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.page-hero h1 {
    font-size: clamp(26px, 4vw, 42px);
    color: #fff;
    margin-bottom: 12px;
    font-weight: 900;
}

.page-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.85;
}

/* CATEGORY STRIP */
.cat-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.cat-row {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-row::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 20px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.cat-btn i {
    font-size: 13px;
}

.cat-btn:hover {
    color: var(--primary);
}

.cat-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.cat-btn .badge {
    font-size: 10px;
    background: rgba(184, 41, 47, 0.08);
    color: var(--primary);
    padding: 1px 7px;
    border-radius: 10px;
}

.cat-btn.active .badge {
    background: var(--primary);
    color: #fff;
}

/* MAIN LAYOUT */
.main-layout {
    padding: 44px 0 80px;
    display: grid;
    grid-template-columns:1fr 292px;
    gap: 32px;
    align-items: start;
}

/* SECTION LABEL */
.section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-label h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

.section-label span {
    font-size: 12px;
    color: var(--text-muted);
}

/* FAQ GROUP */
.faq-group {
    margin-bottom: 36px;
}

/* FAQ ITEM */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item.open {
    box-shadow: var(--shadow-deep);
    border-color: rgba(184, 41, 47, 0.25);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(184, 41, 47, 0.02);
}

.faq-item.open .faq-question {
    background: rgba(184, 41, 47, 0.03);
}

.q-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: 1px;
    transition: all 0.3s;
}

.faq-item .q-icon {
    background: rgba(184, 41, 47, 0.07);
    color: var(--primary);
}

.faq-item.open .q-icon {
    background: var(--primary);
    color: #fff;
}

.q-body {
    flex: 1;
    min-width: 0;
}

.q-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.q-cat {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 10px;
}

.cat-apply {
    background: rgba(184, 41, 47, 0.08);
    color: var(--primary);
}

.cat-card {
    background: rgba(201, 168, 76, 0.12);
    color: #a07820;
}

.cat-money {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

.cat-safe {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.cat-abroad {
    background: rgba(139, 92, 246, 0.08);
    color: #7c3aed;
}

.q-hot {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #d97706;
    background: rgba(245, 158, 11, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
}

.q-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.45;
}

.faq-item.open .q-body h4 {
    color: var(--primary);
}

.q-toggle {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.3s;
    margin-top: 4px;
}

.faq-item.open .q-toggle {
    background: rgba(184, 41, 47, 0.1);
    color: var(--primary);
    transform: rotate(45deg);
}

/* ANSWER */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 24px 24px 78px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.ans-text {
    font-size: 14px;
    color: #4a3530;
    line-height: 1.95;
    margin-bottom: 16px;
}

.ans-text:last-child {
    margin-bottom: 0;
}

/* Answer sub-elements */
.ans-list {
    list-style: none;
    margin: 12px 0;
}

.ans-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.75;
    color: #4a3530;
}

.ans-list li:last-child {
    border: none;
}

.ans-list li i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 12px;
}

.ans-callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 14px 0;
}

.ans-callout i {
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.ans-callout p {
    font-size: 13px;
    line-height: 1.85;
    margin: 0;
}

.callout-tip {
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.18);
}

.callout-tip i, .callout-tip p {
    color: #059669;
}

.callout-warn {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.callout-warn i {
    color: #d97706;
}

.callout-warn p {
    color: #92600a;
}

.callout-info {
    background: rgba(184, 41, 47, 0.05);
    border: 1px solid rgba(184, 41, 47, 0.15);
}

.callout-info i {
    color: var(--primary);
}

.callout-info p {
    color: var(--primary-dark);
}

.ans-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}

.ans-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.ans-step-num {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
}

.ans-step p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    color: #4a3530;
}

.ans-step strong {
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

.ans-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.ans-helpful {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-family: inherit;
    transition: all 0.2s;
}

.helpful-btn:hover, .helpful-btn.yes {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(184, 41, 47, 0.05);
}

.helpful-btn.no:hover {
    border-color: var(--text-muted);
}

.ans-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    transition: gap 0.2s;
}

.ans-link:hover {
    gap: 8px;
}

/* NO RESULT */
.no-result {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.no-result i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 16px;
    display: block;
}

.no-result h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.no-result p {
    font-size: 14px;
    color: var(--text-muted);
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 84px;
}

.side-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.side-header {
    padding: 15px 20px 13px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-header i {
    color: var(--primary);
    font-size: 14px;
}

.side-header h4 {
    font-size: 14px;
    font-weight: 700;
}

.side-body {
    padding: 16px 20px;
}

/* CONTACT SIDE */
.contact-ways {
    list-style: none;
}

.contact-way {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.contact-way:last-child {
    border: none;
    padding-bottom: 0;
}

.way-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
    background: rgba(184, 41, 47, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.way-icon i {
    color: var(--primary);
    font-size: 15px;
}

.way-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.way-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns:1fr;
    }

    .sidebar {
        position: static;
    }

    .hero-inner {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .faq-answer-inner {
        padding-left: 20px;
    }
}


/* MAIN LAYOUT */
.main-layout {
    padding: 40px 0 80px;
    display: grid;
    grid-template-columns:1fr 280px;
    gap: 28px;
    align-items: start;
}

/* QUESTION CARD */
.q-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.q-header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--border);
}

.q-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.q-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(184, 41, 47, 0.08);
    color: var(--primary);
}

.q-hot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #d97706;
    background: rgba(245, 158, 11, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

.q-header h1 {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 16px;
}

.q-info-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.q-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.q-info-item i {
    color: var(--primary);
    font-size: 11px;
}

/* ANSWER CARD */
.ans-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.ans-header {
    padding: 20px 32px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ans-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(184, 41, 47, 0.25);
}

.ans-header-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.ans-header-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.ans-official {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(184, 41, 47, 0.07);
    padding: 4px 12px;
    border-radius: 20px;
}

/* RICH TEXT BODY */
.ans-body {
    padding: 28px 32px 24px;
    font-size: 15px;
    color: #3a2a26;
    line-height: 2;
}

.ans-body p {
    margin-bottom: 18px;
}

.ans-body p:last-child {
    margin-bottom: 0;
}

.ans-body strong {
    font-weight: 600;
    color: var(--dark);
}

.ans-body em {
    font-style: normal;
    color: var(--primary);
    font-weight: 500;
}

.ans-body ul, .ans-body ol {
    padding-left: 20px;
    margin: 4px 0 18px;
}

.ans-body ul {
    list-style: none;
    padding-left: 0;
}

.ans-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.8;
}

.ans-body ul li:last-child {
    border: none;
}

.ans-body ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

.ans-body ol {
    list-style: decimal;
}

.ans-body ol li {
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.8;
}

.ans-body ol li::marker {
    color: var(--primary);
    font-weight: 600;
}

.ans-body blockquote {
    border-left: 3px solid var(--primary);
    background: rgba(184, 41, 47, 0.04);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 6px 0 18px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.85;
}

/* ANSWER FOOTER */
.ans-footer {
    padding: 16px 32px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.helpful-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-family: inherit;
    transition: all 0.2s;
}

.helpful-btn.yes:hover,
.helpful-btn.active-yes {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(184, 41, 47, 0.05);
}

.helpful-btn.no:hover {
    border-color: var(--text-muted);
}

.share-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.share-row span {
    font-size: 12px;
    color: var(--text-muted);
}

.share-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* RELATED QUESTIONS */
.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.related-header {
    padding: 16px 24px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-header i {
    color: var(--primary);
    font-size: 14px;
}

.related-header h4 {
    font-size: 14px;
    font-weight: 700;
}

.related-list {
    list-style: none;
}

.related-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    transition: background 0.2s;
    color: var(--text);
}

.related-item:last-child a {
    border: none;
}

.related-item a:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.related-item a i {
    color: var(--border);
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.related-item a:hover i {
    color: var(--primary);
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 84px;
}

.side-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.side-header {
    padding: 15px 20px 13px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-header i {
    color: var(--primary);
    font-size: 14px;
}

.side-header h4 {
    font-size: 14px;
    font-weight: 700;
}

.side-body {
    padding: 16px 20px;
}

/* HOT Q LIST */
.hot-q-list {
    list-style: none;
}

.hot-q-item {
    border-bottom: 1px solid var(--border);
}

.hot-q-item:last-child {
    border: none;
}

.hot-q-item a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    transition: color 0.2s;
}

.hot-q-item a:hover {
    color: var(--primary);
}

.hot-q-num {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    margin-top: 1px;
}

.n1 {
    background: var(--primary);
    color: #fff;
}

.n2 {
    background: var(--gold);
    color: var(--dark);
}

.n3 {
    background: rgba(184, 41, 47, 0.12);
    color: var(--primary);
}

.nother {
    background: var(--light-bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* CTA SIDE */
.cta-side {
    background: linear-gradient(135deg, var(--dark-2), var(--dark));
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-side::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(184, 41, 47, 0.12);
}

.cta-side i.main-icon {
    font-size: 26px;
    color: var(--gold-light);
    margin-bottom: 10px;
    display: block;
    position: relative;
    z-index: 1;
}

.cta-side h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cta-side p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 14px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-btn {
    display: block;
    padding: 10px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    transition: opacity 0.2s;
    position: relative;
    z-index: 1;
}

.cta-btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    margin-bottom: 8px;
}

.cta-btn-gold:hover {
    opacity: 0.9;
}

.cta-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
}

.cta-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns:1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .q-header, .ans-header, .ans-body, .ans-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .related-item a {
        padding-left: 20px;
        padding-right: 20px;
    }
}