:root {
    --primary-color: #D32F2F;
    /* Spark Red */
    --secondary-color: #1A202C;
    /* Dark Navy */
    --background-color: #FFFFFF;
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --border-color: #e2e2e2;
    --white: #ffffff;
    --font-heading: 'Roboto', sans-serif;
    /* Example modern font */
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ticker */
.ticker-wrap {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.85rem;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 20px;
}

.ticker-item span {
    font-weight: bold;
    color: #4CAF50;
    /* Green for positive */
}

.ticker-item span.down {
    color: #F44336;
    /* Red for negative */
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Header Main */
.header-main {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.search-bar {
    flex-grow: 1;
    margin: 0 40px;
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-bar button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.auth-buttons a {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.auth-buttons a:hover {
    background-color: #000;
}

/* Navigation */
.main-nav {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    display: flex;
    justify-content: center;
}

.main-nav li a {
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.main-nav li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}