/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set a default font family and background color */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

/* Style the header */
header {
    background-color: #30006c;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
}

header h2 {
    color: #ff6600;
}

/* Style the main content */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Style the articles */
article {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
    width: calc(50% - 20px);
    margin-bottom: 30px;
}

article img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

article h3 {
    margin-bottom: 10px;
}

article p {
    padding-bottom: 20px;
}

/* Style the link lists */
ul {
    list-style: none;
    line-height: 1.8;
}

ul li {
    margin-bottom: 10px;
}

ul li a {
    text-decoration: none;
    color: #5f9b65;
    transition: color 0.2s ease-in-out;
}

ul li a:hover {
    color: #3c763d;
    text-decoration: none;
}

/* Style the footer */
footer {
    background-color: #30006c;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
}

footer a {
    color: #ff6600;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Style the category details and content */
.category-details {
    flex: 0 0 40%;
    margin-right: 20px;
}

.category-content {
    flex: 1;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {

    /* Adjust the main content layout */
    main {
        flex-direction: column;
    }

    /* Adjust the articles layout and width */
    article {
        width: 100%;
    }

    /* Adjust the category details and content layout */
    .category-details {
        flex: 1 1 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    /* Increase font size and line height for better readability */
    body {
        font-size: 18px;
        line-height: 1.8;
    }

    /* Adjust header and footer paddings for better touch interactions */
    header,
    footer {
        padding: 30px;
    }

    /* Adjust the link list items for better touch interactions */
    ul li {
        margin-bottom: 15px;
    }

    /* Adjust the footer font size for better readability */
    footer {
        font-size: 16px;
    }
}