body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #EFF5FE;
}

header {
    background-color: #25659F;
    color: #FEFFFF;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

#article-list {
    padding: 20px;
}

.article-card {
    background-color: #FEFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    cursor: pointer;
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
}

.article-content {
    padding: 15px;
}

.article-content h2 {
    font-size: 17px;
    color: #2C2E2F;
    margin: 0 0 5px 0;
}

.article-content p {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px 0;
}

.article-meta {
    font-size: 12px;
    color: #777;
}

/* --- Styles for Detail Page --- */

.detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.back-button {
    position: absolute;
    left: 20px;
    color: #FEFFFF;
    text-decoration: none;
    font-size: 24px;
}

#article-detail-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

#article-detail-content h1 {
    font-size: 25px;
    color: #2C2E2F;
}

#article-detail-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
}

#article-detail-content .article-body {
    margin-top: 20px;
    line-height: 1.6;
    color: #333;
}

/* --- Responsive Design for Mobile --- */

@media (max-width: 768px) {
    /* General adjustments for smaller screens */
    #article-list, #article-detail-content {
        padding: 15px;
        margin-top: 15px;
    }

    header h1 {
        font-size: 24px;
    }

    /* List page: Stack article card content vertically */
    .article-card {
        flex-direction: column;
    }

    .article-card img {
        width: 100%;
        height: 180px; /* Give the image a fixed height */
    }

    /* Detail page: Adjust header and back button */
    .back-button {
        left: 15px;
        font-size: 22px;
    }

    #article-detail-content h1 {
        font-size: 22px;
    }
}

/* --- App Download Banner --- */

.app-download-banner {
    background-color: #f4f4f9;
    border-top: 1px solid #ddd;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    box-sizing: border-box;
}

.app-download-banner .app-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.app-download-banner .banner-text {
    flex-grow: 1;
    margin: 0 15px;
    font-family: 'Poppins', sans-serif;
}

.app-download-banner .banner-text strong {
    display: block;
    font-size: 16px;
    color: #333;
}

.app-download-banner .banner-text span {
    font-size: 14px;
    color: #666;
}

.app-download-banner .download-button {
    background-color: #25659F;
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s;
}

.app-download-banner .download-button:hover {
    background-color: #1e5282;
}

/* Add padding to the bottom of the main content to prevent overlap */
main {
    padding-bottom: 90px;
}