/* ===================================
   SalaryKorea - Modern CSS Styles
   Korean Salary Index Information
   =================================== */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.15);

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s ease;
    --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select {
    font-family: inherit;
    font-size: 1rem;
}

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

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    flex: 1;
    text-align: center;
    transition: var(--transition);
}

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

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

.stat-unit {
    font-size: 1rem;
    color: var(--text-secondary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-change {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    margin-top: 8px;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    max-width: 500px;
    animation: fadeInRight 0.8s ease 0.3s both;
}

.floating-chart {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate(50px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

/* ===================================
   Section Common Styles
   =================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===================================
   Overview Section
   =================================== */
.overview-section {
    background: var(--bg-secondary);
}

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

.info-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===================================
   Industry Section
   =================================== */
.industry-section {
    background: white;
}

.chart-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
}

.chart-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.chart-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.chart-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.chart-wrapper {
    height: 400px;
    position: relative;
}

.industry-table {
    overflow-x: auto;
}

.industry-table table {
    width: 100%;
    border-collapse: collapse;
}

.industry-table th,
.industry-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.industry-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.industry-table tr:hover {
    background: var(--bg-tertiary);
}

.industry-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.industry-badge.it { background: #dbeafe; color: #1d4ed8; }
.industry-badge.finance { background: #fef3c7; color: #b45309; }
.industry-badge.pharma { background: #d1fae5; color: #047857; }
.industry-badge.mfg { background: #e0e7ff; color: #4338ca; }
.industry-badge.retail { background: #fce7f3; color: #be185d; }
.industry-badge.service { background: #f3e8ff; color: #7c3aed; }

.change {
    font-weight: 600;
    font-size: 0.875rem;
}

.change.positive { color: var(--success); }
.change.negative { color: var(--danger); }

/* ===================================
   Region Section
   =================================== */
.region-section {
    background: var(--bg-secondary);
}

.region-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.region-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.korea-map {
    width: 100%;
    height: auto;
}

.korea-map .region {
    fill: #e2e8f0;
    stroke: white;
    stroke-width: 2;
    cursor: pointer;
    transition: var(--transition);
}

.korea-map .region:hover,
.korea-map .region.active {
    fill: var(--primary);
}

.map-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-label {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transform: translate(-50%, -50%);
}

.region-chart {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.region-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.region-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.region-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.region-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.region-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.region-index {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.region-change {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin: 8px 0;
}

.region-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.region-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================================
   Trend Section
   =================================== */
.trend-section {
    background: white;
}

.trend-controls {
    margin-bottom: 32px;
}

.trend-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.trend-chart-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 400px;
    margin-bottom: 48px;
}

.trend-insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.insight-card {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.insight-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.insight-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.insight-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===================================
   Comparison Section
   =================================== */
.comparison-section {
    background: var(--bg-secondary);
}

.comparison-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.comparison-chart {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    height: 450px;
}

.comparison-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.position-card {
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

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

.position-level {
    font-weight: 600;
    font-size: 1rem;
}

.position-exp {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 20px;
}

.position-salary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.position-range {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.position-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: var(--width);
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ===================================
   Calculator Section
   =================================== */
.calculator-section {
    background: white;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calc-button {
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    margin-top: 8px;
    transition: var(--transition);
}

.calc-button:hover {
    background: var(--primary-dark);
}

.calculator-result {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.result-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.result-placeholder p {
    font-size: 0.95rem;
}

.result-content {
    width: 100%;
    text-align: center;
}

.result-gauge {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto 24px;
    overflow: hidden;
}

.gauge-bg {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        var(--danger) 0deg 60deg,
        var(--warning) 60deg 120deg,
        var(--success) 120deg 180deg
    );
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.gauge-center {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
}

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 80px;
    background: var(--text-primary);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(var(--rotation, -90deg));
    transition: transform 1s ease;
    border-radius: 4px;
}

.gauge-dot {
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 50%;
    transform: translateX(-50%);
}

.result-level {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.result-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

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

.result-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.result-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   SEO Section
   =================================== */
.seo-section {
    background: white;
    padding: 80px 0;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.seo-content h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.seo-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .region-content,
    .comparison-content {
        grid-template-columns: 1fr;
    }

    .trend-insights {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat-card {
        padding: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .chart-wrapper {
        height: 300px;
    }

    .trend-chart-wrapper {
        height: 300px;
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

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

    .comparison-chart {
        height: 350px;
    }

    .calculator-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .section-title {
        font-size: 1.5rem;
    }

    .chart-controls {
        flex-wrap: wrap;
    }

    .trend-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .region-cards {
        grid-template-columns: 1fr;
    }

    .result-stats {
        flex-direction: column;
        gap: 16px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

/* ===================================
   Breadcrumbs
   =================================== */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: 12px 0;
    margin-top: 72px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-secondary);
}

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

.breadcrumb-list span {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===================================
   Nav Active States
   =================================== */
.nav-menu .nav-link.active {
    color: var(--primary);
}

.nav-menu .nav-link.active::after {
    width: 100%;
}

/* ===================================
   Contextual Introduction Section
   =================================== */
.contextual-intro {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    padding: 60px 0;
    margin-top: 72px;
}

.breadcrumbs + .hero,
.breadcrumbs + .contextual-intro {
    margin-top: 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.intro-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.intro-content p strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   User Guide & FAQ Section
   =================================== */
.guide-section {
    background: var(--bg-secondary);
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.guide-text {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.guide-text h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.guide-faq {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.guide-faq h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.guide-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-faq-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.guide-faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   Latest Articles Section
   =================================== */
.articles-section {
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--text-primary);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.articles-cta {
    text-align: center;
}

.articles-cta .cta-button {
    animation: none;
}

/* ===================================
   Blog Index Page
   =================================== */
.blog-index .blog-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 72px;
}

.breadcrumbs + .blog-index .blog-hero {
    margin-top: 0;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.blog-list {
    padding: 60px 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.blog-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.blog-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-content h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-card-content h2 a {
    color: var(--text-primary);
}

.blog-card-content h2 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.blog-cta {
    text-align: center;
    padding: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.blog-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.blog-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===================================
   Blog Post Page
   =================================== */
.blog-post {
    padding: 60px 0;
    margin-top: 72px;
}

.breadcrumbs + .blog-post {
    margin-top: 0;
}

.blog-post article {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.post-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
}

.post-header h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.post-content .lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.post-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

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

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

.post-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-content ul li {
    list-style-type: disc;
}

.post-content ol li {
    list-style-type: decimal;
}

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

.post-content a:hover {
    color: var(--primary-dark);
}

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

.post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-primary);
}

.post-content .highlight-box {
    margin: 32px 0;
    padding: 24px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--radius);
}

.post-content .highlight-box h4 {
    margin-top: 0;
    color: var(--primary);
}

.post-cta {
    margin: 48px 0;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
}

.post-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.post-cta p {
    margin-bottom: 24px;
    opacity: 0.9;
    color: white;
}

.post-cta .cta-button {
    background: white;
    color: var(--primary);
    box-shadow: none;
    animation: none;
}

.post-cta .cta-button:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.post-footer {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-tags span {
    font-weight: 600;
    color: var(--text-secondary);
}

.post-tags a {
    padding: 6px 14px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--primary);
    color: white;
}

/* ===================================
   Legal Pages (Privacy, Terms)
   =================================== */
.legal-page {
    padding: 60px 0;
    margin-top: 72px;
}

.breadcrumbs + .legal-page {
    margin-top: 0;
}

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

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 16px;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.legal-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    list-style-type: disc;
}

.legal-content a {
    color: var(--primary);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.legal-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.legal-table td {
    color: var(--text-secondary);
}

/* ===================================
   About Page
   =================================== */
.about-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 72px;
}

.breadcrumbs + .about-hero {
    margin-top: 0;
}

.about-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.about-page {
    padding: 60px 0;
}

.about-section {
    margin-bottom: 60px;
}

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

.about-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.service-item {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.data-sources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.source-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.source-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.source-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

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

.value-item {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.value-item h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.value-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.disclaimer-box {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    padding: 24px;
}

.disclaimer-box p {
    margin-bottom: 12px;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.about-cta {
    text-align: center;
    padding: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.about-cta h2 {
    margin-bottom: 12px;
}

.about-cta p {
    margin-bottom: 24px;
}

/* ===================================
   Contact Page
   =================================== */
.contact-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 72px;
}

.breadcrumbs + .contact-hero {
    margin-top: 0;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.contact-page {
    padding: 60px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.contact-faq {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-faq-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-form-section {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.contact-form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .submit-button {
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.contact-form .submit-button:hover {
    background: var(--primary-dark);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===================================
   Responsive - New Sections
   =================================== */
@media (max-width: 1024px) {
    .guide-content {
        grid-template-columns: 1fr;
    }

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

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

    .data-sources {
        grid-template-columns: 1fr;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contextual-intro {
        padding: 40px 0;
    }

    .intro-content h2 {
        font-size: 1.5rem;
    }

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

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

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

    .post-header h1 {
        font-size: 1.65rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .about-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
    }

    .about-services {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.8rem;
    }

    .blog-card-image {
        height: 120px;
    }

    .post-content .lead {
        padding: 16px;
        font-size: 1.05rem;
    }

    .post-cta {
        padding: 28px 20px;
    }

    .post-cta h3 {
        font-size: 1.25rem;
    }

    .legal-content h1 {
        font-size: 1.65rem;
    }

    .contact-form-section {
        padding: 24px;
    }
}
