/* AI Tools Directory — Theme 1 */
/* Premium Design — CSS variables from admin theme settings */

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

:root {
    --primary: #487FFF;
    --primary-dark: #3366CC;
    --secondary: #6366f1;
    --accent: #f59e0b;
    --success: #059669;
    --danger: #DC2626;
    --warning: #D97706;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --border: #E2E8F0;
    --text: #1E293B;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --heading-color: #0f172a;
    --link-color: #487FFF;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.06);
}

body {
    font-family: var(--body-font, 'Inter'), -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: var(--base-font-size, 15px);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Ad Slots ---- */
.ad-slot { text-align: center; padding: 8px 0; background: #F1F5F9; }
.ad-slot:empty { display: none; padding: 0; }

/* ---- Navbar ---- */
.navbar {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 6px 28px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08); }
.navbar .container {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 0;
}
/* Logo — far left */
.navbar-brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: -0.3px;
    margin-right: 8px;
}
.navbar-brand:hover { color: var(--heading-color); opacity: 0.85; }
.navbar-brand .brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
}
/* Nav — center */
.navbar-nav {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.navbar-nav li { list-style: none; }
.navbar-nav a {
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.navbar-nav a:hover { color: var(--primary); background: rgba(71,127,255,0.05); }
.navbar .search-form {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 12px;
    gap: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}
.navbar .search-form:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(71,127,255,0.08);
}
.search-form input {
    border: none;
    background: none;
    font-size: 14px;
    outline: none;
    width: 200px;
    color: var(--text);
}
.search-form button {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    transition: color 0.2s;
}
.search-form button:hover { color: var(--primary); }

/* ---- Navbar Live Search Dropdown ---- */
.nav-search-wrap {
    position: relative;
    margin-left: 8px;
    flex-shrink: 0;
}
.nav-search-wrap .search-form {
    margin-left: 0;
}
.nav-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 380px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
    z-index: 200;
    padding: 8px 0;
    animation: navSearchFadeIn 0.2s ease;
}
.nav-search-dropdown.active { display: block; }
@keyframes navSearchFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-search-dropdown .nsd-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    padding: 8px 16px 4px;
}
.nav-search-dropdown .nsd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}
.nav-search-dropdown .nsd-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}
.nav-search-dropdown .nsd-item .nsd-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #4f46e5;
    flex-shrink: 0;
}
.nav-search-dropdown .nsd-empty {
    text-align: center;
    padding: 20px 16px;
    color: #94a3b8;
    font-size: 13px;
}
.nav-search-dropdown .nsd-footer {
    display: block;
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}
.nav-search-dropdown .nsd-footer:hover { background: #f8fafc; }
.nav-search-dropdown::-webkit-scrollbar { width: 4px; }
.nav-search-dropdown::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 50px 20px 48px;
}
.hero-icon {
    width: 52px; height: 52px;
    margin: 0 auto 16px;
    color: #1e3a5f;
    display: flex; align-items: center; justify-content: center;
}
.hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.hero .hero-sub {
    font-size: 15px;
    color: #64748b;
    margin: 0 auto 32px;
    max-width: 480px;
}
/* Hero Search — wide white pill */
.hero-search {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    padding: 6px 6px 6px 28px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.hero-search:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 2px 16px rgba(59,130,246,0.1);
}
.hero-search input {
    border: none;
    background: none;
    outline: none;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    color: #1e293b;
    padding: 10px 0;
    font-family: inherit;
}
.hero-search input::placeholder { color: #94a3b8; font-weight: 400; }
.hero-search button {
    width: 42px; height: 42px;
    min-width: 42px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.hero-search button:hover { background: #e2e8f0; color: #334155; }

/* Search dropdown */
.hero-search-wrap { position: relative; max-width: 580px; width: 100%; margin: 0 auto; }
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: -60px; right: -60px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 50;
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
}
.search-dropdown.active { display: block; }
.search-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    padding: 4px 0 8px;
    margin: 0;
}
.search-section-title:not(:first-child) {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.search-card {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f8fafc;
    border: 1px solid transparent;
}
.search-card:hover { background: #eef4fb; color: #1e293b; border-color: #cbd5e1; }
.search-footer {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    margin-top: 10px;
}
.search-footer:hover { background: #f8fafc; border-radius: 0 0 12px 12px; color: var(--primary); }

/* ---- Featured Cards Section ---- */
.featured-cards-section { padding: 40px 0 48px; }
/* Centered HR-line section title (used across homepage) */
.section-title-lined {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}
.section-title-lined::before,
.section-title-lined::after {
    content: '';
    flex: 1;
    height: var(--hr-thick, 1px);
    background: var(--hr-color, #d0dbe8);
}
.section-title-lined span {
    font-size: var(--st-size, 16px);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--st-color, #64748b);
    white-space: nowrap;
}
.featured-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.featured-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 20px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}
.featured-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.10);
}
.featured-card-icon {
    width: 48px; height: 48px;
    margin: 0 auto 14px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}
.featured-card-icon img {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: 12px;
}
.featured-card-icon span {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}
.featured-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.featured-card-name svg { flex-shrink: 0; }
.featured-card-desc {
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-card-btn {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 6px;
    background: #e0eefc;
    color: #1e5a99;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.featured-card-btn:hover { background: #1e5a99; color: #fff; }

@media (max-width: 900px) {
    .featured-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .featured-cards-grid { grid-template-columns: 1fr; }
}

/* ---- Section ---- */
.section { padding: 48px 0; }
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--heading-color);
}
.section-title a {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
/* Lined title with View All link */
.section-title-lined-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    gap: 16px;
}
.section-title-lined-wrap .section-title-lined {
    flex: 1;
    margin-bottom: 0;
}
.section-title-lined-wrap a {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ---- Cards ---- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}
.card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.10);
}
/* Card hover effects (theme setting) */
.card-body { padding: 20px; }

/* ---- Tool Card Grid ---- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
    gap: 16px;
}
@media (max-width: 1200px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tools-grid { grid-template-columns: 1fr; } }

/* ---- Compact Card ---- */
.tc {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    overflow: visible;
    transition: box-shadow 0.25s ease;
    padding: 0 14px 12px;
}
.tc:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.10);
}

/* Corner flag / bookmark ribbon */
.tc-flag {
    position: absolute;
    top: 0;
    right: 16px;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 9px 12px;
    border-radius: 0 0 3px 3px;
    z-index: 2;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    writing-mode: vertical-lr;
    text-orientation: mixed;
}
.tc-flag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: inherit;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

/* Top header */
.tc-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 8px 4px 0;
}
.tc-votes {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}
.tc-feat {
    font-size: 11px;
    font-weight: 800;
    color: #C026D3;
    letter-spacing: 0.5px;
}

/* Center: Logo + Name */
.tc-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0 0;
}
.tc-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: #f9fafb;
    border: 1px solid #e8edf2;
    padding: 4px;
}
.tc-logo-ph {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}
.tc-nm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
}
.tc-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3;
}
.tc-name:hover { color: #3b82f6; }
.tc-underline {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #93c5fd, #c4b5fd);
    border-radius: 2px;
    margin-top: 4px;
}

/* Description */
.tc-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    padding: 6px 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Bottom: VISIT button */
.tc-bottom {
    margin-top: auto;
    padding-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.tc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 28px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.8px;
    transition: all 0.2s;
}
.tc-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

/* Hover override — disabled per design */
.tool-card--lift:hover { transform: none; }
.tool-card--scale:hover { transform: none; }
.tool-card--glow:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.10); }


/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.badge-free { background: #ECFDF5; color: #059669; }
.badge-freemium { background: #EFF6FF; color: #2563EB; }
.badge-paid { background: #FFFBEB; color: #D97706; }
.badge-enterprise { background: #F5F3FF; color: #7C3AED; }

/* ---- Filter Bar ---- */
.latest-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin: 20px 0 8px;
    flex-wrap: wrap;
}
.filter-search-wrap {
    position: relative;
    flex: 0 0 200px;
}
.filter-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.filter-search-input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-search-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.filter-category-select {
    padding: 9px 32px 9px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    transition: border-color 0.2s;
}
.filter-category-select:focus {
    border-color: #10b981;
}
.filter-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-badge:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.filter-badge.active {
    background: var(--fb-bg, #EFF6FF);
    color: var(--fb-text, #3b82f6);
    border-color: var(--fb-text, #3b82f6);
}
.filter-badge--verified.active {
    background: #EFF6FF;
    color: #3b82f6;
    border-color: #93c5fd;
}
/* Info line */
.latest-filter-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
    font-size: 12px;
    color: #94a3b8;
}
.latest-filter-info strong { color: #475569; }
.filter-info-dot { color: #cbd5e1; }

/* Grid transition */
#latest-tools-grid {
    transition: opacity 0.3s ease;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(71,127,255,0.25);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 12px rgba(71,127,255,0.35);
    transform: translateY(-1px);
}
.btn-outline {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
    font-weight: 500;
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(71,127,255,0.04);
    color: var(--primary);
}

/* ---- Categories Grid ---- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s;
}
.category-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.10);
}
.category-card .cat-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #6ee7b7, #34d399);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.category-card .cat-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--heading-color);
}
.category-card .cat-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Category page - View All link */
.cat-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary, #3b82f6);
    text-decoration: none;
    padding: 10px 24px;
    border: 1.5px solid var(--primary, #3b82f6);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.cat-view-all:hover {
    background: var(--primary, #3b82f6);
    color: #fff;
}

/* ---- Breadcrumb ---- */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb ol { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { margin: 0 4px; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ---- Tool Detail — Redesigned ---- */
.td-header-card {
    display: flex;
    gap: 28px;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    align-items: stretch;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
}
.td-ss-wrap {
    flex: 0 0 420px;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.td-ss-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 280px;
}
.td-info-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.td-info-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.td-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: contain;
    background: #F9FAFB;
    border: 1px solid var(--border);
    padding: 4px;
    flex-shrink: 0;
}
.td-logo-ph {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #93c5fd, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.td-title-block { min-width: 0; }
.td-title-block h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--heading-color);
}
.td-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.td-company {
    font-size: 13px;
    color: var(--text-light);
}
.td-short-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
    text-align: justify;
}
.td-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.td-cat-badge {
    background: #F1F5F9;
    color: var(--text-light) !important;
    text-decoration: none;
    font-size: 12px;
}
.td-visit-row {
    margin-top: auto;
}

/* Layout: Main + Sidebar */
.td-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}
.td-main { min-width: 0; }
.td-main .card { box-shadow: 0 2px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05); }
.td-sidebar { display: flex; flex-direction: column; gap: 20px; }
.td-sidebar .card { box-shadow: 0 2px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05); }

/* Sidebar Info List */
.td-info-list { display: flex; flex-direction: column; gap: 0; }
.td-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13px;
}
.td-info-row:last-child { border-bottom: none; }
.td-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-weight: 500;
}
.td-info-value {
    color: var(--text);
    font-weight: 500;
    text-align: right;
}
.td-info-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}
.td-info-link:hover { text-decoration: underline; }

/* Sidebar tool descriptions */
.td-sidebar-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}
.sidebar-tool { text-decoration: none; }

/* Sidebar category badges */
.td-sidebar-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #F1F5F9;
    transition: color 0.15s;
}
.td-sidebar-cat:last-child { border-bottom: none; }
.td-sidebar-cat:hover { color: var(--primary); }
.td-sidebar-cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.content-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
}
.content-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--heading-color);
}
.content-section .description {
    line-height: 1.85;
    color: #374151;
    font-size: 15.5px;
    text-align: left;
    word-break: break-word;
    letter-spacing: -0.01em;
}
.content-section .description p {
    margin-bottom: 18px;
}
.content-section .description p:first-of-type::first-letter {
    font-size: 2.4em;
    font-weight: 800;
    color: var(--primary);
    float: left;
    line-height: 0.85;
    margin-right: 8px;
    margin-top: 5px;
}
.content-section .description h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--heading-color);
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: -0.02em;
}
.content-section .description h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 28px 0 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff, #f8fafc);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
}
.content-section .description h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 22px 0 10px;
}
.content-section .description strong {
    color: #1e293b;
    font-weight: 650;
}
.content-section .description a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(59,130,246,0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}
.content-section .description a:hover {
    text-decoration-color: var(--primary);
}
.content-section .description ul,
.content-section .description ol {
    margin: 14px 0 18px 20px;
    padding: 0;
}
.content-section .description li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.content-section .description blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}
.content-section .description table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
}
.content-section .description th,
.content-section .description td {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.content-section .description th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
}
.content-section .description pre,
.content-section .description code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px 6px;
}
.content-section .description pre {
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

/* ---- Pricing Table ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.pricing-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    background: var(--card);
}
.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(71,127,255,0.12);
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(71,127,255,0.15);
}
.pricing-badge {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 0;
    text-align: center;
}
.plan-header {
    padding: 24px 20px 20px;
}
.pricing-card .plan-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 6px;
}
.price-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
}
.price-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1;
}
.plan-billing {
    font-size: 12px;
    color: var(--text-muted);
}
.plan-features {
    list-style: none;
    padding: 0 20px 24px;
    margin: 0;
    text-align: left;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}
.plan-features li {
    font-size: 13px;
    color: #475569;
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.plan-features li svg {
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- FAQ ---- */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
    padding: 16px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FAFBFC;
    user-select: none;
    transition: background 0.2s;
}
.faq-question:hover { background: #F1F5F9; }
.faq-answer {
    padding: 0 18px 16px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { border-bottom: 1px solid var(--border); }

/* ---- Sidebar Card ---- */
.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
}
.sidebar-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--heading-color);
}
.sidebar-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.2s;
}
.sidebar-tool:last-child { border-bottom: none; }
.sidebar-tool img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid var(--border);
    padding: 2px;
}
.sidebar-tool .name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.sidebar-tool .name:hover { color: var(--primary); }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border);
    color: var(--text-light);
}
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(71,127,255,0.25);
}

/* ---- Footer ---- */
.site-footer { padding: 48px 0 24px; margin-top: 48px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}
.footer-heading { font-size: 16px; margin-bottom: 18px; font-weight: 700; }
.footer-text { font-size: 14px; line-height: 1.7; }
.footer-link {
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-link:hover { padding-left: 4px; }
.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Search Page ---- */
.search-hero {
    background: linear-gradient(135deg, #EEF2FF, #F0F9FF);
    padding: 48px 20px;
    text-align: center;
}
.search-hero h1 { font-size: 28px; margin-bottom: 20px; }
.search-hero .search-form {
    max-width: 520px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.search-hero .search-form input { width: 100%; }

/* ---- 404 ---- */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}
.page-404 h1 { font-size: 72px; color: var(--text-muted); font-weight: 800; }
.page-404 p { color: var(--text-light); margin: 16px 0 28px; font-size: 16px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .td-layout { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .navbar-nav { display: none; }
    #mobile-menu-btn { display: flex !important; }
    .hero h1 { font-size: 24px; }
    .hero { padding: 32px 16px 28px; }
    .hero-icon { width: 40px; height: 40px; }
    .hero-search { padding: 4px 4px 4px 18px; }
    .td-header-card { flex-direction: column; }
    .td-ss-wrap { flex: none; max-width: 100%; }
    .td-header-actions { margin-left: 0; }
    .td-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .latest-filter-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .filter-search-wrap { flex: 1 1 100%; }
    .filter-category-select { width: 100%; }
    .filter-badges { margin-left: 0; justify-content: flex-start; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   TOP CATEGORIES LIST — Homepage Section
   Card-based grid with numbered tool lists
   ====================================================== */

.top-cat-grid {
    display: grid;
    grid-template-columns: repeat(var(--tc-cols, 4), 1fr);
    gap: 20px;
    margin-top: 28px;
}

.top-cat-card {
    background: #ffffff;
    border: 1.5px solid #dce3ed;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

/* Card Header */
.top-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid #f0f3f8;
    background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
}
.top-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.top-cat-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tools List */
.top-cat-tools {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    flex: 1;
}
.top-cat-tools li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-bottom: 1px solid #f2f4f8;
    transition: background 0.15s ease;
    cursor: default;
}
.top-cat-tools li:last-child {
    border-bottom: none;
}
.top-cat-tools li:hover {
    background: #f7f9fc;
}
.top-cat-rank {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    min-width: 18px;
    text-align: right;
    flex-shrink: 0;
}
.top-cat-tool-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}
.top-cat-tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-cat-tool-initial {
    font-size: 10px;
    font-weight: 700;
    color: #6366f1;
}
.top-cat-tool-name {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    transition: color 0.15s ease;
}
.top-cat-tool-name:hover {
    color: #3b82f6;
}
.top-cat-verified {
    flex-shrink: 0;
    opacity: 0.7;
}
.top-cat-ext-link {
    flex-shrink: 0;
    margin-left: auto;
    color: #c1cad6;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}
.top-cat-ext-link:hover {
    color: #3b82f6;
}

/* Card Footer */
.top-cat-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-top: 1px solid #f0f3f8;
    background: #fafbfd;
    transition: background 0.2s ease, color 0.2s ease;
}
.top-cat-footer:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 1024px) {
    .top-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .top-cat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   BLOG STYLES
   ============================================ */

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

.blog-card {
    background: #fff;
    border: 1.5px solid #dce3ed;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.blog-card-img {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f1f5f9;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3b82f6;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-decoration: none;
    width: fit-content;
}
.blog-card-cat:hover {
    background: #dbeafe;
}

.blog-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading-color, #1e293b);
    line-height: 1.4;
    margin-bottom: 8px;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
}
.blog-card-title a:hover {
    color: var(--primary-color, #3b82f6);
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--text-light, #64748b);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f2f4f8;
    padding-top: 12px;
    margin-top: auto;
}
.blog-card-date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}
.blog-card-read {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #3b82f6);
    text-decoration: none;
}
.blog-card-read:hover {
    text-decoration: underline;
}

/* Blog Single Meta */
.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-light, #64748b);
}

.blog-content {
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
    letter-spacing: -0.01em;
}
.blog-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--heading-color, #1e293b);
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: -0.02em;
}
.blog-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--heading-color, #1e293b);
    margin: 30px 0 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff, #f8fafc);
    border-left: 3px solid var(--primary-color, #3b82f6);
    border-radius: 0 8px 8px 0;
}
.blog-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color, #1e293b);
    margin: 24px 0 10px;
}
.blog-content p {
    margin-bottom: 18px;
    line-height: 1.85;
}
.blog-content strong {
    color: #1e293b;
    font-weight: 650;
}
.blog-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.blog-content a {
    color: var(--primary-color, #3b82f6);
    text-decoration: underline;
    text-decoration-color: rgba(59,130,246,0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}
.blog-content a:hover {
    text-decoration-color: var(--primary-color, #3b82f6);
}
.blog-content ul,
.blog-content ol {
    margin: 14px 0 20px 22px;
    padding: 0;
}
.blog-content li {
    margin-bottom: 10px;
    line-height: 1.75;
}
.blog-content li::marker {
    color: var(--primary-color, #3b82f6);
}
.blog-content blockquote {
    margin: 22px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--primary-color, #3b82f6);
    background: #f8fafc;
    border-radius: 0 10px 10px 0;
    color: #475569;
    font-style: italic;
    font-size: 15px;
}
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.blog-content th,
.blog-content td {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.blog-content th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
}
.blog-content pre,
.blog-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px 6px;
}
.blog-content pre {
    padding: 16px;
    overflow-x: auto;
    margin: 18px 0;
}
.blog-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-content { font-size: 15px; }
    .blog-content h2 { font-size: 20px; }
    .blog-content h3 { font-size: 17px; }
}
