/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */


/* Add this to your theme's style.css or a custom CSS file */

:root {
}

.readlite-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: row;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 320px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
    border-bottom: 2px solid var(--underline-color);
    padding-bottom: 10px;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.source-icon {
    width: 20px;
    height: 20px;
    background-color: var(--underline-color);
    border-radius: 4px;
    opacity: 0.8;
}

.source-name {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.author {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.meta-info {
    display: flex;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 15px;
}

.subject, .level {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.subject {
    background-color: #f0f0f0;
    color: #444;
}

.level {
    background-color: var(--underline-color);
    color: white;
    opacity: 0.9;
}

.read-more {
    background: #f8f8f8;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #444;
    border-top: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.read-more:hover {
    background: #f0f0f0;
}

.load-more-container {
    text-align: center;
    margin: 40px 0;
}

#load-more-articles {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#load-more-articles:hover {
    background: #2980b9;
}

.pagination-container {
    display: none;
    text-align: center;
    margin: 40px 0;
}

.pagination {
    display: inline-flex;
    gap: 10px;
}

.pagination a {
    padding: 8px 16px;
    background: #f8f8f8;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background: #e0e0e0;
}

.pagination .current {
    background: #3498db;
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 980px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}