/* ---
Theme: AuraBlog
Font: Playfair Display (Headings), Montserrat (Body)
Tone: Friendly & Casual
--- */

/* 1. Global Styles & Variables */
:root {
    --primary-color: #4a4e69; /* Muted Purple */
    --secondary-color: #9a8c98; /* Soft Lavender */
    --accent-color: #c9ada7; /* Dusty Rose */
    --text-color: #22223b; /* Dark Charcoal */
    --light-text-color: #6c757d; /* Medium Gray */
    --bg-color: #f8f7ff; /* Very Light Lavender */
    --card-bg-color: #ffffff;
    --border-color: #e9ecef;
    --font-family-heading: 'Playfair Display', serif;
    --font-family-body: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
}

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

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

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    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 1.5rem;
}

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

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

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

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

h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

h3 {
    font-size: 1.75rem;
}

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

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

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

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

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

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

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

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

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

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

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

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

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

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

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 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(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

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

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

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

.read-more-link {
    font-weight: 500;
    color: var(--primary-color);
}

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

.widget {
    margin-bottom: 2.5rem;
}

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

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

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

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

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

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

.footer-links a {
    color: #ced4da;
    transition: color 0.3s ease;
}

.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);
    text-align: center;
}
.article-header h1 {
    font-size: 2.8rem;
}

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

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

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

.article-content .cta {
    background-color: var(--bg-color);
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.article-content .cta h3 {
    margin-top: 0;
}
.article-content .cta a {
    font-weight: bold;
    color: var(--primary-color);
}

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

.offers-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.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-family: var(--font-family-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.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: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(201, 173, 167, 0.3);
}
.contact-form button {
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: var(--secondary-color);
}
