/* CACHE BUSTER v80 - 2025-10-08 - AGGRESSIVE SPACING FIX */
/* CSS Variables for theme management - Dark mode as default */
:root {
    --primary-color: #0d9488;
    --primary-hover: #0f766e;
    --secondary-color: #6b7280;
    --accent-color: #14b8a6;
    --success-color: #059669;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Dark theme as default */
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 25px -5px rgba(0, 0, 0, 0.4);
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Light theme variables */
[data-theme="light"] {
    --bg-color: #f0fdfa;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Mobile-first font sizing */
    font-size: 16px; /* Prevent iOS zoom on form fields */
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1000px; /* Increased from 800px for better content width */
    margin: 0 auto;
    padding: 16px; /* Mobile-first padding */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Enhanced mobile responsive container */
@media (min-width: 768px) {
    .container {
        padding: 20px;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    flex: 1;
    width: 100%;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1400px; /* Increased from 1200px for better desktop utilization */
    }
    
    .main-content {
        flex-direction: column; /* Keep vertical stacking on all screen sizes */
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
}

/* Header styles - Mobile-first */
.header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 70px; /* Adjusted padding to prevent overflow */
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .header {
        margin-bottom: 2rem;
        padding: 0 80px; /* Adjusted padding for desktop */
    }
    
    .nav-links a {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        gap: 0.5rem !important;
    }
}

.header h1 {
    font-size: 1.8rem; /* SEO-optimized H1 tag */
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.header-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.header-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header-visual {
        gap: 0.8rem;
    }
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-top: 0.2rem;
}

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

.currency-divider {
    color: var(--accent-color);
    font-weight: 700;
    margin: 0 0.3rem;
    font-size: 0.9em;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.header h1 i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.header-icon-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 8px rgba(13, 148, 136, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.header-icon {
    font-size: 1.4rem;
    color: white;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
    line-height: 1;
    font-weight: normal;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.content-area {
    width: 100%;
    max-width: 800px; /* Increased from 600px for better content width */
    margin: 0 auto;
}

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

.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1rem;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

/* Converter card styles */
.converter-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid #3b82f6; /* Thicker blue border */
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.converter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6; /* Blue top border */
    border-radius: 16px 16px 0 0;
}

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

/* Input section styles */
.input-section {
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

.input-group {
    margin-bottom: 1.5rem;
}

/* Currency selection layout */
.currency-selection {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center; /* Center align items for proper button alignment */
    margin-bottom: 1rem;
}

/* Amount input section with equal spacing */
.amount-input-section {
    display: flex;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 1rem;
}

.amount-input-section .input-group {
    margin-bottom: 0;
    flex: 1; /* Make both groups equal width */
}

.amount-input-section .input-group:first-child {
    flex: 2; /* Make amount input slightly wider */
}

.amount-input-section .input-group:last-child {
    flex: 1; /* Make unit selector normal width */
}

/* Hide unit selector when not needed */
.amount-input-section .input-group:last-child[style*="display: none"] {
    display: none !important;
}

.swap-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); /* Blue gradient for swap button */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0; /* Remove top margin for center alignment */
    align-self: center; /* Center align in grid cell */
    margin-bottom: 0; /* Remove bottom margin */
    min-height: 48px; /* Minimum touch target size */
    -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
}

.swap-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af); /* Darker blue on hover */
    transform: scale(1.1);
}

.swap-btn:active {
    transform: scale(0.95);
}

.swap-icon {
    width: 18px;
    height: 18px;
    color: white;
    transition: transform 0.3s ease;
    pointer-events: none; /* Prevent SVG from interfering with button clicks */
}

.swap-icon * {
    pointer-events: none; /* Prevent SVG children from interfering with button clicks */
}

.swap-btn:hover .swap-icon {
    transform: rotate(180deg);
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1; /* Make input wrapper take equal space */
}

.currency-symbol {
    position: absolute;
    left: 12px;
    font-weight: 700;
    font-size: 16px;
    color: #3b82f6;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .currency-symbol {
    color: #60a5fa;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

input[type="number"] {
    flex: 1;
    padding: 14px 14px 14px 50px; /* Increased padding for touch targets */
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 18px; /* Larger font for better visibility */
    font-weight: 600; /* Bold text for prominence */
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
    min-height: 48px; /* Minimum touch target size */
    -webkit-appearance: none; /* Remove iOS styling */
    -moz-appearance: none; /* Remove Firefox styling */
    appearance: none; /* Remove default styling */
}

/* Enhanced dark mode styling for input visibility */
[data-theme="dark"] input[type="number"] {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 0 1px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] input[type="number"] {
    background: #ffffff;
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #1a202c;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Remove spinner controls completely */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

input[type="number"] {
    -moz-appearance: textfield !important; /* Firefox */
}

input[type="number"]:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

[data-theme="dark"] input[type="number"]:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                0 0 0 1px rgba(59, 130, 246, 0.5);
}

.amount-unit {
    flex: 1; /* Make unit selector take equal space */
    min-width: 120px;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px; /* Prevent iOS zoom */
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
    min-height: 48px; /* Minimum touch target size */
    -webkit-appearance: none; /* Remove iOS styling */
    -moz-appearance: none; /* Remove Firefox styling */
    appearance: none; /* Remove default styling */
}

.amount-unit:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.amount-unit:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="number"]:focus {
    outline: none !important;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

[data-theme="dark"] input[type="number"]:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5),
                0 0 0 4px rgba(59, 130, 246, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px; /* Prevent iOS zoom */
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
    min-height: 48px; /* Minimum touch target size */
    -webkit-appearance: none; /* Remove iOS styling */
    -moz-appearance: none; /* Remove Firefox styling */
    appearance: none; /* Remove default styling */
}

select:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.convert-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); /* Blue gradient */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Minimum touch target size */
    -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
}

/* Removed complex shine effect for better performance */

.convert-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af); /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* Loading spinner styles */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--primary-color);
}

.loading-spinner.show {
    display: block;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Error message styles */
.error-message {
    display: none;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--error-color);
    text-align: center;
}

[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.error-message.show {
    display: block;
}

.error-message i {
    margin-right: 0.5rem;
}

/* Result section styles */
.result-section {
    display: none;
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
}

.result-section.show {
    display: block;
}

.result-section h3 {
    margin-bottom: 1.5rem;
    color: #3b82f6; /* Blue color for "Converted Amount" heading */
    font-size: 1.5rem;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #3b82f6; /* Blue border on hover */
}

.result-item.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); /* Blue gradient for converted amount */
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-item .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.result-item.primary .label {
    color: rgba(255, 255, 255, 0.9);
}

.result-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3b82f6; /* Blue color for result values */
}

.result-item.primary .value {
    color: white;
}

/* Exchange info styles */
.exchange-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.rate-info, .timestamp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rate-info i, .timestamp i {
    color: #3b82f6; /* Blue color for rate info icons */
}

/* Info section styles */
.info-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid #3b82f6; /* Blue left border */
}

/* CTA section styles */
.cta-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.cta-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-link:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Blog Articles Section - BMI Fast Inspired Design */
.blog-articles-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.article-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(13, 148, 136, 0.05) 100%);
}

.article-card.featured::before {
    content: "Featured";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.article-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.read-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
}

.read-more:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

/* Converter CTA Section */
.converter-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0891b2 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.converter-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-content h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: scale(1.1);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-features span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .converter-cta-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-features {
        gap: 1rem;
    }
    
    .cta-features span {
        font-size: 0.8rem;
    }
}

/* Related Articles Section */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.related-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.related-card h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card h4 a:hover {
    color: var(--primary-color);
}

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

.related-articles .cta-section {
    text-align: center;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05); /* Blue background */
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2); /* Blue border */
}

.related-articles .cta-section p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.related-articles .cta-section a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-articles .cta-section a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Mobile Responsive for Related Articles */
@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-card {
        padding: 1.25rem;
    }
    
    .related-articles .cta-section {
        padding: 1.25rem;
    }
}

.info-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    padding: 0.75rem;
    background: var(--background-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

/* Service summary for better snippets */
.service-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-summary h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.service-summary p {
    color: var(--text-secondary);
}

.service-summary strong {
    color: var(--text-primary);
}

/* SEO Enhancement Styles */
.intro-text {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.conversion-examples {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
}

.conversion-examples h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.example-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.example-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.example-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.example-arrow {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.example-result {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .example-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .intro-text {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .conversion-examples {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}

/* Blog Article Styles - BMI Fast Inspired - v62 */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.article-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

.article-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.article-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.article-content {
    padding: 2rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 0.8rem 0;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.article-content ul {
    margin: 1.2rem 0;
    padding-left: 0;
}

.article-content li {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
    list-style: none;
}

.article-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--primary);
    color: var(--accent);
}

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

/* Article Navigation */
.article-breadcrumb {
    padding: 1rem 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

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

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

/* Article Author Info */
.article-author {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.author-info h4 {
    margin: 0 0 0.3rem 0;
    color: var(--text-primary);
}

.author-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile responsive for articles */
@media (max-width: 768px) {
    .blog-article {
        margin: 0 1rem 2rem 1rem;
    }
    
    .article-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .article-meta span {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Navigation Links */
.nav-links {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    background: var(--card-bg) !important;
    border-radius: 1rem !important;
    padding: 0.5rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow-x: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.nav-links::-webkit-scrollbar {
    display: none !important;
}

.nav-links a {
    padding: 0.75rem 1.2rem !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    border-radius: 0.75rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    opacity: 0.1;
}

.nav-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.nav-links a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3) !important;
}

.nav-links a.active::before {
    opacity: 0;
}

.nav-links a svg {
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.nav-links a:hover svg {
    transform: scale(1.1) !important;
}

.nav-links a.active svg {
    stroke: white !important;
}

/* Rate Dashboard Styling */
.rate-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.live-rate-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-subtle);
}

.rate-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.rate-symbol {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.rate-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rate-change {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.rate-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.rate-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.rate-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insight-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.insight-card h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.quick-converter {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.converter-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.converter-inputs input {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    background: var(--card-bg);
    color: var(--text-primary);
}

.converter-inputs .equals {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.trend-chart {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.trend-chart canvas {
    width: 100%;
    max-width: 600px;
    height: 200px;
    margin: 0 auto;
    display: block;
}

/* Conversion Examples Grid */
.conversion-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.example-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.example-card h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.example-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.rate-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.rate-box {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.rate-box h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

.conversion-value, .rate-box .rate-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lakh-format {
    font-size: 1rem;
    opacity: 0.8;
}

/* NRI Transfer Styles */
.nri-rates-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.transfer-calculator {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-row label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-primary);
}

.input-row input, .input-row select {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
}

.service-comparison {
    margin: 2rem 0;
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.rate-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05); /* Blue background */
    border-radius: 8px;
}

.rate-info .rate {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rate-info .fee {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.country-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.country-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.country-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.trend-insights {
    background: rgba(59, 130, 246, 0.05); /* Blue background */
    border: 1px solid rgba(59, 130, 246, 0.2); /* Blue border */
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.rate-alerts {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.bank-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.bank-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.bank-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* FAQ Enhancements */
.faq-section {
    margin: 3rem 0;
}

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

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--card-bg);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.05); /* Blue hover background */
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .rate-display {
        flex-direction: column;
        text-align: center;
    }
    
    .rate-value {
        font-size: 2.5rem;
    }
    
    .rate-insights {
        grid-template-columns: 1fr;
    }
    
    .conversion-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-row label {
        min-width: auto;
    }
    
    .converter-inputs {
        flex-direction: column;
    }
    
    .converter-inputs .equals {
        align-self: center;
    }
}

/* Apply same styling to article page navigation */
.navigation {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    background: var(--card-bg) !important;
    border-radius: 1rem !important;
    padding: 0.5rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow-x: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.navigation::-webkit-scrollbar {
    display: none !important;
}

.navigation a {
    padding: 0.75rem 1.2rem !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    border-radius: 0.75rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

.navigation a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.navigation a:hover::before {
    opacity: 0.1;
}

.navigation a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.navigation a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3) !important;
}

.navigation a.active::before {
    opacity: 0;
}

.navigation a svg {
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.navigation a:hover svg {
    transform: scale(1.1) !important;
}

.navigation a.active svg {
    stroke: white !important;
}

/* Tooltip styles for lakhs and crores explanation */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
}

.tooltip-trigger {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tooltip-trigger:hover {
    opacity: 1;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1000;
    transition: all 0.3s ease;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Navigation links for new pages */
.nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.nav-links a.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--card-bg);
}

/* Styles for dedicated content pages */
.historical-section,
.nri-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.controls-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.currency-pair-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-pair-selector label {
    font-weight: 600;
    color: var(--text-primary);
}

.currency-pair-selector select {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 150px;
}

.currency-pair-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.period-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.period-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.chart-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

.chart-info {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

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

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-label {
    font-weight: 600;
    color: var(--text-secondary);
}

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

.rates-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

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

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

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

.historical-insights {
    margin-bottom: 2rem;
}

.insight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.insight-card {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.insight-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.insight-card p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

/* Additional styles for NRI pages */
.currency-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.currency-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.currency-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.conversion-examples {
    margin-bottom: 1rem;
}

.conversion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.arrow {
    color: var(--primary-color);
    font-weight: bold;
    margin: 0 0.5rem;
}

.rate-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.scenario-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.scenario-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.scenario-content {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.salary-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

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

.property-examples,
.education-examples,
.investment-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.property-item,
.education-item,
.investment-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.property-item h4,
.education-item h4,
.investment-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tip-card {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tip-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tip-card li:last-child {
    border-bottom: none;
}

.tip-card li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.conversion-examples {
    margin-bottom: 1rem;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.example-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.example-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.example-item p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
}

.example-item strong {
    color: var(--text-primary);
}

/* Indian Numbering System Section */
.numbering-system-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.numbering-system-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.numbering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 2rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.numbering-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.numbering-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.numbering-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.numbering-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.numbering-example .number {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: bold;
    color: var(--primary-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.numbering-example .equals {
    color: var(--text-secondary);
    font-weight: bold;
}

.numbering-example .word {
    font-weight: 600;
    color: var(--text-primary);
}

.conversion-logic {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.conversion-logic h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.conversion-logic ul {
    list-style: none;
    padding: 0;
}

.conversion-logic li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.conversion-logic .highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Blog Article Page Styles */
.conversion-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    color: white;
}

.conversion-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.amount-from, .amount-to {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.conversion-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.rate-note {
    opacity: 0.9;
    font-size: 0.9rem;
}

.explanation-grid, .conversion-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.explanation-card, .conversion-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.conversion-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.scenario {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.scenario h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

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

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.purchasing-power, .related-conversions {
    margin: 2rem 0;
}

.purchase-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.purchase-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.amount-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.amount-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.conversion-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.conversion-links a {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.conversion-links a:hover {
    background: var(--primary-dark);
}

.tips-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.tips-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.conversion-breakdown ul {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    list-style: none;
}

.conversion-breakdown li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.conversion-breakdown li:last-child {
    border-bottom: none;
}

/* Mobile responsive updates */
@media (max-width: 768px) {
    .nav-links {
        gap: 0.25rem;
        padding: 0.4rem;
        margin-bottom: 1rem;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        gap: 0.3rem;
        flex-shrink: 0 !important;
        min-width: max-content !important;
    }
    
    .nav-links a:hover {
        transform: none;
    }
}
    
    .tooltip-content {
        font-size: 0.8rem;
        padding: 0.5rem;
        white-space: normal;
        width: 200px;
    }
    
    .rates-table {
        font-size: 0.8rem;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 0.5rem;
    }
    
    .historical-section,
    .nri-section {
        padding: 1.5rem;
    }
    
    .insight-cards {
        grid-template-columns: 1fr;
    }
    
    .currency-cards {
        grid-template-columns: 1fr;
    }
    
    .property-examples,
    .education-examples,
    .investment-examples {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .theme-toggle {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .scenario-tab {
        text-align: center;
    }
    
    .controls-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .currency-pair-selector {
        justify-content: center;
    }
    
    .period-selector {
        justify-content: center;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .chart-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}

/* Mobile responsive for info section */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 1rem;
    }
    
    .service-summary {
        font-size: 0.85rem;
    }
}

/* Currency Trend Mini-Graph */
.trend-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.trend-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.trend-indicator {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.trend-indicator.up {
    background-color: var(--success-color);
    color: white;
}

.trend-indicator.down {
    background-color: var(--error-color);
    color: white;
}

.trend-indicator.neutral {
    background-color: var(--secondary-color);
    color: white;
}

.trend-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.trend-graph {
    flex: 1;
    min-width: 0;
    position: relative;
}

#trendCanvas {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: block;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trend-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    min-width: 150px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.stat-value.negative {
    color: var(--error-color);
}

.trend-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trend-loading.hidden {
    display: none;
}

/* Responsive design for trend section */
@media (max-width: 768px) {
    .trend-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trend-stats {
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    #trendCanvas {
        height: 60px;
    }
    
    .header {
        padding: 0 50px; /* Reduce padding on mobile */
    }
    
    .header h1 {
        font-size: 1.5rem;
        gap: 0.6rem;
    }
    
    .header-icon-frame {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Indian formats styling */
.indian-formats {
    display: none;
    margin-top: 1rem;
}

.indian-formats.show {
    display: block;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

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

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: var(--card-bg);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    background: var(--bg-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 300px;
    padding: 1.25rem;
}

.faq-answer p {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    line-height: 1.6;
}

.faq-answer ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.faq-answer strong {
    color: var(--primary-color);
}

/* Mobile FAQ styles */
@media (max-width: 768px) {
    .faq-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer.active {
        padding: 1rem;
    }
}



/* Currency Ticker Styles */
.ticker-container {
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    height: 45px;
    overflow: hidden;
    position: relative;
    background: transparent;
    border: 2px solid var(--primary-color);
}

/* Removed gradient animation - no longer needed */

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
    padding: 0 2rem;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 3rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.ticker-pair {
    font-weight: 700;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.ticker-rate {
    margin-right: 0.5rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.ticker-change {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.ticker-change.positive {
    color: #22c55e;
    font-weight: 700;
}

.ticker-change.negative {
    color: #ef4444;
    font-weight: 700;
}

.ticker-change.neutral {
    color: var(--text-secondary);
    font-weight: 600;
}

.ticker-flag {
    margin-right: 0.3rem;
    font-size: 1rem;
}

.ticker-separator {
    color: var(--text-secondary);
    margin: 0 0.5rem;
    font-weight: 300;
}

/* Mobile ticker adjustments */
@media (max-width: 768px) {
    .ticker-container {
        margin: 1rem 0;
    }
    
    .ticker-wrapper {
        height: 40px;
    }
    
    .ticker-content {
        animation: scroll-left 25s linear infinite;
        padding: 0 1rem;
    }
    
    .ticker-item {
        margin-right: 2rem;
        font-size: 0.85rem;
    }
    
    .ticker-pair {
        font-size: 0.8rem;
    }
    
    .ticker-rate {
        font-size: 0.85rem;
    }
}



/* Mobile responsive styles for header and converter */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .header-icon-frame {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .header-icon {
        font-size: 1.2rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Fix for amount input section on mobile */
    .amount-input-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .amount-input-section .input-group {
        flex: 1;
        margin-bottom: 0;
    }
    
    .amount-input-section .input-group:first-child {
        flex: 1; /* Equal width on mobile */
    }
    
    .amount-input-section .input-group:last-child {
        flex: 1; /* Equal width on mobile */
    }
    
    .input-wrapper {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
    
    .input-wrapper input[type="number"] {
        padding: 14px 14px 14px 50px; /* Maintain consistent padding */
        margin-bottom: 0;
    }
    
    .amount-unit {
        min-width: auto;
        width: 100%;
        font-size: 16px; /* Prevent iOS zoom */
        padding: 14px; /* Maintain consistent padding */
    }
    
    .currency-symbol {
        position: absolute;
        left: 12px;
        top: 12px;
        z-index: 2;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Adjust currency selection grid for mobile */
    .currency-selection {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: stretch;
    }
    
    .swap-btn {
        width: 48px; /* Maintain minimum touch target */
        height: 48px;
        margin: 0.5rem auto;
        align-self: center;
        order: 1;
    }
    
    .input-group:first-child {
        order: 0;
    }
    
    .input-group:last-child {
        order: 2;
    }
}

/* Contact Form Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-content h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-cancel,
.btn-submit {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-cancel:hover {
    background-color: var(--border-color);
}

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

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Mobile responsive for contact form */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Games Section */
.games-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.games-section h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.games-title-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.2em;
    vertical-align: middle;
    position: relative;
    top: -0.1em;
}

.games-title-svg {
    width: 1.5em;
    height: 1.5em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: gamepad-glow 3s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes gamepad-glow {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    50% {
        filter: drop-shadow(0 2px 8px rgba(13, 148, 136, 0.4)) drop-shadow(0 0 12px rgba(6, 182, 212, 0.3));
    }
}

.games-section p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

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

.game-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.15);
    border-color: var(--primary-color);
}

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

.game-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.game-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.game-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, rgba(13, 148, 136, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.game-card:hover .game-svg {
    transform: scale(1.1);
}

.game-card:hover .game-icon-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.cash-dash-icon .game-svg {
    animation: coin-spin 3s linear infinite;
}

.match-symbol-icon .game-svg {
    animation: target-pulse 2s ease-in-out infinite;
}

@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes target-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.game-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.game-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

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

.btn-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Game Modal Styles */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.game-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    margin: 1rem;
}

.game-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--border-color);
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.game-area {
    width: 100%;
    height: 600px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
    margin: 0.5rem 0;
}

.game-score {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-over-screen {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    margin: 1rem 0;
}

.game-over-screen h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
    text-align: left;
}

.game-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.game-stat-label {
    color: var(--text-secondary);
}

.game-stat-value {
    color: var(--primary-color);
    font-weight: 600;
}

.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.game-control-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.game-control-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Mobile responsive for games */
@media (max-width: 768px) {
    .games-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-card {
        padding: 1.25rem;
    }
    
    .game-icon {
        width: 60px;
        height: 60px;
    }
    
    .game-icon-glow {
        width: 70px;
        height: 70px;
    }
    
    .game-container {
        padding: 1.5rem;
        max-width: 98%;
        max-height: 95vh;
        margin: 0.25rem;
    }
    
    .game-close {
        top: 0.25rem;
        right: 0.25rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.4rem;
    }
    
    .game-area {
        height: 500px;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .game-control-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .btn-icon {
        font-size: 1em;
    }
    
    .game-over-screen {
        padding: 1rem;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .game-stat-item {
        font-size: 0.85rem;
        padding: 0.4rem;
    }
    
    /* Mobile-specific game answer buttons */
    .game-area button {
        font-size: 3rem !important;
        padding: 2rem 1rem !important;
        min-height: 100px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        border-radius: 8px !important;
        width: 100% !important;
        border: 2px solid var(--border-color) !important;
        background: var(--card-bg) !important;
        color: var(--text-primary) !important;
    }
    
    /* Ensure game question area has proper spacing */
    .game-area > div {
        padding: 1rem !important;
    }
    
    /* Force grid layout for mobile */
    .game-area div[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        display: grid !important;
    }
    
    /* Additional mobile game button targeting */
    .mobile-game-btn {
        font-size: 3rem !important;
        padding: 2rem 1rem !important;
        min-height: 100px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }
}

/* Universal mobile game button styling (applies to all screen sizes) */
.mobile-game-btn {
    font-size: 3rem !important;
    padding: 2rem 1rem !important;
    min-height: 100px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    border: 2px solid var(--border-color) !important;
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
    overflow: visible !important;
}

/* Universal game area button styling for all devices */
.game-area button {
    font-size: 3rem !important;
    padding: 2rem 1rem !important;
    min-height: 100px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    border: 2px solid var(--border-color) !important;
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
    overflow: visible !important;
}

/* Game Animations */
@keyframes pointsFloat {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translate(-52%, -48%);
    }
    20%, 40%, 60%, 80% {
        transform: translate(-48%, -52%);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bonus-item {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2) drop-shadow(0 0 5px gold);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes danger-item {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2) drop-shadow(0 0 5px red);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes lightning-item {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.5) drop-shadow(0 0 8px cyan);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Top Scores Display */
.top-scores {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.top-scores h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.score-item .rank {
    color: var(--primary-color);
    font-weight: bold;
}

.score-item .score {
    color: var(--accent-color);
    font-weight: bold;
}

.score-item .time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.game-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.game-stats > div {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.game-score {
    color: var(--primary-color);
}

.game-streak {
    color: var(--warning-color);
}

.game-multiplier {
    color: var(--accent-color);
}

.game-level {
    color: var(--success-color);
}

/* Timer pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Success bounce animation */
@keyframes success-bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Error shake animation */
@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-10px);
    }
    40%, 80% {
        transform: translateX(10px);
    }
}

/* Quick Converters Section */
.quick-converters-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.quick-converters-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.quick-converters-section > p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.quick-converter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.quick-converter-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-converter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.15);
    border-color: var(--primary-color);
}

.quick-converter-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.converter-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.converter-info h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.converter-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .quick-converter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-converter-card {
        padding: 1rem;
    }
    
    .converter-icon {
        font-size: 1.5rem;
        margin-right: 0.75rem;
    }
    
    .converter-info h3 {
        font-size: 1.1rem;
    }
}

/* Tools section styling */
.tools-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tools-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .tools-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .tools-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tools-list li {
    margin: 0;
}

.tools-list a {
    display: block;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tools-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

/* Footer styling */
.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-section p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Features grid for calculator page */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.content-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.content-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer Styles */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--teal-500);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.disclaimer {
    font-size: 0.8rem !important;
    opacity: 0.8;
}

/* About, Privacy, Contact Page Styles */
.about-content,
.privacy-content,
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.about-section,
.privacy-section,
.contact-intro {
    margin-bottom: 2rem;
}

.about-section h2,
.privacy-section h2,
.contact-intro h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--teal-500);
    padding-bottom: 0.5rem;
}

.about-section h3,
.privacy-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
}

.user-categories,
.number-system,
.tech-features,
.roadmap {
    list-style: none;
    padding: 0;
}

.user-categories li,
.number-system li,
.tech-features li,
.roadmap li {
    background: var(--card-bg);
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-left: 3px solid var(--teal-500);
    border-radius: 0 0.5rem 0.5rem 0;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.problem,
.solution {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.user-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.profile {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.value {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
}

.submit-btn {
    background: var(--teal-500);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--teal-600);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.contact-info-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.contact-option {
    margin-bottom: 2rem;
}

.contact-option h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.faq-items {
    margin: 2rem 0;
}

.faq-item {
    background: var(--card-bg);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.feedback-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feedback-category {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.last-updated {
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal-600);
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.privacy-footer,
.about-footer,
.contact-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.privacy-footer a,
.about-footer a,
.contact-footer a {
    color: var(--teal-500);
    text-decoration: none;
    font-weight: 600;
}

.privacy-footer a:hover,
.about-footer a:hover,
.contact-footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .problem-solution {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .privacy-content,
    .contact-content {
        padding: 1rem;
    }
}

/* =====================================
   ABOUT PAGE STYLES
===================================== */

/* About Page Styles */
.page-content {
    padding: 1rem 0;
}

.page-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Mission Section */
.mission-section {
    padding: 2rem 0;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.mission-visual {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.number-example {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.example-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.western {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.indian {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Features Grid */
.features-section {
    padding: 5rem 0;
    background: var(--card-bg);
    border-radius: 24px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

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

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Number System Section */
.number-system-section {
    padding: 5rem 0;
}

.system-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.number-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.number-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.number-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.number-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.number-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* User Groups */
.users-section {
    padding: 5rem 0;
}

.user-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.user-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

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

.user-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.user-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.user-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.user-features {
    list-style: none;
    padding: 0;
}

.user-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.user-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Platform Features */
.platform-section {
    padding: 5rem 0;
    background: var(--card-bg);
    border-radius: 24px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.platform-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-row:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-icon-large {
    font-size: 4rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Trust Section */
.trust-section {
    padding: 3rem 0;
}

.trust-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

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

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trust-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

.trust-point {
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
}

.cta-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.cta-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

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

.cta-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .number-cards {
        grid-template-columns: 1fr;
    }
    
    .user-groups {
        grid-template-columns: 1fr;
    }
    
    .feature-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .trust-points {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Additional styles for extended Indian Number System section */
.common-conversions {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    text-align: center;
}

.common-conversions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.conversion-highlights {
    display: block;
    text-align: center;
    margin: 1.5rem 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.highlight-item {
    display: block;
    text-align: center;
    background: var(--bg-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    margin: 0.5rem auto;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.highlight-item .amount {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: inline-block;
    margin: 0 0.5rem;
}

.highlight-item .equals {
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    margin: 0 0.5rem;
}

.highlight-item .definition {
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
    margin: 0 0.5rem;
}

.why-it-matters {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.why-it-matters h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.why-it-matters ul {
    margin: 1rem 0;
}

.why-it-matters li {
    margin: 0.75rem 0;
    line-height: 1.6;
}

/* Responsive design for numbering system section */
@media (max-width: 600px) {
    .numbering-system-section {
        padding: 1.5rem 1rem;
        margin: 1rem 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .common-conversions {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .conversion-highlights {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
        padding: 1rem;
        min-width: 0;
        max-width: 100%;
    }
    
    .numbering-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .numbering-card {
        flex: none;
        min-width: 0;
        max-width: none;
        width: 100%;
        margin: 0;
    }
    
    .numbering-example {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .numbering-example .number,
    .numbering-example .word {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .numbering-system-section {
        padding: 1rem 0.5rem;
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }
}
