
/* ---
Theme: ShadowLine
Font: Merriweather
Tone of Voice: Informative & Straightforward
--- */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #6c63ff; /* A vibrant accent for the dark theme */
    --secondary-color: #4a5568; /* A lighter grey for borders and accents */
    --text-color: #ecf0f1; /* Light grey for primary text */
    --light-text-color: #bdc3c7; /* Softer grey for secondary text */
    --bg-color: #1a202c; /* A very dark, near-black background */
    --card-bg-color: #2d3748; /* A slightly lighter dark grey for cards */
    --border-color: #4a5568; /* A visible but not harsh border color */
    --footer-bg-color: #111827; /* Deepest dark for the footer */
    --footer-text-color: #e5e7eb;
    --font-family: 'Merriweather', serif;
    --header-height: 70px;
    --container-width: 1100px;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s ease;
}

/* Basic Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8; /* Increased line height for serif readability */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Header & Navigation */
.site-header {
    background-color: var(--card-bg-color);
    padding: 0 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

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


/* Main Content Layout */
main {
    flex-grow: 1;
    padding: 2rem 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    background-color: var(--card-bg-color);
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

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

.article-card-content {
    padding: 1.5rem;
}

.article-card h3 {
    margin-top: 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: background-color var(--transition-speed);
    font-family: 'Inter', sans-serif; /* Use sans-serif for buttons for clarity */
}

.btn:hover {
    background-color: #5850d1;
    opacity: 1;
    text-decoration: none;
}

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

.sidebar .widget h4 {
    margin-top: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget li {
    margin: 0.75rem 0;
}

.sidebar .widget a {
    font-weight: 700;
}

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

.article-meta {
    color: var(--light-text-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.article-content {
    max-width: 800px;
}

.cta-section {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    margin-top: 2.5rem;
}

.cta-section h2 {
    border: none;
    color: var(--primary-color);
}

/* Contact Page */
.contact-info p {
    font-size: 1.1rem;
}

.contact-form {
    background-color: var(--bg-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: var(--card-bg-color);
    color: var(--text-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

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

.footer-content {
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.footer-links a {
    color: var(--footer-text-color);
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Media Queries (Mobile First) */

/* Tablet */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .main-layout {
        grid-template-columns: 2.5fr 1fr;
    }
    
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .offers-list.article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
