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

/* --- CSS Variables --- */
:root {
    --primary-color: #2c5282; /* Deep Blue */
    --secondary-color: #38a169; /* Green */
    --background-color: #f7fafc; /* Light Gray */
    --card-background: #ffffff;
    --text-color: #2d3748; /* Dark Gray */
    --heading-color: #1a202c; /* Black */
    --border-color: #e2e8f0; /* Lighter Gray */
    --font-main: 'Inter', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.site-title a:hover {
    text-decoration: none;
}

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

.main-nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

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

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

/* --- Hero Section (Homepage) --- */
.hero {
    background: linear-gradient(rgba(44, 82, 130, 0.8), rgba(44, 82, 130, 0.8)), url('https://picsum.photos/1200/400?grayscale') no-repeat center center/cover;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.hero h1 {
    color: white;
    font-size: 3rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Blog Articles Section --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

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

.article-card-content {
    padding: 1.5rem;
}

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

.article-card .read-more {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
}

.article-card .read-more:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--card-background);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

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

.sidebar ul {
    list-style: none;
}

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

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

.promo-text {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--heading-color);
    color: #a0aec0;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-container .quick-links {
    margin-bottom: 1rem;
}

.footer-container .quick-links a {
    color: white;
    margin: 0 1rem;
}
.footer-container .quick-links a:hover {
    text-decoration: underline;
}

/* --- Article Page --- */
.article-full-content {
    background-color: var(--card-background);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}
.article-header h1 {
    margin-bottom: 0.5rem;
}
.article-meta {
    color: #718096;
    font-size: 0.9rem;
}
.article-meta span {
    margin-right: 1rem;
}

.article-content h2, .article-content h3 {
    margin-top: 2rem;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content img {
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}
.article-content .supermarket-logo {
    width: 120px;
    height: auto;
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.cta-section {
    background-color: #ebf8ff;
    border: 2px solid #90cdf4;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}
.cta-section h3 {
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
}
.cta-button:hover {
    opacity: 0.9;
    text-decoration: none;
    color: white;
}

/* --- Static Pages (About, Offers, Contact) --- */
.page-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-content {
    background-color: var(--card-background);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.page-content p {
    margin-bottom: 1rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 1rem;
    font-family: var(--font-main);
}
.contact-form button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}
.contact-form button:hover {
    background-color: var(--secondary-color);
}


/* --- Responsive Design --- */

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

/* Desktop */
@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
     h1 { font-size: 3rem; }
    .hero h1 { font-size: 3.5rem; }
}
