/* Capital Counselor - Shared Styles */
/* Version 1.0 */

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

:root {
    /* Premium Modern Palette */
    --primary: #0D9668;
    --primary-dark: #087555;
    --primary-light: #ECFDF5;
    --secondary: #0EA5E9;
    --text: #0F172A;
    --text-light: #475569;
    --text-muted: #94A3B8;
    --bg: #F8FAFC;
    --white: #ffffff;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav a:hover {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Dropdown Navigation */
.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
}

.nav-item > a:hover {
    color: var(--primary);
}

.nav-item > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.dropdown a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.dropdown-header {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text);
}

/* Breadcrumbs */
.breadcrumb {
    padding: 1rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: #FAFBFC;
    color: var(--text);
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(13, 150, 104, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #E0F2FE 100%);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(13, 150, 104, 0.1);
}

.hero-badge svg {
    width: 14px;
    height: 14px;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.badge-icon {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.badge-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    fill: var(--primary);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */

.calculator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .calculator-section {
        grid-template-columns: 1fr;
    }
}

.calculator-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0 0 4px 4px;
}

.calculator-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.input-wrapper {
    position: relative;
}

.input-wrapper .prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-wrapper .suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

input[type="number"], input[type="text"], select {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-left: 2.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    transition: all 0.2s ease;
}

input[type="number"]:hover, input[type="text"]:hover, select:hover {
    border-color: #CBD5E1;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 150, 104, 0.1);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* Sliders */
.slider-container {
    margin-top: 0.75rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--primary) 0%, var(--border) 0%);
    border-radius: 100px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(13, 150, 104, 0.35);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(13, 150, 104, 0.45);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* ============================================
   RESULTS CARD
   ============================================ */

.results-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.results-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.result-main {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.result-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 0% 0%, rgba(13, 150, 104, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.result-main .label {
    font-size: 0.875rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
    position: relative;
}

.result-main .amount {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    position: relative;
}

.result-main .per-month {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    position: relative;
}

.result-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.breakdown-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.breakdown-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breakdown-item .value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* Chart */
.chart-container {
    height: 180px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   SECTION CARDS (Generic)
   ============================================ */

.section-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* ============================================
   EXPLANATION SECTION
   ============================================ */

.explanation-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.explanation-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.explanation-item {
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.explanation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.explanation-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.explanation-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.explanation-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   AMORTIZATION / TABLE SECTION
   ============================================ */

.amortization-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.amortization-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.amortization-table th {
    background: var(--bg);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.amortization-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.amortization-table tr {
    transition: all 0.2s ease;
}

.amortization-table tr:hover {
    background: var(--primary-light);
}

.view-full-btn {
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.view-full-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ============================================
   EDUCATIONAL SECTION
   ============================================ */

.educational-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.educational-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.educational-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}

.educational-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.educational-section ul {
    margin-left: 1.25rem;
    color: var(--text-light);
}

.educational-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.formula-box {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid #334155;
    white-space: pre-wrap;
}

/* ============================================
   RELATED CALCULATORS
   ============================================ */

.related-section {
    margin-bottom: 2.5rem;
}

.related-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.related-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.related-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.related-card:hover::after {
    transform: scaleX(1);
}

.related-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.related-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.related-card .link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}

.related-card:hover .link {
    gap: 0.5rem;
}

/* ============================================
   STATE LINKS SECTION
   ============================================ */

.state-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.state-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.state-section > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.625rem;
}

.state-link {
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.state-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 150, 104, 0.25);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

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

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary);
    background: var(--primary-light);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    margin-top: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(13, 150, 104, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    letter-spacing: -0.02em;
}

.cta-section p {
    color: #94A3B8;
    margin-bottom: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 150, 104, 0.4);
}

.cta-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(13, 150, 104, 0.5);
}

.cta-btn.secondary {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #1a1a1a;
    color: #a0a0a0;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-brand {
    max-width: 250px;
}

.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================
   HOMEPAGE SPECIFIC STYLES
   ============================================ */

.hero-home {
    padding: 6rem 2rem 5rem;
}

.hero-home h1 {
    font-size: 3.5rem;
}

/* Calculator Categories Grid */
.categories-section {
    padding: 4rem 2rem;
    background: var(--bg);
}

.categories-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-card .sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-card .sub-link {
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-card .sub-link:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   PLACEHOLDER / COMING SOON
   ============================================ */

.coming-soon-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.coming-soon-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.coming-soon-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.coming-soon-section p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* ============================================
   SUB-CALCULATORS LIST
   ============================================ */

.sub-calculators-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.sub-calculators-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.sub-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.sub-calc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
}

.sub-calc-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.sub-calc-link svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav {
        display: none;
    }

    .trust-badges {
        gap: 1rem;
    }

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

    .action-buttons {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .main {
        padding: 2rem 1rem;
    }

    .calculator-card,
    .results-card,
    .section-card,
    .explanation-section,
    .educational-section,
    .faq-section,
    .state-section,
    .amortization-section {
        padding: 1.5rem;
    }
}

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

/* Featured Post - Blog Page */
.blog-featured {
    margin-bottom: 2rem;
}

.blog-featured .featured-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-decoration: none;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border: none;
}

.blog-featured .featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: translate(30%, -30%);
}

.blog-featured .featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 150, 104, 0.3);
}

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

.blog-featured .featured-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.blog-featured .featured-category {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    color: var(--white);
    background: transparent;
    padding: 0;
}

.blog-featured .featured-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--white);
}

.blog-featured .featured-card p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 500px;
    color: var(--white);
}

.blog-featured .featured-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    border: none;
    padding-top: 0;
}

.blog-featured .featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-featured .featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
}

.blog-featured .featured-link svg {
    transition: transform 0.2s;
}

.blog-featured .featured-card:hover .featured-link svg {
    transform: translateX(4px);
}

.blog-featured .featured-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
}

.blog-featured .featured-icon svg {
    width: 180px;
    height: 180px;
}

/* Category Pills */
.blog-categories {
    margin-bottom: 2rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Blog Listing */
.blog-listing {
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    gap: 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.blog-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.blog-card-icon svg {
    width: 24px;
    height: 24px;
}

.blog-card-content {
    flex: 1;
    min-width: 0;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-card-link {
    color: var(--primary);
    font-weight: 600;
}

/* Empty State */
.blog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
}

.empty-icon svg {
    width: 40px;
    height: 40px;
}

.blog-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-empty-state p {
    color: var(--text-light);
}

/* Newsletter Section */
.blog-newsletter {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
}

.newsletter-icon svg {
    width: 30px;
    height: 30px;
}

.newsletter-text {
    flex: 1;
    min-width: 200px;
}

.newsletter-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.newsletter-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.newsletter-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    min-width: 250px;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   BLOG POST STYLES - Clean WebTribunal Style
   ============================================ */

/* Blog Hero - Clean & Minimal */
.blog-hero {
    background: var(--white);
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

.blog-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.blog-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.blog-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item svg {
    opacity: 0.6;
}

/* Blog Main Layout */
.blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

/* Blog Article - Clean Typography */
.blog-article {
    min-width: 0;
}

.article-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text);
    letter-spacing: -0.01em;
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    color: var(--text);
}

.article-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.25rem;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 0.625rem;
    font-size: 1.0625rem;
}

.article-content strong {
    font-weight: 600;
    color: var(--text);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    text-decoration: none;
}

/* Key Takeaways - Clean Box */
.key-takeaways {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.key-takeaways h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    border: none !important;
    color: #166534;
}

.key-takeaways ul {
    margin: 0 !important;
    padding-left: 1.25rem;
}

.key-takeaways li {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text);
}

.key-takeaways li:last-child {
    margin-bottom: 0;
}

/* Fun Fact Box */
.fun-fact {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.fun-fact::before {
    content: "🏆";
    font-size: 1.25rem;
    flex-shrink: 0;
}

.fun-fact p {
    margin: 0 !important;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Quick Stats / Key Statistics Box */
.quick-stats {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.quick-stats h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem 0 !important;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-stats h3::before {
    content: "📊";
}

.quick-stats ul {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style: none;
}

.quick-stats li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.quick-stats li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quick-stats li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}

.quick-stats strong {
    color: var(--primary);
}

/* Numbered Statistics */
.numbered-stat {
    margin: 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.numbered-stat:last-of-type {
    border-bottom: none;
}

.numbered-stat h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.75rem 0 !important;
    line-height: 1.5;
}

.numbered-stat h3 .stat-num {
    color: var(--primary);
    font-weight: 700;
}

.numbered-stat .source {
    display: inline;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 400;
}

.numbered-stat p {
    margin: 0.75rem 0 0 0 !important;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Callout Boxes - Different Types */
.callout {
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.callout-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.callout-content {
    flex: 1;
}

.callout-content p {
    margin: 0 !important;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.6;
}

.callout-content strong {
    font-weight: 700;
}

/* Fun Fact - Yellow */
.callout-fact {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

/* Did You Know - Blue */
.callout-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

/* Important - Red/Orange */
.callout-important {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* Pro Tip - Green */
.callout-tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

/* Source Citation Inline */
.source-cite {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 400;
}

.source-cite a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.source-cite a:hover {
    color: var(--primary);
}

/* Big Number Highlight */
.big-number {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}

.big-number .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.big-number .label {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Section Divider */
.section-divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2.5rem 0;
}

/* Stats Box - Clean Grid */
.stat-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Data Table - Clean Style */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-light);
}

.data-table tbody tr:hover {
    background: var(--primary-light);
}

.data-table td:first-child {
    font-weight: 500;
}

/* Highlight Box */
.highlight-box {
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.highlight-label {
    display: block;
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-top: 2rem;
}

.author-box .author-avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.author-box .author-avatar svg {
    width: 28px;
    height: 28px;
}

.author-box .author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-box .author-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.share-section > span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn.twitter {
    background: #f1f5f9;
    color: #0f172a;
}

.share-btn.twitter:hover {
    background: #0f172a;
    color: #fff;
}

.share-btn.facebook {
    background: #eff6ff;
    color: #1d4ed8;
}

.share-btn.facebook:hover {
    background: #1d4ed8;
    color: #fff;
}

.share-btn.linkedin {
    background: #f0f9ff;
    color: #0369a1;
}

.share-btn.linkedin:hover {
    background: #0369a1;
    color: #fff;
}

.share-btn.copy {
    background: var(--bg);
    color: var(--text-light);
}

.share-btn.copy:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Right Sidebar - TOC */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.toc-container h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

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

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.375rem 0;
    padding-left: 0.75rem;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc a:hover {
    color: var(--primary);
    border-left-color: var(--primary-light);
}

.toc a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

/* Sidebar CTA */
.sidebar-cta {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #bbf7d0;
}

.sidebar-cta svg {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.sidebar-cta span {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1rem;
}

.sidebar-cta-btn {
    display: block;
    background: var(--primary);
    color: var(--white);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

.sidebar-cta-btn:hover {
    background: var(--primary-dark);
}

/* AI Summarize Card */
.ai-summarize-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.ai-summarize-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.ai-summarize-desc {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.ai-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.ai-btn-chatgpt {
    background: #10a37f;
    color: #fff;
}

.ai-btn-chatgpt:hover {
    background: #0d8c6d;
}

.ai-btn-perplexity {
    background: #1a1a2e;
    color: #fff;
}

.ai-btn-perplexity:hover {
    background: #0f0f1a;
}

.ai-btn-claude {
    background: #d97706;
    color: #fff;
}

.ai-btn-claude:hover {
    background: #b45309;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-posts h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.related-card .related-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.related-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-card .related-link {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

/* Blog Post Responsive */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 2rem 1rem;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-description {
        font-size: 1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .blog-main {
        padding: 1rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.25rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

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

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.625rem 0.75rem;
    }

    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box .author-avatar {
        margin: 0 auto;
    }

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

    /* Blog Listing Responsive */
    .blog-featured .featured-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .blog-featured .featured-icon {
        display: none;
    }

    .blog-featured .featured-card h2 {
        font-size: 1.5rem;
    }

    .blog-featured .featured-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .blog-card {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-card-icon {
        width: 40px;
        height: 40px;
    }

    .blog-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .newsletter-input {
        width: 100%;
        min-width: unset;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* ============================================
   HOMEPAGE - BLOG FOCUS STYLES
   ============================================ */

/* Stats Bar */
.stats-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.stats-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stats-bar .stat-item {
    text-align: center;
}

.stats-bar .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stats-bar .stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Section Headers */
.section-header {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.view-all-link {
    font-size: 0.9375rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Featured Section */
.featured-section {
    padding: 3rem 0;
    background: var(--bg);
}

.featured-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.featured-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.featured-card.featured-large {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border-color: #bbf7d0;
}

.featured-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.featured-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.featured-card.featured-large h3 {
    font-size: 1.5rem;
}

.featured-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.5;
    flex: 1;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.featured-card.featured-large .featured-meta {
    border-top-color: #bbf7d0;
}

.read-time {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.featured-link {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

/* Trust Section */
.trust-section {
    padding: 2.5rem 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.trust-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.trust-content > p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.trust-badges-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 500;
}

.trust-badge-item svg {
    color: var(--primary);
}

/* Blog Categories on Homepage */
.categories-blog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card-blog {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.category-card-blog:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.category-card-blog .category-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-card-blog .category-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.category-card-blog h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.category-card-blog > p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-articles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-articles a {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.category-articles a::before {
    content: "→";
    font-size: 0.75rem;
}

.category-articles a:hover {
    text-decoration: underline;
}

.article-count {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* All Articles Section */
.all-articles-section {
    padding: 3rem 0;
    background: var(--bg);
}

.articles-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-list-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.article-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.article-info {
    flex: 1;
}

.article-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.article-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.article-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
}

.article-arrow {
    font-size: 1.25rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.article-list-item:hover .article-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.newsletter-section .newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.newsletter-section > .newsletter-content > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    min-width: 200px;
}

.newsletter-form input[type="email"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 0.875rem 1.5rem;
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

.newsletter-note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Homepage Responsive */
@media (max-width: 968px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card.featured-large {
        grid-column: 1;
        grid-row: auto;
    }

    .categories-blog {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .stats-bar-content {
        gap: 1.5rem;
    }

    .stats-bar .stat-number {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .featured-section,
    .all-articles-section {
        padding: 2rem 0;
    }

    .categories-blog {
        grid-template-columns: 1fr;
    }

    .trust-badges-row {
        gap: 1rem;
    }

    .trust-badge-item {
        font-size: 0.8125rem;
    }

    .article-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-arrow {
        align-self: flex-end;
    }

    .newsletter-section {
        padding: 3rem 0;
    }

    .newsletter-section h2 {
        font-size: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
    }
}

/* ============================================
   UTILITY PAGES (About, Contact, Legal, 404)
   ============================================ */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.page-hero-small {
    padding: 3rem 2rem;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.page-hero h1 span {
    color: rgba(255, 255, 255, 0.85);
}

.page-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Page Main Content */
.page-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.page-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.content-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul,
.content-section ol {
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section li strong {
    color: var(--text);
}

.content-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.content-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Legal Pages (Privacy, Terms) */
.legal-content {
    max-width: 800px;
}

.legal-content .content-section h2 {
    font-size: 1.25rem;
}

.legal-content .content-section p,
.legal-content .content-section li {
    font-size: 0.9375rem;
}

/* Contact Page */
.contact-info {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: var(--radius-sm);
    margin: 2rem 0;
}

.contact-email {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.contact-email:hover {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
}

.response-time {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* 404 Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 var(--primary-light);
}

.error-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.error-btn-primary {
    background: var(--primary);
    color: var(--white);
}

.error-btn-primary:hover {
    background: var(--primary-dark);
}

.error-btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.error-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.popular-articles {
    text-align: left;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.popular-articles h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list li {
    margin-bottom: 0.75rem;
}

.popular-list li:last-child {
    margin-bottom: 0;
}

.popular-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.popular-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.popular-list svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* Utility Pages Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 1.5rem;
    }

    .page-hero-small {
        padding: 2rem 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-main {
        padding: 2rem 1rem 3rem;
    }

    .page-content {
        padding: 1.5rem;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-content h1 {
        font-size: 1.5rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-btn {
        width: 100%;
        justify-content: center;
    }

    .contact-email {
        font-size: 1rem;
        padding: 0.625rem 1rem;
    }
}

/* ============================================
   BLOG LISTING PAGE STYLES
   ============================================ */

/* Category Pills */
.category-pills-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.category-pill {
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.article-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.article-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1rem;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.article-card-meta .read-time {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.article-card-meta .article-arrow {
    color: var(--primary);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.article-card:hover .article-arrow {
    transform: translateX(4px);
}

/* Blog Page Specific */
.blog-page .section-header {
    margin-bottom: 1.5rem;
}

.blog-page .section-header h2 {
    font-size: 1.5rem;
}

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

@media (max-width: 768px) {
    .category-pills-section {
        padding: 0 1rem 1.5rem;
    }

    .category-pills {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-pill {
        flex-shrink: 0;
    }

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

    .article-card {
        padding: 1.25rem;
    }
}
