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

:root {
    --bg-color: #f8f9fa;
    --panel-bg: #ffffff;
    --text-color: #495057;
    --heading-color: #212529;
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --accent-color: #ffc107;
    --border-color: #dee2e6;
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 12px;
    --container-width: 1200px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Reset and Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; }

/* Panel Style */
.panel {
    background-color: var(--panel-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

/* Header and Navigation */
.site-header {
    padding: 2rem 0;
    background-color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
    color: #fff;
}

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

.main-nav a {
    font-weight: 700;
    color: #fff;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s ease;
    text-decoration: none;
}

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

/* Main Layout */
.main-container {
    padding-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

/* Intro Section */
.intro-section h2 {
    color: var(--primary-color);
}

/* Article Grid on Homepage */
.articles-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.articles-section {
    text-align: center;
}

.article-grid {
    display: grid;
    gap: 1.5rem;
    text-align: left;
}

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

.article-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background-color: var(--panel-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.article-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.article-card p {
    flex-grow: 1;
    font-size: 1rem;
}

.read-more {
    align-self: flex-start;
    font-weight: 700;
    background-color: var(--accent-color);
    color: var(--heading-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.read-more:hover {
    background-color: #ffca2c;
}

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

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

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.sidebar-widget ul li::before {
    content: '🛒';
    position: absolute;
    left: -1rem;
}

.promo-widget p {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0;
    text-align: left;
    border-left: 4px solid var(--accent-color);
    padding: 0.5rem 1rem;
    background-color: #fffbec;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

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

.article-title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary-color);
}

.article-meta {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.article-content h2 {
    margin-top: 2.5rem;
}

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

.article-content ul,
.article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

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

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

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--heading-color);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

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

/* Form Styles (Contact Page) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    padding: 0.85rem 2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--primary-hover-color);
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    margin-top: 2.5rem;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    background-color: var(--heading-color);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    h1, .article-title { font-size: 2.2rem; }
}
