:root {
    --site-bg: #f5f7fb;
    --site-surface: #ffffff;
    --site-surface-soft: #f8fbff;
    --site-border: #dbe4f0;
    --site-border-soft: #e8eef6;

    --site-text: #15253d;
    --site-text-soft: #4d617e;
    --site-text-muted: #7f91ab;

    --site-primary: #3b7cff;
    --site-primary-hover: #2f6eed;
    --site-primary-soft: #e9f1ff;

    --site-shadow-sm: 0 8px 20px rgba(22, 37, 61, 0.06);
    --site-shadow: 0 16px 36px rgba(22, 37, 61, 0.08);
    --site-radius: 16px;
    --site-radius-lg: 22px;
    --site-container: 1320px;
    --site-font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --site-header-height: 126px;
    --site-sticky-offset: 150px;
}

html {
    scroll-padding-top: calc(var(--site-header-height) + 20px);
}

.detail-breadcrumbs,
.content-title,
.article-detail-card,
.page-hero-card,
.site-hero,
.site-section,
.legal-card,
.contact-form-card,
.contact-info-card {
    scroll-margin-top: calc(var(--site-header-height) + 20px);
}

html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f6f9fd 0%, #f3f6fb 100%);
    color: var(--site-text);
    font-family: var(--site-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

.site-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f6f9fd 0%, #f3f6fb 100%);
    color: var(--site-text);
}

a {
    color: var(--site-primary);
    text-decoration: none;
}

a:hover {
    color: var(--site-primary-hover);
}

.container {
    max-width: var(--site-container);
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(219, 228, 240, 0.65);
    position: sticky;
    top: 0;
    z-index: 3000;
    overflow: visible;
}

.site-topbar {
    border-bottom: 1px solid rgba(219, 228, 240, 0.7);
    background: rgba(255, 255, 255, 0.96);
    position: relative;
    z-index: 3002;
}

.site-topbar-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--site-text);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.site-brand:hover {
    color: var(--site-text);
}

.site-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #79a8ff 0%, #3b7cff 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(59, 124, 255, 0.22);
}

.site-brand-mark-image {
    padding: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.site-brand-text {
    line-height: 1;
}

.site-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.site-topbar-search {
    flex: 1;
    justify-content: center;
    min-width: 280px;
}

.site-search-form {
    width: 100%;
    max-width: 640px;
    position: relative;
}

.site-search-input {
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--site-border);
    background: #f9fbff;
    padding: 0 18px 0 46px;
    color: var(--site-text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-search-input:focus {
    border-color: rgba(59, 124, 255, 0.35);
    box-shadow: 0 0 0 4px rgba(59, 124, 255, 0.10);
    background: #ffffff;
}

.site-search-input::placeholder {
    color: var(--site-text-muted);
}

.site-search-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--site-text-muted);
    font-size: 0.95rem;
}

.site-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-header-link {
    color: var(--site-text-soft);
    font-weight: 600;
    padding: 8px 4px;
}

.site-header-link:hover {
    color: var(--site-text);
}

.site-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--site-border);
    background: #ffffff;
    color: var(--site-text);
    font-weight: 600;
    box-shadow: var(--site-shadow-sm);
}

.site-header-btn:hover {
    background: var(--site-primary);
    border-color: var(--site-primary);
    color: #ffffff;
}

/* Main nav */
.site-mainnav {
    background: rgba(255, 255, 255, 0.90);
    min-height: 58px;
    position: relative;
    z-index: 3001;
    overflow: visible;
}

.site-mainnav .container,
.site-categorybar .container {
    position: relative;
    overflow: visible;
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav-link {
    color: var(--site-text-soft);
    font-weight: 600;
    padding: 12px 14px !important;
    border-radius: 10px;
}

.site-nav-link:hover,
.site-nav-link:focus {
    color: var(--site-text);
    background: var(--site-primary-soft);
}

.site-navbar-toggler {
    border: 1px solid var(--site-border);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: none !important;
}

.site-navbar-toggler .navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
}

/* Category bar */
.site-categorybar {
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    border-top: 1px solid rgba(219, 228, 240, 0.55);
    position: relative;
    z-index: 3003;
    overflow: visible;
}

.site-category-scroll-wrap {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    position: relative;
    padding: 12px 0;
}

.site-category-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: visible;
    min-width: max-content;
}

.site-header,
.site-topbar,
.site-mainnav,
.site-categorybar,
.site-category-scroll-wrap,
.site-category-scroll,
.site-category-item {
    overflow: visible;
}

.site-category-item {
    flex: 0 0 auto;
    position: relative;
    z-index: 2100;
}

.site-category-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--site-border-soft);
    color: var(--site-text-soft);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--site-shadow-sm);
}

.site-category-link:hover,
.site-category-link:focus {
    color: var(--site-primary);
    border-color: rgba(59, 124, 255, 0.18);
    background: #ffffff;
}

.site-category-item.dropdown .dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: 0.12em;
}

.site-dropdown-menu {
    border: 1px solid var(--site-border) !important;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(22, 37, 61, 0.12);
    padding: 8px;
    margin-top: 10px !important;
    min-width: 230px;
    z-index: 5000 !important;
    position: absolute;
}

.site-dropdown-menu .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--site-text-soft);
    font-size: 0.93rem;
}

.site-dropdown-menu .dropdown-item:hover,
.site-dropdown-menu .dropdown-item:focus {
    background: var(--site-primary-soft);
    color: var(--site-text);
}

.site-dropdown-menu .dropdown-divider {
    border-color: var(--site-border-soft);
}

.dropdown-menu.show {
    display: block;
    z-index: 5000 !important;
}

/* Main */
.site-main {
    padding: 28px 0 0 0;
    position: relative;
    z-index: 1;
}

.site-content-wrapper {
    min-height: 60vh;
    position: relative;
    z-index: 1;
    scroll-margin-top: calc(var(--site-header-height) + 20px);
}

.site-alert {
    background: #eef7ee;
    border: 1px solid #cfe7d0;
    color: #245d2f;
    border-radius: 14px;
    box-shadow: var(--site-shadow-sm);
}

/* Hero */
.site-hero {
    background:
        radial-gradient(circle at top right, rgba(59, 124, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--site-border);
    border-radius: 28px;
    box-shadow: var(--site-shadow);
    padding: 42px;
    margin-bottom: 34px;
}

.site-hero-enhanced {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e7edf5;
    border-radius: 28px;
    padding: 2.75rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--site-primary-soft);
    color: var(--site-primary);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.65rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--site-text);
    margin-bottom: 18px;
    max-width: 800px;
}

.hero-description {
    font-size: 1.06rem;
    color: var(--site-text-soft);
    max-width: 760px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-meta,
.hero-meta-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 2rem;
}

.hero-meta-item,
.hero-meta-enhanced .hero-meta-item {
    min-width: 140px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--site-border-soft);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.hero-meta-item strong {
    display: block;
    font-size: 1.15rem;
    color: var(--site-text);
}

.hero-meta-item span {
    display: block;
    color: var(--site-text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.hero-side-card,
.hero-side-card-enhanced {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid var(--site-border-soft);
    border-radius: 24px;
    padding: 26px;
    box-shadow: var(--site-shadow-sm);
    height: 100%;
}

.hero-side-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--site-text);
    margin-bottom: 14px;
}

.hero-side-list {
    margin: 0;
    padding-left: 18px;
    color: var(--site-text-soft);
}

.hero-side-list li + li {
    margin-top: 10px;
}

.hero-side-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.hero-side-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.hero-side-link:hover {
    text-decoration: underline;
}

/* Sections */
.site-section {
    margin-bottom: 42px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading {
    margin: 0 0 6px 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--site-text);
}

.section-subtext {
    margin: 0;
    color: var(--site-text-muted);
}

.section-link {
    font-weight: 700;
    color: var(--site-primary);
}

/* Buttons */
.site-btn-primary,
.site-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
}

.site-btn-primary {
    background: linear-gradient(180deg, #4a87ff 0%, #3b7cff 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(59, 124, 255, 0.22);
}

.site-btn-primary:hover {
    background: linear-gradient(180deg, #5a92ff 0%, #4a87ff 100%);
    color: #ffffff;
}

.site-btn-secondary {
    background: #ffffff;
    border-color: var(--site-border);
    color: var(--site-text);
    box-shadow: var(--site-shadow-sm);
}

.site-btn-secondary:hover {
    background: var(--site-primary-soft);
    border-color: rgba(59, 124, 255, 0.15);
    color: var(--site-text);
}

/* Category cards */
.category-card,
.category-card-enhanced {
    display: block;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    padding: 1.3rem;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.category-card:hover,
.category-card-enhanced:hover {
    border-color: #cfe0fb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.category-card-title {
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--site-text);
    margin-bottom: 8px;
}

.category-card-meta {
    color: var(--site-text-soft);
    font-size: 0.93rem;
    line-height: 1.55;
}

.category-card-link {
    margin-top: 1rem;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Article cards */
.article-card,
.article-card-enhanced {
    height: 100%;
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.article-card:hover,
.article-card-enhanced:hover {
    border-color: #e7edf5;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.article-card-body {
    padding: 24px;
}

.article-card-image-link {
    display: block;
    overflow: hidden;
}

.article-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--site-border-soft);
}

.article-card-image-placeholder {
    background: linear-gradient(180deg, #eef4ff 0%, #dfeaff 100%);
}

.article-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.article-category,
.article-category-muted {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.article-category {
    background: var(--site-primary-soft);
    color: var(--site-primary);
}

.article-category-muted {
    background: #eef3f9;
    color: var(--site-text-muted);
}

.article-title {
    font-size: 1.18rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.article-title a {
    color: var(--site-text);
}

.article-title a:hover {
    color: var(--site-primary);
}

.article-excerpt {
    color: var(--site-text-soft);
    margin-bottom: 16px;
    line-height: 1.65;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--site-primary);
}

/* Compact article cards */
.article-card-compact {
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
}

.article-card-compact .article-card-image-link {
    display: block;
}

.article-card-compact .article-card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.article-card-compact .article-card-body {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 190px);
}

.article-card-compact .article-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.article-card-compact .article-category,
.article-card-compact .article-category-muted {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

.article-card-compact .article-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.article-card-compact .article-title a {
    text-decoration: none;
}

.article-card-compact .article-excerpt {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-compact .article-link {
    margin-top: auto;
    font-weight: 600;
    text-decoration: none;
}

/* Empty state */
.empty-state,
.empty-state-card {
    background: #ffffff;
    border: 1px dashed #d6e2f1;
    border-radius: 20px;
    padding: 2rem;
    color: #64748b;
    text-align: center;
    box-shadow: var(--site-shadow-sm);
}

/* Auth / contact */
.auth-card,
.contact-form-card,
.contact-info-card,
.legal-card,
.page-hero-card,
.article-detail-card-enhanced,
.article-sidebar-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.auth-card,
.legal-card {
    overflow: hidden;
}

.auth-card-header {
    padding: 2rem 2rem 1rem;
}

.auth-card-body {
    padding: 0 2rem 2rem;
}

.auth-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.auth-card-subtitle {
    color: #64748b;
    line-height: 1.7;
}

.auth-alert {
    border-radius: 14px;
}

.site-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field-modern {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-label-modern {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
}

.site-form-modern input,
.site-form-modern textarea,
.site-form-modern select {
    width: 100%;
    border: 1px solid #d7e0ea;
    background: #f8fbff;
    color: #0f172a;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 0.98rem;
    line-height: 1.5;
    box-shadow: none;
    outline: none;
}

.site-form-modern textarea {
    min-height: 180px;
    resize: vertical;
}

.site-form-modern input:focus,
.site-form-modern textarea:focus,
.site-form-modern select:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-error-text {
    color: #dc2626;
    font-size: 0.88rem;
    line-height: 1.5;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

.auth-submit-btn,
.contact-submit-btn {
    min-height: 52px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
}

.contact-info-card,
.contact-form-card {
    padding: 2rem;
}

.contact-info-card {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 35%),
        #ffffff;
}

.contact-info-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.contact-info-title,
.contact-form-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.contact-info-text,
.contact-form-subtitle {
    color: #64748b;
    line-height: 1.8;
}

.contact-feature-list {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
}

.contact-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #e8f0ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.contact-feature-item p {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #edf2f7;
}

/* Legal */
.legal-card-body {
    padding: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #edf2f7;
}

.legal-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.85rem;
}

.legal-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section a,
.legal-meta-item a {
    color: #2563eb;
    text-decoration: none;
}

.legal-section a:hover,
.legal-meta-item a:hover {
    text-decoration: underline;
}

.legal-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.legal-meta-item {
    background: #f8fbff;
    border: 1px solid #e6eef8;
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.legal-meta-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.policy-type-grid,
.info-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.policy-type-card,
.info-feature-card {
    background: #f8fbff;
    border: 1px solid #e6eef8;
    border-radius: 20px;
    padding: 1.25rem;
}

.policy-type-icon,
.info-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e8f0ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.policy-type-card h3,
.info-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.policy-type-card p,
.info-feature-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Detail / article page */
.page-hero-card {
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}

.article-detail-card-enhanced {
    padding: 2rem;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.article-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.article-content-enhanced {
    color: #334155;
    line-height: 1.9;
    font-size: 1.02rem;
}

.article-content-enhanced h2,
.article-content-enhanced h3,
.article-content-enhanced h4 {
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-weight: 800;
}

.article-content-enhanced p {
    margin-bottom: 1.15rem;
}

.article-content-enhanced ul,
.article-content-enhanced ol {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.article-tags-wrap {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf2f7;
}

.article-tags-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.85rem;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.article-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 700;
}

.article-sidebar-card {
    position: sticky;
    top: var(--site-sticky-offset);
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
}

.article-sidebar-section + .article-sidebar-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf2f7;
}

.article-sidebar-section h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.article-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-sidebar-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.article-sidebar-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.article-sidebar-list span {
    color: #64748b;
    font-size: 0.94rem;
}

.article-sidebar-list strong {
    color: #0f172a;
    font-size: 0.94rem;
    text-align: right;
}

.article-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
    color: #0f172a;
    text-decoration: none;
}

.article-sidebar-link i {
    color: #2563eb;
}

.article-sidebar-link:hover {
    border-color: #d3e3fb;
    background: #f2f7ff;
}

/* Footer */
.site-footer {
    margin-top: 56px;
    padding: 42px 0 22px 0;
    border-top: 1px solid var(--site-border);
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.85) 0%, rgba(242, 246, 252, 0.95) 100%);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 26px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--site-text);
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.footer-text {
    color: var(--site-text-soft);
    max-width: 420px;
    margin: 0;
}

.footer-heading {
    color: var(--site-text);
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links li + li {
    margin-top: 8px;
}

.footer-links a {
    color: var(--site-text-soft);
}

.footer-links a:hover {
    color: var(--site-primary);
}

.site-footer-bottom {
    border-top: 1px solid var(--site-border);
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--site-text-muted);
    font-size: 0.92rem;
}

.site-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-bottom-links a {
    color: var(--site-text-muted);
}

.site-footer-bottom-links a:hover {
    color: var(--site-primary);
}

/* Bootstrap overrides */
.navbar-toggler:focus,
.btn:focus,
.form-control:focus {
    box-shadow: none;
}

.dropdown-menu {
    border: 1px solid var(--site-border);
}

.dropdown-item {
    color: var(--site-text-soft);
}

.dropdown-item:hover {
    background: var(--site-primary-soft);
    color: var(--site-text);
}

.card {
    border: none;
    background: transparent;
}

/* Responsive */
@media (min-width: 1400px) {
    .article-card-compact .article-card-image {
        height: 180px;
    }

    .article-card-compact .article-card-body {
        height: calc(100% - 180px);
    }

    .article-card-compact .article-title {
        font-size: 1.08rem;
    }

    .article-card-compact .article-excerpt {
        line-clamp: 4;
        -webkit-line-clamp: 4;
        font-size: 0.95rem;
    }
}

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .site-topbar-inner {
        min-height: 70px;
    }

    .site-main {
        padding-top: 24px;
    }

    .site-hero {
        padding: 28px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-category-scroll {
        overflow-y: visible;
    }

    .site-dropdown-menu {
        position: absolute;
    }

    .article-sidebar-card {
        position: static;
        top: auto;
    }

    .article-card-compact .article-card-image {
        height: 200px;
    }

    .article-card-compact .article-card-body {
        height: calc(100% - 200px);
    }

    .legal-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .policy-type-grid,
    .info-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .site-topbar-inner {
        gap: 12px;
        flex-wrap: wrap;
    }

    .site-topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .site-mainnav {
        min-height: auto;
    }

    .site-category-scroll {
        padding: 10px 0;
        overflow-y: visible;
    }

    .site-content-wrapper {
        padding-left: 4px;
        padding-right: 4px;
    }

    .site-hero,
    .page-hero-card,
    .site-hero-enhanced,
    .article-detail-card-enhanced {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 1.72rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-dropdown-menu {
        min-width: 210px;
    }

    .hero-meta-enhanced .hero-meta-item {
        width: 100%;
    }

    .article-detail-meta {
        gap: 0.75rem;
        flex-direction: column;
    }

    .auth-card-header,
    .auth-card-body,
    .contact-info-card,
    .contact-form-card,
    .legal-card-body {
        padding: 1.25rem;
    }

    .contact-feature-item {
        padding: 0.9rem;
    }

    .legal-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .legal-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .article-card-compact .article-card-image {
        height: 220px;
    }

    .article-card-compact .article-card-body {
        height: auto;
        padding: 1rem;
    }

    .article-card-compact .article-title {
        font-size: 1.05rem;
    }

    .article-card-compact .article-excerpt {
        line-clamp: 4;
        -webkit-line-clamp: 4;
        font-size: 0.94rem;
    }
}

.article-featured-image-wrap {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--site-border-soft);
    background: #f8fbff;
}

.article-featured-image-wrap-lg {
    max-height: 430px;
}

.article-featured-image {
    width: 100%;
    height: 100%;
    max-height: 430px;
    object-fit: cover;
    display: block;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article-card {
    display: block;
    background: #f8fbff;
    border: 1px solid #e6eef8;
    border-radius: 18px;
    overflow: hidden;
    color: inherit;
}

.related-article-card:hover {
    border-color: #d3e3fb;
    background: #f4f8ff;
    color: inherit;
}

.related-article-image-wrap {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-bottom: 1px solid #e6eef8;
    background: #eef4ff;
}

.related-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-article-content {
    padding: 1rem;
}

.related-article-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.related-article-category,
.related-article-category-muted {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

.related-article-category {
    background: var(--site-primary-soft);
    color: var(--site-primary);
}

.related-article-category-muted {
    background: #eef3f9;
    color: var(--site-text-muted);
}

.related-article-title {
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 700;
    color: var(--site-text);
    margin: 0 0 0.55rem 0;
}

.related-article-excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--site-text-soft);
}

@media (max-width: 991.98px) {
    .article-featured-image-wrap-lg {
        max-height: 360px;
    }

    .article-featured-image {
        max-height: 360px;
    }

    .related-article-image-wrap {
        height: 170px;
    }
}

@media (max-width: 767.98px) {
    .article-featured-image-wrap-lg {
        max-height: 280px;
    }

    .article-featured-image {
        max-height: 280px;
    }

    .related-article-image-wrap {
        height: 160px;
    }

    .related-article-content {
        padding: 0.9rem;
    }
}

/* =========================================================
   Static content page hero
   About / Contact / Privacy / Cookies
   ========================================================= */

.page-hero-sm {
    max-width: 980px;
    margin: 0 auto 1.5rem;
    padding: 0.5rem 0 0.25rem;
}

.page-hero-sm .hero-eyebrow {
    margin-bottom: 0.85rem;
}

.page-hero-sm .content-title {
    margin: 0 0 0.85rem 0;
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--site-text);
}

.page-hero-sm .content-intro {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--site-text-soft);
}

.page-hero-sm.text-center .hero-eyebrow {
    justify-content: center;
}

.page-hero-sm.page-hero-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    padding: 2rem 2rem 1.75rem;
    margin-bottom: 2rem;
}

.page-hero-sm.page-hero-card .content-title {
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
}

.page-hero-sm.page-hero-card .content-intro {
    max-width: 780px;
}

.content-layout-static {
    max-width: 1200px;
    margin: 0 auto;
}

.content-layout-static .legal-card,
.content-layout-static .contact-info-card,
.content-layout-static .contact-form-card {
    height: 100%;
}

@media (max-width: 1199.98px) {
    .page-hero-sm .content-title {
        font-size: 2.5rem;
    }

    .page-hero-sm.page-hero-card .content-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .page-hero-sm {
        margin-bottom: 1.25rem;
        padding-top: 0.25rem;
    }

    .page-hero-sm .content-title {
        font-size: 2.15rem;
    }

    .page-hero-sm .content-intro {
        font-size: 1rem;
        line-height: 1.7;
    }

    .page-hero-sm.page-hero-card {
        padding: 1.5rem 1.4rem;
    }

    .page-hero-sm.page-hero-card .content-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero-sm {
        margin-bottom: 1rem;
        padding-top: 0.1rem;
    }

    .page-hero-sm .hero-eyebrow {
        margin-bottom: 0.75rem;
    }

    .page-hero-sm .content-title {
        font-size: 1.8rem;
        line-height: 1.15;
        margin-bottom: 0.65rem;
    }

    .page-hero-sm .content-intro {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .page-hero-sm.page-hero-card {
        padding: 1.25rem 1rem;
        border-radius: 20px;
    }

    .page-hero-sm.page-hero-card .content-title {
        font-size: 1.72rem;
    }
}

.article-content-enhanced {
    color: #334155;
    line-height: 1.9;
    font-size: 1.02rem;
}

.article-content-enhanced h2 {
    color: #0f172a;
    margin-top: 2.2rem;
    margin-bottom: 0.85rem;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.article-content-enhanced h3 {
    color: #0f172a;
    margin-top: 1.65rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
    font-size: 1.28rem;
    line-height: 1.35;
}

.article-content-enhanced p {
    margin-bottom: 1.15rem;
}

.article-content-enhanced ul,
.article-content-enhanced ol {
    margin-bottom: 1.25rem;
    padding-left: 1.35rem;
}

.article-content-enhanced li {
    margin-bottom: 0.45rem;
}

.article-content-enhanced strong {
    color: #0f172a;
    font-weight: 700;
}

.article-content-enhanced em {
    font-style: italic;
}

.article-content-enhanced code {
    background: #eef4ff;
    color: #1d4ed8;
    padding: 0.15rem 0.38rem;
    border-radius: 6px;
    font-size: 0.92em;
}

.article-content-enhanced pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    margin: 1.4rem 0;
    line-height: 1.7;
}

.article-content-enhanced pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.article-content-enhanced blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #3b7cff;
    background: #f8fbff;
    color: #475569;
    border-radius: 0 14px 14px 0;
}

@media (max-width: 767.98px) {
    .article-content-enhanced {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .article-content-enhanced h2 {
        font-size: 1.42rem;
    }

    .article-content-enhanced h3 {
        font-size: 1.16rem;
    }

    .article-content-enhanced pre {
        padding: 0.9rem;
        border-radius: 14px;
    }
}

.history-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-toolbar-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-search-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 920px;
}

.history-search-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #cbd5e1;
    margin: 0;
}

.history-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.history-search-wrap {
    position: relative;
    flex: 1 1 460px;
    max-width: 620px;
}

.history-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.history-search-input {
    width: 100%;
    height: 52px;
    padding: 0 1rem 0 2.9rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    font-size: 0.98rem;
}

.history-search-input::placeholder {
    color: #94a3b8;
}

.history-search-input:focus {
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.12),
        0 10px 30px rgba(37, 99, 235, 0.12);
    background: rgba(15, 23, 42, 0.86);
}

.history-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.history-search-btn,
.history-reset-btn {
    min-height: 52px;
    border-radius: 16px;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
}

.history-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.history-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.history-filter-chip:hover {
    border-color: rgba(96, 165, 250, 0.38);
    background: rgba(30, 41, 59, 0.82);
    color: #ffffff;
}

.history-filter-label {
    font-size: 0.92rem;
    font-weight: 600;
}

.history-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 700;
}

.history-filter-chip.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.history-filter-chip.active .history-filter-count {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.history-error-text {
    line-height: 1.45;
    word-break: break-word;
    white-space: normal;
}

.history-pagination-wrap {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.history-pagination .page-link {
    border-radius: 12px;
    margin: 0 0.2rem;
    border: 1px solid #dbe4f0;
    color: #334155;
    min-width: 42px;
    text-align: center;
}

.history-pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.history-pagination .page-link:hover {
    background: #f8fbff;
    border-color: #cddcf5;
    color: #0f172a;
}

@media (max-width: 767.98px) {
    .history-search-panel {
        max-width: 100%;
    }

    .history-search-wrap {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .history-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .history-toolbar-actions {
        width: 100%;
    }

    .history-toolbar-actions .site-btn-primary,
    .history-toolbar-actions .site-btn-secondary {
        flex: 1 1 auto;
        justify-content: center;
    }

    .history-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }

    .history-pagination .page-link {
        margin: 0;
    }
}

.category-hero-breakout {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 32px;
    margin-bottom: 2rem;
}

.category-hero-full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem 2rem 1.75rem;
    border-radius: 24px;
}

.category-hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category-hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--site-primary-soft);
    color: var(--site-primary);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.category-hero-full .content-title {
    margin: 0 0 0.75rem 0;
    font-size: 2.6rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--site-text);
}

.category-hero-full .content-intro {
    max-width: none;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--site-text-soft);
}

@media (max-width: 991.98px) {
    .category-hero-breakout {
        padding: 0 16px;
    }

    .category-hero-full {
        padding: 1.5rem 1.4rem;
    }

    .category-hero-full .content-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .category-hero-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-hero-full {
        padding: 1.25rem 1rem;
        border-radius: 20px;
    }

    .category-hero-full .content-title {
        font-size: 1.72rem;
    }
}