
/* --- GreenSoul Theme | Font: Montserrat --- */

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

/* --- CSS Variables --- */
:root {
    --primary-color: #4A7C59; /* Deep Green */
    --secondary-color: #A3B18A; /* Sage Green */
    --background-color: #FDFDFD; /* Almost White */
    --surface-color: #FFFFFF;
    --text-color: #344E41; /* Dark Slate Green */
    --heading-color: #3A5A40; /* Darker Green */
    --border-color: #DAD7CD;
    --accent-color: #588157;
    --font-family: 'Montserrat', sans-serif;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* --- General Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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(--accent-color);
    text-decoration: underline;
}

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

/* --- Layout & Container --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--surface-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.site-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

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

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

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

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


/* --- Main Content Area --- */
main {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #585858;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Blog Post Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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


/* --- Article Card --- */
.article-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

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

.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 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color var(--transition-speed);
}

.read-more-btn:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
}

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

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

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

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

aside .widget a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
aside .widget a:before {
    content: '▶';
    font-size: 0.6em;
    color: var(--secondary-color);
    transition: color var(--transition-speed);
}
aside .widget a:hover:before {
    color: var(--primary-color);
}

.promotion-widget p {
    font-size: 0.95rem;
    font-style: italic;
    text-align: center;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 2rem 5%;
    text-align: center;
}

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

.site-footer a {
    color: var(--background-color);
}

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

.site-footer .copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

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

.article-meta {
    font-size: 0.9rem;
    color: #777;
}
.article-meta span {
    margin-right: 1rem;
}
.article-meta .category {
    font-weight: 600;
    color: var(--primary-color);
}

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

.cta-section {
    background-color: #F4F8F4;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    font-size: 1.75rem;
}

.cta-section .cta-btn {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
}
.cta-section .cta-btn:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* --- Offers, About, Contact Pages --- */
.page-header {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.page-header h1 {
    color: white;
}
.page-content {
    padding: 2rem;
}
.contact-info p {
    font-size: 1.1rem;
}
.contact-info strong {
    color: var(--heading-color);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.offer-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
}
.offer-item:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}
.offer-item img {
    max-width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}
.offer-item span {
    font-weight: 600;
    font-size: 0.9rem;
}
