/* Corex AI Group - Professional Fintech Styles */
:root {
    --primary-color: #0B1E3D; /* Dark Blue - Trust & Authority */
    --accent-color: #0056D2; /* Tech Blue - Innovation */
    --text-dark: #1A1A1A;
    --text-light: #596575;
    --bg-light: #F4F7FA;
    --white: #FFFFFF;
    --border-color: #E1E4E8;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 { color: var(--primary-color); font-weight: 700; margin-bottom: 1rem; }
h1 { font-size: 2.5rem; letter-spacing: -0.5px; }
h2 { font-size: 1.75rem; }
p { margin-bottom: 1.5rem; color: var(--text-light); }
a { text-decoration: none; color: var(--accent-color); transition: 0.3s; }
a:hover { color: var(--primary-color); }

/* News Hub Layout */
.news-header { padding: 60px 0 40px; border-bottom: 1px solid var(--border-color); margin-bottom: 40px; }
.news-intro { max-width: 700px; font-size: 1.1rem; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.news-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.news-date { font-size: 0.85rem; color: #8898AA; font-weight: 600; display: block; margin-bottom: 10px; }
.news-card h2 { font-size: 1.4rem; margin-bottom: 15px; }
.read-more { font-weight: 600; display: inline-flex; align-items: center; }

/* Article Layout */
.breadcrumb { font-size: 0.9rem; color: var(--text-light); margin: 30px 0; }
.article-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; margin-bottom: 80px; }
.article-content { font-size: 1.1rem; }
.sidebar-box { background: var(--bg-light); padding: 30px; border-radius: 8px; }
.sidebar-title { font-size: 1.2rem; margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li { margin-bottom: 15px; border-bottom: 1px solid #ddd; padding-bottom: 15px; }

/* Footer */
footer { background: var(--primary-color); color: var(--white); padding: 40px 0; text-align: center; margin-top: auto; }
footer a { color: #ccc; }

/* Footer links grouping */
.footer-links { margin-top: 8px; font-size: 0.95rem; }
.footer-links a { color: #ccc; margin: 0 8px; display:inline-block; }
.footer-links a:hover { color: var(--white); text-decoration:underline; }

/* Mobile */
.news-thumb { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; margin-bottom: 15px; display:block; }
.featured-image { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 8px; margin: 20px 0; display:block; }
.back-home { display:inline-block; margin-bottom:12px; background:var(--primary-color); color:var(--white); padding:8px 12px; border-radius:6px; text-decoration:none; font-weight:600; }

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:20px; }
    .news-card { padding: 20px; }
}

@media (max-width: 768px) {
    .article-layout { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    .news-date { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .news-header { padding: 40px 0 30px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-card { padding: 20px; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .news-ticker-container { --ticker-height: 36px; font-size: 0.85rem; }
    footer { padding: 30px 0; }
    .footer-links { font-size: 0.9rem; }
}

/* Performance tip: keep CSS compact and use 'loading="lazy"' on images */

/* News Ticker */
.news-ticker-container {
    background: #020b20; /* deep navy */
    color: #e6eef8; /* soft silver */
    width: 100%;
    overflow: hidden;
    --ticker-height: 44px;
    height: var(--ticker-height);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}
.news-ticker-inner { width: 100%; overflow: hidden; }
.ticker-track {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    /* start offset so content enters from the right */
    padding-left: 100%;
    animation: ticker-scroll 22s linear infinite;
}
.news-ticker-container:hover .ticker-track { animation-play-state: paused; }
.ticker-link { display: inline-block; color: #e6eef8; padding: 0 12px; text-decoration: none; }
.ticker-link:hover { color: #00f7ff; }
.ticker-sep { color: #7f8a99; padding: 0 8px; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Specialized Tech Map Styles */
.tech-map-wrapper {
    background: #020b20; /* Deep Navy */
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    color: #e2e8f0;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.tech-map-title {
    color: #38bdf8; /* Cyan */
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.4rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 15px;
}
.stage-box {
    border: 1px solid #334155;
    background: rgba(30, 41, 59, 0.4);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}
.stage-box:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}
.stage-title {
    color: #38bdf8;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}
.stage-content {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}
.arrow-down {
    text-align: center;
    color: #38bdf8;
    font-size: 1.5rem;
    margin: 10px 0;
    opacity: 0.7;
}
.consensus-core {
    border: 2px solid #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}
.highlight-green {
    color: #34d399; /* Emerald Green for Validation */
}
.cta-buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
}
.btn-secondary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
}

/* Breadcrumb Navigation */
nav.container {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Intro Text */
.intro-text {
    font-size: 1.15rem;
    color: #334155;
    font-weight: 500;
    margin-top: 20px;
}

/* Featured Image */
.featured-image {
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Tech Map Wrapper */
.tech-map-wrapper .stage-title {
    text-align: center;
    font-size: 1.1rem;
}

.tech-map-wrapper .stage-content {
    text-align: center;
}

/* Highlight Green */
.stage-box {
    border-color: #10b981;
}

.highlight-green {
    color: #10b981;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    background: #f8fafc;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

blockquote strong {
    color: var(--primary-color);
    font-style: normal;
}

/* Footer Links */
.footer-links a {
    margin: 0 6px;
}
