
/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #00BFFF; /* Deep Sky Blue / Cyan */
    --secondary-color: #9370DB; /* Medium Purple */
    --background-color: #0A192F; /* Dark Navy Blue */
    --surface-color: #112240; /* Lighter Navy */
    --text-color: #CCD6F6; /* Light Greyish Blue */
    --text-muted-color: #8892B0; /* Slate Grey */
    --border-color: rgba(0, 191, 255, 0.2);
    --font-family: 'Fira Code', monospace;
    --container-width: 1140px;
    --border-radius: 4px; /* Sharper edges */
    --transition-speed: 0.3s ease;
    --shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

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

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

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

a:hover {
    color: #4ddbff; /* Lighter Cyan */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.btn:hover {
    background-color: rgba(0, 191, 255, 0.1);
    color: var(--primary-color);
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo:hover {
    color: #fff;
}

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

.main-nav a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    transition: color var(--transition-speed);
}

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

/* --- Main Content Layout --- */
.main-content {
    padding: 4rem 0;
}

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

@media (min-width: 992px) {
    .main-grid {
        grid-template-columns: 3fr 1fr;
    }
}

/* --- Intro Section (Homepage) --- */
.intro-section {
    padding-bottom: 2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.intro-section h1 {
    margin-bottom: 1.5rem;
}

.intro-section p {
    font-size: 1.1rem;
    max-width: 80ch;
}

/* --- Articles Section --- */
.articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

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

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.article-card-content h3 a {
    color: var(--text-color);
}

.article-card-content h3 a:hover {
    color: var(--primary-color);
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.article-card-content .btn {
    align-self: flex-start;
}

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

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

.sidebar-widget ul {
    margin-top: 1rem;
}

.sidebar-widget li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 25px;
}

.sidebar-widget li::before {
    content: '>>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

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

.sidebar-widget li a:hover {
    color: var(--primary-color);
}

.sidebar-widget p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Single Article Page --- */
.article-full {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-color);
}

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

.article-header h1 {
    margin-bottom: 0.5rem;
}

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

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

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

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-muted-color);
    padding-left: 1.5rem;
    position: relative;
}

.article-content li::before {
    content: '>';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 600;
}

.article-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    color: var(--text-muted-color);
    background: var(--background-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

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

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

.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted-color);
}

.cta-section .btn {
    margin-top: 1rem;
}

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

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

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

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

.copyright {
    font-size: 0.9rem;
}

/* --- Static Pages (About, Contact, Offers) --- */
.static-page {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-color);
}

.static-page h1 {
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
