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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Main Content Layout */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Primary Content */
.primary-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.hero-section,
.offers-intro,
.about-intro,
.contact-intro {
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.hero-section h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1e40af;
}

.hero-section p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: #475569;
}

.hero-section p:last-child {
    margin-bottom: 0;
}

.hero-section a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-section a:hover {
    color: #059669;
    text-decoration: underline;
}

/* Blog Articles Section */
.blog-articles {
    padding: 32px;
}

.blog-articles h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #1e40af;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #10b981;
}

.article-card h3 {
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-card h3 a {
    color: #1e40af;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #10b981;
}

.article-card p {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    gap: 4px;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #059669;
}

.read-more:hover::after {
    transform: translateX(4px);
}

.more-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.more-articles h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1e40af;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e40af;
    line-height: 1.2;
}

.offer-links {
    list-style: none;
}

.offer-links li {
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
}

.offer-links li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.offer-links a {
    color: #64748b;
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.offer-links a:hover {
    color: #10b981;
    background-color: #f0fdf4;
    transform: translateX(4px);
}

.promo-widget {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.promo-widget h3 {
    color: white;
}

.promo-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #10b981;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: white;
    padding: 32px 0;
    margin-top: 64px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer-nav a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-nav a:hover {
    color: white;
}

.footer-info p {
    color: #94a3b8;
    font-size: 14px;
}

/* Article Pages */
.article-content {
    padding: 32px;
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.article-header h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #1e40af;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.article-meta span {
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 16px;
}

.article-intro {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.article-section {
    margin-bottom: 32px;
}

.article-section h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #1e40af;
    margin-bottom: 16px;
}

.article-section h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #1e40af;
    margin-bottom: 16px;
    margin-top: 24px;
}

.article-section p {
    line-height: 1.6;
    margin-bottom: 16px;
    color: #475569;
}

.article-section ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-section li {
    line-height: 1.6;
    margin-bottom: 8px;
    color: #475569;
}

.article-section a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-section a:hover {
    color: #059669;
    text-decoration: underline;
}

.call-to-action {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    margin-top: 40px;
}

.call-to-action h2 {
    color: #065f46;
    margin-bottom: 16px;
}

.call-to-action p {
    color: #047857;
}

.call-to-action a {
    color: #059669;
    font-weight: 700;
}

/* Sub-pages specific styles */
.offers-grid h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #1e40af;
}

.supermarket-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.supermarket-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.supermarket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.supermarket-card:hover::before {
    transform: scaleX(1);
}

.supermarket-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #1e40af;
}

.supermarket-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e40af;
    line-height: 1.2;
}

.supermarket-card p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-link {
    display: inline-block;
    background: #1e40af;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.additional-offers h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1e40af;
}

.offers-list {
    display: grid;
    gap: 16px;
}

.offer-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.offer-item:hover {
    border-color: #1e40af;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.1);
}

.offer-item h4 {
    margin-bottom: 8px;
    line-height: 1.3;
}

.offer-item h4 a {
    color: #1e40af;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.offer-item h4 a:hover {
    color: #10b981;
}

.offer-item p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* About page specific */
.our-mission,
.what-we-do,
.our-coverage,
.why-choose-us {
    padding: 32px;
    margin-bottom: 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-item {
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.feature-item h3 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

.feature-item p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.supermarket-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.supermarket-list li {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    line-height: 1.5;
}

/* Contact page specific */
.contact-form-section,
.contact-info,
.faq-section {
    padding: 32px;
    margin-bottom: 0;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.submit-button {
    background: #10b981;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.contact-method {
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.contact-method h3 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-method p {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.contact-method p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #10b981;
}

.faq-list {
    margin-top: 24px;
}

.faq-item {
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid #10b981;
}

.faq-item h3 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

.faq-item p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Tips list in sidebar */
.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.tips-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tips-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .sidebar {
        order: -1;
    }
    
    .sidebar .widget {
        display: none;
    }
    
    .sidebar .widget:first-child {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .site-title {
        font-size: 24px;
    }
    
    .main-nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .supermarket-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .article-section h2 {
        font-size: 24px;
    }
    
    .article-section h3 {
        font-size: 20px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .supermarket-list {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 24px 0;
    }
    
    .hero-section,
    .offers-intro,
    .about-intro,
    .contact-intro {
        padding: 24px;
    }
    
    .blog-articles,
    .our-mission,
    .what-we-do,
    .our-coverage,
    .why-choose-us,
    .contact-form-section,
    .contact-info,
    .faq-section,
    .article-content {
        padding: 24px;
    }
    
    .article-card,
    .widget {
        padding: 20px;
    }
    
    .call-to-action {
        padding: 24px;
    }
    
    .hero-section h2 {
        font-size: 24px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
}