/* Main content area */
.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.content-div {
    margin-top: 35px;
    margin-bottom: 75px;
}

#article-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Max 5 columns */
    gap: 20px;
}

.home-article-a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    list-style-type: none;
    text-decoration: none;
    color: #000;
}

.card-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    padding: 40px;
    height: 100%;
    text-decoration: none;
    color: #000;
    background-color: #e8e8e8;
}

.card-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 5px;
}

.card-title-h2 {
    width: auto;
    font-size: 1.65rem;
    margin-top: 10px;
}

.text {
    font-size: 1.35rem;
}

.card-additional-data-div {
    margin-top: 25px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}    

.card-additional-data {
    color: #242424;
    width: auto;
    font-weight: 500;
}
.card-views {
    color: #242424;
    width: auto;
    font-weight: 500;
}

.inner-content {
    padding: 35px;
    text-align: left;
}


.above-footer-previous-button {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;

    padding: 5px;
    cursor: pointer;
    border: #000 solid 2px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    min-height: 45px;

    background-color: #000;
    color: #fff;

    transition: all .3s ease-in-out;
}
.above-footer-previous-button:hover {
    background-color: #fff;
    color: #000;
}

.button-disabled {
  background: transparent;
  border: transparent;

  opacity: 0;
  pointer-events: none;
}

.above-footer-pages-div {
    display: flex;
    justify-content: center;
    gap: 150px;

    align-items: center;
}

.above-footer-numbers-div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    gap: 10px;
}

.above-footer-next-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 5px;
    cursor: pointer;
    border: #000 solid 2px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    min-height: 45px;

    background-color: #000;
    color: #fff;

    transition: all .3s ease-in-out;
}
.above-footer-next-button:hover {
    background-color: #fff;
    color: #000;
}

.above-footer-site-nr-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 5px;
    cursor: pointer;
    border: #000 solid 2px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    min-height: 45px;

    background-color: #000;
    color: #fff;
}

.above-footer-site-nr-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 5px;
    cursor: pointer;
    border: #000 solid 2px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    min-height: 45px;

    background-color: #000;
    color: #fff;

    transition: all .3s ease-in-out;
}
.above-footer-site-nr-button:hover {
    background-color: #fff;
    color: #000;
}


/* Responsive styling */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .content section {
        width: 80%;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    nav ul li {
        font-size: 1em;
    }

    .content section {
        width: 100%;
    }
}
