/**
 * Megakreditai.lt - Main Design System & Stylesheet
 * Matching pirmas.png and antras.png
 */

:root {
    /* Brand Colors */
    --color-primary-dark: #081311;
    --color-primary-forest: #0d211d;
    --color-primary-card: #122a25;
    --color-navy: #081311;
    --color-navy-dark: #050c0b;
    --color-lime: #a3e635;
    --color-lime-hover: #84cc16;
    --color-lime-light: #ecfccb;
    --color-lime-glow: rgba(163, 230, 53, 0.25);

    /* Neutrals */
    --color-bg-light: #f8fafc;
    --color-bg-white: #ffffff;
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-dark: #1e3a33;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Radius & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(163, 230, 53, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Utilities */
.text-lime {
    color: var(--color-lime) !important;
}

.bg-lime-soft {
    background-color: var(--color-lime-light) !important;
    color: var(--color-primary-dark) !important;
}

.section-pill-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-lime-light);
    color: #3f6212;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text-main);
}
.link-arrow:hover {
    color: var(--color-lime-hover);
}

/* Breadcrumbs */
.site-breadcrumbs {
    padding: 16px 0;
    background: #081311;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.8125rem;
    color: #94a3b8;
}
.breadcrumb-item a {
    color: #cbd5e1;
    transition: color var(--transition-fast);
}
.breadcrumb-item a:hover {
    color: var(--color-lime);
}
.breadcrumb-sep {
    color: #475569;
}
.breadcrumb-item.active {
    color: var(--color-lime);
    font-weight: 600;
}

/* Category Hub Hero */
.hub-hero-section {
    background: radial-gradient(circle at 80% 20%, #153830 0%, #0c1e1a 45%, #081311 90%);
    color: #ffffff;
    padding: 40px 0 60px;
}
.hub-hero-header {
    max-width: 860px;
    margin-bottom: 36px;
}
.hub-hero-title {
    font-size: 2.75rem;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 16px;
}
.hub-hero-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
}
.category-hub-page .calculator-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Provider Review Page Styles */
.provider-hero-card {
    background: rgba(13, 33, 29, 0.85);
    border: 1px solid rgba(163, 230, 53, 0.25);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.provider-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 28px;
}
.provider-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.875rem;
    color: #cbd5e1;
    flex-wrap: wrap;
}
.provider-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #eab308;
}
.provider-rating-stars strong {
    color: #ffffff;
    margin-left: 4px;
}
.lb-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-lime);
    font-weight: 600;
}
.provider-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}
.hero-cta-subtext {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
}
.provider-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.metric-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}
.metric-lbl {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
}
.metric-val {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}
.metric-sub {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 4px;
}

/* Review Body Layout */
.provider-body-section {
    padding: 60px 0;
    background: var(--color-bg-white);
}
.provider-content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.pros-box, .cons-box {
    padding: 24px;
    border-radius: var(--radius-md);
}
.pros-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.pros-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    color: #15803d;
    margin-bottom: 14px;
}
.pros-box ul, .cons-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
    color: #334155;
}
.pros-box li::before {
    content: "✓ ";
    color: #16a34a;
    font-weight: 700;
}
.cons-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.cons-title {
    font-size: 1.125rem;
    color: #c2410c;
    margin-bottom: 14px;
}
.cons-box li::before {
    content: "! ";
    color: #ea580c;
    font-weight: 700;
}

/* Review Sidebar */
.sidebar-sticky-card {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: 100px;
}
.sidebar-card-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
}
.sidebar-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9375rem;
}
.sidebar-metric-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}
.sidebar-metric-row strong {
    color: var(--color-primary-dark);
}

@media (max-width: 1024px) {
    .provider-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .provider-hero-cta {
        align-items: flex-start;
        width: 100%;
    }
    .provider-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .provider-content-layout {
        grid-template-columns: 1fr;
    }
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-lime-primary {
    background-color: var(--color-lime);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 14px var(--color-lime-glow);
}
.btn-lime-primary:hover {
    background-color: var(--color-lime-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(163, 230, 53, 0.35);
}

.btn-secondary-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: #f1f5f9;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-secondary-pill:hover {
    background-color: #e2e8f0;
}

/* -------------------------------------------------------------
 * HEADER
 * ----------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(8, 19, 17, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color var(--transition-normal);
}

.home .site-header {
    background-color: rgba(8, 19, 17, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.375rem;
    letter-spacing: -0.02em;
}
.brand-name strong {
    color: var(--color-lime);
}
.brand-dot {
    color: var(--color-lime);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: #cbd5e1;
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link:hover {
    color: #ffffff;
}

.has-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 12px;
    margin-top: 10px;
    background: #0d211d;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 32px rgba(0,0,0,0.4);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-fast);
}
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    color: #e2e8f0;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.dropdown-menu li a:hover {
    background-color: rgba(163, 230, 53, 0.15);
    color: var(--color-lime);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-trigger-btn {
    background: transparent;
    color: #cbd5e1;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: color var(--transition-fast);
}
.search-trigger-btn:hover {
    color: #ffffff;
}

.btn-header-login {
    background: #ffffff;
    color: var(--color-primary-dark);
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}
.btn-header-login:hover {
    background: var(--color-lime);
    color: var(--color-primary-dark);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger-box {
    width: 26px;
    height: 20px;
    display: inline-block;
    position: relative;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 26px;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    position: absolute;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-inner::before {
    content: '';
    top: -8px;
}
.hamburger-inner::after {
    content: '';
    bottom: -8px;
}

/* Active Hamburger Animation (Transforms to X) */
.mobile-menu-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
    background-color: var(--color-lime);
}
.mobile-menu-toggle.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}
.mobile-menu-toggle.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    background-color: var(--color-lime);
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 19, 17, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    overflow-y: auto;
    padding: 24px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid var(--color-lime);
}
.mobile-drawer.active {
    display: block;
    animation: mobileDrawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mobileDrawerSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav-link {
    color: #e2e8f0;
    font-size: 1.0625rem;
    font-weight: 600;
    padding: 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.15s ease, padding-left 0.15s ease;
}
.mobile-nav-link::after {
    content: "→";
    color: var(--color-lime);
    font-size: 1.125rem;
    opacity: 0.7;
}
.mobile-nav-link:hover, .mobile-nav-link:active {
    color: var(--color-lime);
    padding-left: 14px;
}
.mobile-drawer-cta {
    margin-top: 28px;
    padding: 0 8px;
}
.btn-block {
    width: 100%;
}

/* -------------------------------------------------------------
 * HERO SECTION
 * ----------------------------------------------------------- */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 80% 20%, #153830 0%, #0c1e1a 45%, #081311 90%);
    color: #ffffff;
    padding-top: 50px;
    padding-bottom: 120px;
    overflow: hidden;
}

.home .hero-section {
    margin-top: -80px;
    padding-top: 105px;
}

.hero-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.08) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 33, 29, 0.8) 0%, rgba(0,0,0,0) 70%);
    bottom: 0;
    left: -100px;
    pointer-events: none;
}

.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 460px;
    z-index: 2;
}

.hero-content {
    max-width: 580px;
    width: 100%;
    position: relative;
    z-index: 3;
    padding-bottom: 25px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(163, 230, 53, 0.12);
    border: 1px solid rgba(163, 230, 53, 0.25);
    border-radius: var(--radius-full);
    color: var(--color-lime);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-lime);
    box-shadow: 0 0 8px var(--color-lime);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-lime);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.25;
}
.feature-text span {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Hero Visual & Couple Photo */
.hero-visual-wrap {
    position: absolute;
    right: -15px;
    bottom: -45px;
    top: -85px;
    width: 62%;
    max-width: 800px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 1;
}

.hero-couple-img {
    width: 100%;
    height: 100%;
    max-height: 570px;
    object-fit: cover;
    object-position: 65% top;
    display: block;
    /* Seamless blend on left edge and top edge into the dark hero background */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 12%, #000 26%, #000 92%, transparent 100%),
                        linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 12%, #000 26%, #000 92%, transparent 100%),
                linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
    mask-composite: intersect;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
    transition: transform var(--transition-slow);
}

.hero-visual-wrap:hover .hero-couple-img {
    transform: scale(1.015);
}

.hero-social-proof {
    position: absolute;
    right: 20px;
    top: 105px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 5;
    pointer-events: auto;
}

.curved-arrow-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 6px;
    margin-right: 18px;
}

.social-proof-card {
    background: rgba(13, 33, 29, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.proof-chart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.proof-tag {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-lime);
    margin-bottom: 2px;
}

.proof-number {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}
.proof-desc {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* -------------------------------------------------------------
 * CALCULATOR WIDGET
 * ----------------------------------------------------------- */
.calculator-wrapper {
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.calculator-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

/* Tabs */
.calc-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 28px;
}

.calc-tab-btn {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.calc-tab-btn:hover {
    color: var(--color-text-main);
    background: #f1f5f9;
}
.calc-tab-btn.active {
    background: var(--color-primary-dark);
    color: #ffffff;
}

/* Controls Grid */
.calc-controls-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1fr 1.3fr;
    gap: 20px;
    align-items: start;
}

/* 3-Column Variant (Topic Pages & Compact Calculators) */
.calc-controls-grid.calc-3-cols,
.topic-single-page .calc-controls-grid,
.calc-controls-grid:has(> .calc-col:nth-child(3):last-child) {
    grid-template-columns: 1.25fr 1.25fr 1fr;
    gap: 28px;
    align-items: start;
}
.calc-controls-grid.calc-3-cols .calc-col-submit,
.topic-single-page .calc-controls-grid .calc-col-submit,
.calc-controls-grid:has(> .calc-col:nth-child(3):last-child) .calc-col-submit {
    padding-top: 26px;
}

@media (max-width: 1024px) {
    .calc-controls-grid.calc-3-cols,
    .topic-single-page .calc-controls-grid,
    .calc-controls-grid:has(> .calc-col:nth-child(3):last-child) {
        grid-template-columns: 1fr 1fr;
    }
    .calc-controls-grid.calc-3-cols .calc-col-submit,
    .topic-single-page .calc-controls-grid .calc-col-submit,
    .calc-controls-grid:has(> .calc-col:nth-child(3):last-child) .calc-col-submit {
        grid-column: 1 / -1;
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .calc-controls-grid.calc-3-cols,
    .topic-single-page .calc-controls-grid,
    .calc-controls-grid:has(> .calc-col:nth-child(3):last-child) {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.calc-label-row {
    margin-bottom: 8px;
}
.calc-label-row label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.calc-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.calc-text-input {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    transition: border-color var(--transition-fast);
}
.calc-text-input:focus {
    border-color: var(--color-lime-hover);
    background: #ffffff;
}

/* Range Sliders */
.calc-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}
.calc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    border: 3px solid var(--color-lime);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.1s ease;
}
.calc-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 6px;
}

/* Select */
.calc-select-wrapper {
    margin-bottom: 14px;
}
.calc-select {
    width: 100%;
    padding: 13px 16px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-main);
    cursor: pointer;
}

.calc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    cursor: pointer;
}
.calc-checkbox-label input {
    accent-color: var(--color-primary-dark);
    width: 16px;
    height: 16px;
}

/* Submit Column */
.calc-col-submit {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 24px;
}

.btn-calc {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.9375rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.calc-disclaimer-subtext {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

/* -------------------------------------------------------------
 * PARTNERS STRIP
 * ----------------------------------------------------------- */
.partners-strip {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.partners-container {
    display: flex;
    align-items: center;
    gap: 32px;
    overflow-x: auto;
}

.partners-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    white-space: nowrap;
}

.partners-logos-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 36px;
}

.partner-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    color: #64748b;
    letter-spacing: -0.02em;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}
.partner-logo:hover {
    opacity: 1;
    color: var(--color-text-main);
}

/* -------------------------------------------------------------
 * COMPARISON TABLE
 * ----------------------------------------------------------- */
.comparison-section {
    padding: 70px 0;
    background-color: var(--color-bg-white);
}

.comparison-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.comparison-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sort-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.sort-select {
    padding: 8px 36px 8px 14px;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sort-select:hover {
    border-color: #cbd5e1;
}
.sort-select:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(187, 242, 70, 0.25);
}

/* Table Header */
.comparison-table-header {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr 1fr 1.6fr 1.1fr;
    gap: 16px;
    padding: 12px 24px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.comparison-table-header .th-rate {
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* Loan Offer Card */
.loan-offers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.15s ease;
}
.loan-offers-list.is-sorting {
    opacity: 0.45;
}

.loan-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr 1fr 1.6fr 1.1fr;
    gap: 16px;
    align-items: center;
    transition: all var(--transition-fast);
}
.loan-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.mobile-label {
    display: none;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

/* Provider Brand */
.provider-name-styled {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: block;
}
.brand-luminor { color: #25205b; }
.brand-swedbank { color: #ea5b0c; }
.brand-seb { color: #1e293b; }
.brand-citadele { color: #e30613; }
.brand-bigbank { color: #009fe3; }
.brand-siauliu-bankas { color: #005580; }
.brand-tfbank { color: #003366; }
.brand-savy { color: #00a887; }
.brand-mogo { color: #ff6600; }

.provider-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    margin-top: 6px;
    background: #f1f5f9;
    color: #475569;
}
.badge-featured {
    background: #fef08a;
    color: #854d0e;
}
.badge-popular {
    background: #fed7aa;
    color: #9a3412;
}
.badge-speed {
    background: #dcfce7;
    color: #166534;
}

/* Rate & Money Values */
.rate-value {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-text-main);
}
.rate-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.monthly-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.total-value {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-main);
}

/* Conditions */
.conditions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.conditions-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #334155;
}
.check-icon {
    color: #16a34a;
    flex-shrink: 0;
}

/* Actions */
.col-td.td-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.btn-choose {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.875rem;
}
.btn-toggle-details {
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.btn-toggle-details:hover {
    color: var(--color-text-main);
}

/* Drawer */
.loan-details-drawer {
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    margin-top: 12px;
}
.loan-details-drawer[hidden] {
    display: none !important;
}
.loan-details-drawer:not([hidden]) {
    display: block;
    animation: drawerFadeIn 0.2s ease-in-out;
}
@keyframes drawerFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.drawer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    font-size: 0.8125rem;
    color: #475569;
}
.drawer-rep-example {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm, 6px);
    padding: 14px 16px;
}
.drawer-rep-example strong {
    color: var(--color-navy);
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
}
.drawer-rep-example p {
    margin: 0;
    line-height: 1.55;
    color: #475569;
}
.drawer-stats {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm, 6px);
    padding: 14px 16px;
}
.drawer-stats span {
    display: block;
    margin-bottom: 8px;
    color: #475569;
}
.drawer-stats span strong {
    color: var(--color-navy);
}
.drawer-stats span:last-child {
    margin-bottom: 0;
}
.drawer-link-row {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.provider-review-link {
    color: var(--color-navy) !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}
.provider-review-link:hover {
    color: #2563eb !important;
    text-decoration: underline;
}

.table-footer-action {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* -------------------------------------------------------------
 * 4 BENEFITS CARDS GRID
 * ----------------------------------------------------------- */
.benefits-grid-section {
    padding: 40px 0 70px;
    background-color: var(--color-bg-white);
}

.benefits-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-card {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: transform var(--transition-fast);
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.benefit-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.benefit-title {
    font-size: 1.125rem;
    margin-bottom: 8px;
}
.benefit-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* -------------------------------------------------------------
 * CATEGORIES SECTION
 * ----------------------------------------------------------- */
.categories-section {
    padding: 70px 0;
    background-color: #f8fafc;
}

.categories-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
}
.category-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.cat-icon-wrap {
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.cat-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.cat-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-bottom: 24px;
}

.btn-card-compare {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-main);
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    width: fit-content;
    transition: all var(--transition-fast);
}
.btn-card-compare:hover {
    background: var(--color-lime);
    color: var(--color-primary-dark);
}

/* -------------------------------------------------------------
 * STATS STRIP
 * ----------------------------------------------------------- */
.stats-counter-strip {
    padding: 60px 0;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.1;
}

.stat-title {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.stars-gold {
    display: inline-flex;
    color: #eab308;
    gap: 2px;
}

/* -------------------------------------------------------------
 * ABOUT US / TRUST SECTION
 * ----------------------------------------------------------- */
.about-trust-section {
    padding: 90px 0;
    background-color: var(--color-bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-card {
    height: 440px;
    background: #0d211d;
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.about-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image-card:hover .about-main-img {
    transform: scale(1.03);
}

.about-image-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
}

.user-avatars-cluster {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    padding: 8px 18px 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    margin-left: -12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.avatar-circle:first-child { margin-left: 0; }
.av-1 { background: #0f766e; }
.av-2 { background: #0369a1; }
.av-3 { background: #4338ca; }

.avatar-text strong {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.2;
}
.avatar-text span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.about-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.about-features-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.about-feature-item {
    display: flex;
    gap: 16px;
}

.about-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-lime-light);
    color: #3f6212;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-item strong {
    display: block;
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 2px;
}
.about-feature-item p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------
 * TESTIMONIALS & FAQ ROW
 * ----------------------------------------------------------- */
.testimonials-faq-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Testimonials */
.testimonial-card-wrapper {
    position: relative;
    min-height: 260px;
    margin-top: 24px;
}

.testimonial-card {
    display: none;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}
.testimonial-card.active {
    display: block;
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.testi-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    color: var(--color-lime);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(163, 230, 53, 0.5);
    flex-shrink: 0;
}

.testi-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testi-author-info strong {
    display: block;
    font-size: 1.0625rem;
}
.testi-author-info span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.testi-stars {
    display: flex;
    color: #eab308;
    gap: 2px;
    margin-top: 4px;
}

.testi-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    font-style: italic;
}

.testi-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.testi-btn-prev, .testi-btn-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--color-border);
    font-size: 1.25rem;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.testi-btn-prev:hover, .testi-btn-next:hover {
    background: var(--color-lime);
    color: var(--color-primary-dark);
}

.testi-dots {
    display: flex;
    gap: 8px;
}
.testi-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.testi-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--color-primary-dark);
}

/* FAQ Accordion */
.faq-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.faq-accordion-list,
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.faq-item.active {
    border-color: #94a3b8;
}

.faq-question-btn {
    width: 100%;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-text-main);
    gap: 12px;
}
.faq-question-btn svg {
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}
.faq-item.active .faq-question-btn svg {
    transform: rotate(180deg);
}

.faq-answer-panel {
    padding: 0 22px 18px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
}

/* -------------------------------------------------------------
 * BOTTOM CTA BANNER
 * ----------------------------------------------------------- */
.bottom-cta-banner-section {
    padding: 80px 0 40px;
    background: var(--color-bg-white);
}

.cta-banner-card {
    background: radial-gradient(circle at 10% 20%, #153830 0%, #0c1e1a 50%, #081311 100%);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cta-banner-title {
    font-size: 2.25rem;
    color: #ffffff;
    margin-bottom: 12px;
}
.cta-banner-subtitle {
    font-size: 1.0625rem;
    color: #94a3b8;
    margin-bottom: 28px;
}

.cta-banner-content {
    position: relative;
    z-index: 3;
    max-width: 580px;
}

.cta-banner-compass-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 48%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cta-compass-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, black 45%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, black 45%);
    transition: transform var(--transition-slow);
}

.cta-banner-card:hover .cta-compass-img {
    transform: scale(1.02);
}

.cta-banner-compass-wrap .compass-ambient {
    position: absolute;
    right: 48px;
    bottom: 30px;
    z-index: 4;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--color-lime);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    background: rgba(8, 19, 17, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(163, 230, 53, 0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* -------------------------------------------------------------
 * KNOWLEDGE BASE / GEO ARTICLE
 * ----------------------------------------------------------- */
.knowledge-seo-section {
    padding: 50px 0 80px;
    background: var(--color-bg-white);
}

.seo-content-article {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.seo-article-header {
    margin-bottom: 28px;
}
.article-title {
    font-size: 1.875rem;
    margin-bottom: 8px;
}
.article-meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.article-body h2,
.seo-article-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-top: 36px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.article-body h3,
.seo-article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-top: 28px;
    margin-bottom: 14px;
    line-height: 1.35;
}
.article-body p,
.seo-article-body p {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    margin-top: 0;
    margin-bottom: 22px;
}
.article-body ol,
.article-body ul,
.seo-article-body ol,
.seo-article-body ul {
    margin-left: 24px;
    margin-top: 0;
    margin-bottom: 24px;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.7;
}
.article-body li,
.seo-article-body li {
    margin-bottom: 10px;
}

.key-takeaways-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-lime);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    color: #0f172a;
}
.key-takeaways-box h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.key-takeaways-box ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.key-takeaways-box li {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.55;
    position: relative;
    padding-left: 20px;
    margin-bottom: 0;
}
.key-takeaways-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 800;
}
.key-takeaways-box strong {
    color: #0f172a;
}

/* Dark Hero variant of Key Takeaways Box (Hub Pages) */
.hub-hero-section .key-takeaways-box {
    background: rgba(13, 33, 29, 0.92);
    border: 1px solid rgba(163, 230, 53, 0.25);
    border-left: 4px solid var(--color-lime);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    backdrop-filter: blur(12px);
}
.hub-hero-section .key-takeaways-box h4 {
    color: #ffffff;
}
.hub-hero-section .key-takeaways-box li {
    color: #cbd5e1;
}
.hub-hero-section .key-takeaways-box li::before {
    color: var(--color-lime);
}
.hub-hero-section .key-takeaways-box strong {
    color: var(--color-lime);
}

/* -------------------------------------------------------------
 * REGULATORY NOTICE & FOOTER
 * ----------------------------------------------------------- */
.regulatory-notice-section {
    background: #f1f5f9;
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
}

.regulatory-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.regulatory-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 8px;
}
.regulatory-icon {
    color: #16a34a;
}

.regulatory-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #64748b;
}

/* Main Footer */
.site-footer {
    background: #081311;
    color: #cbd5e1;
    padding-top: 70px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.375rem;
    margin-bottom: 16px;
}
.footer-logo strong, .footer-logo span.brand-dot {
    color: var(--color-lime);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 320px;
    margin-bottom: 24px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}
.social-icon-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}
.social-icon-link:hover {
    background: var(--color-lime);
    color: var(--color-primary-dark);
}

.footer-heading {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav-list a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color var(--transition-fast);
}
.footer-nav-list a:hover {
    color: var(--color-lime);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright-text {
    font-size: 0.8125rem;
    color: #64748b;
}
.copyright-text strong {
    color: #cbd5e1;
}

.footer-bottom-badges {
    display: flex;
    gap: 20px;
}
.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* -------------------------------------------------------------
 * RESPONSIVE BREAKPOINTS (Mobile-First Polish)
 * ----------------------------------------------------------- */
@media (max-width: 1024px) {
    .home .site-header {
        background-color: rgba(8, 19, 17, 0.94);
    }
    .home .hero-section {
        margin-top: 0;
        padding-top: 40px;
    }
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding-bottom: 0;
    }
    .hero-badge, .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-features-grid {
        justify-content: center;
    }
    .hero-visual-wrap {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        max-width: 560px;
        height: auto;
        margin: 32px auto 0;
        justify-content: center;
        align-items: center;
    }
    .hero-couple-img {
        max-height: 380px;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: var(--radius-xl);
        -webkit-mask-image: none;
        mask-image: none;
    }
    .hero-social-proof {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin-top: -30px;
        align-items: center;
        padding-right: 0;
    }
    .curved-arrow-badge {
        margin-left: 0;
        margin-right: 0;
    }
    .calculator-wrapper {
        margin-top: 40px;
    }
    .calc-controls-grid {
        grid-template-columns: 1fr 1fr;
    }
    .comparison-table-header {
        display: none;
    }
    .loan-card {
        grid-template-columns: 1fr 1fr;
    }
    .col-td.td-provider {
        grid-column: 1 / -1;
    }
    .col-td.td-conditions {
        grid-column: 1 / -1;
    }
    .col-td.td-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    .mobile-label {
        display: block;
    }
    .benefits-cards-grid, .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid, .split-grid {
        grid-template-columns: 1fr;
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Navigation & Header */
    .site-navigation, .btn-header-login, .desktop-only {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block;
    }

    /* Centered Section Badges & Headings */
    .section-pill-badge, .hero-badge {
        display: table;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .section-title, .hero-title, .hub-hero-title, .cta-banner-title {
        text-align: center;
        font-size: 2rem;
        line-height: 1.2;
    }
    .section-subtitle, .hero-subtitle, .hub-hero-lead, .cta-banner-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    /* Header Flex Rows to Column Centered */
    .categories-header-row, .comparison-header, .faq-header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        margin-bottom: 24px;
    }
    .comparison-sort {
        width: 100%;
        justify-content: center;
    }
    .breadcrumbs-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hub-hero-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content {
        text-align: center;
    }
    .hero-features-grid {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 360px;
        margin: 0 auto;
    }
    .hero-visual-wrap {
        max-width: 100%;
        margin-top: 24px;
    }
    .hero-couple-img {
        max-height: 280px;
    }
    .calculator-wrapper {
        margin-top: 36px;
    }

    /* Calculator Mobile */
    .calc-controls-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .calculator-card {
        padding: 24px 18px;
    }
    .calc-tabs-bar {
        justify-content: center;
        gap: 6px;
    }
    .calc-tab-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    /* HIGH-END MOBILE LOAN CARDS */
    .loan-card {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
            "provider provider provider"
            "rate monthly total"
            "conditions conditions conditions"
            "actions actions actions"
            "drawer drawer drawer";
        gap: 10px;
        padding: 18px 14px;
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }
    .col-td.td-provider {
        grid-area: provider;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--color-border);
    }
    .provider-brand-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .provider-name-styled {
        font-size: 1.25rem;
    }

    /* 3-Column Metrics Row */
    .col-td.td-rate, .col-td.td-monthly, .col-td.td-total {
        background: #f8fafc;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: 10px 6px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .col-td.td-monthly {
        background: rgba(163, 230, 53, 0.12);
        border: 1px solid rgba(163, 230, 53, 0.45);
    }
    .mobile-label {
        display: block;
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: var(--color-text-muted);
        margin-bottom: 4px;
        text-align: center;
    }
    .rate-value {
        font-size: 1.0625rem;
        font-weight: 800;
        text-align: center;
    }
    .rate-sub {
        font-size: 0.6875rem;
        text-align: center;
    }
    .monthly-value {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--color-primary-dark);
        text-align: center;
    }
    .total-value {
        font-size: 1rem;
        font-weight: 700;
        text-align: center;
    }

    /* Conditions on Mobile */
    .col-td.td-conditions {
        grid-area: conditions;
        padding: 8px 4px 4px;
    }
    .conditions-list li {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    /* Action Buttons on Mobile */
    .col-td.td-actions {
        grid-area: actions;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 6px;
    }
    .col-td.td-actions .btn-choose {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 700;
    }
    .btn-toggle-details {
        font-size: 0.875rem;
        padding: 4px 8px;
    }

    /* Details Drawer */
    .loan-details-drawer {
        grid-area: drawer;
    }
    .drawer-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Categories & Benefits Centered on Mobile */
    .categories-grid, .benefits-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .category-card {
        text-align: center;
        align-items: center;
        padding: 24px 20px;
    }
    .benefit-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 24px 20px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .stat-value {
        font-size: 2rem;
    }

    /* About & Testimonials */
    .about-content-col {
        text-align: center;
    }
    .about-lead {
        text-align: center;
    }
    .about-features-list {
        text-align: left;
    }
    .about-cta-row {
        display: flex;
        justify-content: center;
    }

    /* Banner CTA */
    .cta-banner-card {
        padding: 36px 20px 24px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .cta-banner-compass-wrap {
        position: relative;
        width: 100%;
        height: 180px;
        max-width: 320px;
        margin: 10px auto 0;
        justify-content: center;
    }
    .cta-compass-img {
        -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 40%, transparent 95%);
        mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 40%, transparent 95%);
    }
    .cta-banner-compass-wrap .compass-ambient {
        position: static;
        margin-top: 10px;
        display: inline-flex;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .footer-col-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-social-links {
        justify-content: center;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title, .hub-hero-title {
        font-size: 1.75rem;
    }
    .rate-value { font-size: 0.9375rem; }
    .monthly-value { font-size: 1.0625rem; }
    .total-value { font-size: 0.9375rem; }
    .col-td.td-rate, .col-td.td-monthly, .col-td.td-total {
        padding: 8px 4px;
    }
    .mobile-label {
        font-size: 0.625rem;
    }
}

/* -------------------------------------------------------------
 * PROVIDER REVIEW PAGE ENHANCEMENTS (SEO & GEO)
 * ----------------------------------------------------------- */

/* Header rating badges */
.provider-rating-pill, .provider-user-rating-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: 0.8125rem;
    color: #e2e8f0;
}
.provider-rating-pill strong {
    color: var(--color-lime);
}
.provider-user-rating-pill strong {
    color: #ffffff;
}

/* GEO Entity Summary Box */
.geo-entity-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 36px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.06);
}
.geo-entity-badge {
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 14px;
}
.geo-facts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.geo-facts-list li {
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}
.geo-facts-list li::before {
    content: "•";
    color: #16a34a;
    font-size: 1.4rem;
    position: absolute;
    left: 4px;
    top: -4px;
}

/* Dual Rating Section */
.dual-rating-section {
    margin-top: 36px;
}
.section-title-sm {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}
.section-subtitle-sm {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}
.dual-rating-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}
.rating-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.editorial-rating-card {
    border-top: 4px solid var(--color-lime);
}
.user-rating-card {
    border-top: 4px solid #eab308;
}
.rating-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.rating-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}
.tag-editorial {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.tag-users {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}
.rating-score-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.rating-score-display .big-score {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1;
}
.rating-score-display .score-max {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}
.rating-card-desc {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
}
.criteria-bars-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.criteria-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 4px;
    color: #334155;
}
.criteria-bar-track {
    background: #f1f5f9;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}
.criteria-bar-fill {
    background: linear-gradient(90deg, #10b981, #84cc16);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.user-stars-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.25rem;
    color: #eab308;
    margin-bottom: 12px;
}
.user-stars-row .star-off {
    color: #cbd5e1;
}
.user-count-lbl {
    font-size: 0.8125rem;
    color: #64748b;
    margin-left: 8px;
}

/* E-E-A-T Author Bar */
.eeat-author-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.author-avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    color: var(--color-lime);
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.author-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}
.author-meta {
    font-size: 0.75rem;
    color: #64748b;
}

/* Alternatives Comparison Table */
.alternatives-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.875rem;
}
.alternatives-table th {
    background: #f8fafc;
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid var(--color-border);
}
.alternatives-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    color: #1e293b;
    vertical-align: middle;
}
.alternatives-table tr:last-child td {
    border-bottom: none;
}
.alternatives-table tr.current-provider-row td {
    background: rgba(163, 230, 53, 0.08);
}
.alt-link {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
}
.alt-link:hover {
    color: #16a34a;
}

/* Comments and Leave a Review Form */
.user-comments-section {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}
.comment-item-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.comment-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.comment-author-box strong {
    font-size: 0.9375rem;
    color: #0f172a;
}
.comment-author-box .comment-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 8px;
}
.comment-card-body p {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.55;
    margin: 0;
}
.no-comments-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}
.leave-review-card {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.leave-review-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #0f172a;
}
.review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.review-form-field {
    display: flex;
    flex-direction: column;
}
.review-form-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.review-input, .review-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
}
.review-input:focus, .review-textarea:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.2);
}
.star-rating-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}
.star-btn {
    font-size: 1.75rem;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
    line-height: 1;
}
.star-btn.active {
    color: #eab308;
}
.star-btn:hover {
    transform: scale(1.15);
}
.selected-star-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .dual-rating-grid {
        grid-template-columns: 1fr;
    }
    .review-form-row {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------
 * PROVIDER FAQ ACCORDION (High-End Design)
 * ----------------------------------------------------------- */
.provider-faq-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}
.faq-header-wrapper {
    margin-bottom: 24px;
}
.provider-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.provider-faq-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.provider-faq-item:hover {
    border-color: #cbd5e1;
}
.provider-faq-item[open] {
    border-color: rgba(163, 230, 53, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.provider-faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    transition: color var(--transition-fast);
}
.provider-faq-question::-webkit-details-marker {
    display: none !important;
}
.provider-faq-question::marker {
    display: none !important;
}
.provider-faq-question:hover {
    color: #15803d;
}
.provider-faq-q-text {
    flex: 1;
    line-height: 1.4;
}
.provider-faq-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.provider-faq-toggle svg {
    transition: transform var(--transition-fast);
}
.provider-faq-item[open] .provider-faq-toggle {
    background: var(--color-lime);
    border-color: var(--color-lime);
    color: var(--color-primary-dark);
}
.provider-faq-item[open] .provider-faq-toggle svg {
    transform: rotate(180deg);
}
.provider-faq-answer {
    padding: 0 24px 22px 24px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #334155;
    animation: faqFadeIn 0.25s ease-out;
}
.provider-faq-answer p {
    margin: 0;
}
@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Topic Keyword Landing Pages (paskolos/{slug})
   ========================================================================== */
.topic-single-page .hub-hero-header {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.topic-single-page .hub-hero-header .key-takeaways-box {
    text-align: left;
}
.topic-single-page .step-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.topic-single-page .step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.topic-single-page .pros-box, .topic-single-page .cons-box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.topic-single-page .topic-guide-section {
    background: #f8fafc;
    padding: 60px 0 80px;
}
.topic-single-page .seo-content-article {
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.topic-single-page .bottom-cta-banner-section {
    padding: 0 0 80px;
    background: #f8fafc;
}
.topic-single-page .cta-banner-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Related Topics Section ("Kitos panašaus tipo paskolos")
   ========================================================================== */
.related-topics-section {
    padding: 50px 0 60px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.related-topics-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}
.related-section-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 12px 0 8px;
    letter-spacing: -0.02em;
}
.related-section-lead {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}
.related-topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.related-topic-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.related-topic-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}
.related-topic-card .card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.topic-cat-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.2;
}
.topic-pill-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.2;
}
.related-card-title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 10px;
    line-height: 1.35;
}
.related-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.related-card-title a:hover {
    color: #2563eb;
}
.related-card-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 16px;
    flex-grow: 1;
}
.related-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.8125rem;
}
.related-card-meta .meta-lbl {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-right: 4px;
}
.related-card-meta .meta-val {
    color: var(--color-navy);
    font-weight: 700;
}
.related-card-footer {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.related-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.related-topic-card:hover .related-card-link {
    color: #2563eb;
}
.related-card-link svg {
    transition: transform var(--transition-fast);
}
.related-topic-card:hover .related-card-link svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .related-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .related-topics-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DSTI 40% Rule & "Kiek galiu pasiskolinti?" Calculator
   ========================================================================== */
.dsti-calculator-module {
    margin: 48px 0;
    scroll-margin-top: 100px;
}
.dsti-module-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}
.dsti-module-header .dsti-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 12px 0 8px;
    letter-spacing: -0.02em;
}
.dsti-module-header .dsti-lead {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Mathematical Example Box */
.dsti-math-example-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 12px);
    padding: 24px 28px;
    margin-bottom: 28px;
}
.dsti-math-example-box .example-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.dsti-math-example-box .example-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 9999px;
}
.dsti-math-example-box .example-author {
    font-size: 0.8125rem;
    color: #64748b;
}
.dsti-math-example-box .example-intro {
    font-size: 0.9375rem;
    color: var(--color-navy);
    margin: 0 0 16px;
    font-weight: 500;
}
.math-steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr;
    align-items: center;
    gap: 8px;
}
.math-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 8px);
    padding: 14px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.math-step-card.highlight {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}
.math-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.math-step-card.highlight .math-step-num {
    background: var(--color-lime);
    color: var(--color-navy);
}
.math-step-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.math-step-val {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}
.math-step-val.text-navy { color: var(--color-navy); }
.math-step-val.text-muted { color: #64748b; }
.math-step-val.text-green { color: #15803d; }
.math-step-sub {
    font-size: 0.6875rem;
    color: #94a3b8;
    line-height: 1.3;
}
.math-step-divider {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    user-select: none;
}
.example-footer-result {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}
.example-footer-result .res-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.example-footer-result .highlight-sum {
    color: #15803d;
    font-weight: 800;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Interactive DSTI Calculator Card */
.dsti-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.dsti-card-header {
    background: var(--color-navy);
    color: #ffffff;
    padding: 20px 28px;
}
.dsti-card-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}
.dsti-card-header p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}
.dsti-card-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    padding: 28px;
}

/* Inputs Pane */
.dsti-inputs-pane {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.dsti-field-group .field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.dsti-field-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
}
.dsti-field-group .field-val-badge {
    background: #f1f5f9;
    color: var(--color-navy);
    font-weight: 800;
    font-size: 0.9375rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid #e2e8f0;
}

/* Results Pane */
.dsti-results-pane {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dsti-gauge-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 8px);
    padding: 16px;
}
.gauge-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.gauge-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}
.gauge-percent {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-navy);
}
.dsti-gauge-scale-wrap {
    margin-bottom: 16px;
}
.dsti-progress-bar-wrap {
    position: relative;
    height: 14px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: visible;
}
.dsti-progress-bar {
    height: 100%;
    background: #16a34a;
    transition: width 0.25s ease, background-color 0.25s ease;
    border-radius: 9999px;
}
.dsti-progress-bar.warning {
    background: #d97706;
}
.dsti-progress-bar.danger {
    background: #dc2626;
}
.dsti-40-marker-line {
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: 40%;
    width: 3px;
    background: #0f172a;
    border-radius: 2px;
    z-index: 3;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.dsti-scale-labels {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 6px;
    min-height: 24px;
}
.dsti-scale-labels .scale-min,
.dsti-scale-labels .scale-max {
    font-weight: 700;
    color: #64748b;
}
.dsti-40-pill {
    position: absolute;
    left: 40%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0f172a;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.dsti-40-pill .marker-caret {
    color: var(--color-lime);
    font-size: 0.625rem;
}
.dsti-status-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}
.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.04em;
    line-height: 1;
}
.status-badge.safe {
    background: #dcfce7;
    color: #15803d;
}
.status-badge.warning {
    background: #fef9c3;
    color: #a16207;
}
.status-badge.danger {
    background: #fee2e2;
    color: #b91c1c;
}
.status-desc {
    color: #64748b;
    line-height: 1.4;
}

/* Output grid */
.dsti-output-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}
.dsti-output-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 8px);
    padding: 16px;
    text-align: center;
}
.dsti-output-card.highlight {
    background: #f0fdf4;
    border-color: #86efac;
}
.out-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}
.out-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-navy);
}
.out-val.primary-sum {
    font-size: 1.5rem;
    color: #15803d;
}
.out-sub {
    display: block;
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Actions & Warnings */
.dsti-action-row {
    margin-top: auto;
}
.dsti-btn-hint {
    display: block;
    text-align: center;
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 6px;
}
.warning-alert-box {
    display: flex;
    gap: 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: var(--radius-md, 8px);
    padding: 14px;
    margin-bottom: 12px;
}
.warning-alert-box .warn-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.warning-alert-box strong {
    color: #be123c;
    display: block;
    font-size: 0.875rem;
    margin-bottom: 4px;
}
.warning-alert-box p {
    color: #881337;
    font-size: 0.8125rem;
    line-height: 1.45;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .math-steps-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .math-step-divider {
        padding: 4px 0;
    }
    .dsti-card-body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }
    .dsti-output-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Home DSTI 40% Section
   ========================================================================== */
.home-dsti-section {
    padding: 70px 0;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.home-dsti-section .dsti-calculator-module {
    margin: 0;
}

/* ==========================================================================
   Latest News Section (Tinklaraštis / Naujienos)
   ========================================================================== */
.latest-news-section {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
}
.latest-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}
.news-layout-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: stretch;
}
.news-featured-col {
    display: flex;
}
.news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

/* Featured Card */
.news-card-featured {
    width: 100%;
    height: 100%;
}
.news-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9.5;
}
.news-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.news-card:hover .news-thumb-img {
    transform: scale(1.04);
}
.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #064e3b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-lime);
}
.news-thumb-placeholder.compact {
    min-height: 120px;
}
.news-thumb-placeholder .placeholder-icon svg {
    width: 44px;
    height: 44px;
    opacity: 0.8;
}
.news-cat-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    color: #a3e635;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
    border: 1px solid rgba(163, 230, 53, 0.25);
}

/* Card Content */
.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 10px;
}
.news-meta-row .meta-sep {
    color: #cbd5e1;
}
.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--color-navy);
    letter-spacing: -0.015em;
}
.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.news-card-title a:hover {
    color: #2563eb;
}
.news-card-excerpt {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}
.news-card-action {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color var(--transition-fast), gap var(--transition-fast);
}
.btn-read-more svg {
    color: #2563eb;
    transition: transform var(--transition-fast);
}
.news-card:hover .btn-read-more {
    color: #2563eb;
}
.news-card:hover .btn-read-more svg {
    transform: translateX(4px);
}

/* Subgrid (2x2) */
.news-subgrid-col {
    display: flex;
}
.news-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}
.news-card-sub .news-card-media {
    aspect-ratio: 16 / 10;
}
.news-card-sub .news-card-content {
    padding: 16px;
}
.news-card-title.sub-title {
    font-size: 0.9375rem;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-excerpt.sub-excerpt {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sub-action {
    padding-top: 10px;
}
.link-read-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.link-read-arrow svg {
    color: #2563eb;
    transition: transform var(--transition-fast);
}
.news-card-sub:hover .link-read-arrow {
    color: #2563eb;
}
.news-card-sub:hover .link-read-arrow svg {
    transform: translateX(3px);
}
.news-footer-mobile {
    margin-top: 28px;
    display: none;
}

/* Responsive Utilities & News Breakpoints */
.mobile-only {
    display: none;
}
@media (max-width: 1024px) {
    .news-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .news-card-featured .news-card-media {
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    .news-footer-mobile {
        display: block;
    }
    .home-dsti-section {
        padding: 48px 0;
    }
}
@media (max-width: 640px) {
    .news-subgrid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .latest-news-section {
        padding: 50px 0;
    }
    .news-card-title {
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   Global Layout & Typography Helpers
   ========================================================================== */
.container-reading {
    max-width: 860px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Custom Search Form */
.site-search-form {
    width: 100%;
    max-width: 560px;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 6px 6px 18px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-input-wrapper:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.search-icon-decor {
    display: flex;
    align-items: center;
    color: #94a3b8;
    margin-right: 10px;
    flex-shrink: 0;
}
.search-input-wrapper .search-field {
    flex-grow: 1;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--color-navy);
    outline: none;
    min-width: 0;
}
.search-input-wrapper .search-field::placeholder {
    color: #94a3b8;
}
.search-submit-btn {
    background: var(--color-lime);
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    padding: 10px 20px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}
.search-submit-btn:hover {
    background: var(--color-lime-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   Blog & Category Archive Templates
   ========================================================================== */
.blog-archive-main {
    background: #f8fafc;
    min-height: 80vh;
}
.blog-hero-section {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 48px 0 36px;
}
.blog-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.blog-hero-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.025em;
    margin: 12px 0 10px;
    line-height: 1.25;
}
.blog-hero-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}
.blog-hero-search {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

/* Category Filter Bar */
.blog-cats-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.cat-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #ffffff !important;
    color: #081311 !important;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cat-filter-btn:hover {
    background: #f8fafc !important;
    border-color: #081311 !important;
    color: #2563eb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.cat-filter-btn.active {
    background: #081311 !important;
    color: #ffffff !important;
    border-color: #081311 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
.cat-filter-btn .cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    line-height: 1;
}
.cat-filter-btn.active .cat-count {
    background: rgba(163, 230, 53, 0.25);
    color: #a3e635;
}

/* Blog Posts Grid */
.blog-posts-section {
    padding: 56px 0;
}
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.blog-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}
.blog-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-thumb-img {
    transform: scale(1.04);
}
.blog-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #064e3b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-lime);
}
.blog-thumb-placeholder .placeholder-icon svg {
    width: 44px;
    height: 44px;
    opacity: 0.8;
}
.blog-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    color: #a3e635;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
    border: 1px solid rgba(163, 230, 53, 0.25);
}
.blog-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 10px;
}
.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-navy);
    margin: 0 0 10px;
    letter-spacing: -0.015em;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.blog-card-title a:hover {
    color: #2563eb;
}
.blog-card-excerpt {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}
.blog-card-footer {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.blog-read-link svg {
    color: #2563eb;
    transition: transform var(--transition-fast);
}
.blog-card:hover .blog-read-link {
    color: #2563eb;
}
.blog-card:hover .blog-read-link svg {
    transform: translateX(4px);
}

/* Pagination */
.blog-pagination-wrapper,
.search-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}
.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 8px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.pagination .page-numbers:hover {
    background: #f1f5f9;
}
.pagination .page-numbers.current {
    background: var(--color-navy);
    color: #ffffff;
}

/* Empty State */
.blog-empty-state,
.search-empty-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 12px);
    padding: 48px 32px;
    text-align: center;
    max-width: 680px;
    margin: 40px auto;
}
.search-empty-box .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.search-empty-box .empty-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 8px;
}
.search-empty-box .empty-desc {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 24px;
}
.empty-quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Bottom Blog CTA */
.blog-bottom-cta {
    padding: 20px 0 70px;
}

/* ==========================================================================
   Single Article Template
   ========================================================================== */
.single-post-main {
    background: #ffffff;
}
.single-article-header {
    padding: 40px 0 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.article-cat-badge-wrap {
    margin-bottom: 16px;
}
.article-cat-link {
    text-decoration: none;
}
.single-article-title {
    font-family: var(--font-heading);
    font-size: 2.375rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
}
.single-article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}
.meta-author-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-lime);
    font-weight: 800;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(163, 230, 53, 0.4);
}
.author-details {
    display: flex;
    flex-direction: column;
}
.author-name {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 0.9375rem;
}
.author-role {
    font-size: 0.75rem;
    color: #64748b;
}
.meta-time-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #64748b;
}
.meta-item .meta-lbl {
    color: #94a3b8;
    margin-right: 4px;
}
.meta-item .meta-val {
    font-weight: 600;
    color: #334155;
}

/* Featured Media */
.single-article-featured-media {
    padding-top: 36px;
}
.featured-media-card {
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}
.featured-media-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body & Typography */
.single-article-body-section {
    padding: 40px 0 60px;
}
.typography-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}
.typography-content p {
    margin-bottom: 1.6rem;
}
.typography-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.typography-content h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 2rem 0 0.75rem;
    line-height: 1.35;
}
.typography-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 1.5rem 0 0.5rem;
}
.typography-content ul,
.typography-content ol {
    margin: 0 0 1.6rem;
    padding-left: 1.5rem;
}
.typography-content li {
    margin-bottom: 0.5rem;
}
.typography-content blockquote {
    border-left: 4px solid var(--color-lime);
    background: #f8fafc;
    padding: 18px 24px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #1e293b;
    margin: 2rem 0;
}
.typography-content blockquote p:last-child {
    margin-bottom: 0;
}
.typography-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.typography-content th,
.typography-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.9375rem;
}
.typography-content th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--color-navy);
}
.typography-content tr:nth-child(even) td {
    background: #fafafa;
}

/* Article Tags */
.article-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.tags-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #64748b;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-chip {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.tag-chip:hover {
    background: #e2e8f0;
    color: var(--color-navy);
}

/* Author Expert Box */
.author-expert-box {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 12px);
    padding: 24px;
    margin: 40px 0;
}
.author-expert-avatar {
    flex-shrink: 0;
}
.author-expert-avatar .avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-lime);
    font-weight: 800;
    font-size: 1.375rem;
    border: 2px solid rgba(163, 230, 53, 0.5);
}
.expert-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.expert-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 6px;
}
.expert-bio {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* Inline Article CTA */
.article-cta-box {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg, 12px);
    padding: 36px 32px;
    color: #ffffff;
    margin: 44px 0 20px;
    overflow: hidden;
}
.cta-box-decor {
    position: absolute;
    right: 24px;
    bottom: -10px;
    opacity: 0.06;
    pointer-events: none;
}
.cta-box-decor svg {
    width: 140px;
    height: 140px;
}
.cta-pill-label {
    display: inline-block;
    background: rgba(163, 230, 53, 0.15);
    color: var(--color-lime);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.cta-box-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}
.cta-box-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 22px;
    max-width: 540px;
    line-height: 1.5;
}

/* Related Posts Section */
.related-posts-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 48px 0;
}
.related-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.related-posts-header .related-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}
.related-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}
.related-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-lime);
}
.related-thumb-placeholder .placeholder-icon svg {
    width: 36px;
    height: 36px;
    opacity: 0.7;
}
.related-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #a3e635;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.related-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.related-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
}
.related-post-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    flex-grow: 1;
}
.related-post-title a {
    color: var(--color-navy);
    text-decoration: none;
}
.related-post-title a:hover {
    color: #2563eb;
}
.related-read-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
}
.related-read-link svg {
    color: #2563eb;
    transition: transform var(--transition-fast);
}
.related-post-card:hover .related-read-link svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Static Pages (page.php)
   ========================================================================== */
.generic-page-main {
    background: #f8fafc;
    padding: 36px 0 60px;
}
.static-page-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 12px);
    padding: 44px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    margin-top: 0;
}
.static-page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}
.static-page-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 8px;
    letter-spacing: -0.025em;
}
.static-page-meta {
    font-size: 0.8125rem;
    color: #94a3b8;
}
.static-page-meta .meta-time {
    color: #64748b;
    font-weight: 600;
}

/* ==========================================================================
   404 Error Page (404.php)
   ========================================================================== */
.error-404-main {
    background: #f8fafc;
    padding: 48px 0 80px;
    min-height: calc(80vh - 150px);
}
.error-404-card {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 16px);
    padding: 56px 40px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}
.error-badge-row {
    margin-bottom: 16px;
}
.error-code-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-navy);
    background: linear-gradient(135deg, var(--color-navy) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}
.error-page-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 10px;
}
.error-page-desc {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 28px;
}
.error-search-wrap {
    margin: 0 auto 32px;
    max-width: 480px;
}
.error-search-wrap .search-prompt {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}
.error-quick-nav {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}
.quick-nav-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.quick-nav-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: var(--color-navy);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.nav-chip:hover {
    background: #e2e8f0;
    color: #2563eb;
    transform: translateY(-1px);
}
.nav-chip.highlight {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.error-action-row {
    padding-top: 16px;
}

/* ==========================================================================
   Search Results Page (search.php)
   ========================================================================== */
.search-results-main {
    background: #f8fafc;
    min-height: 80vh;
}
.search-hero-section {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 48px 0 36px;
}
.search-hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.search-hero-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.02em;
    margin: 12px 0 8px;
}
.search-hero-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 24px;
}
.search-hero-bar {
    display: flex;
    justify-content: center;
}
.search-results-section {
    padding: 48px 0 64px;
}
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.search-result-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 8px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.search-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.result-type-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}
.result-type-badge.type-post {
    background: #e0f2fe;
    color: #0369a1;
}
.result-type-badge.type-temos {
    background: #f0fdf4;
    color: #15803d;
}
.result-type-badge.type-teikejai {
    background: #fef3c7;
    color: #b45309;
}
.result-date {
    font-size: 0.75rem;
    color: #94a3b8;
}
.result-title {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-navy);
    margin: 0 0 10px;
}
.result-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.result-title a:hover {
    color: #2563eb;
}
.result-excerpt {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}
.result-footer {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.result-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.result-link svg {
    color: #2563eb;
    transition: transform var(--transition-fast);
}
.search-result-card:hover .result-link {
    color: #2563eb;
}
.search-result-card:hover .result-link svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Responsive Adaptations for Standard Pages
   ========================================================================== */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 1.75rem;
    }
    .single-article-title {
        font-size: 1.75rem;
    }
    .static-page-title {
        font-size: 1.75rem;
    }
    .static-page-card {
        padding: 24px;
    }
    .single-article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .author-expert-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .error-404-card {
        padding: 36px 20px;
    }
    .error-code-badge {
        font-size: 3rem;
    }
}
@media (max-width: 640px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    .article-cta-box {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   Legal & Transparency Pages Styling (GDPR, E-E-A-T Compliance)
   ========================================================================== */
.legal-page-main {
    background: #f8fafc;
    padding: 36px 0 80px;
}
.legal-document-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 16px);
    padding: 48px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}
.legal-doc-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.legal-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
}
.legal-status-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}
.legal-doc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 8px;
}
.legal-doc-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.legal-doc-meta .meta-time {
    color: var(--color-navy);
    font-weight: 600;
}

/* Legal Notice Boxes */
.legal-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0 32px;
    line-height: 1.6;
}
.legal-notice-box .notice-icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.legal-notice-box.info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.legal-notice-box.info .notice-icon {
    color: #16a34a;
}
.legal-notice-box.info strong {
    color: #14532d;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9375rem;
}
.legal-notice-box.info p {
    color: #166534;
    font-size: 0.9375rem;
    margin: 0;
}
.legal-notice-box.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.legal-notice-box.warning .notice-icon {
    color: #d97706;
}
.legal-notice-box.warning strong {
    color: #78350f;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9375rem;
}
.legal-notice-box.warning p {
    color: #92400e;
    font-size: 0.9375rem;
    margin: 0;
}

/* Table of Contents */
.legal-toc-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 36px;
}
.legal-toc-card .toc-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.legal-toc-card .toc-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legal-toc-card .toc-list a {
    color: #334155;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}
.legal-toc-card .toc-list a:hover {
    color: #059669;
    transform: translateX(4px);
}

/* Contact & Supervisory Cards */
.legal-contact-card, .legal-supervisory-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0;
}
.legal-contact-card h3, .legal-supervisory-card h4 {
    margin: 0 0 10px;
    color: var(--color-navy);
    font-size: 1.0625rem;
}
.legal-contact-card ul, .legal-supervisory-card ul {
    margin: 0;
    padding-left: 1.2rem;
}
.legal-contact-card li, .legal-supervisory-card li {
    margin-bottom: 6px;
    font-size: 0.9375rem;
}

/* Rights Grid */
.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}
.legal-right-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
}
.legal-right-item h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
}
.legal-right-item p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Cookie Types Grid */
.legal-cookie-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}
.cookie-type-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}
.cookie-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.cookie-type-badge.necessary { background: #fee2e2; color: #991b1b; }
.cookie-type-badge.functional { background: #e0f2fe; color: #0369a1; }
.cookie-type-badge.analytics { background: #dcfce7; color: #15803d; }
.cookie-type-badge.affiliate { background: #fef3c7; color: #92400e; }
.cookie-type-card h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
}
.cookie-type-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Cookie Table Tags */
.cookie-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.cookie-tag.req { background: #fee2e2; color: #991b1b; }
.cookie-tag.func { background: #e0f2fe; color: #0369a1; }
.cookie-tag.opt { background: #dcfce7; color: #15803d; }

/* Browser Guides */
.legal-browser-guides {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 20px 0;
}
.browser-guide-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
}
.browser-guide-item h4 {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
}
.browser-guide-item p {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.legal-hint-text {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-style: italic;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .legal-document-card {
        padding: 28px 20px;
    }
    .legal-rights-grid,
    .legal-cookie-types-grid,
    .legal-browser-guides {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Apie Mus & Informational Pages Styling
   ========================================================================== */
.about-hero-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin-top: 12px;
}

/* Stats Bar */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #081311;
    border-radius: 12px;
    padding: 28px 24px;
    margin: 32px 0;
    color: #ffffff;
}
.about-stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-lime);
    line-height: 1.2;
}
.about-stat-item .stat-label {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Values Grid */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 28px 0;
}
.value-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.value-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.value-card .value-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.value-card h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 8px;
}
.value-card p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* About / How It Works CTA Card */
.about-cta-card {
    background: linear-gradient(135deg, #081311 0%, #152e2a 100%);
    border-radius: 16px;
    padding: 36px 32px;
    margin: 40px 0 20px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 19, 17, 0.15);
}
.about-cta-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px;
}
.about-cta-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0 0 24px;
    max-width: 580px;
    line-height: 1.6;
}
.about-cta-card .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.about-cta-card .btn-primary {
    background: var(--color-lime);
    color: #081311;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.about-cta-card .btn-primary:hover {
    background: var(--color-lime-hover);
    transform: translateY(-1px);
}
.about-cta-card .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
}
.about-cta-card .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* How It Works Steps */
.how-steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 36px 0;
}
.how-step-card {
    display: flex;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.step-badge-col {
    flex-shrink: 0;
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #081311;
    color: var(--color-lime);
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 900;
}
.step-content-col h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 10px;
}
.step-content-col p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 12px;
}
.step-tip-box {
    background: #f8fafc;
    border-left: 3px solid var(--color-lime);
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
    color: #334155;
}

/* Partners Directory */
.partners-page-main .static-page-card {
    max-width: 100%;
}
.partners-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}
.partner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.partner-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.partner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.partner-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 6px;
    line-height: 1.2;
}
.partner-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
}
.partner-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.partner-rating-badge .star-icon {
    color: #f59e0b;
}
.partner-terms-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.term-box {
    display: flex;
    flex-direction: column;
}
.term-lbl {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}
.term-val {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    white-space: nowrap;
}
.term-val.highlight {
    color: #059669;
}
.partner-perks-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.partner-perks-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.4;
}
.partner-perks-list .check-icon {
    color: #10b981;
    font-weight: 800;
    font-size: 0.9375rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.partner-actions-row {
    display: flex;
    gap: 12px;
    margin-top: auto;
}
.partner-actions-row .btn-primary {
    flex: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #081311;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 11px 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.partner-actions-row .btn-primary:hover {
    background: #152e2a;
    color: #ffffff;
}
.partner-actions-row .btn-outline {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 11px 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.partner-actions-row .btn-outline:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* FAQ Accordions */
.faq-sections-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 28px 0;
}
.faq-category-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.faq-accordion-item[open] {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-navy);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.accordion-arrow {
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.2s ease;
}
.faq-accordion-item[open] .accordion-arrow {
    transform: rotate(180deg);
    color: #081311;
}
.faq-answer {
    padding: 0 20px 20px;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Contact Departments */
.contact-departments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.dept-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
}
.dept-card .dept-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #081311;
    color: var(--color-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.dept-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 6px;
}
.dept-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 12px;
}
.dept-card .dept-email {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #059669;
    text-decoration: none;
}
.dept-card .dept-email:hover {
    text-decoration: underline;
}

/* Direct Contact Card */
.direct-contact-cta-card {
    margin-top: 36px;
    background: linear-gradient(135deg, #081311 0%, #152e2a 100%);
    border-radius: 14px;
    padding: 36px 28px;
    color: #ffffff;
    text-align: center;
}
.direct-contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(163, 230, 53, 0.15);
    color: var(--color-lime);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.direct-contact-cta-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}
.direct-contact-cta-card p {
    font-size: 0.9375rem;
    color: #cbd5e1;
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.5;
}
.direct-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-lime);
    color: #081311;
    font-weight: 800;
    font-size: 1.0625rem;
    padding: 13px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.direct-contact-btn:hover {
    background: var(--color-lime-hover);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .partner-terms-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .partners-directory-grid {
        grid-template-columns: 1fr;
    }
    .partner-terms-row {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 640px) {
    .about-values-grid,
    .contact-departments-grid {
        grid-template-columns: 1fr;
    }
    .how-step-card {
        flex-direction: column;
        gap: 16px;
    }
    .direct-contact-cta-card {
        padding: 28px 20px;
    }
    .partner-terms-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .partner-actions-row {
        flex-direction: column;
    }
    .partner-actions-row .btn-primary,
    .partner-actions-row .btn-outline {
        width: 100%;
    }
}


