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

/* --- CSS Variables (Dark Mode Elegance) --- */
:root {
    --bg-color: #1a202c; /* Very dark blue-gray */
    --surface-color: #2d3748; /* Darker blue-gray */
    --primary-color: #6366f1; /* Indigo */
    --secondary-color: #a78bfa; /* Lighter violet */
    --text-color: #e2e8f0; /* Light gray */
    --text-muted-color: #a0aec0; /* Medium gray */
    --border-color: #4a5568;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}

/* --- Global & Reset 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.7;
    font-size: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.5rem;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

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

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

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

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

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

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

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

/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted-color);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* --- Article Grid (Homepage) --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

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

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

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

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar {
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    height: fit-content;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

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

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

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

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

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

.widget p {
    font-size: 0.9rem;
}

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

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

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

.article-content {
    color: var(--text-muted-color);
}

.article-content h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-color);
    background-color: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2.5rem 0;
}

.cta-section h2 {
    color: #fff;
    margin-top: 0;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #e2e8f0;
    text-decoration: none;
    color: var(--primary-color);
}


/* --- Static Pages (About, Offers, Contact) --- */
.page-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-content {
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
}

.contact-info p {
    font-size: 1.1rem;
}

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

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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