/*
Theme Name: TradeBrokerPro Cardinal
Description: Corporate Financial Design
Version: 4.1
*/

:root {
    /* Corporate Palette: Trust, Stability, Professionalism */
    --c-primary: #0a192f; /* Deep Navy */
    --c-secondary: #172a45; /* Lighter Navy */
    --c-accent: #64ffda; /* Teal / Cyan for modern tech feel */
    --c-text-main: #ccd6f6; /* Off-white for dark mode feel or dark for light mode? Let's go Light Theme mostly */
    
    /* Let's do a Light "Swiss" Professional Theme actually, as per "broker" niche usually */
    --bg-body: #ffffff;
    --bg-light: #f3f4f6;
    --text-dark: #111827;
    --text-grey: #6b7280;
    --brand-blue: #2563eb;
    --brand-dark: #1e293b;
    
    --f-main: 'Manrope', sans-serif;
    --f-display: 'Space Grotesk', sans-serif;
    
    --pad-container: 5vw;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg-body);
    color: var(--text-dark);
    font-family: var(--f-main);
    line-height: 1.6;
    font-size: 16px;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER --- */
.broker-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 1.2rem 0;
}
.header-inner {
    padding: 0 var(--pad-container);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.broker-logo {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
}
.broker-logo .highlight { color: var(--brand-blue); }

.broker-nav { display: flex; }
.broker-menu { display: flex; gap: 2rem; }
.broker-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.broker-menu a:hover { color: var(--brand-blue); }

.phone-link {
    font-weight: 700;
    color: var(--brand-dark);
}
.mobile-burger { display: none; background: none; border: none; cursor: pointer; }
.mobile-burger span { display: block; width: 25px; height: 2px; background: #333; margin: 5px 0; }

.site-content { margin-top: 80px; }

/* --- HERO --- */
.broker-hero {
    padding: 6rem var(--pad-container);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}
.hero-tagline {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--f-display);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--brand-dark);
    margin-bottom: 2rem;
}
.hero-title .text-accent { color: var(--brand-blue); }
.hero-desc {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 3rem;
    max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; }
.btn-primary {
    background: var(--brand-blue);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 600;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); }
.btn-outline {
    border: 2px solid var(--brand-dark);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 600;
}
.btn-outline:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }

.hero-visual {
    position: relative;
    height: 400px;
}
.abstract-shape {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 350px; height: 350px;
    background: var(--brand-blue);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
}
.finance-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: absolute;
    min-width: 180px;
}
.card-1 { top: 20%; left: 10%; transform: rotate(-5deg); }
.card-2 { bottom: 20%; right: 10%; transform: rotate(5deg); }
.finance-card span { display: block; font-size: 0.9rem; color: var(--text-grey); }
.finance-card strong { font-size: 1.5rem; color: var(--brand-dark); font-family: var(--f-display); }

/* --- INSTRUMENTS GRID --- */
.instruments-grid-section {
    padding: 6rem var(--pad-container);
    background: #fff;
}
.section-head-center {
    text-align: center;
    margin-bottom: 4rem;
}
.sub-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.section-head-center h2 {
    font-family: var(--f-display);
    font-size: 2.5rem;
    color: var(--brand-dark);
}

.b-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.b-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.b-card:hover {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}
.b-icon {
    font-family: var(--f-display);
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
    opacity: 0.5;
}
.b-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}
.b-card p {
    font-size: 0.95rem;
    color: var(--text-grey);
    margin-bottom: 2rem;
}
.b-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-blue);
}

/* --- MISSION --- */
.mission-section {
    background: var(--c-primary);
    color: #fff;
    padding: 8rem var(--pad-container);
    position: relative;
    overflow: hidden;
}
/* Subtle background glow */
.mission-section::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mission-container {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.mission-title {
    font-family: var(--f-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 3.5rem;
    letter-spacing: -1px;
}
.mission-points {
    display: grid;
    gap: 2.5rem;
}
.m-point {
    padding-left: 2rem;
    border-left: 2px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.m-point:hover { border-left-color: var(--c-accent); }

.m-point h4 {
    font-family: var(--f-display);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.m-point h4::before {
    content: '→';
    color: var(--c-accent);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}
.m-point:hover h4::before { opacity: 1; transform: translateX(0); }

.m-point p { 
    opacity: 0.7; 
    font-size: 1.05rem; 
    line-height: 1.6;
    margin-left: 0; 
}

.stat-box {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    padding: 4rem 3rem;
    text-align: center;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    position: relative;
}
.stat-box:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.2); }
.stat-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 24px;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
    pointer-events: none;
}

.big-num {
    display: block;
    font-family: var(--f-display);
    font-size: 8rem;
    background: linear-gradient(135deg, #fff 30%, var(--c-accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 700;
}
.stat-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* --- AUDIENCE --- */
.audience-section {
    padding: 5rem var(--pad-container);
    border-bottom: 1px solid #eee;
}
.audience-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}
.aud-head h2 { font-family: var(--f-display); font-size: 2rem; }
.aud-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.aud-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-left: 3px solid var(--brand-blue);
    font-weight: 600;
}

/* --- NEWS --- */
.latest-news { padding: 6rem var(--pad-container); }
.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}
.section-head-row h2 { font-family: var(--f-display); font-size: 2.5rem; color: var(--brand-dark); }
.all-news-link {
    font-weight: 700;
    border-bottom: 2px solid var(--brand-blue);
    padding-bottom: 3px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.news-card {
    border: 1px solid #eee;
    padding: 2rem;
    transition: 0.3s;
}
.news-card:hover { border-color: var(--brand-dark); }
.news-date {
    font-size: 0.85rem;
    color: var(--text-grey);
    margin-bottom: 1rem;
}
.news-title {
    font-family: var(--f-display);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.news-read-more { font-size: 0.9rem; font-weight: 700; color: var(--brand-blue); }

/* --- FOOTER --- */
.site-footer {
    background: #0f172a;
    color: #fff;
    padding: 4rem 0 0;
}
.footer-inner { padding: 0 var(--pad-container); }
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}
.footer-brand h3 {
    font-family: var(--f-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.footer-brand p { opacity: 0.6; font-size: 0.9rem; max-width: 300px; }

.footer-contacts h4, .footer-nav-block h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--brand-blue);
}
.f-contact-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    opacity: 0.9;
}
.f-contact-row span:first-child { opacity: 0.5; min-width: 50px; }

.f-menu li { margin-bottom: 0.8rem; }
.f-menu a { opacity: 0.7; font-size: 0.95rem; }
.f-menu a:hover { opacity: 1; color: var(--brand-blue); }

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.4;
}

/* --- INNER PAGES COMMON --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--pad-container);
}

/* Page Header Simple */
.page-header-simple, .archive-header-simple, .single-article-header {
    padding: 4rem 0 3rem;
    background: var(--bg-light);
    border-bottom: 1px solid #eee;
    margin-bottom: 4rem;
}
.page-title-simple, .archive-main-title {
    font-family: var(--f-display);
    font-size: 2.5rem;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}
.breadcrumbs-simple { font-size: 0.9rem; color: var(--text-grey); }
.breadcrumbs-simple .sep { margin: 0 0.5rem; opacity: 0.5; }

/* Archive Grid */
.posts-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}
.post-grid-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0; /* Removed padding to allow image to touch edges */
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* For image rounding */
}
.post-grid-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}
.card-thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.post-grid-card:hover .card-thumb img { transform: scale(1.05); }

.card-body-wrap {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta { margin-bottom: 1rem; font-size: 0.85rem; color: var(--text-grey); }
.card-title {
    font-family: var(--f-display);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.card-excerpt { font-size: 0.95rem; color: var(--text-grey); margin-bottom: 1.5rem; flex-grow: 1; }
.card-read-more { font-weight: 700; color: var(--brand-blue); font-size: 0.9rem; margin-top: auto; }

/* Single Post */
.article-main-title { font-family: var(--f-display); font-size: 3rem; line-height: 1.2; color: var(--brand-dark); }
.single-content-wrapper { max-width: 800px; margin: 0 auto; }
.content-text { font-size: 1.15rem; line-height: 1.7; color: var(--text-dark); margin-bottom: 3rem; }
.content-text p { margin-bottom: 1.5rem; }
.content-text h2 { margin-top: 2.5rem; margin-bottom: 1.5rem; font-family: var(--f-display); font-size: 1.8rem; }
.content-text ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.btn-back { display: inline-block; padding: 0.8rem 2rem; border: 1px solid #eee; border-radius: 4px; font-weight: 600; }
.btn-back:hover { border-color: var(--brand-dark); color: var(--brand-dark); }

/* Pagination */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.pagination-wrapper .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination-wrapper .nav-links a,
.pagination-wrapper .nav-links span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 45px !important;
    border: 1px solid #eee !important;
    border-radius: 50% !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    transition: 0.3s !important;
    text-decoration: none !important;
    background: #fff !important; /* Ensure they have a background */
    margin: 0 !important;
    float: none !important;
}

.pagination-wrapper .nav-links .current,
.pagination-wrapper .nav-links a:hover {
    background: var(--brand-blue) !important;
    color: #fff !important;
    border-color: var(--brand-blue) !important;
}

.pagination-wrapper .nav-links .dots {
    border: none !important;
    width: auto !important;
    padding: 0 0.5rem !important;
    background: transparent !important;
}

/* --- MOBILE --- */
@media (max-width: 1024px) {
    .hero-container, .mission-container, .audience-wrapper, .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .b-grid, .news-grid, .posts-grid-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-visual { display: none; } /* Hide complicated visual on mobile */
    .broker-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #fff;
        padding: 2rem;
        flex-direction: column;
        border-bottom: 1px solid #eee;
    }
    .broker-nav.active { display: flex; }
    .broker-menu { flex-direction: column; gap: 1rem; }
    .mobile-burger { display: block; }
    
    .single-content-wrapper { padding: 0 1rem; }
    .article-main-title { font-size: 2rem; }
}
