/* ============================================================
   guide.css — Shared stylesheet for all Global KYC guide pages
   Replaces the duplicated <style> blocks in each kyc-pld-*.html
   and blog.html. Link this file INSTEAD of an inline <style>.
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
    --primary-50: #f0f5ff;
    --primary-100: #e0ebff;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-500: #1e4dd8;
    --primary-600: #173db3;
    --primary-700: #102e8c;

    --gray-50: #f9fafb;
    --gray-100: #f2f4f7;
    --gray-200: #eaeef2;
    --gray-300: #d0d9e2;
    --gray-400: #9aa8b9;
    --gray-500: #6b7a8f;
    --gray-600: #4b5a6e;
    --gray-700: #36404e;
    --gray-800: #1e2632;
    --gray-900: #0f172a;

    --success-50: #e6f7ec;
    --success-500: #0f7832;
    --success-600: #16a34a;

    --warning-50: #fff2e5;
    --warning-500: #b45309;

    --danger-50: #fee9e7;
    --danger-500: #b91c1c;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 8px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
}

/* --- RESET --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- LAYOUT --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
}

/* --- HEADER --- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--primary-600);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo span {
    color: var(--primary-600);
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--gray-900);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-600);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    padding: 9px 20px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-login:hover {
    background: var(--primary-100);
    color: var(--primary-700);
    border-color: var(--primary-500);
    transform: translateY(-1px);
}

/* === DROPDOWN NAV === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}

.nav-dropdown > .nav-dropdown-trigger:hover {
    color: var(--gray-900);
}

.nav-dropdown-trigger .dropdown-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px -4px rgba(0,0,0,.12);
    padding: 8px;
    min-width: 260px;
    padding-top: 20px;
    z-index: 200;
}

/* Invisible bridge covering the gap between trigger and menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700) !important;
    transition: background .15s;
    width: 100%;
}

.nav-dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--gray-900) !important;
}

.nav-dropdown-menu a .menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Mobile nav */
@media (max-width: 1024px) {
    .nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px;
        gap: 8px;
        z-index: 100;
        overflow-y: auto;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav a {
        font-size: 18px;
        padding: 14px 0;
        border-bottom: 1px solid var(--gray-200);
        width: 100%;
    }

    .header-login {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 24px;
        color: var(--gray-700);
        transition: all 0.2s;
    }

    .mobile-menu-toggle:hover {
        background: var(--gray-50);
        border-color: var(--gray-300);
    }

    .nav-dropdown > .nav-dropdown-trigger {
        font-size: 18px;
        padding: 14px 0;
        border-bottom: 1px solid var(--gray-200);
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        background: transparent;
        min-width: unset;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100) !important;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-700);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* --- ARTICLE / BLOG LAYOUT --- */
.blog-wrapper {
    padding: 80px 0;
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 56px 64px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .blog-container {
        padding: 32px 24px;
    }
}

/* --- BREADCRUMB --- */
.breadcrumb {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-600);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary-600);
}

/* --- TYPOGRAPHY --- */
.blog-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.blog-intro {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 40px;
}

.blog-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 48px 0 20px;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 12px;
}

.blog-content p {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* --- CUSTOM LIST --- */
.custom-list {
    list-style: none;
    margin: 24px 0;
    display: grid;
    gap: 20px;
}

.custom-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.custom-list i {
    font-size: 24px;
    color: var(--primary-600);
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- CTA BOX --- */
.cta-box {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 56px;
}

.cta-box h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

.cta-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.cta-checklist-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.cta-checklist-item i {
    color: var(--success-600);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- FOOTER --- */
.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 64px 0 32px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    margin-bottom: 48px;
    align-items: start;
}

.footer-brand {
    max-width: 340px;
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 420px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.f-desc {
    margin: 20px 0;
    color: var(--gray-500);
}

.f-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.f-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.f-links a {
    font-size: 13px;
    color: var(--gray-500);
    transition: color 0.2s;
}

.f-links a:hover {
    color: var(--primary-600);
}

.f-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    color: var(--gray-400);
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================================
   BLOG LISTING PAGE  (blog.html)
   ============================================================ */

.blog-hero {
    padding: 80px 0 64px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.section-label {
    display: inline-block;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.blog-hero h1 {
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.blog-hero > .container > p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.blog-section {
    padding: 72px 0 96px;
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* Card base */
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow-xs);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Featured card — spans full row, horizontal layout */
.blog-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

@media (max-width: 768px) {
    .blog-card.featured {
        flex-direction: column;
    }
}

/* Image wrapper */
.blog-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

.blog-card.featured .blog-img-wrapper {
    width: 42%;
    aspect-ratio: unset;
}

@media (max-width: 768px) {
    .blog-card.featured .blog-img-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.04);
}

/* Card body */
.blog-card-body {
    padding: 28px 32px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
}

.blog-card.featured .blog-card-body {
    padding: 40px 44px;
    justify-content: center;
    gap: 18px;
}

@media (max-width: 768px) {
    .blog-card.featured .blog-card-body {
        padding: 28px 28px 24px;
    }
}

/* Tag */
.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 4px 12px;
    border-radius: 100px;
    width: fit-content;
    border: 1px solid var(--primary-100);
}

/* Title */
.blog-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.blog-card.featured .blog-card-body h3 {
    font-size: 26px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Excerpt */
.blog-card-body p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.75;
    flex: 1;
}

.blog-card.featured .blog-card-body p {
    font-size: 16px;
}

/* Footer */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    margin-top: 4px;
}

.blog-date {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-600);
    transition: gap 0.2s ease, color 0.2s ease;
}

.read-more:hover {
    gap: 10px;
    color: var(--primary-700);
}