/* ==========================================================================
   גמל נט ישראל - Premium Dark Theme
   Hebrew RTL Financial Comparison Website
   Version: 1.0.0
   ========================================================================== */


/* ==========================================================================
   Section 1: @font-face Declarations - Ploni Hebrew Font Family
   Weights: 200 (UltraLight) through 900 (Black)
   Formats: woff2 (primary), woff (fallback), eot (IE legacy)
   ========================================================================== */

@font-face {
    font-family: 'Ploni';
    src: url('fonts/ploni-ultralight-aaa.eot');
    src: url('fonts/ploni-ultralight-aaa.eot?#iefix') format('embedded-opentype'),
         url('fonts/ploni-ultralight-aaa.woff2') format('woff2'),
         url('fonts/ploni-ultralight-aaa.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ploni';
    src: url('fonts/ploni-light-aaa.eot');
    src: url('fonts/ploni-light-aaa.eot?#iefix') format('embedded-opentype'),
         url('fonts/ploni-light-aaa.woff2') format('woff2'),
         url('fonts/ploni-light-aaa.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ploni';
    src: url('fonts/ploni-regular-aaa.eot');
    src: url('fonts/ploni-regular-aaa.eot?#iefix') format('embedded-opentype'),
         url('fonts/ploni-regular-aaa.woff2') format('woff2'),
         url('fonts/ploni-regular-aaa.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ploni';
    src: url('fonts/ploni-medium-aaa.eot');
    src: url('fonts/ploni-medium-aaa.eot?#iefix') format('embedded-opentype'),
         url('fonts/ploni-medium-aaa.woff2') format('woff2'),
         url('fonts/ploni-medium-aaa.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ploni';
    src: url('fonts/ploni-demibold-aaa.eot');
    src: url('fonts/ploni-demibold-aaa.eot?#iefix') format('embedded-opentype'),
         url('fonts/ploni-demibold-aaa.woff2') format('woff2'),
         url('fonts/ploni-demibold-aaa.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ploni';
    src: url('fonts/ploni-bold-aaa.eot');
    src: url('fonts/ploni-bold-aaa.eot?#iefix') format('embedded-opentype'),
         url('fonts/ploni-bold-aaa.woff2') format('woff2'),
         url('fonts/ploni-bold-aaa.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ploni';
    src: url('fonts/ploni-ultrabold-aaa.eot');
    src: url('fonts/ploni-ultrabold-aaa.eot?#iefix') format('embedded-opentype'),
         url('fonts/ploni-ultrabold-aaa.woff2') format('woff2'),
         url('fonts/ploni-ultrabold-aaa.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ploni';
    src: url('fonts/ploni-black-aaa.eot');
    src: url('fonts/ploni-black-aaa.eot?#iefix') format('embedded-opentype'),
         url('fonts/ploni-black-aaa.woff2') format('woff2'),
         url('fonts/ploni-black-aaa.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================================
   Section 2: CSS Custom Properties (Design Tokens)
   All approved color values, radii, and spacing from the mockup
   ========================================================================== */

:root {
    /* ── Dark Theme (default) ── */
    --bg: #060b18;
    --bg2: #0a1628;
    --card: #0f1d32;
    --card-h: #162a48;

    /* Brand accent & glows */
    --accent: #00d4aa;
    --accent-hover: #00eabb;
    --glow: rgba(0, 212, 170, 0.15);
    --blue: #3b82f6;
    --purple: #8b5cf6;

    /* Text hierarchy – HIGHER CONTRAST */
    --tw: #ffffff;
    --tl: rgba(255, 255, 255, 0.85);
    --tm: rgba(255, 255, 255, 0.55);

    /* Semantic colors */
    --pos: #00d4aa;
    --neg: #ff5757;

    /* Borders */
    --brd: rgba(255, 255, 255, 0.1);

    /* Nav */
    --nav-bg: rgba(6, 11, 24, 0.9);
    --nav-text: #ffffff;

    /* Table */
    --table-head: #0d1a30;
    --table-row-hover: rgba(0, 212, 170, 0.06);
    --table-border: rgba(255, 255, 255, 0.06);

    /* Grid bg */
    --grid-line: rgba(255, 255, 255, 0.02);

    /* Scrollbar */
    --scroll-thumb: rgba(255, 255, 255, 0.12);
    --scroll-thumb-h: rgba(255, 255, 255, 0.25);

    /* Radii */
    --r: 16px;
    --rs: 10px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px var(--glow);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.35s;

    /* Layout */
    --max-w: 1200px;
    --pad: 48px;
    --nav-h: 72px;
}

/* ── Light Theme ── */
[data-theme="light"] {
    --bg: #f5f7fa;
    --bg2: #edf0f5;
    --card: #ffffff;
    --card-h: #f0f4f8;

    --accent: #009b7d;
    --accent-hover: #00b891;
    --glow: rgba(0, 155, 125, 0.1);

    --tw: #1a2332;
    --tl: rgba(26, 35, 50, 0.75);
    --tm: rgba(26, 35, 50, 0.5);

    --pos: #009b7d;
    --neg: #e53e3e;

    --brd: rgba(0, 0, 0, 0.08);

    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-text: #1a2332;

    --table-head: #edf0f5;
    --table-row-hover: rgba(0, 155, 125, 0.05);
    --table-border: rgba(0, 0, 0, 0.06);

    --grid-line: rgba(0, 0, 0, 0.02);

    --scroll-thumb: rgba(0, 0, 0, 0.12);
    --scroll-thumb-h: rgba(0, 0, 0, 0.25);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px var(--glow);
}


/* ==========================================================================
   Section 3: Base Reset & RTL Body
   Global reset, smooth scrolling, RTL direction, base typography
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Ploni', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--tw);
    direction: rtl;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--nav-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: 'Ploni', -apple-system, sans-serif;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: 'Ploni', -apple-system, sans-serif;
    border: none;
    outline: none;
    background: none;
}

ul, ol {
    list-style: none;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-h);
}


/* ==========================================================================
   Section 4: Background Grid Pattern
   Fixed subtle grid overlay for depth
   ========================================================================== */

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}


/* ==========================================================================
   Section 5: Navbar
   Fixed glassmorphism nav, logo with accent dot, links, CTA button
   ========================================================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 var(--pad);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--brd);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* Logo */
.logo {
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logo img {
    height: 55px;
    width: auto;
    display: none;
    border-radius: 6px;
}

/* Light theme: show light logo */
.logo .logo-light { display: block; }
.logo .logo-dark { display: none; }

/* Dark theme: show dark logo */
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: block; }

.logo a {
    color: var(--tw);
    text-decoration: none;
}

.logo a:hover {
    color: var(--tw);
}

/* Navigation links */
.nl {
    display: flex;
    gap: 2px;
    align-items: center;
}

.nl a {
    color: var(--tl);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--rs);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.nl a:hover {
    color: var(--tw);
    background: rgba(128, 128, 128, 0.1);
}

.nl a.ac {
    color: var(--accent);
    background: var(--glow);
}

/* CTA button in nav */
.nl .cta {
    background: linear-gradient(135deg, var(--accent), #00b894) !important;
    color: var(--bg) !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: var(--rs) !important;
}

.nl .cta:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
    transform: translateY(-1px);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 8px 0;
    margin-top: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--tl);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
}

.nav-dropdown-menu a:hover {
    background: var(--glow);
    color: var(--accent);
}

[data-theme="light"] .nav-dropdown-menu {
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Hamburger menu button (hidden on desktop) */
.ham,
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.ham span,
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--tw);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    display: block;
}

.ham.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ham.open span:nth-child(2) {
    opacity: 0;
}

.ham.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================================================
   Section 6: Hero Section
   Large intro with animated gradient orbs, search box, stats bar
   ========================================================================== */

.hero {
    position: relative;
    margin: 16px 24px 0;
    padding: 140px var(--pad) 80px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    background: url('../img/hero-bg.png') center/cover no-repeat;
    border-radius: 24px;
}

[data-theme="light"] .hero {
    background: url('../img/hero-bg.png') center/cover no-repeat;
    border-radius: 24px;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,11,24,0.5) 0%, rgba(6,11,24,0.75) 100%);
    z-index: 0;
    border-radius: 24px;
}

[data-theme="light"] .hero::after {
    background: linear-gradient(180deg, rgba(6,11,24,0.4) 0%, rgba(6,11,24,0.65) 100%);
}

/* Animated gradient orbs for ambience */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: fl 8s ease-in-out infinite;
}

.o1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.12), transparent 70%);
    top: -100px;
    right: -100px;
}

.o2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

.o3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes fl {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Hero badge */
.hero-badge {
    display: inline-block;
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.25);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

[data-theme="light"] .hero-badge {
    background: rgba(0, 155, 125, 0.1);
    border-color: rgba(0, 155, 125, 0.2);
}

/* Stat divider */
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .stat-divider {
    background: rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero heading */
.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Gradient highlight text */
.hl {
    background: linear-gradient(135deg, var(--accent), #00e6b8, var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero subtitle */
.hero p {
    font-size: 20px;
    color: var(--tl);
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* Search box container */
.sb {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

/* Search input - .sbox is directly on the input element */
input.sbox,
.sbox {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: 16px;
    padding: 18px 24px;
    color: var(--tw);
    font-size: 17px;
    font-family: 'Ploni', sans-serif;
    transition: all 0.3s var(--ease);
    box-sizing: border-box;
}

input.sbox:focus,
.sbox:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--glow);
}

input.sbox::placeholder,
.sbox::placeholder {
    color: var(--tm);
}

/* Legacy: if sbox wraps an input child */
.sbox input {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 20px;
    color: var(--tw);
    font-size: 16px;
    font-family: 'Ploni', sans-serif;
}

.sbox input::placeholder {
    color: var(--tm);
}

.sbox input:focus {
    outline: none;
}

/* Search button */
.sbtn {
    background: linear-gradient(135deg, var(--accent), #00b894);
    color: var(--bg);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Ploni', sans-serif;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.sbtn:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
    transform: translateY(-1px);
}

/* Stats bar */
.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.sn {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slb {
    font-size: 13px;
    color: var(--tm);
    margin-top: 4px;
}

/* ── Class Name Aliases ──
   HTML uses descriptive names, CSS uses short names.
   These map the descriptive names to identical styles. */

/* Hero content wrapper */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero subtitle */
.hero-sub {
    font-size: 20px;
    color: var(--tl);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* Stats bar — alias for .stats */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

/* Stat number — alias for .sn */
.stat-num {
    font-size: 32px;
    font-weight: 700;
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat label — alias for .slb */
.stat-label {
    font-size: 13px;
    color: var(--tm);
    margin-top: 4px;
    display: block;
}

/* Category grid — alias for .cats */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* Category card — alias for .cc */
.cat-card {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.cat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 60px var(--glow);
}

.cat-card:hover::before {
    opacity: 1;
}

/* Category icon */
.cat-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 32px;
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid var(--brd);
    transition: all 0.3s var(--ease);
    overflow: hidden;
}

.cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card:hover .cat-icon {
    background: var(--glow);
    border-color: rgba(0, 212, 170, 0.3);
}

.cat-card h3 {
    font-size: 15px;
    font-weight: 600;
}

.cat-card p {
    font-size: 12px;
    color: var(--tm);
    margin-top: 4px;
}

/* Calculator card — alias for .ck */
.calc-card {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 32px;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.calc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 170, 0.3);
}

.calc-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.calc-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.calc-card p {
    font-size: 14px;
    color: var(--tm);
    margin-bottom: 20px;
    line-height: 1.6;
}


/* ==========================================================================
   Section 7: Category Cards
   6-column grid, hover lift, gradient top border reveal
   ========================================================================== */

.cats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: var(--max-w);
    margin: -48px auto 0;
    padding: 0 var(--pad);
    position: relative;
    z-index: 2;
}

.cc {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.cc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.cc:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 60px var(--glow);
}

.cc:hover::before {
    opacity: 1;
}

/* Category icon container */
.ci {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--brd);
    transition: all 0.3s var(--ease);
}

.cc:hover .ci {
    background: var(--glow);
    border-color: rgba(0, 212, 170, 0.3);
}

.cc h3 {
    font-size: 14px;
    font-weight: 600;
}

.cc .cnt {
    font-size: 11px;
    color: var(--tm);
    margin-top: 4px;
}

.cc a {
    text-decoration: none;
    color: inherit;
}


/* ==========================================================================
   Section 8: Data Tables
   Dark card wrapper, filter buttons, DataTables overrides, rank badges,
   value badges, sparklines, tags
   ========================================================================== */

/* Section wrapper */
.sec {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 64px var(--pad);
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* Section header with title and "view all" link */
.sh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sh h2 {
    font-size: 26px;
    font-weight: 700;
}

/* View all link */
.va {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s var(--ease);
}

.va:hover {
    gap: 10px;
    color: var(--accent);
}

/* Table card container */
.tc {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    overflow: hidden;
}

/* Table filter row / category tags */
.tf {
    padding: 16px var(--pad);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: var(--max-w);
    margin: 0 auto;
    justify-content: center;
}

/* Filter buttons */
.fb {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--brd);
    background: transparent;
    color: var(--tl);
    font-size: 13px;
    font-family: 'Ploni', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.fb:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Blog search form */
.blog-search {
    max-width: 600px;
    margin: 24px auto 0;
}

.blog-search .sb {
    display: flex;
    gap: 12px;
    align-items: center;
}

.blog-search .sbox {
    flex: 1;
}

.blog-search .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.fb.active,
.fb.ac {
    background: var(--glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* Base table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tm);
    text-align: right;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--brd);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--brd);
}

tr {
    transition: all 0.2s var(--ease);
}

tbody tr:hover {
    background: var(--card-h);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Fund name cell with logo */
.fn {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--glow), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--brd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.fi .nm {
    font-weight: 600;
    font-size: 14px;
}

.fi .co {
    font-size: 12px;
    color: var(--tm);
    margin-top: 2px;
}

/* Rank badges */
.rk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.r1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.r2 {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #374151;
}

.r3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

.rn {
    background: rgba(255, 255, 255, 0.03);
    color: var(--tm);
    border: 1px solid var(--brd);
}

/* Value colors (positive / negative) */
.vp {
    color: var(--pos);
    font-weight: 600;
}

.vn {
    color: var(--neg);
    font-weight: 600;
}

/* Value badges (pill style) */
.vb {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.vb.p {
    background: rgba(0, 212, 170, 0.1);
    color: var(--pos);
}

.vb.ng {
    background: rgba(255, 87, 87, 0.1);
    color: var(--neg);
}

/* Mini sparkline bars */
.sp {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
}

.spb {
    width: 4px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.6;
    transition: all 0.2s var(--ease);
}

tr:hover .spb {
    opacity: 1;
}

/* Tag badges */
.tg {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: var(--glow);
    color: var(--accent);
}

.tg.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
}

.tg.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

/* Table scroll wrapper (for mobile) */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* DataTables overrides */
.dataTables_wrapper {
    font-family: 'Ploni', sans-serif;
}

/* Top toolbar: length left, search right */
.dataTables_wrapper .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--tm);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--tm);
    padding: 12px 20px;
    font-size: 13px;
}

/* Bottom toolbar */
.dataTables_wrapper .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--brd);
    flex-wrap: wrap;
    gap: 12px;
}

.dataTables_wrapper .dataTables_filter input {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    color: var(--tw);
    padding: 10px 16px;
    font-family: 'Ploni', sans-serif;
    font-size: 14px;
    min-width: 200px;
}

.dataTables_wrapper .dataTables_length select {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    color: var(--tw);
    padding: 8px 12px;
    font-family: 'Ploni', sans-serif;
    font-size: 14px;
    appearance: auto;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
    outline: none;
}

.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--tl) !important;
    background: transparent;
    border: 1px solid var(--brd);
    border-radius: 8px;
    padding: 6px 12px;
    margin: 0 2px;
    transition: all 0.2s var(--ease);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--tw) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--glow) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* Section divider */
.sdiv {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brd), transparent);
    max-width: var(--max-w);
    margin: 0 auto;
}


/* ==========================================================================
   Section 9: Charts
   Dark card, legend with tabs, chart area container
   ========================================================================== */

.cs {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 28px;
    min-height: 300px;
}

.cs canvas {
    max-height: 400px;
}

.chd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chd h3 {
    font-size: 18px;
    font-weight: 600;
}

.ctabs {
    display: flex;
    gap: 4px;
}

.ctb {
    padding: 7px 18px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--tm);
    font-size: 13px;
    font-family: 'Ploni', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.ctb:hover {
    color: var(--tl);
    background: rgba(255, 255, 255, 0.03);
}

.ctb.ac {
    background: var(--glow);
    color: var(--accent);
}

/* Chart area container */
.chart-a {
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: var(--rs);
}

.chart-a canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Chart legend */
.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    justify-content: center;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tl);
}

.chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}


/* ==========================================================================
   Section 10: Calculator Cards
   3-column grid, gradient top borders per card, icon, action buttons
   ========================================================================== */

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

.ck {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 32px;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

/* Gradient top border per card */
.ck::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.ck:nth-child(1)::after {
    background: linear-gradient(90deg, var(--accent), #00e6b8);
}

.ck:nth-child(2)::after {
    background: linear-gradient(90deg, var(--blue), var(--purple));
}

.ck:nth-child(3)::after {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.ck:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Calculator icon */
.cki {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--brd);
}

.ck h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ck p {
    font-size: 14px;
    color: var(--tm);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Action buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--rs);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Ploni', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}

/* Button color variants */
.bg1 {
    background: linear-gradient(135deg, var(--accent), #00b894);
    color: var(--bg);
}

.bg2 {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
}

.bg3 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Outline button variant */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--rs);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Ploni', sans-serif;
    border: 1px solid var(--brd);
    background: transparent;
    color: var(--tl);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--glow);
}

/* Dark button (for CTA sections) */
.btn-dark,
.cta-b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--rs);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    background: var(--bg);
    color: var(--tw);
    border: none;
}

.btn-dark:hover,
.cta-b:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   Section 11: Blog Cards
   3-column grid, image area, body, meta, title
   ========================================================================== */

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

.bc {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}

.bc:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.bc a {
    text-decoration: none;
    color: inherit;
}

/* Blog image placeholder */
.bimg {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    opacity: 0.5;
    background: linear-gradient(135deg, var(--bg2), var(--card));
    overflow: hidden;
}

.bimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.4s var(--ease);
}

.bc:hover .bimg img {
    transform: scale(1.05);
    opacity: 1;
}

/* Blog body */
.bbd {
    padding: 24px;
}

.bmeta {
    font-size: 12px;
    color: var(--tm);
}

.bmeta span + span::before {
    content: '\00b7';
    margin: 0 6px;
}

.bc h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    margin: 10px 0;
    transition: color 0.2s var(--ease);
}

.bc:hover h3 {
    color: var(--accent);
}

.bc .excerpt {
    font-size: 14px;
    color: var(--tm);
    line-height: 1.6;
    margin-bottom: 12px;
}

.read-more {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s var(--ease);
}

.read-more:hover {
    gap: 8px;
    color: var(--accent);
}

/* Blog card - alternative class used in templates */
.blog-card {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card:hover h3 {
    color: var(--accent);
}

.blog-img {
    height: 180px;
    background: linear-gradient(135deg, var(--bg2), var(--card));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-body {
    padding: 24px;
}

.blog-cat {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    margin: 10px 0;
    transition: color 0.2s var(--ease);
}

.blog-card p {
    font-size: 14px;
    color: var(--tm);
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-date {
    font-size: 12px;
    color: var(--tm);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--tm);
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}


/* ==========================================================================
   Section 12: CTA Section
   Accent gradient background, dark button, decorative pseudo-element
   ========================================================================== */

.cta-s,
.cta-section {
    background: linear-gradient(135deg, var(--accent), #00b894);
    border-radius: 24px;
    padding: 56px var(--pad) 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: var(--max-w);
    margin: 0 auto 48px;
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-s::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    border-radius: 50%;
}

.cta-s h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--bg);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-s p {
    font-size: 18px;
    color: rgba(6, 11, 24, 0.7);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cta-b {
    display: inline-block;
    background: var(--bg);
    color: var(--accent);
    padding: 14px 36px;
    border-radius: var(--rs);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Ploni', sans-serif;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    position: relative;
    z-index: 1;
}

.cta-b:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: var(--accent);
}


/* Fund links grid ("כל הקופות בקטגוריה") */
.fund-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.fund-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    color: var(--tl);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s var(--ease);
}

.fund-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--glow);
}

.fund-links .fund-link-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}


/* ==========================================================================
   Section 12b: Static Pages (About, Terms, Privacy, etc.)
   ========================================================================== */

.static-page {
    max-width: 800px;
}

.static-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--tw);
}

.page-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--tl);
}

.page-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--tw);
}

.page-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--tw);
}

.page-content p {
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin: 16px 0;
    padding-right: 24px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.page-content table th,
.page-content table td {
    padding: 12px 16px;
    border: 1px solid var(--brd);
    text-align: right;
}

.page-content table th {
    background: var(--bg2);
    font-weight: 600;
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--accent-hover);
}


/* ==========================================================================
   Section 13: Footer
   4-column grid, link lists, bottom bar
   ========================================================================== */

footer {
    background: #0d1a2d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 64px var(--pad) 32px;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
}

footer p,
footer .fgrid p {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
}

/* Social icons in footer */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

[data-theme="light"] footer {
    background: #0d1a2d;
    color: rgba(255, 255, 255, 0.7);
}

.fgrid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.fgrid .logo {
    margin-bottom: 16px;
}

.fgrid .logo img {
    height: 80px;
}

.fgrid p {
    font-size: 14px;
    color: var(--tm);
    line-height: 1.7;
}

footer h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 8px;
}

footer a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s var(--ease);
}

footer a:hover {
    color: var(--accent) !important;
}

.fbot {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--brd);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--tm);
}

.fbot a {
    color: var(--tm);
    transition: color 0.2s var(--ease);
}

.fbot a:hover {
    color: var(--accent);
}


/* ==========================================================================
   Section 14: Fund Detail Page
   Header card, chart sections, metrics grid, breadcrumbs
   ========================================================================== */

/* Fund detail header */
.fund-header {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 36px;
    margin-bottom: 24px;
}

.fund-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.fund-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fund-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--glow), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--brd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.fund-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.fund-company {
    font-size: 15px;
    color: var(--tm);
}

.fund-actions {
    display: flex;
    gap: 12px;
}

/* Fund stats row */
.fund-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--brd);
}

.fund-stat {
    text-align: center;
}

.fund-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.fund-stat-label {
    font-size: 13px;
    color: var(--tm);
}

/* Fund metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.metric-card {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 24px;
}

.metric-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--brd);
    font-size: 14px;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--tm);
}

.metric-value {
    font-weight: 600;
}

/* Fund chart section */
.fund-chart {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 28px;
    margin-bottom: 24px;
}

.fund-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Performance table on fund page */
.perf-table {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 24px;
}

.perf-table th {
    text-align: center;
}

.perf-table td {
    text-align: center;
}

/* Related funds */
.related-funds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-fund-card {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 20px;
    transition: all 0.3s var(--ease);
}

.related-fund-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-2px);
}


/* ==========================================================================
   Section 15: Blog Post Page
   Intro box, quick answer, blockquote, FAQ accordion, summary box
   ========================================================================== */

/* Blog article layout */
.article-layout {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 32px;
}

.article-header h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--tm);
    margin-bottom: 24px;
}

.article-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--glow), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--brd);
}

/* Blog intro box */
.intro-box {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 24px 28px;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--tl);
}

/* Quick answer box */
.quick-answer {
    background: var(--card);
    border-right: 4px solid var(--accent);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.quick-answer h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--tl);
}

/* Article prose */
.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--tl);
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    list-style: none;
    margin-bottom: 20px;
    padding-right: 20px;
}

.article-content li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--tl);
}

.article-content li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.article-content ol {
    counter-reset: list-counter;
}

.article-content ol li {
    counter-increment: list-counter;
}

.article-content ol li::before {
    content: counter(list-counter);
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

/* Blockquote */
.article-content blockquote {
    background: var(--bg2);
    border-right: 4px solid var(--purple);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 24px 28px;
    margin: 24px 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--tl);
    font-style: normal;
}

.article-content blockquote p {
    margin-bottom: 0;
}

/* FAQ accordion */
.faq-list {
    margin: 24px 0;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}

.faq-item.active {
    border-color: rgba(0, 212, 170, 0.3);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s var(--ease);
}

.faq-q:hover {
    background: var(--card-h);
}

.faq-q .arrow {
    font-size: 20px;
    color: var(--tm);
    transition: transform 0.3s var(--ease);
}

.faq-item.active .faq-q .arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq-item.active .faq-a {
    max-height: 500px;
}

.faq-a-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--tl);
}

/* Summary box */
.summary-box {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: var(--r);
    padding: 28px;
    margin: 32px 0;
}

.summary-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.summary-box ul {
    list-style: none;
}

.summary-box li {
    padding: 8px 0;
    padding-right: 24px;
    position: relative;
    font-size: 15px;
    color: var(--tl);
}

.summary-box li::before {
    content: '\2713';
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Article sidebar (TOC) */
.article-toc {
    position: sticky;
    top: 100px;
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 24px;
}

.article-toc h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--tm);
}

.article-toc a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--tm);
    border-radius: 6px;
    transition: all 0.2s var(--ease);
}

.article-toc a:hover,
.article-toc a.active {
    color: var(--accent);
    background: var(--glow);
}

/* Tags in blog */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--brd);
}


/* ==========================================================================
   Section 16: Compare Page
   Multi-column comparison layout, comparison table cells
   ========================================================================== */

.compare-header {
    text-align: center;
    padding: 120px var(--pad) 48px;
}

.compare-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.compare-header p {
    font-size: 18px;
    color: var(--tl);
}

/* Compare selector bar */
.compare-selector {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.compare-selector select {
    flex: 1;
    min-width: 200px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    color: var(--tw);
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Ploni', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

.compare-selector select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.compare-vs {
    font-size: 16px;
    font-weight: 700;
    color: var(--tm);
}

/* Comparison table */
.compare-table {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    overflow: hidden;
}

.compare-table th {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--tw);
    padding: 20px 16px;
}

.compare-table th:first-child {
    text-align: right;
    color: var(--tm);
    font-weight: 600;
    font-size: 13px;
}

.compare-table td {
    text-align: center;
    padding: 16px;
}

.compare-table td:first-child {
    text-align: right;
    color: var(--tm);
    font-size: 13px;
}

.compare-table .winner {
    background: rgba(0, 212, 170, 0.05);
    color: var(--pos);
    font-weight: 600;
}

.compare-table .loser {
    color: var(--neg);
}

/* Compare chart section */
.compare-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}


/* ==========================================================================
   Section 17: Calculator Form Styles
   Input groups, range sliders, result displays
   ========================================================================== */

.calc-page {
    padding: 120px var(--pad) 64px;
}

.calc-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.calc-page .subtitle {
    font-size: 16px;
    color: var(--tl);
    margin-bottom: 32px;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Calculator form card */
.calc-form {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 32px;
}

.calc-form h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Input group */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--tl);
    margin-bottom: 8px;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group select {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    padding: 12px 16px;
    color: var(--tw);
    font-size: 15px;
    font-family: 'Ploni', sans-serif;
    transition: all 0.2s var(--ease);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.input-group .hint {
    font-size: 12px;
    color: var(--tm);
    margin-top: 6px;
}

/* Range slider */
.range-group {
    margin-bottom: 24px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.range-header label {
    font-size: 14px;
    font-weight: 500;
    color: var(--tl);
}

.range-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #00b894);
    cursor: pointer;
    border: 3px solid var(--card);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #00b894);
    cursor: pointer;
    border: 3px solid var(--card);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

/* Calculator results card */
.calc-results {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 32px;
}

.calc-results h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.result-main {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: var(--r);
    margin-bottom: 24px;
}

.result-main .amount {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.result-main .label {
    font-size: 14px;
    color: var(--tm);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.result-detail {
    background: var(--bg2);
    border-radius: var(--rs);
    padding: 16px;
    text-align: center;
}

.result-detail .value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.result-detail .label {
    font-size: 12px;
    color: var(--tm);
}


/* ==========================================================================
   Section 18: Contact Form
   Dark card inputs, textarea, submit button
   ========================================================================== */

.contact-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 120px var(--pad) 64px;
}

.contact-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-section .subtitle {
    font-size: 16px;
    color: var(--tl);
    margin-bottom: 32px;
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 36px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--tl);
    margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    padding: 12px 16px;
    color: var(--tw);
    font-size: 15px;
    font-family: 'Ploni', sans-serif;
    transition: all 0.2s var(--ease);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.contact-form textarea {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    padding: 12px 16px;
    color: var(--tw);
    font-size: 15px;
    font-family: 'Ploni', sans-serif;
    min-height: 140px;
    resize: vertical;
    transition: all 0.2s var(--ease);
}

.contact-form .submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #00b894);
    color: var(--bg);
    border: none;
    padding: 14px 28px;
    border-radius: var(--rs);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Ploni', sans-serif;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.contact-form .submit-btn:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
    transform: translateY(-1px);
}


/* ==========================================================================
   Section 19: Pagination
   Page number buttons, active/hover states
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--rs);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    border: 1px solid var(--brd);
    color: var(--tl);
    background: transparent;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--tw);
    border-color: rgba(255, 255, 255, 0.1);
}

.pagination .active {
    background: var(--glow);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
}

.pagination .dots {
    border: none;
    color: var(--tm);
    min-width: 30px;
}

.pagination .prev,
.pagination .next {
    font-size: 18px;
}

.pagination .disabled {
    opacity: 0.3;
    pointer-events: none;
}


/* ==========================================================================
   Section 20: Breadcrumbs
   Inline list with separator
   ========================================================================== */

nav.breadcrumbs,
.breadcrumbs {
    /* Override inherited nav{} fixed positioning */
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 13px !important;
    color: var(--tm) !important;
    margin: 4px 0 8px !important;
    direction: rtl !important;
}

.breadcrumbs a {
    color: var(--tm);
    text-decoration: none;
    transition: color 0.2s var(--ease);
    font-size: 13px;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    color: var(--tm);
    opacity: 0.7;
    font-size: 13px;
}


/* ==========================================================================
   Section 21: Search Autocomplete Dropdown
   Dark dropdown below search input, result items with hover
   ========================================================================== */

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-header {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tm);
    border-bottom: 1px solid var(--brd);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s var(--ease);
}

.search-item:hover {
    background: var(--card-h);
}

.search-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-detail {
    font-size: 12px;
    color: var(--tm);
    margin-top: 2px;
}

.search-item-badge {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.search-no-results {
    padding: 32px 16px;
    text-align: center;
    color: var(--tm);
    font-size: 14px;
}

.search-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--brd);
    text-align: center;
}

.search-footer a {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}


/* ==========================================================================
   Section 22: Loading States
   Skeleton screens (animated gradient), spinners
   ========================================================================== */

/* Skeleton loading */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border-radius: var(--rs);
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    animation: skeleton-shine 1.8s infinite;
}

@keyframes skeleton-shine {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-title {
    height: 24px;
    border-radius: 4px;
    margin-bottom: 16px;
    width: 50%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.skeleton-image {
    height: 180px;
    border-radius: var(--r) var(--r) 0 0;
}

.skeleton-card {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    animation: skeleton-shine 1.8s infinite;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--brd);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 11, 24, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    border-radius: 2px;
    transition: width 0.3s var(--ease);
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s var(--ease) forwards;
}

/* Staggered fade in for lists */
.stagger-in > * {
    opacity: 0;
    animation: fadeIn 0.5s var(--ease) forwards;
}

.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }


/* ==========================================================================
   Section 23: Responsive Breakpoints
   1200px, 1024px, 768px, 480px
   ========================================================================== */

/* ---- 1200px: Reduce padding, 4-col categories ---- */
@media (max-width: 1200px) {
    :root {
        --pad: 32px;
    }

    .cats,
    .cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero h1 {
        font-size: 48px;
    }

    .fgrid {
        gap: 32px;
    }

    .fund-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .compare-charts {
        grid-template-columns: 1fr;
    }
}

/* ---- 1024px: 3-col categories, 2-col blog/calculators ---- */
@media (max-width: 1024px) {
    .cats,
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blg {
        grid-template-columns: repeat(2, 1fr);
    }

    .cg {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p,
    .hero-sub {
        font-size: 18px;
    }

    .stats,
    .stats-bar {
        gap: 32px;
    }

    .sn,
    .stat-num {
        font-size: 28px;
    }

    .related-funds {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-layout {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 768px: Hamburger menu, 2-col categories, mobile tables ---- */
@media (max-width: 768px) {
    :root {
        --pad: 20px;
    }

    /* Reduce nav height on mobile */
    :root {
        --nav-h: 80px;
    }

    /* Mobile nav: hamburger right, theme left, logo center */
    nav:not(.breadcrumbs) {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav:not(.breadcrumbs) .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: 50%;
    }

    .logo img {
        height: 65px;
    }

    .ham,
    .hamburger {
        display: flex;
        order: 1;
    }

    .theme-toggle {
        order: 3;
    }

    .nl {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg2);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
        border-left: 1px solid var(--brd);
        z-index: 999;
    }

    .nl.open {
        transform: translateX(0);
    }

    .nl a {
        padding: 12px 16px;
        font-size: 16px;
    }

    .nl .cta {
        margin-top: 16px;
        text-align: center;
    }

    /* Overlay when menu open */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero */
    .hero {
        margin: 12px 12px 0;
        padding: 100px 20px 60px;
        border-radius: 18px;
    }

    .hero::after {
        border-radius: 18px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Categories */
    .cats,
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cc,
    .cat-card {
        padding: 20px 12px;
    }

    /* Tables: horizontal scroll */
    .table-scroll {
        margin: 0 -20px;
        padding: 0 20px;
    }

    .tc {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper .top,
    .dataTables_wrapper .bottom {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .dataTables_wrapper .dataTables_filter input {
        max-width: 150px;
    }

    table {
        min-width: 600px;
    }

    /* Blog single column fallback */
    .blg {
        grid-template-columns: repeat(2, 1fr);
    }

    .cg {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats,
    .stats-bar {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat {
        min-width: 120px;
    }

    .hero p,
    .hero-sub {
        font-size: 16px;
    }

    /* Footer */
    .fgrid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .fbot {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Fund detail */
    .fund-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fund-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-funds {
        grid-template-columns: 1fr;
    }

    /* Compare */
    .compare-selector {
        flex-direction: column;
    }

    .compare-selector select {
        width: 100%;
    }

    /* Contact */
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    /* CTA section */
    .cta-s {
        padding: 40px var(--pad);
    }

    .cta-s h2 {
        font-size: 26px;
    }

    /* Blog article */
    .article-header h1 {
        font-size: 28px;
    }

    .article-toc {
        display: none;
    }
}

/* ---- 480px: 1-col everything, smaller text ---- */
@media (max-width: 480px) {
    :root {
        --pad: 16px;
    }

    .hero {
        padding: 100px var(--pad) 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .sbox {
        flex-direction: column;
        padding: 8px;
    }

    .sbox input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .sbtn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .cats,
    .cat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cc,
    .cat-card {
        padding: 16px 10px;
    }

    .ci,
    .cat-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .sh h2 {
        font-size: 22px;
    }

    .sn,
    .stat-num {
        font-size: 24px;
    }

    .hero-sub {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .blg {
        grid-template-columns: 1fr;
    }

    .fgrid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Single-column stats */
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* Pagination compact */
    .pagination {
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    /* Fund detail */
    .fund-name {
        font-size: 22px;
    }

    .fund-stat-value {
        font-size: 20px;
    }

    .fund-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Calculator results */
    .result-main .amount {
        font-size: 32px;
    }

    .result-details {
        grid-template-columns: 1fr;
    }

    /* Compare header */
    .compare-header h1 {
        font-size: 28px;
    }

    /* Article */
    .article-header h1 {
        font-size: 24px;
    }

    .intro-box,
    .quick-answer,
    .summary-box {
        padding: 20px;
    }

    /* CTA */
    .cta-s h2 {
        font-size: 22px;
    }

    .cta-s p {
        font-size: 15px;
    }

    .cta-b {
        padding: 12px 28px;
        font-size: 14px;
    }

    footer {
        padding: 40px var(--pad) 24px;
    }

    nav {
        padding: 0 var(--pad);
    }

    .logo img {
        height: 55px;
    }

    .fgrid .logo img {
        height: 50px;
    }
}


/* ==========================================================================
   Section 24: Utility Classes
   Text alignment, spacing, visibility, flex helpers
   ========================================================================== */

/* Text alignment */
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-center { text-align: center; }

/* Text colors */
.text-accent { color: var(--accent); }
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-pos { color: var(--pos); }
.text-neg { color: var(--neg); }
.text-muted { color: var(--tm); }
.text-light { color: var(--tl); }

/* Font weights */
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* Font sizes */
.fs-xs { font-size: 11px; }
.fs-sm { font-size: 13px; }
.fs-md { font-size: 15px; }
.fs-lg { font-size: 18px; }
.fs-xl { font-size: 24px; }
.fs-2xl { font-size: 32px; }

/* Spacing - margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* Spacing - padding */
.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Flex utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* Width */
.w-full { width: 100%; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1024px; }

/* Visibility toggles */
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Z-index */
.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }

/* Border radius */
.rounded { border-radius: var(--rs); }
.rounded-lg { border-radius: var(--r); }
.rounded-full { border-radius: 9999px; }

/* Card style utility */
.card {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
}

/* Truncate text */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Desktop / mobile visibility */
.show-mobile { display: none; }
.hide-mobile { display: block; }

@media (max-width: 768px) {
    .show-mobile { display: block; }
    .hide-mobile { display: none; }
    .show-mobile-flex { display: flex; }
}

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.15);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--tw);
    transition: all 0.3s var(--ease);
    margin-inline-start: 12px;
    flex-shrink: 0;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: rgba(0, 212, 170, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: inherit;
    stroke: currentColor;
    fill: currentColor;
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.theme-toggle .icon-sun {
    fill: none;
    stroke: currentColor;
}

.theme-toggle .icon-moon {
    fill: currentColor;
    stroke: none;
}

.theme-toggle:hover svg {
    color: var(--accent);
}

/* Sun icon visible in dark mode, moon in light mode */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }


/* ==========================================================================
   Light Theme Overrides
   ========================================================================== */

[data-theme="light"] .bg-grid {
    opacity: 0.5;
}

[data-theme="light"] nav {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nl a:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nl a.ac {
    color: var(--accent);
}

[data-theme="light"] .nl a.cta {
    background: var(--accent);
    color: #fff;
}

[data-theme="light"] .nl a.cta:hover {
    background: var(--accent-hover);
    color: #fff;
}

[data-theme="light"] .orb {
    opacity: 0.3;
}

/* Hero always uses white text (dark image background) */
[data-theme="light"] .hero h1 {
    color: #ffffff;
}

[data-theme="light"] .hero h1 span,
[data-theme="light"] .hero .hl {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #00d4aa, #00e6b8, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .hero .hero-sub {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .hero .stat-num {
    background: linear-gradient(135deg, #00d4aa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .hero .stat-divider {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .hero .hero-badge {
    background: rgba(0, 212, 170, 0.15);
    border-color: rgba(0, 212, 170, 0.3);
    color: #00d4aa;
}

[data-theme="light"] .hero input.sbox {
    background: rgba(255, 255, 255, 0.95);
    color: #1a2332;
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .search-box input {
    background: var(--card);
    color: var(--tw);
    border-color: var(--brd);
}

[data-theme="light"] .search-box input::placeholder {
    color: var(--tm);
}

[data-theme="light"] .data-card,
[data-theme="light"] .calc-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .fund-card,
[data-theme="light"] .card {
    background: var(--card);
    border: 1px solid var(--brd);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .data-card:hover,
[data-theme="light"] .calc-card:hover,
[data-theme="light"] .blog-card:hover,
[data-theme="light"] .fund-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

[data-theme="light"] table thead {
    background: var(--table-head);
}

[data-theme="light"] table tbody tr:hover {
    background: var(--table-row-hover);
}

[data-theme="light"] table td,
[data-theme="light"] table th {
    border-bottom-color: var(--table-border);
}

[data-theme="light"] .cat-card {
    background: var(--card);
    border: 1px solid var(--brd);
}

[data-theme="light"] .cat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .stat-bar {
    background: var(--bg2);
}

[data-theme="light"] footer {
    background: #1a2332;
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] footer a {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] footer a:hover {
    color: var(--accent);
}

[data-theme="light"] footer .foot-b {
    color: rgba(255, 255, 255, 0.4);
}

/* Category quick stats */
.cat-quick-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
}

.cqs-item {
    text-align: center;
}

.cqs-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.cqs-label {
    font-size: 13px;
    color: var(--tm);
    margin-top: 4px;
}

/* Content highlight box */
.content-highlight-box {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.06), rgba(59, 130, 246, 0.04));
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: var(--r);
    padding: 28px;
    margin: 24px 0;
}

.content-highlight-box h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--tw);
}

.content-highlight-box ol,
.content-highlight-box ul {
    padding-right: 20px;
}

.content-highlight-box li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.cat-rich-content {
    max-width: 100%;
}

/* Scroll-to-table CTA */
.cta-to-table {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), #00b894);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin: 16px 0 8px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.cta-to-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 170, 0.4);
    color: #fff;
}

@media (max-width: 768px) {
    .cat-quick-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .cqs-item {
        min-width: 100px;
    }
}

[data-theme="light"] .cta-s {
    background: linear-gradient(135deg, var(--card) 0%, var(--bg2) 100%);
}

[data-theme="light"] .breadcrumbs {
    background: transparent !important;
}

[data-theme="light"] .tab-btn.active,
[data-theme="light"] .tab-btn:hover {
    background: var(--accent);
    color: #fff;
}

[data-theme="light"] .chart-container {
    background: var(--card);
    border: 1px solid var(--brd);
}

[data-theme="light"] .badge {
    background: rgba(0, 155, 125, 0.1);
    color: var(--accent);
}

[data-theme="light"] .autocomplete-results {
    background: var(--card);
    border: 1px solid var(--brd);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .autocomplete-results li:hover,
[data-theme="light"] .autocomplete-results li.active {
    background: var(--bg2);
}

[data-theme="light"] .faq-q {
    background: var(--card);
    border: 1px solid var(--brd);
}

[data-theme="light"] .faq-q:hover {
    border-color: var(--accent);
}


/* ==========================================================================
   Blog Post Sections (Ezweb-style structured content)
   ========================================================================== */

.blog-post {
    max-width: 820px;
}

.blog-post h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Table of contents / sidebar */
.post-toc {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.post-toc h3 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.post-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-toc li {
    padding: 6px 0;
    border-bottom: 1px solid var(--brd);
}

.post-toc li:last-child {
    border-bottom: none;
}

.post-toc a {
    color: var(--tl);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s var(--ease);
}

.post-toc a:hover {
    color: var(--accent);
}

/* Post hero image */
.post-hero {
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 24px;
    line-height: 0;
}

.post-hero img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Post meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--tm);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.meta-category {
    background: var(--glow);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
}

/* Post intro */
.post-intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--tl);
    border-right: 4px solid var(--accent);
    padding-right: 20px;
    margin-bottom: 32px;
    font-weight: 300;
}

/* Quick Answer box */
.post-quick-answer {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: var(--r);
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.qa-icon {
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 4px;
}

.qa-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.qa-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--tl);
}

/* Main post content */
.post-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--tl);
    margin-bottom: 40px;
}

.post-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--tw);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--glow);
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--tw);
    margin: 32px 0 12px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-right: 24px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.post-content table th,
.post-content table td {
    padding: 12px 16px;
    border: 1px solid var(--brd);
    text-align: right;
}

.post-content table th {
    background: var(--bg2);
    font-weight: 600;
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
}

.post-content strong {
    color: var(--tw);
    font-weight: 600;
}

/* System Quote (recommendation) */
.system-quote {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--r);
    padding: 24px;
    margin: 32px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.quote-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.quote-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 8px;
}

.quote-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--tl);
}

/* Infographic figure */
.post-infographic {
    margin: 32px 0;
    text-align: center;
}

.post-infographic img {
    max-width: 100%;
    border-radius: var(--r);
    border: 1px solid var(--brd);
}

.post-infographic figcaption {
    font-size: 13px;
    color: var(--tm);
    margin-top: 8px;
}

/* Post FAQ */
section.post-faq,
.post-faq {
    overflow: hidden;
}

.post-faq h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.post-faq .faq-item {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    margin-bottom: 8px;
    overflow: hidden;
}

.post-faq .faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tw);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Ploni', sans-serif;
}

.post-faq .faq-q::after {
    content: '+';
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.3s var(--ease);
}

.post-faq .faq-item.open .faq-q::after {
    content: '−';
}

.post-faq .faq-q:hover {
    background: var(--bg2);
}

.post-faq .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.post-faq .faq-item.open .faq-a {
    max-height: 1000px;
}

.post-faq .faq-a p,
.post-faq .faq-a div {
    padding: 4px 20px 16px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--tl);
    max-width: 100%;
}

/* Post Summary */
.post-summary {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 24px;
    margin: 32px 0;
}

.post-summary h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

.post-summary p,
.post-summary ul {
    font-size: 15px;
    line-height: 1.8;
    color: var(--tl);
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--brd);
}

.tags-label {
    font-size: 14px;
    color: var(--tm);
    font-weight: 600;
}

.tag-link {
    background: var(--bg2);
    color: var(--tl);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--brd);
    transition: all 0.2s var(--ease);
}

.tag-link:hover,
.tag-link.active {
    background: var(--glow);
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .blog-post h1 {
        font-size: 26px;
    }

    .post-quick-answer,
    .system-quote {
        flex-direction: column;
        gap: 8px;
    }

    .post-intro {
        font-size: 16px;
        padding-right: 16px;
    }
}


/* ==========================================================================
   Font Size Scale-Up (global)
   Bumps all small text to be more readable
   ========================================================================== */

.hero p,
.sec p,
.cat-card p,
.calc-card p,
.fund-detail p,
.blog-card p,
.post-content p,
.about p,
.terms p,
.privacy p,
p {
    font-size: 17px;
    line-height: 1.75;
}

.stat-item .num {
    font-size: 22px !important;
}

.stat-item .label {
    font-size: 14px !important;
}

.sec h2 {
    font-size: 34px !important;
}

.cat-card h3,
.calc-card h3 {
    font-size: 20px !important;
}

table th {
    font-size: 14px !important;
}

table td {
    font-size: 15px !important;
}

.fund-name {
    font-size: 16px !important;
}


/* Print styles */
@media print {
    nav, .bg-grid, .orb, footer, .cta-s, .theme-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        direction: rtl;
    }

    .sec {
        padding: 16px 0;
    }

    a {
        color: #000;
    }
}


/* ==========================================================================
   Accessibility Widget
   ========================================================================== */

/* Scroll to top button */
.stt {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card);
    color: var(--tw);
    border: 1px solid var(--brd);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s var(--ease);
    pointer-events: none;
}

.stt.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.stt:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Alternating text/image sections (zigzag layout) */
.content-row {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 48px 0;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.content-row-text {
    flex: 1;
    min-width: 0;
}

.content-row-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--tw);
    margin-bottom: 16px;
}

.content-row-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--tw);
    margin: 24px 0 12px;
}

.content-row-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--tl);
    margin-bottom: 12px;
}

.content-row-text ul,
.content-row-text ol {
    padding-right: 20px;
    margin: 12px 0;
}

.content-row-text li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content-row-image {
    flex: 0 0 400px;
    max-width: 400px;
}

.content-row-image img {
    width: 100%;
    border-radius: var(--r);
    box-shadow: var(--shadow-md);
}

/* Table of contents / anchor links */
.page-toc {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 24px 28px;
    margin: 24px 0 40px;
}

.page-toc h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--tw);
}

.page-toc ol {
    list-style: decimal;
    padding-right: 24px;
    margin: 0;
    columns: 2;
    column-gap: 32px;
}

.page-toc li {
    padding: 6px 0;
    border-bottom: 1px solid var(--brd);
    break-inside: avoid;
}

.page-toc li:last-child {
    border-bottom: none;
}

.page-toc a {
    color: var(--tl);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.page-toc a:hover {
    color: var(--accent);
}

/* Anchor offset for fixed nav */
.content-anchor {
    scroll-margin-top: 100px;
}

/* Highlight numbered list */
.numbered-highlights {
    counter-reset: highlight;
    list-style: none;
    padding: 0;
}

.numbered-highlights li {
    counter-increment: highlight;
    padding: 16px 20px 16px 0;
    border-bottom: 1px solid var(--brd);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.numbered-highlights li::before {
    content: counter(highlight);
    background: var(--accent);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .content-row {
        flex-direction: column !important;
        gap: 24px;
    }

    .content-row-image {
        flex: none;
        max-width: 100%;
    }

    .page-toc ol {
        columns: 1;
    }
}


.a11y-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--ease);
}

.a11y-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

.a11y-widget {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 10001;
    width: 260px;
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    display: none;
}

.a11y-widget.open {
    display: flex !important;
    overflow: hidden;
}

.a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.a11y-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.a11y-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
}

.a11y-body button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: right;
    background: none;
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    color: var(--tw);
    font-family: 'Ploni', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.a11y-body button:hover {
    background: var(--glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* Accessibility mode overrides */
body.a11y-high-contrast {
    filter: contrast(1.4);
}

body.a11y-links-highlight a {
    text-decoration: underline !important;
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px;
}

body.a11y-readable-font,
body.a11y-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.a11y-text-spacing,
body.a11y-text-spacing * {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
    line-height: 2 !important;
}

body.a11y-big-cursor,
body.a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%2300d4aa' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 16 16, auto !important;
}

/* Font scaling for accessibility */
body.a11y-font-plus1 * { font-size: calc(1em * 1.15) !important; }
body.a11y-font-plus2 * { font-size: calc(1em * 1.3) !important; }
body.a11y-font-plus3 * { font-size: calc(1em * 1.45) !important; }
body.a11y-font-plus4 * { font-size: calc(1em * 1.6) !important; }
body.a11y-font-minus1 * { font-size: calc(1em * 0.9) !important; }
body.a11y-font-minus2 * { font-size: calc(1em * 0.8) !important; }


/* ==========================================================================
   Lead Capture Form
   Reusable section for collecting prospect details (homepage & inner pages)
   ========================================================================== */

.lead-section {
    background: linear-gradient(135deg, var(--card) 0%, var(--bg2) 100%);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 48px var(--pad);
    margin: 48px auto;
    max-width: var(--max-w);
    position: relative;
    overflow: hidden;
}

.lead-section::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    pointer-events: none;
}

.lead-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.lead-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--tw);
    text-align: center;
    margin-bottom: 8px;
}

.lead-subtitle {
    font-size: 16px;
    color: var(--tl);
    text-align: center;
    margin-bottom: 32px;
}

/* Form layout */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: right;
}

.lead-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.lead-field {
    display: flex;
    flex-direction: column;
}

.lead-field.full {
    grid-column: 1 / -1;
}

.lead-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--tl);
    margin-bottom: 6px;
}

.lead-field label .required {
    color: var(--neg);
}

.lead-field input,
.lead-field select {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--tw);
    font-family: 'Ploni', sans-serif;
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.lead-field input::placeholder {
    color: var(--tm);
}

.lead-field input:focus,
.lead-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.lead-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2399aab5'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px;
    cursor: pointer;
}

/* Submit button - full width */
.lead-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
    cursor: pointer;
    border: none;
    font-family: 'Ploni', sans-serif;
}

.lead-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error message */
.lead-error {
    background: rgba(255, 87, 87, 0.12);
    border: 1px solid var(--neg);
    border-radius: var(--rs);
    color: var(--neg);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

/* Privacy note */
.lead-privacy {
    text-align: center;
    font-size: 12px;
    color: var(--tm);
    margin-top: 16px;
}

/* Success message */
.lead-success {
    text-align: center;
    padding: 32px 0;
}

.lead-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #00b894);
    color: var(--bg);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.lead-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--tw);
    margin-bottom: 8px;
}

.lead-success p {
    font-size: 16px;
    color: var(--tl);
    margin-bottom: 24px;
}

/* Light theme overrides */
[data-theme="light"] .lead-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .lead-field input,
[data-theme="light"] .lead-field select {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
}

/* Responsive: stack fields on mobile */
@media (max-width: 600px) {
    .lead-section {
        padding: 32px 20px;
        margin: 32px 16px;
    }

    .lead-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lead-field {
        margin-bottom: 16px;
    }

    .lead-title {
        font-size: 22px;
    }

    .lead-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

/* Inline lead form variant (smaller, embedded inside content areas) */
.lead-inline {
    padding: 32px;
    margin: 32px 0;
}

.lead-inline .lead-title {
    font-size: 22px;
}

.lead-inline .lead-row {
    gap: 12px;
    margin-bottom: 12px;
}


/* ==========================================================================
   Compare Page
   ========================================================================== */

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

.compare-slot-inner {
    background: var(--card);
    border: 2px dashed var(--brd);
    border-radius: var(--r);
    padding: 24px 16px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    transition: all 0.3s var(--ease);
}

.compare-slot-inner:hover {
    border-color: var(--accent);
}

.slot-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--tm);
}

.compare-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    background: var(--bg);
    color: var(--tw);
    font-family: 'Ploni', sans-serif;
    font-size: 14px;
    text-align: center;
}

.compare-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.compare-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 4px;
}

.cd-item {
    padding: 10px 16px;
    cursor: pointer;
    text-align: right;
    transition: background 0.2s;
    border-bottom: 1px solid var(--brd);
}

.cd-item:last-child {
    border-bottom: none;
}

.cd-item:hover {
    background: var(--glow);
}

.cd-item strong {
    display: block;
    font-size: 14px;
    color: var(--tw);
}

.cd-item small {
    font-size: 12px;
    color: var(--tm);
}

.slot-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.slot-selected .slot-name {
    font-size: 14px;
    color: var(--tw);
    text-align: center;
}

.slot-selected .slot-company {
    font-size: 12px;
    color: var(--tm);
}

.slot-remove {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--neg);
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 12px 16px;
    border: 1px solid var(--brd);
    text-align: center;
}

.compare-table th {
    background: var(--bg2);
    font-weight: 600;
    font-size: 14px;
}

/* Popular comparison cards */
.popular-comparisons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pop-compare-card {
    background: var(--card);
    border: 1px solid var(--brd);
    border-radius: var(--r);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease);
}

.pop-compare-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.pop-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.pop-compare-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pop-compare-card p {
    font-size: 13px;
    color: var(--tm);
}

@media (max-width: 768px) {
    .compare-grid {
        grid-template-columns: 1fr 1fr;
    }

    .popular-comparisons {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }

    .popular-comparisons {
        grid-template-columns: 1fr;
    }
}
