/* --- Global Styles & Variables --- */
:root {
    --background-color: #1a1a1a; /* Deep charcoal */
    --card-background-color: #242424; /* Slightly lighter charcoal */
    --text-color: #d1d1d1; /* Soft off-white */
    --heading-color: #ffffff; /* Pure white */
    --accent-color: #D4AF37; /* Soft gold */
    --accent-color-hover: #e7c86a; /* Lighter gold */
    --border-color: #3a3a3a;
    --font-family-heading: 'Playfair Display', serif;
    --font-family-body: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color-hover);
}

ul {
    list-style: none;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-header .logo a {
    font-family: var(--font-family-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}
.site-header .logo a:hover {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 10px 0;
    position: relative;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
.main-nav a.active {
    color: #fff;
}

/* --- Main Content Layout --- */
main.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 60px;
    padding-bottom: 60px;
}

@media (min-width: 992px) {
    main.container {
        grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    }
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.8rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

/* --- Blog Articles Grid --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.card-image-container {
    position: relative;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.9);
    transition: filter 0.3s ease;
}
.article-card:hover .card-image {
    filter: saturate(1) brightness(1);
}

.market-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    object-fit: cover;
}

.article-card .card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--heading-color);
}

.article-card p {
    flex-grow: 1;
    font-size: 0.95rem;
}

.read-more {
    font-weight: 500;
    font-size: 0.9rem;
    align-self: flex-start;
    color: var(--accent-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-color);
    transition: background-color 0.3s, color 0.3s;
}

.read-more:hover {
    background-color: var(--accent-color);
    color: #1a1a1a;
}

/* --- Article Page --- */
.article-full-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    height: 400px;
    object-fit: cover;
}

.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 2.8rem;
}

.article-meta {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-meta a {
    color: var(--text-color);
    font-weight: 700;
}

.article-content h2 {
    margin-top: 3rem;
    font-size: 2rem;
}

.article-content ul {
    list-style-type: none;
    padding-left: 5px;
    margin-bottom: 1.5rem;
}

.article-content ul li {
    margin-bottom: 0.8rem;
    padding-left: 30px;
    position: relative;
}

.article-content ul li::before {
    content: '◇';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.article-content blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-size: 1.15rem;
    font-style: italic;
    color: #fff;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--card-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.sidebar .widget h3 {
    font-size: 1.6rem;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li {
    margin-bottom: 12px;
}

.widget-list a {
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: padding-left 0.3s ease;
}

.widget-list a:hover {
    padding-left: 8px;
}

/* --- Footer --- */
.site-footer {
    background-color: #000;
    color: #a0a0a0;
    text-align: center;
    padding: 3rem 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.site-footer .footer-links a {
    color: #d1d1d1;
    margin: 0 15px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Utility & Other Pages --- */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
}
.page-header h1 {
    font-size: 3rem;
}

.content-section {
    padding: 1rem 0;
}

.content-section p, .content-section ul {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.offers-grid .offer-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s ease;
}
.offers-grid .offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}
.offers-grid .offer-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.offers-grid .offer-card-content h3 a {
    font-size: 1.8rem;
    color: var(--heading-color);
    text-decoration: none;
}
.offers-grid .offer-card-content h3 a:hover {
    color: var(--accent-color);
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }

    main.container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card .card-content {
        padding: 20px;
    }
}