
/* --- Global Styles & Variables --- */
:root {
    --bg-dark: #0a192f;
    --bg-light: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
    --accent-hover: rgba(100, 255, 218, 0.1);
    --border-color: #233554;
    --font-family: 'JetBrains Mono', monospace;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-family);
    line-height: 1.6;
    font-size: 16px;
}

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

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

a:hover {
    color: var(--text-primary);
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

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

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

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    list-style-type: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--text-primary);
    padding: 10px;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.main-nav a:hover::after, .main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


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

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

.main-content-full {
    grid-column: 1 / -1;
}

/* --- Homepage Specific --- */
.hero-section {
    padding: 2rem 0;
}
.hero-section h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.articles-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

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

.article-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}
.article-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}
.article-card p {
    flex-grow: 1;
}
.btn {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    align-self: flex-start;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    color: var(--accent-color);
}

/* --- Sidebar --- */
.sidebar-widget {
    background-color: var(--bg-light);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
}
.sidebar-widget ul {
    list-style-type: none;
}
.sidebar-widget ul li {
    margin-bottom: 10px;
}
.sidebar-widget ul a::before {
    content: '>> ';
    color: var(--accent-color);
}
.promo-widget {
    background-color: var(--accent-hover);
    border-color: var(--accent-color);
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.article-header h1 {
    font-size: 2.8rem;
    color: var(--accent-color);
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.article-content h2 {
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.article-content h3 {
    margin-top: 2rem;
}
.article-content ul {
    list-style-position: inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.cta-box {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    text-align: center;
}
.cta-box p {
    font-size: 1.1rem;
    margin: 0;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .site-header .container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .site-header {
        height: auto;
    }
    .site-title {
        margin-bottom: 10px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav li {
        margin: 5px;
    }

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