:root {
    --navy: #0c0d28;
    --gold: #ecae3f;
    --bg: #f7f8fa;
    --text: #22303f;
    --muted: #6b7684;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.topbar {
    background: var(--navy);
    color: #cfd8e3;
    font-size: 0.85rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
}

.auth-links a, .link-button {
    color: #fff;
    text-decoration: none;
    margin-left: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.inline-form { display: inline; }

.mainnav {
    background: #fff;
    border-bottom: 1px solid #e2e6ea;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mainnav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 130px;
    width: 170px;
    display: block;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 16px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--gold); }

.hero {
    background: linear-gradient(135deg, var(--navy), #1c3a5e);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.hero h1 { font-size: 2.2rem; margin-bottom: 10px; color: #fff; }
.hero p { font-size: 1.1rem; color: #cfd8e3; margin-bottom: 25px; }

.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 10px 26px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.section { padding: 50px 0; }
.section.narrow { max-width: 500px; }

h1 { color: var(--navy); }
h2 { color: var(--navy); margin-top: 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.card {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 6px;
    padding: 20px;
}

.card h3 a { color: var(--navy); text-decoration: none; }

.about-hero {
    padding: 45px 0;
}

.about-hero h1 { margin-bottom: 5px; }
.about-hero p { margin: 0; }

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-flex-text {
    flex: 1 1 380px;
}

.about-flex-image {
    flex: 1 1 320px;
}

.about-flex-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.about-flex-solo .about-flex-text {
    flex: 1 1 100%;
    max-width: 800px;
    margin: 0 auto;
}

.mission-vision {
    margin-top: 10px;
}

.mv-card {
    text-align: left;
}

.mv-card h2 {
    font-size: 1.3rem;
    margin: 10px 0;
}

.mv-mission { border-top: 4px solid var(--gold); }
.mv-vision { border-top: 4px solid var(--navy); }

.about-cta {
    text-align: center;
    background: #f0f2f5;
    border-radius: 10px;
    padding: 40px 20px;
}

.about-cta h2 { margin-bottom: 10px; }
.about-cta p { color: var(--muted); margin-bottom: 20px; }

.about-banner-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.about-cta-with-image {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
    flex-wrap: wrap;
}

.about-cta-with-image .about-cta-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    display: block;
}

.about-cta-with-image .about-cta-text {
    flex: 1 1 300px;
}

.about-cta-with-image .about-cta-text p { margin-bottom: 20px; }

.stats-bar {
    background: var(--navy);
    padding: 35px 0;
}

.stats-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-label {
    font-size: 0.9rem;
    color: #cfd8e3;
    margin-top: 4px;
}

.feature-card {
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 24px rgba(12, 13, 40, 0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

.tag {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.muted { color: var(--muted); font-size: 0.9rem; }

.event-image {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* --- board of directors: auto-rotating carousel, uniform photo size --- */
.board-carousel {
    position: relative;
    overflow: hidden;
}

.board-track {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    transition: transform 0.7s ease;
}

.board-card {
    flex: 1 1 300px;
    max-width: 340px;
    box-sizing: border-box;
}

/* only applied by JS when there are more members than fit on screen -
   cards keep a fixed, compact size instead of stretching to fill the row */
.board-track.is-carousel {
    flex-wrap: nowrap;
}

.board-track.is-carousel .board-card {
    flex: 0 0 min(320px, 85vw);
    max-width: min(320px, 85vw);
}

.board-card-inner {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 6px;
    padding: 20px;
    height: 100%;
}

.board-photo, .board-photo-placeholder {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
    display: block;
}

.board-photo-placeholder {
    background: linear-gradient(135deg, var(--navy), #1c3a5e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 2.8rem;
    font-weight: 700;
}

/* --- forum / Q&A --- */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4px;
}

.forum-question {
    display: block;
    border: 1px solid #e2e6ea;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.forum-question:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(12, 13, 40, 0.08);
}

.forum-question h3 { margin: 4px 0; color: var(--navy); }

.forum-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.answer {
    border-left: 3px solid var(--gold);
    padding: 12px 16px;
    margin-bottom: 14px;
    background: #f7f8fa;
    border-radius: 0 6px 6px 0;
}

.answer .forum-meta { margin-bottom: 6px; }

/* --- market news --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.news-item {
    display: block;
    border: 1px solid #e2e6ea;
    border-radius: 6px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(12, 13, 40, 0.08);
}

.news-source { margin-bottom: 6px; }
.news-item h3 { margin: 4px 0; color: var(--navy); font-size: 1.05rem; }
.news-date { font-size: 0.8rem; }

.footer {
    background: var(--navy);
    color: #cfd8e3;
    margin-top: 60px;
    padding: 40px 0 15px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.footer h4 { color: #fff; margin-bottom: 10px; }
.footer a { color: var(--gold); text-decoration: none; }
.copyright {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 25px;
    color: #8ea0b5;
}

.alert {
    background: #e6f4ea;
    border: 1px solid #b7dcc2;
    color: #256a3d;
    padding: 10px 16px;
    border-radius: 4px;
    margin-top: 15px;
}

.form p { margin-bottom: 14px; }
.form input, .form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cfd6dd;
    border-radius: 4px;
    font-size: 1rem;
}
.form textarea { min-height: 120px; }

/* --- header: short name next to logo, keep nav on one line --- */
.brand-name {
    margin-left: 12px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.mainnav-inner {
    flex-wrap: nowrap;
}

.nav-links {
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- hero: black stock-market mockup background --- */
.hero-market {
    position: relative;
    overflow: hidden;
    max-height: 320px;
    background-color: #000;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
}

.market-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    pointer-events: none;
}

.candle-body.candle-up { fill: #2f9e44; }
.candle-body.candle-down { fill: #d64545; }
.candle-wick.candle-up { stroke: #2f9e44; }
.candle-wick.candle-down { stroke: #d64545; }
.candle-wick {
    stroke-width: 0.3;
    transition: y1 2s ease-out, y2 2s ease-out;
}

.candle-body {
    transition: height 2s ease-out, y 2s ease-out;
}

.ma-line {
    fill: none;
    stroke-width: 0.8;
}
.ma-fast { stroke: #ffb84d; }
.ma-slow { stroke: #c77dff; }

.band-line {
    fill: none;
    stroke: #3ecf8e;
    stroke-width: 0.5;
    stroke-dasharray: 1.2 1;
    opacity: 0.8;
}

.ticker-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ticker {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    animation-name: ticker-cycle;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

.ticker-up { color: #4ade80; }
.ticker-down { color: #f87171; }

@keyframes ticker-cycle {
    0% { opacity: 0; transform: translateY(6px); }
    15% { opacity: 0.85; transform: translateY(0); }
    85% { opacity: 0.85; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-6px); }
}

.hero-market .hero-content {
    position: relative;
    z-index: 2;
    padding: 24px 20px;
    border-radius: 12px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 72%);
}
