@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #2a6fdb;
    --dark-color: #222831;
    --light-color: #ffffff;
    --gray-color: #eeeeee;
    --text-color: #393e46;
    --font-family: 'Inter', sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --transition-speed: 0.3s ease;
}

/* --- 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(--gray-color);
    color: var(--text-color);
    font-size: 16px;
}

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

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

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

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn:hover {
    background-color: #255eb3;
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--light-color);
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--light-color);
    padding: 1.5rem 0;
    box-shadow: var(--box-shadow);
    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: 700;
    color: var(--dark-color);
}

.logo:hover {
    text-decoration: none;
}

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

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

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

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

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

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

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

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

/* --- Intro Section (Homepage) --- */
.intro-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
}

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

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

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

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

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

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

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

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

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

/* --- Sidebar --- */
.sidebar-widget {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

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

.sidebar-widget ul {
    list-style-type: '→';
    padding-left: 1.5rem;
}

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

.sidebar-widget li a {
    font-weight: 600;
}

/* --- Single Article Page --- */
.article-full {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

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

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

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

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

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

.cta-section .btn {
    background: var(--light-color);
    color: var(--primary-color);
    margin-top: 1rem;
}

.cta-section .btn:hover {
    background: #f0f0f0;
    color: var(--dark-color);
}

/* --- Footer --- */
.site-footer {
    background: var(--dark-color);
    color: var(--gray-color);
    padding: 3rem 0;
    margin-top: 3rem;
    text-align: center;
}

.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: 1.5rem;
}

.footer-links a {
    color: var(--light-color);
    font-weight: 600;
}

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

.copyright {
    font-size: 0.9rem;
}

/* --- Static Pages (About, Contact, Offers) --- */
.static-page {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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