/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

h2,
h3 {
    color: #b22222;
    text-decoration: none;
}

a {
    color: #b22222;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
.site-header {
    background-color: #b22222;
    color: white;
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.site-header h1 {
    margin: 0;
    font-size: 2rem;
}

.site-header p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

/* Hero Image */
.hero-wrapper {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* Main Layout */
.main-container {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* Sidebar Left*/
.sidebar-left {
    order: 1;
    margin-bottom: 2rem;
}

/* Sidebar Right*/
.sidebar-right {
    order: 2;
    margin-bottom: 2rem;
}

/* Main Content */
main {
    order: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    padding: 2rem 1rem;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
}

.site-footer p {
    margin: 0.5rem 0;
}

/* Article Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
    padding: 1rem;
}

/* height was 200px and object-fit was cover object-position was top center*/
.card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.card h2 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}

/* Desktop: Sidebar on the left/right */
@media (min-width: 768px) {
    .main-container {
        flex-direction: row;
        gap: 2rem;
        margin: 0;
    }

    .sidebar-left {
        order: 0;
        width: 300px;
        flex-shrink: 0;
        border-right: 1px solid #ccc;
        padding-right: 1rem;
        padding-left: 2rem;
        margin-left: 0;
    }

    .sidebar-left h1 {
        font-size: 1.8rem;
    }

    .sidebar-left li {
        font-size: 1.5rem;
    }

    .sidebar-right {
        width: 300px;
        flex-shrink: 0;
        border-left: 1px solid #ccc;
        padding-left: 1rem;
        padding-right: 2rem;
        margin-right: 0;
    }

    main {
        flex: 1;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1rem;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.recommended-box {
    border: 1px solid #ccc;
    background-color: #fdfdfd;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 6px solid #b22222;
    border-radius: 4px;
}

.recommended-box h3 {
    margin-top: 0;
    color: #b22222;
    font-size: 1.4rem;
}

.recommended-box p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-list li {
    margin-bottom: 1.2rem;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #ddd;
}

.product-list a {
    color: #b22222;
    text-decoration: underline;
}

.product-list a:hover {
    text-decoration: underline;
}