/* FX-MM.com - Modern Forex & Treasury Portal */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    background: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-top: 1.5rem; }

p { margin-bottom: 1.25rem; }

a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

ul, ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f1f5f9;
    border-left: 4px solid #1e40af;
    font-style: italic;
    color: #475569;
}

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

/* Layout */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Georgia', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.logo-tagline {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-nav {
    display: flex;
    gap: 0.5rem;
}

.site-nav a {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.site-nav a:hover {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
    color: #fff;
}

/* Main Content */
.site-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    margin: -3rem -2rem 3rem;
    border-radius: 0 0 20px 20px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Hero Section */
.hero-video {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    margin: -3rem -2rem 3rem;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(59, 130, 246, 0.7) 100%);
    z-index: 1;
}

.hero-video-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-video-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-video-content p {
    font-size: 1.35rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Section Cards */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.section-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.08);
}

.section-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #1e40af;
}

.section-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

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

.section-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

/* Article Content */
.article {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-header h1 {
    margin-bottom: 1rem;
}

.article-meta {
    color: #64748b;
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.05rem;
    color: #374151;
}

.article-content h2 {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Hero Image */
.article-hero {
    margin: -3rem -3rem 2rem -3rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Infographics */
.infographic {
    margin: 2rem 0;
    text-align: center;
}

.infographic img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb a {
    color: #64748b;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* Hub Page */
.hub-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hub-header h1 {
    margin-bottom: 0.75rem;
}

.hub-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.article-list {
    display: grid;
    gap: 1.5rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.article-card p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* Glossary */
.glossary-search {
    margin-bottom: 2rem;
}

.glossary-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
}

.glossary-letter {
    color: #1e40af;
    border-bottom: 2px solid #1e40af;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.glossary-term {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Archive Notice */
.archive-notice {
    background: #f1f5f9;
    border-left: 4px solid #64748b;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #475569;
}

/* Disclaimer */
.disclaimer {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #92400e;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
}

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

/* Responsive */
@media (max-width: 768px) {
    html { font-size: 16px; }
    .header-inner { flex-direction: column; gap: 1rem; }
    .site-nav { flex-wrap: wrap; justify-content: center; }
    .hero { padding: 2rem 1rem; }
    .hero h1 { font-size: 2rem; }
    .hero-video { height: 60vh; min-height: 400px; margin: -1.5rem -1rem 2rem; }
    .hero-video-content h1 { font-size: 2.25rem; }
    .hero-video-content p { font-size: 1.1rem; }
    .site-main { padding: 1.5rem 1rem; }
    .article { padding: 1.5rem; }
    .article-hero { margin: -1.5rem -1.5rem 1.5rem -1.5rem; }
    .section-grid { grid-template-columns: 1fr; }
}

@media print {
    .site-header, .site-footer, .site-nav, .breadcrumb { display: none; }
    .article { box-shadow: none; }
}
