/* newest-item.php styling */
.article-newest-items {
    margin: 50px 0px;
}

.article-newest-items h2 {
    text-align: center;
}

.article-newest-items .article-newest-items-grid {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr;
    gap: 20px;
}

.article-newest-items .article-newest-items-grid .card{
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-newest-items .article-newest-items-grid .card .card-image{
    height: 150px;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px 10px 0px 0px;
}

.article-newest-items .article-newest-items-grid .card .card-content {
    padding: 20px;
}

.article-newest-items .article-newest-items-grid .card .card-content h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2E2E2E;
    text-align: center;
}

.article-newest-items .article-newest-items-grid .card .card-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 150px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.article-newest-items .article-newest-items-grid .card .card-image .new-label{
    position: relative;
    left: 10px;
    top: 10px;
    width: fit-content;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
}

.article-newest-items .article-newest-items-grid .card .card-image .views {
    position: absolute;
    top: 10px;
    right: 10px;
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-newest-items .article-newest-items-grid .card a,
.article-newest-items .article-newest-items-grid .card a:hover,
.article-newest-items .article-newest-items-grid .card a * {
    text-decoration: none;
}

.article-newest-items .article-newest-items-grid .card:hover {
    transform: scale(1.05);
}

/* popular-item.php styling */
.article-popular-items {
    margin: 50px;
}

.article-popular-items .article-popular-items-grid {
    display: grid;
    grid-template-columns: 3fr 3fr 3fr 3fr;
    gap: 20px;
}

.article-popular-items .article-popular-items-grid .card{
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-popular-items .article-popular-items-grid .card .card-image{
    height: 150px;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px 10px 0px 0px;
}

.article-popular-items .article-popular-items-grid .card .card-content {
    padding: 20px;
}

.article-popular-items .article-popular-items-grid .card .card-content h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2E2E2E;
    text-align: center;
}

.article-popular-items .article-popular-items-grid .card .card-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 150px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.article-popular-items .article-popular-items-grid .card .card-image .new-label{
    position: relative;
    left: 10px;
    top: 10px;
    width: fit-content;
    background-color: #FF6B6B;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
}

.article-popular-items .article-popular-items-grid .card .card-image .views {
    position: absolute;
    top: 10px;
    right: 10px;
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-popular-items .article-popular-items-grid .card a,
.article-popular-items .article-popular-items-grid .card a:hover,
.article-popular-items .article-popular-items-grid .card a * {
    text-decoration: none;
}

.article-popular-items .article-popular-items-grid .card:hover {
    transform: scale(1.05);
}

.article-popular-items-footer {
    text-align: center;
    margin-top: 20px;
}

.article-popular-items-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.2rem;
}

/* random-item.php styling */
.article-random-items {
    margin: 50px;
}

.article-random-items .article-random-items-grid {
    display: grid;
    grid-template-columns: 3fr 3fr 3fr 3fr;
    gap: 20px;
}

.article-random-items .article-random-items-grid .card{
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-random-items .article-random-items-grid .card .card-image{
    height: 150px;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px 10px 0px 0px;
}

.article-random-items .article-random-items-grid .card .card-content {
    padding: 20px;
}

.article-random-items .article-random-items-grid .card .card-content h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2E2E2E;
    text-align: center;
}

.article-random-items .article-random-items-grid .card .card-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 150px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.article-random-items .article-random-items-grid .card .card-image .new-label{
    position: relative;
    left: 10px;
    top: 10px;
    width: fit-content;
    background-color: #FF6B6B;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
}

.article-random-items .article-random-items-grid .card .card-image .views {
    position: absolute;
    top: 10px;
    right: 10px;
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-random-items .article-random-items-grid .card a,
.article-random-items .article-random-items-grid .card a:hover,
.article-random-items .article-random-items-grid .card a * {
    text-decoration: none;
}

.article-random-items .article-random-items-grid .card:hover {
    transform: scale(1.05);
}

.article-random-items-footer {
    text-align: center;
    margin-top: 20px;
}

.article-random-items-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.2rem;
}

.article-random-items h2 {
    text-align: center;
}

/* article detail page */
main .hero-image {
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

main .hero-image h1 {
    margin-top: 4vh !important;
    text-align: center;
}

.main-container .report-meta {
    display: flex;
    gap: 20px;
}

/* small-overview.php styling */
.article-small-items {
    margin: 50px;
}

.article-small-items .article-small-items-grid {
    display: grid;
    grid-template-columns: 3fr 3fr;
    gap: 20px;
}

.article-small-items .article-small-items-grid .card{
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-small-items .article-small-items-grid .card .card-image{
    height: 150px;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px 10px 0px 0px;
}

.article-small-items .article-small-items-grid .card .card-content {
    padding: 20px;
}

.article-small-items .article-small-items-grid .card .card-content h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2E2E2E;
    text-align: center;
}

.article-small-items .article-small-items-grid .card .card-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 150px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.article-small-items .article-small-items-grid .card .card-image .new-label{
    position: relative;
    left: 10px;
    top: 10px;
    width: fit-content;
    background-color: #FF6B6B;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
}

.article-small-items .article-small-items-grid .card .card-image .views {
    position: absolute;
    top: 10px;
    right: 10px;
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-small-items .article-small-items-grid .card a,
.article-small-items .article-small-items-grid .card a:hover,
.article-small-items .article-small-items-grid .card a * {
    text-decoration: none;
}

.article-small-items .article-small-items-grid .card:hover {
    transform: scale(1.05);
}

.article-small-items-footer {
    text-align: center;
    margin-top: 20px;
}

.article-small-items-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Small-overview */
.articles-overview {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.articles-overview h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    border-left: 4px solid #005bbb;
    padding-left: 10px;
}

.articles-overview-items {
    display: grid;
    gap: 1.5rem;
}

.articles-overview-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e3e6ea;
}

.articles-overview-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.articles-overview-item h3 a {
    font-size: 1.3rem;
    font-weight: 600;
    color: #005bbb;
    text-decoration: none;
}

.articles-overview-item h3 a:hover {
    text-decoration: underline;
}

.article-snippet {
    font-size: 1.1rem;
    color: #333;
    margin: 0.5rem 0;
}

.article-meta {
    font-size: 0.85rem;
    color: #777;
}

/* newest-overview */
.articles-newest-overview {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 2.5rem 2rem 0rem;
}

.articles-newest-overview h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    border-left: 4px solid #005bbb;
    padding-left: 10px;
}

.articles-newest-overview-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.articles-newest-overview-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e3e6ea;
}

.articles-newest-overview-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.articles-newest-overview-item h3 a {
    font-size: 1.3rem;
    font-weight: 600;
    color: #005bbb;
    text-decoration: none;
}

.articles-newest-overview-item h3 a:hover {
    text-decoration: underline;
}

.article-snippet {
    font-size: 1.1rem;
    color: #333;
    margin: 0.5rem 0;
}

.article-meta {
    font-size: 0.85rem;
    color: #777;
}

/* Mobile */
@media (max-width: 600px) {
    .articles-overview {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .articles-overview-items {
        grid-template-columns: 1fr;
    }

    .articles-newest-overview-items {
        grid-template-columns: 1fr !important;
        
    }

    .articles-newest-overview {
        margin: 0px;
    }
}
