/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00f6ff; /* Cyan Accent */
    --background-color: #0a0a14;
    --secondary-background-color: #1c1c2b;
    --text-color: #c0c0d0;
    --heading-color: #ffffff;
    --border-color: #3a3a5a;
    --font-family: 'Fira Code', monospace;
    --container-width: 1200px;
    --border-radius: 3px;
}

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

body {
    font-family: var(--font-family);
    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);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--heading-color);
    text-shadow: 0 0 5px rgba(0, 246, 255, 0.2);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    color: var(--heading-color);
    text-shadow: 0 0 8px var(--primary-color);
}

ul {
    list-style: none;
}

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

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

.site-header .logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    text-decoration: none;
    letter-spacing: 1px;
}
.site-header .logo a:hover {
    color: var(--primary-color);
}

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

.main-nav a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    padding: 8px 0;
}

.main-nav a.active {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}


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

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

/* --- Hero Section --- */
.hero {
    text-align: left;
    padding: 2.5rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

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

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

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

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 246, 255, 0.1);
}

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

.article-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-color);
}

.read-more {
    font-weight: 600;
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-shadow: none;
}

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

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

.article-meta {
    color: #888;
    font-size: 0.9rem;
}
.article-meta a {
    color: var(--text-color);
}
.article-meta a:hover {
    color: var(--primary-color);
}

.article-content h2 {
    margin-top: 3rem;
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

.article-content ul {
    list-style-type: '>> ';
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.article-content ul li {
    padding-left: 10px;
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2.5rem 0;
    color: var(--heading-color);
    background-color: var(--secondary-background-color);
    font-size: 1.1rem;
}

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

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

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

.widget-list a {
    font-weight: 400;
    color: var(--text-color);
}

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

.site-footer p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #888;
}

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

.site-footer .footer-links a {
    color: var(--text-color);
    margin: 0 15px;
    font-weight: 400;
}

.site-footer .footer-links a:hover {
    color: var(--primary-color);
}

/* --- Utility & Other Pages --- */
.page-header {
    padding-bottom: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.content-section {
    background: transparent;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.content-section p, .content-section ul {
    max-width: 800px;
}
.offers-grid .article-card {
    text-align: center;
    padding: 2.5rem;
}
.offers-grid .article-card h3 a {
    font-family: var(--font-family);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
}
.offers-grid .article-card h3 a:hover {
    color: var(--heading-color);
}
