/* ========================================
   Växlingskontor.se - CSS Styles
   Modern, professional financial design
======================================== */

:root {
    /* Colors - Financial/Professional palette - Teal/Cyan theme */
    --color-primary: #2EA3C6;
    --color-primary-dark: #238BA8;
    --color-primary-light: #4DB8D6;
    
    --color-success: #00875a;
    --color-success-light: #e6f6f0;
    --color-warning: #f5a623;
    --color-danger: #de350b;
    
    --color-text: #172b4d;
    --color-text-light: #6b778c;
    --color-text-muted: #97a0af;
    
    --color-bg: #ffffff;
    --color-bg-alt: #f4f5f7;
    --color-bg-dark: #ebecf0;
    --color-bg-accent: #deebff;
    
    --color-border: #dfe1e6;
    --color-border-light: #ebecf0;
    
    --color-gold: #ffab00;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-max: 1200px;
    --header-height: 64px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.08);
    --shadow: 0 3px 5px rgba(9, 30, 66, 0.08), 0 0 1px rgba(9, 30, 66, 0.12);
    --shadow-lg: 0 8px 16px rgba(9, 30, 66, 0.15), 0 0 1px rgba(9, 30, 66, 0.12);
    --shadow-xl: 0 16px 32px rgba(9, 30, 66, 0.2);
    
    /* Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg-alt);
}

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

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

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Header
======================================== */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
}

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

.logo-img {
    width: 50px;
    height: 36px;
    border-radius: 6px;
}

.logo-se {
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

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

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

.nav-dropdown-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

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

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    padding: 8px 0;
    margin-top: 12px;
    z-index: 1000;
    transform: translateX(-50%) translateY(-10px);
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

.nav-dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.nav-dropdown-content a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.nav-dropdown-content a.dropdown-all-link {
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
    padding-top: 12px;
    color: var(--color-primary);
    font-weight: 600;
}

.nav-dropdown-content a.dropdown-all-link:hover {
    background: var(--color-bg-accent);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Currency Selector */
.currency-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.currency-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

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

.currency-btn .flag {
    font-size: 1.2rem;
}

/* ========================================
   Converter Section
======================================== */
.converter-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.converter-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.converter-card h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    text-align: center;
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.direction-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.direction-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.direction-btn.active {
    background: var(--color-bg-accent);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 24px;
}

.amount-input {
    /* Grid child */
}

.result-display {
    /* Grid child */
}

.input-with-currency {
    position: relative;
}

.input-with-currency input {
    width: 100%;
    padding: 14px 70px 14px 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    transition: border-color 0.2s;
    height: 58px;
    box-sizing: border-box;
}

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

.currency-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg-alt);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.swap-icon {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: -4px 0;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.swap-icon:hover {
    color: var(--color-primary);
    transform: scale(1.2);
}

.result-box {
    background: var(--color-success-light);
    border: 2px solid var(--color-success);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    box-sizing: border-box;
}

.result-amount {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-success);
}

.result-box .currency-badge {
    position: static;
    transform: none;
    background: var(--color-success);
    color: white;
}

.result-provider {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ========================================
   Rates Table
======================================== */
.rates-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
    white-space: nowrap;
}

.updated-text {
    font-size: 0.75rem;
    color: #b0b0b0;
    font-weight: 400;
}

.updated-time {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.rates-table-wrapper {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.rates-table th {
    background: var(--color-bg-alt);
    padding: 16px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}

.rates-table th .rate-label {
    display: block;
    color: var(--color-text);
}

.rates-table th .rate-desc {
    font-weight: 400;
    font-size: 0.8rem;
}

.rates-table td {
    padding: 20px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.rates-table tr:last-child td {
    border-bottom: none;
}

.rates-table tr:hover {
    background: var(--color-bg-alt);
}

.rate-row.best-rate {
    background: var(--color-success-light);
}

.rate-row.best-rate:hover {
    background: #d4efe6;
}

/* Provider Info */
.provider-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.provider-logo-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-icon-link {
    display: flex;
    align-items: center;
}

.provider-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    transition: transform 0.2s;
}

.provider-icon-link:hover .provider-icon {
    transform: scale(1.1);
}

.provider-logo {
    width: 80px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.provider-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.provider-name-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.provider-name-link:hover {
    color: var(--color-primary-dark, #1a7a96);
    text-decoration: underline;
}

.provider-name-link::after {
    content: ' →';
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.2s;
}

.provider-name-link:hover::after {
    opacity: 1;
}

.provider-name {
    font-weight: 600;
    font-size: 1rem;
}

.provider-type {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.last-updated {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .provider-icon {
        width: 30px;
        height: 30px;
    }
    .provider-logo {
        width: 60px;
        height: 22px;
    }
    .provider-logo-name {
        gap: 8px;
    }
}

.best-badge {
    display: inline-block;
    background: var(--color-gold);
    color: #1f2937;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Rate Values */
.rate-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
}

.buy-rate .rate-value {
    color: var(--color-success);
}

.sell-rate .rate-value {
    color: var(--color-primary);
}

/* Spread */
.spread-value {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.spread-value.good {
    background: var(--color-success-light);
    color: var(--color-success);
}

.spread-value.ok {
    background: #fff8e6;
    color: var(--color-warning);
}

.spread-value.high {
    background: #ffebe6;
    color: var(--color-danger);
}

/* Spread inline (mobile only) */
.spread-inline {
    display: none;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 4px;
}

.spread-inline.good {
    background: var(--color-success-light);
    color: var(--color-success);
}

.spread-inline.ok {
    background: #fff8e6;
    color: #b8860b;
}

.spread-inline.high {
    background: #ffebe6;
    color: var(--color-danger);
}

/* Desktop only elements */
.desktop-only {
    display: table-cell;
}

/* Calculate Button */
.calculate-btn {
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.rate-row.selected .calculate-btn {
    background: var(--color-success);
}

/* No Rates */
.no-rates {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
}

/* ========================================
   Currency Overview Grid
======================================== */
.overview-section {
    padding: 40px 0;
    background: var(--color-bg);
}

.overview-section h2 {
    margin-bottom: 24px;
}

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

.currency-card {
    background: var(--color-bg-alt);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.currency-card:hover {
    background: var(--color-bg-accent);
    border-color: var(--color-primary);
}

.currency-card.active {
    background: var(--color-primary);
    color: white;
}

.currency-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.currency-header .flag {
    font-size: 1.5rem;
}

.currency-header .code {
    font-weight: 700;
    font-size: 1.1rem;
}

.currency-name {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.currency-card.active .currency-name {
    color: rgba(255, 255, 255, 0.8);
}

.currency-rate {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-success);
}

.currency-card.active .currency-rate {
    color: white;
}

/* ========================================
   Info Section
======================================== */
.info-section {
    padding: 60px 0;
    background: var(--color-bg-alt);
}

.info-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.step {
    text-align: center;
}

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

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

/* ========================================
   News Section (Homepage)
======================================== */
.news-section {
    padding: 60px 0;
    background: var(--color-bg);
}

.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-section-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.news-see-all {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.news-see-all:hover {
    text-decoration: underline;
}

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

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

@media (max-width: 600px) {
    .news-cards {
        grid-template-columns: 1fr;
    }
    .news-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.news-card-mini {
    display: block;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.news-card-mini:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.news-card-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
    background: var(--color-bg-accent);
    padding: 4px 10px;
    border-radius: 20px;
}

.news-card-mini h3 {
    font-size: 1.05rem;
    margin: 0 0 10px;
    line-height: 1.4;
    color: var(--color-text);
}

.news-card-mini p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   FAQ Section
======================================== */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.faq-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 20px rgba(46, 163, 198, 0.1);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    padding: 20px 24px 12px;
    line-height: 1.4;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.faq-item p a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.faq-item p a:hover {
    text-decoration: underline;
}

/* ========================================
   Providers Section
======================================== */
.providers-section {
    padding: 40px 0;
    background: var(--color-bg-alt);
}

.providers-section h2 {
    text-align: center;
    margin-bottom: 32px;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.provider-card {
    background: var(--color-bg);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

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

.provider-logo {
    width: 80px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 12px;
}

.provider-icon-fallback {
    font-size: 2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reload-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 12px;
}
.reload-btn:hover {
    transform: rotate(180deg);
    background: var(--color-primary-dark, #1a365d);
}

.provider-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.provider-type-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.provider-card .last-updated {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background: var(--color-text);
    color: white;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-grid-4 {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
}

/* Footer News */
.footer-news-item {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: all 0.2s;
}
.footer-news-item:hover {
    padding-left: 8px;
}
.footer-news-item:hover .news-title {
    color: white;
}
.footer-news-item:last-child {
    border-bottom: none;
}
.news-title {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 2px;
}
.news-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.footer-news-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-primary-light) !important;
}
.footer-news-link:hover {
    text-decoration: underline;
}
.loading-news, .no-news {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom .refresh-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.footer-bottom .refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .refresh-btn:active {
    transform: scale(0.95);
}

.footer-links {
    margin-top: 12px;
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-disclaimer {
    padding: 16px 20px;
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-warning);
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
}

.footer-update {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: white;
    padding: 16px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-accept {
    padding: 10px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.cookie-accept:hover {
    background: var(--color-primary-dark);
}

.cookie-decline {
    padding: 10px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .currency-selector {
        gap: 6px;
    }
    
    .currency-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .converter-card {
        padding: 24px 20px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .swap-icon {
        transform: rotate(90deg);
        padding: 8px 0;
        justify-self: center;
    }
    
    .direction-toggle {
        flex-direction: column;
    }
    
    .rates-table-wrapper {
        overflow-x: visible;
    }
    
    .rates-table {
        min-width: auto;
        width: 100%;
    }
    
    /* Hide spread column and action on mobile */
    .rates-table .spread-col,
    .rates-table .action-col,
    .desktop-only {
        display: none !important;
    }
    
    /* Show inline spread on mobile */
    .spread-inline {
        display: block;
    }
    
    /* Compact provider info on mobile */
    .rates-table .provider-col {
        padding: 12px 8px;
    }
    
    .rates-table .provider-icon {
        width: 28px;
        height: 28px;
    }
    
    .rates-table .provider-name-link {
        font-size: 0.85rem;
    }
    
    .rates-table .provider-type {
        font-size: 0.7rem;
    }
    
    .rates-table .best-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    /* Compact rate columns on mobile */
    .rates-table .rate-col {
        padding: 12px 6px;
        vertical-align: top;
    }
    
    .rates-table td.rate-col {
        text-align: center;
    }
    
    .rates-table .rate-value {
        font-size: 0.95rem;
    }
    
    /* Rate row needs relative positioning for spread */
    .rates-table .rate-row {
        position: relative;
        padding-bottom: 24px;
    }
    
    .rates-table .rate-row td {
        padding-bottom: 28px;
    }
    
    /* Spread inline - centered below both columns */
    .rates-table .spread-inline {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 8px;
        white-space: nowrap;
        z-index: 1;
    }
    
    .rates-table th.rate-col .rate-label {
        font-size: 0.75rem;
    }
    
    .rates-table th.rate-col .rate-desc {
        font-size: 0.65rem;
    }
    
    /* Last updated timestamp styling */
    .rates-table .last-updated {
        font-size: 0.6rem;
        color: var(--color-text-muted);
        display: block;
        margin-top: 2px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .currency-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .currency-card {
        padding: 16px 12px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .currency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Chart Section
======================================== */
.chart-section {
    padding: 48px 0;
    background: #f8fafc;
}

.chart-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-section h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a2e;
}

.chart-period-selector {
    display: flex;
    gap: 8px;
    background: white;
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.period-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}

.period-btn:hover {
    color: #1a1a2e;
    background: #f1f5f9;
}

.period-btn.active {
    background: #10b981;
    color: white;
}

.chart-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: 350px;
    position: relative;
}

.chart-legend {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .chart-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-period-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .period-btn {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .chart-container {
        padding: 16px;
        height: 280px;
    }
}

/* Legal Pages */
.legal-page {
    padding: 48px 0;
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

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

.legal-content section {
    margin-bottom: 32px;
}

.legal-content h2 {
    color: var(--color-text);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.legal-content h3 {
    color: var(--color-text);
    font-size: 1.1rem;
    margin: 20px 0 10px;
}

.legal-content p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content ul {
    color: var(--color-text-light);
    margin: 12px 0;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

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

.back-link {
    text-align: center;
    margin-top: 32px;
}

.back-link a {
    color: var(--color-primary);
    font-weight: 500;
}

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

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

.cookie-table th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-text);
}

.consent-reset-btn {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 12px;
}

.consent-reset-btn:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 24px;
        margin: 0 16px;
    }
    
    .legal-content h1 {
        font-size: 1.5rem;
    }
}

/* Currency Landing Pages */
.currency-nav {
    display: flex;
    gap: 12px;
}

.currency-nav a {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.currency-nav a:hover,
.currency-nav a.active {
    background: white;
    color: var(--color-primary-dark);
}

.currency-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}

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

.currency-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.currency-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.currency-summary {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.summary-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 32px;
    border-radius: 12px;
    text-align: center;
}

.summary-card.best {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.summary-card .label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.summary-card .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.summary-card .provider {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.info-section {
    padding: 48px 0;
    background: var(--color-bg-alt);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

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

.info-card p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.rates-disclaimer {
    margin-top: 24px;
    padding: 16px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.other-currencies {
    padding: 48px 0;
    text-align: center;
}

.other-currencies h2 {
    margin-bottom: 24px;
}

.currency-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.currency-links a {
    padding: 8px 16px;
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.currency-links a:hover,
.currency-links a.active {
    background: var(--color-primary);
    color: white;
}

.update-note {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .currency-nav {
        display: none;
    }
    
    .currency-hero h1 {
        font-size: 1.8rem;
    }
    
    .currency-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .summary-card {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   Currency-specific SEO Pages
======================================== */

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--color-text-muted);
}

.breadcrumb .current {
    color: var(--color-text-light);
}

/* Currency Hero */
.currency-hero {
    text-align: center;
    padding: 40px 0 32px;
}

.currency-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-flag {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
}

.currency-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.currency-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 24px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Direction Tabs */
.direction-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.direction-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.direction-tab:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-accent);
}

.direction-tab.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

/* Currency Page Table */
.currency-page-table {
    width: 100%;
}

.currency-page-table .rank-col {
    width: 60px;
    text-align: center;
}

.currency-page-table .calc-col {
    min-width: 140px;
}

.currency-page-table .example-value {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--color-text);
}

.rate-row.selected {
    background: var(--color-bg-accent) !important;
    border-left: 3px solid var(--color-primary);
}

/* Rate Info Box */
.rate-info-box {
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--color-bg-accent), var(--color-bg-alt));
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.rate-info-box h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.rate-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rate-info-box li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--color-text-light);
    line-height: 1.5;
}

.rate-info-box li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Compact Currency Grid */
.currency-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.currency-grid.compact .currency-card {
    padding: 12px 8px;
    text-align: center;
}

.currency-grid.compact .currency-card .currency-name,
.currency-grid.compact .currency-card .currency-rate {
    display: none;
}

/* SEO Content Section */
.seo-content {
    padding: 48px 0;
    background: var(--color-bg);
}

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

.seo-content h3 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    color: var(--color-text);
}

.seo-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.seo-content .faq-item {
    margin-bottom: 12px;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
}

.seo-content .faq-item summary {
    padding: 16px;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-text);
    list-style: none;
}

.seo-content .faq-item summary::-webkit-details-marker {
    display: none;
}

.seo-content .faq-item summary::before {
    content: "+ ";
    color: var(--color-primary);
    font-weight: bold;
}

.seo-content .faq-item[open] summary::before {
    content: "− ";
}

.seo-content .faq-item p {
    padding: 0 16px 16px;
    margin: 0;
}

/* Mobile Responsive for Currency Pages */
@media (max-width: 768px) {
    .hero-flag {
        font-size: 3rem;
    }
    
    .currency-hero h1 {
        font-size: 1.6rem;
    }
    
    .direction-tabs {
        flex-direction: column;
        padding: 0 16px;
    }
    
    .direction-tab {
        width: 100%;
        justify-content: center;
    }
    
    .currency-page-table .rank-col {
        width: 40px;
    }
    
    .currency-page-table .calc-col {
        display: none;
    }
    
    .rate-info-box {
        padding: 16px;
    }
    
    .seo-content {
        padding: 32px 0;
    }
}

/* ========================================
   Mobile Row Click & Inline Spread
======================================== */

/* Row clickable */
.rate-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.rate-row:hover {
    background-color: var(--color-bg-accent);
}

.rate-row:active {
    background-color: #d0e2f7;
}

/* Only logo should be a link */
.provider-name {
    font-weight: 600;
    color: var(--color-text);
}

.provider-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.provider-icon-link:hover .provider-icon {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.provider-icon {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
}

/* Mobile spread - hidden on desktop */
.mobile-spread {
    display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Show mobile spread under buy rate */
    .mobile-spread {
        display: block;
        font-size: 0.75rem;
        padding: 2px 6px;
        border-radius: 4px;
        margin-top: 4px;
        font-weight: 500;
        text-align: center;
        width: fit-content;
    }
    
    .mobile-spread.good {
        background: #dcfce7;
        color: #166534;
    }
    
    .mobile-spread.ok {
        background: #fef9c3;
        color: #854d0e;
    }
    
    .mobile-spread.high {
        background: #fee2e2;
        color: #991b1b;
    }
    
    /* Hide desktop spread column and action on mobile (tap row to select) */
    .spread-col,
    .action-col {
        display: none !important;
    }
    
    /* Adjust table header */
    .rates-table thead th.spread-col,
    .rates-table thead th.action-col {
        display: none !important;
    }
    
    /* Better row tap target */
    .rate-row td {
        padding: 12px 8px;
    }
    
    /* Rate values - slightly bigger touch */
    .rate-row .rate-value {
        font-size: 1rem;
    }
    
    /* Selected row feedback */
    .rate-row.selected {
        background: var(--color-bg-accent) !important;
        position: relative;
    }
    
    .rate-row.selected::before {
        content: '✓';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--color-primary);
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }
}

/* ========================================
   Interbank/Market Rate Row
======================================== */

.market-rate-row {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%) !important;
    border: 1px dashed #d0d5dd !important;
    cursor: default !important;
}

.market-rate-row:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%) !important;
}

.market-rate-row td {
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb !important;
}

.market-icon {
    font-size: 28px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.market-rate-row .provider-name {
    color: #4b5563;
    font-weight: 600;
}

.market-rate-row .provider-type {
    color: #9ca3af;
    font-size: 0.75rem;
    font-style: italic;
}

.market-mid {
    font-size: 1.2rem !important;
    color: #4b5563 !important;
}

.market-value {
    color: #6b7280 !important;
    font-weight: 500;
}

.reference-label {
    color: #f59e0b !important;
    font-style: normal !important;
    font-weight: 500;
}

.spread-value.reference {
    background: #e5e7eb;
    color: #6b7280;
}

.reference-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
}

.market-label {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 2px;
}

.market-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: help;
}

/* Mobile adjustments for market row */
@media (max-width: 768px) {
    .market-rate-row .market-label {
        display: none;
    }
    
    .market-rate-row td[colspan="2"] {
        text-align: center;
    }
    
    .market-icon {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   Hamburger Menu & Mobile Navigation
======================================== */

/* Hamburger button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line + .hamburger-line {
    margin-top: 5px;
}

/* Hamburger animation when open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    overflow-y: auto;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateX(0);
}

/* Mobile navigation */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-nav-item:hover {
    background: var(--color-bg-dark);
}

/* Mobile nav group (with submenu) */
.mobile-nav-group {
    margin-bottom: 8px;
}

.mobile-nav-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    justify-content: space-between;
}

.mobile-nav-title .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.2s;
    color: var(--color-text-muted);
}

.mobile-nav-group[data-expanded="true"] .mobile-nav-title {
    border-radius: var(--radius) var(--radius) 0 0;
}

.mobile-nav-group[data-expanded="true"] .toggle-icon {
    transform: rotate(90deg);
}

.mobile-nav-submenu {
    display: none;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.mobile-nav-group[data-expanded="true"] .mobile-nav-submenu {
    display: flex;
}

.mobile-nav-submenu a {
    padding: 12px 16px 12px 40px;
    color: var(--color-text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-submenu a:last-child {
    border-bottom: none;
}

.mobile-nav-submenu a:hover {
    background: var(--color-bg-accent);
    color: var(--color-primary);
}

/* Show hamburger on mobile, hide desktop nav */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    
    .desktop-nav {
        display: none !important;
    }
}

/* Keep desktop nav on larger screens */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ========================================
   Legal Pages (Improved)
======================================== */

.legal-page {
    padding: 24px 0 60px;
    background: var(--color-bg);
    min-height: 60vh;
}

.legal-page .breadcrumb {
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border: none;
}

.legal-content {
    max-width: 800px;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-primary);
}

.legal-content .updated-info {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal-content section {
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--color-primary);
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 16px 0 8px;
}

.legal-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul {
    color: var(--color-text-light);
    line-height: 1.8;
    margin: 12px 0;
    padding-left: 24px;
}

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

.legal-content code {
    background: var(--color-bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

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

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

/* Mobile */
@media (max-width: 768px) {
    .legal-content {
        padding: 24px 20px;
        border-radius: 0;
        margin: 0 -16px;
    }
    
    .legal-content h1 {
        font-size: 1.6rem;
    }
    
    .legal-content h2 {
        font-size: 1.15rem;
    }
}

/* ========================================
   Fix: Selected row layout shift
======================================== */

/* Remove the ::before checkmark that causes shift */
@media (max-width: 768px) {
    .rate-row.selected::before {
        display: none !important;
    }
    
    /* Use background color only for selection - no border/outline */
    .rate-row.selected {
        background: #e0f2fe !important;
        outline: none !important;
        border-left: none !important;
    }
    
    /* Add subtle left indicator that doesn't affect layout */
    .rate-row.selected td:first-child {
        box-shadow: inset 4px 0 0 var(--color-primary);
    }
}

/* Desktop: keep outline but prevent shift */
.rate-row.selected {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    background: var(--color-bg-accent) !important;
}

/* Footer version */
.footer-version {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-reload-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-reload-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

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

/* ========================================
   Semesterindex & Country Guide
======================================== */

/* Semesterindex Section */
.semesterindex-section {
    padding: 48px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.semesterindex-section h2 {
    text-align: center;
    margin-bottom: 8px;
}

.section-intro {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.semesterindex-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
}

.index-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.index-card.main-index {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.index-card.main-index .index-value {
    font-size: 3rem;
    font-weight: 700;
}

.index-card.main-index .index-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.index-card.main-index .index-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 12px;
}

.index-card.main-index .index-trend {
    font-size: 0.85rem;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.index-card .index-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.index-card .index-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.index-card .index-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* Country Guide Section */
.country-guide-section {
    padding: 48px 0;
    background: var(--color-bg);
}

.country-guide-section h2 {
    text-align: center;
    margin-bottom: 32px;
}

.country-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.country-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.country-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-flag {
    font-size: 2.5rem;
}

.country-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.country-desc {
    padding: 16px 20px;
    color: var(--color-text-light);
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border-light);
}

.country-details {
    padding: 16px 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    flex-shrink: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.detail-value {
    color: var(--color-text-light);
}

/* Travel Tips Box */
.travel-tips-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.travel-tips-box h3 {
    margin-bottom: 16px;
    color: #92400e;
}

.travel-tips-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.travel-tips-box li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: #78350f;
}

.travel-tips-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d97706;
    font-weight: bold;
}

/* Cash vs Card Box */
.cash-vs-card-box {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.cash-vs-card-box h3 {
    margin-bottom: 16px;
}

.recommendation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.recommendation.cash {
    background: #dcfce7;
    color: #166534;
}

.recommendation.card {
    background: #dbeafe;
    color: #1e40af;
}

.rec-icon {
    font-size: 2rem;
}

.rec-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.cash-bar {
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.cash-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 12px;
}

.cash-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.cash-vs-card-box > p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .semesterindex-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .index-card.main-index {
        grid-column: span 2;
    }
    
    .index-card.main-index .index-value {
        font-size: 2.5rem;
    }
    
    .country-cards {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-wrap: wrap;
    }
    
    .detail-value {
        flex-basis: 100%;
        padding-left: 28px;
    }
}

/* ========================================
   Trend Analysis Section
======================================== */
.trend-section {
    padding: 48px 0;
    background: var(--color-bg);
}

.trend-section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.trend-grid {
    display: grid;
    gap: 24px;
}

/* Recommendation Card */
.recommendation-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.recommendation-card.buy {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
}

.recommendation-card.sell {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.recommendation-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.recommendation-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
}

/* Trend Stats */
.trend-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    font-family: var(--font-mono);
}

.stat-value.up {
    color: var(--color-success);
}

.stat-value.down {
    color: var(--color-danger);
}

.stat-value.highlight {
    color: var(--color-primary);
}

/* Range Bar */
.range-bar-container {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 20px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.range-bar {
    height: 12px;
    background: linear-gradient(90deg, #6ee7b7 0%, #fbbf24 50%, #f87171 100%);
    border-radius: 6px;
    position: relative;
    margin-bottom: 12px;
}

.range-fill {
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px 0 0 6px;
}

.range-marker {
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.marker-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.range-tip {
    font-size: 0.9rem;
    color: var(--color-text);
    text-align: center;
}

/* Provider Stats Box */
.provider-stats-box {
    margin-top: 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.provider-stats-box h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.stats-intro {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.provider-wins {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.win-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.win-item.leader {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.win-rank {
    font-size: 1.2rem;
}

.win-provider {
    font-weight: 600;
    flex: 1;
}

.win-percent {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .trend-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommendation-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

/* ========================================
   Trip Calculator Section
======================================== */
.trip-calculator-section {
    padding: 32px 0;
    background: var(--color-bg-alt);
}

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

.trip-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.trip-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.trip-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trip-inputs .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trip-inputs label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.trip-inputs input,
.trip-inputs select {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.trip-inputs input:focus,
.trip-inputs select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.trip-result {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
}

.trip-total {
    text-align: center;
    margin-bottom: 24px;
}

.trip-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.trip-sek {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.trip-foreign {
    display: block;
    font-size: 1.1rem;
    opacity: 0.9;
}

.trip-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.item-icon {
    font-size: 1.1rem;
}

.item-label {
    flex: 1;
    opacity: 0.9;
}

.item-value {
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.trip-tip {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .trip-form {
        grid-template-columns: 1fr;
    }
    
    .trip-card {
        padding: 20px;
    }
    
    .trip-sek {
        font-size: 1.8rem;
    }
    
    .trip-breakdown {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Airport vs City Comparison
======================================== */
.airport-comparison-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.airport-comparison-box h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #92400e;
}

.comparison-intro {
    font-size: 0.95rem;
    color: #78350f;
    margin-bottom: 20px;
}

.airport-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.airport-card {
    flex: 1;
    max-width: 200px;
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.airport-card.airport {
    border: 2px solid #ef4444;
}

.airport-card.city {
    border: 2px solid #22c55e;
}

.airport-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.airport-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.airport-markup {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.airport-example {
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    padding: 8px;
}

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

.example-loss {
    font-weight: 700;
    color: #ef4444;
    font-size: 0.95rem;
}

.example-win {
    font-weight: 700;
    color: #22c55e;
    font-size: 0.95rem;
}

.vs-badge {
    background: #1f2937;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.savings-summary {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.savings-text {
    font-size: 0.95rem;
    color: #78350f;
}

.airport-tip {
    font-size: 0.85rem;
    color: #92400e;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: var(--radius);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .airport-grid {
        flex-direction: column;
    }
    
    .airport-card {
        max-width: 100%;
        width: 100%;
    }
    
    .vs-badge {
        margin: 8px 0;
    }
}

/* ========================================
   Provider Voting
======================================== */
.provider-votes {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-bg-alt);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.vote-btn:hover {
    background: var(--color-bg-dark);
}

.vote-btn.active {
    border-color: var(--color-primary);
    background: var(--color-bg-accent);
}

.vote-btn.vote-up:hover,
.vote-btn.vote-up.active {
    border-color: #22c55e;
    background: #dcfce7;
}

.vote-btn.vote-down:hover,
.vote-btn.vote-down.active {
    border-color: #ef4444;
    background: #fee2e2;
}

.vote-count {
    font-weight: 600;
    color: var(--color-text);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .provider-votes {
        margin-top: 6px;
    }
    
    .vote-btn {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
}

/* ========================================
   News Section
======================================== */
.news-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1f33 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}

.news-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.news-section {
    padding: 48px 0;
}

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

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.news-meta {
    margin-bottom: 12px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: var(--color-text);
    text-decoration: none;
}

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

.news-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-readmore {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.news-readmore:hover {
    text-decoration: underline;
}

/* News Widget (for homepage) */
.news-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
}

.news-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.news-widget-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.news-widget-title {
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.news-widget-title:hover {
    color: var(--color-primary);
}

.news-widget-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.news-widget-more {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.news-widget-more:hover {
    background: var(--color-bg-dark);
}

.no-news {
    text-align: center;
    padding: 48px;
    color: var(--color-text-light);
}

/* ========================================
   Destination Article Section
======================================== */

.destination-article-section {
    padding: 48px 0;
    background: var(--color-bg);
}

.destination-article-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.destination-article-content {
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

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

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

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

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

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

@media (max-width: 768px) {
    .destination-article-section {
        padding: 32px 0;
    }
    
    .destination-article-section h2 {
        font-size: 1.4rem;
    }
    
    .destination-article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}

.destination-article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 28px 0 12px 0;
}

.destination-article-content h3:first-child {
    margin-top: 0;
}

.detail-item-full {
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-border-light);
    padding-top: 12px;
    margin-top: 8px;
}

.detail-item-full .detail-value {
    font-size: 0.9rem;
}
