/* ===== BLOG SHARED STYLES ===== */
:root {
    --navy: #1B365D;
    --navy-light: #2A4A7F;
    --navy-dark: #0F2340;
    --gold: #C9A96E;
    --gold-light: #D4BC8E;
    --gold-dark: #B08D4F;
    --cream: #FAF7F2;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --green: #2D8A4E;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', 'Noto Sans HK', -apple-system, sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

body[data-lang="zh"] {
    font-family: 'Noto Sans HK', 'Inter', -apple-system, sans-serif;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

[data-en] { display: inline; }
[data-zh] { display: none; }
body[data-lang="zh"] [data-en] { display: none; }
body[data-lang="zh"] [data-zh] { display: inline; }
.block-en { display: block; }
.block-zh { display: none; }
body[data-lang="zh"] .block-en { display: none; }
body[data-lang="zh"] .block-zh { display: block; }

/* NAV */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(27,54,93,0.97); backdrop-filter: blur(20px);
    padding: 14px 0; box-shadow: var(--shadow-md);
}
.nav .container { max-width: 1200px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--white);
    font-weight: 800; font-size: 1.3rem;
}
.logo-icon {
    width: 36px; height: 36px; background: var(--gold);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; color: var(--navy-dark); font-size: 1rem;
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link {
    color: rgba(255,255,255,0.8); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
}
.nav-link:hover { color: var(--gold-light); }
.lang-toggle {
    display: flex; background: rgba(255,255,255,0.15);
    border-radius: 50px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}
.lang-toggle button {
    padding: 6px 14px; border: none; background: transparent;
    color: rgba(255,255,255,0.7); font-size: 0.78rem;
    font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.lang-toggle button.active { background: var(--gold); color: var(--navy-dark); }

/* BLOG ARTICLE */
.blog-article { padding: 120px 0 80px; }

.blog-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--gray-200); }

.blog-meta {
    display: flex; gap: 16px; align-items: center; margin-bottom: 20px;
    flex-wrap: wrap;
}
.blog-category {
    background: rgba(201,169,110,0.15); color: var(--gold-dark);
    padding: 4px 14px; border-radius: 50px; font-size: 0.78rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.blog-date, .blog-read { font-size: 0.85rem; color: var(--gray-400); }

.blog-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
    color: var(--navy); line-height: 1.25; margin-bottom: 16px;
}

.blog-excerpt {
    font-size: 1.1rem; color: var(--gray-500); line-height: 1.8;
    max-width: 700px;
}

/* TABLE OF CONTENTS */
.blog-toc {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 28px 32px; margin-bottom: 40px;
}
.blog-toc h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.blog-toc ol { padding-left: 20px; }
.blog-toc li { margin-bottom: 6px; }
.blog-toc a {
    color: var(--navy-light); text-decoration: none;
    font-size: 0.92rem; font-weight: 500;
}
.blog-toc a:hover { color: var(--gold-dark); text-decoration: underline; }

/* CONTENT */
.blog-content h2 {
    font-size: 1.5rem; font-weight: 800; color: var(--navy);
    margin-top: 52px; margin-bottom: 18px;
    padding-top: 24px; border-top: 1px solid var(--gray-200);
}
.blog-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.blog-content h3 {
    font-size: 1.15rem; font-weight: 700; color: var(--navy);
    margin-top: 32px; margin-bottom: 12px;
}

.blog-content h4 {
    font-size: 1.05rem; font-weight: 600; color: var(--gray-700);
    margin-top: 24px; margin-bottom: 10px;
}

.blog-content p { margin-bottom: 16px; font-size: 1rem; line-height: 1.85; }
.blog-content ul, .blog-content ol { margin-bottom: 16px; padding-left: 24px; }
.blog-content li { margin-bottom: 8px; font-size: 0.98rem; line-height: 1.7; }
.blog-content a { color: var(--gold-dark); font-weight: 500; }
.blog-content a:hover { color: var(--navy); }
.blog-content strong { color: var(--gray-800); }

/* CALLOUTS */
.blog-callout {
    display: flex; gap: 16px; padding: 20px 24px;
    border-radius: 10px; margin: 24px 0; font-size: 0.95rem;
    line-height: 1.7;
}
.blog-callout i { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.blog-callout.warning {
    background: #FFF8E1; border: 1px solid #FFE082;
}
.blog-callout.warning i { color: #F9A825; }
.blog-callout.tip {
    background: #E8F5E9; border: 1px solid #A5D6A7;
}
.blog-callout.tip i { color: var(--green); }
.blog-callout.info {
    background: #E3F2FD; border: 1px solid #90CAF9;
}
.blog-callout.info i { color: #1976D2; }

/* DOCUMENT CHECKLIST */
.doc-checklist { margin: 24px 0; }
.doc-item {
    display: flex; gap: 14px; padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}
.doc-item i { color: var(--green); font-size: 1.1rem; margin-top: 4px; flex-shrink: 0; }
.doc-item strong { display: block; color: var(--navy); margin-bottom: 4px; }
.doc-item p { font-size: 0.9rem; color: var(--gray-500); margin: 0; }

/* NUMBERED STEPS */
.numbered-steps { list-style: none; padding-left: 0; counter-reset: step; margin: 20px 0; }
.numbered-steps li {
    counter-increment: step; padding: 14px 0 14px 48px; position: relative;
    border-bottom: 1px solid var(--gray-100);
}
.numbered-steps li::before {
    content: counter(step); position: absolute; left: 0; top: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--navy); color: var(--gold);
    font-size: 0.8rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* BANK GRID */
.bank-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px; margin: 16px 0 24px;
}
.bank-item {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 8px; padding: 12px 16px; font-size: 0.92rem;
}

/* BANK DETAIL */
.bank-detail {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 10px; padding: 24px; margin: 16px 0;
}
.bank-detail h4 { margin-top: 0; color: var(--navy); }
.bank-detail h4 i { color: var(--gold); margin-right: 8px; }
.bank-detail ul { margin-bottom: 0; }

/* TIPS GRID */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.tip-card {
    border-radius: 10px; padding: 24px;
}
.tip-card.do { background: #E8F5E9; border: 1px solid #A5D6A7; }
.tip-card.dont { background: #FFEBEE; border: 1px solid #EF9A9A; }
.tip-card h4 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tip-card.do h4 { color: var(--green); }
.tip-card.dont h4 { color: #C62828; }
.tip-card ul { padding-left: 18px; margin: 0; }
.tip-card li { font-size: 0.9rem; margin-bottom: 6px; }

/* TABLES */
.blog-table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    font-size: 0.92rem; border-radius: 10px; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.blog-table thead { background: var(--navy); color: var(--white); }
.blog-table th { padding: 14px 20px; text-align: left; font-weight: 600; }
.blog-table td {
    padding: 12px 20px; border-bottom: 1px solid var(--gray-200);
}
.blog-table tbody tr:nth-child(even) { background: var(--gray-50); }
.blog-table tbody tr:hover { background: rgba(201,169,110,0.08); }

/* CTA BOX */
.blog-cta-box {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    border-radius: 16px; padding: 40px; text-align: center;
    margin: 48px 0; color: var(--white);
}
.blog-cta-box h3 { font-size: 1.4rem; margin-bottom: 12px; }
.blog-cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: 50px; font-size: 0.95rem;
    font-weight: 600; text-decoration: none; cursor: pointer;
    border: none; transition: all 0.3s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* BLOG INDEX */
.blog-index { padding: 120px 0 80px; }
.blog-index .container { max-width: 1100px; }
.blog-index-header { text-align: center; margin-bottom: 48px; }
.blog-index-header h1 { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.blog-index-header p { color: var(--gray-500); font-size: 1.1rem; }

.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 14px; overflow: hidden; transition: all 0.3s ease;
    text-decoration: none; color: inherit; display: block;
}
.blog-card:hover {
    border-color: var(--gold); box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.blog-card-img {
    height: 180px; display: flex; align-items: center;
    justify-content: center; font-size: 3rem;
}
.blog-card-body { padding: 24px; }
.blog-card-category {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px;
}
.blog-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }
.blog-card-meta { font-size: 0.8rem; color: var(--gray-400); }

/* PROCESS STEPS (for guides) */
.process-step {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 28px; margin: 20px 0;
    border-left: 4px solid var(--gold);
}
.process-step h4 { color: var(--navy); margin-bottom: 8px; }
.process-step .step-label {
    display: inline-block; background: var(--navy); color: var(--gold);
    padding: 2px 12px; border-radius: 50px; font-size: 0.75rem;
    font-weight: 700; margin-bottom: 10px;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 900;
    width: 56px; height: 56px; background: #25D366;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    text-decoration: none; transition: all 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* FOOTER */
.blog-footer {
    background: var(--gray-800); color: rgba(255,255,255,0.5);
    padding: 24px 0; text-align: center; font-size: 0.85rem;
}
.blog-footer .container { max-width: 1100px; }
.blog-footer a { color: var(--gold-light); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .blog-article { padding: 100px 0 60px; }
    .tips-grid { grid-template-columns: 1fr; }
    .bank-grid { grid-template-columns: 1fr; }
    .nav-right { gap: 12px; }
    .nav-link { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
}
