/* Layout container for article and sidebar */
main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.article-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Main Article Content */
.article-content {
    flex: 3; /* Takes up 3/4 of the width */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1.6; /* Ensure good readability */
}

/* Add spacing between paragraphs */
.article-content p {
    margin-bottom: 20px; /* Add space between paragraphs */
}

/* Article Header */
.article-header {
    margin-bottom: 20px;
    text-align: left;
}

/* Article Image */
.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* Sidebar */
.article-sidebar {
    flex: 1; /* Takes up 1/4 of the width */
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Sidebar Content */
.article-sidebar h2 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

aside {
    flex: 1; /* Allow the sidebar to take up one portion of the flex container */
    background-color: #f9f9f9; /* Light gray background for the sidebar */
    padding: 15px; /* Padding inside the sidebar */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    max-width: 180px; /* Slightly increase the sidebar width */
}

.sponsor-article {
    max-width: 100%; /* Ensure the container doesn't exceed its parent */
    text-align: center;
}

.sponsor-article img {
    max-width: 80px !important; /* Limit the maximum width explicitly */
    max-height: 80px; /* Limit the height explicitly */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 10px; /* Add spacing below the image */
}

.sponsor-article p {
    font-size: 12px; /* Reduce font size for smaller text */
    color: #333;
    text-align: center;
    margin-top: 5px; /* Add some space above the text */
}

/* Back Link */
.back-link {
    margin-top: 20px;
    text-align: left;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-layout {
        flex-direction: column;
    }

    .article-sidebar {
        margin-top: 20px;
    }
}
