/* ---
Theme: CleanSpace
Font: Inter
Tone: Informative & Straightforward
--- */

/* 1. Global Styles & Variables */
:root {
    --primary-color: #2c5282; /* Deep Blue */
    --secondary-color: #2a69ac; /* Brighter Blue */
    --accent-color: #63b3ed; /* Light Blue */
    --text-color: #2d3748; /* Dark Gray */
    --light-text-color: #718096; /* Medium Gray */
    --bg-color: #f7fafc; /* Very Light Gray */
    --card-bg-color: #ffffff;
    --border-color: #e2e8f0;
    --font-family: 'Inter', sans-serif;
    --container-width: 1200px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 8px;
}

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

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

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

/* 2. Layout & Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

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

/* 3. Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

ul, ol {
    margin-left: 20px;
    margin-bottom: 1rem;
}

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

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    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(--accent-color);
    transition: width 0.3s ease;
}

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

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

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

/* 6. Blog Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.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 {
    color: var(--light-text-color);
    flex-grow: 1;
}

.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 7. Sidebar */
.sidebar {
    padding: 1.5rem;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.widget {
    margin-bottom: 2rem;
}

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

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

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

.widget ul a {
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget ul img.logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* 8. Footer */
.site-footer {
    background-color: var(--text-color);
    color: #a0aec0; /* Lighter gray for footer text */
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #a0aec0;
}

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

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

.article-meta {
    display: flex;
    gap: 1rem;
    color: var(--light-text-color);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.article-content {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.article-content .cta {
    background-color: var(--bg-color);
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-content .cta a {
    font-weight: bold;
}

/* 10. Offers & Contact Page */
.offers-list {
    list-style: none;
    padding: 0;
}
.offers-list h3 {
    margin-top: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}
.offers-list li {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.offers-list li:hover {
    transform: translateX(5px);
}

.offers-list img.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}
.offers-list .offer-details {
    flex-grow: 1;
}
.offers-list .offer-details strong {
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form .form-group {
    display: flex;
    flex-direction: column;
}
.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.contact-form input, .contact-form textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.4);
}
.contact-form button {
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: var(--secondary-color);
}