:root {
    --primary-color: #1a1a1d; /* Very Dark Grey */
    --secondary-color: #4e4e50; /* Medium Grey */
    --accent-color: #00bfff; /* Deep Sky Blue */
    --light-bg: #2c2c2e;
    --widget-bg: #1e1e21;
    --text-light: #f5f5f7;
    --text-muted: #a0a0a0;
    --border-color: #3a3a3c;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 20px rgba(0, 191, 255, 0.2);
}

/* --- Global Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.4rem; color: var(--accent-color); }

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

a:hover {
    color: #4ddbff; /* Lighter blue for hover */
    text-decoration: none;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

ul {
    list-style-type: none;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--widget-bg);
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-light);
    border-bottom-color: var(--accent-color);
}

/* --- Main Content Layout --- */
.page-content {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.main-area {
    flex: 3;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(45deg, var(--accent-color), #0077b6);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2.5rem;
}
.hero h1 {
    color: var(--text-light);
}
.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    opacity: 0.9;
}

/* --- Articles Grid & Cards --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card {
    background-color: var(--widget-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.article-card h3 {
    margin-bottom: 0.5rem;
}

.article-card p {
    flex-grow: 1;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    margin-top: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background-color: #4ddbff;
    color: var(--primary-color);
}

/* --- Sidebar --- */
.widget {
    background-color: var(--widget-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    display: block;
    color: var(--text-muted);
}
.widget ul li a:hover {
    color: var(--accent-color);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background-color: var(--widget-bg);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 0.5rem;
}
.footer-links a:hover {
    color: var(--text-light);
}


/* --- Article Page Specific --- */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header .meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-content h2, .article-content h3 {
    margin-top: 2rem;
}

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.article-content ul {
    list-style-type: disc;
}
.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.cta-box {
    background-color: var(--light-bg);
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 5px 5px 0;
}
.cta-box h3 {
    color: var(--text-light);
}

/* --- Sub-page styles (About, Contact, Offers) --- */
.page-header {
    padding: 2rem;
    background-color: var(--widget-bg);
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .page-content {
        flex-direction: column;
    }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}