/* 🌟 Global Styles */
body {
    background-color: #ECE5DD; /* WhatsApp chat background */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    color: #333;
    line-height: 1.5;
}

/* 🌟 Main Container */
.container {
    max-width: 900px;
    width: 100%;
    margin: auto;
    padding: 20px;
    border-radius: 15px;
    background: #ECE5DD;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 🌟 Title */
h1 {
    font-size: 28px;
    color: #075E54; /* WhatsApp dark green */
    margin-bottom: 25px;
    font-weight: 600;
}

/* 🌟 Articles Container */
#articles-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* 🌟 Individual Article Box - WhatsApp Style */
.article-box {
    background: #FFFFFF; /* White bubble */
    border-radius: 7.5px;
    padding: 12px;
    text-align: left;
    transition: 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    position: relative;
}

/* WhatsApp message tail effect */
.article-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.article-box:hover {
    background-color: #F5F5F5;
}

/* 🌟 Thumbnail Style */
.article-thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 🌟 Article Content */
.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 🌟 Article Title */
.article-box h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #075E54; /* WhatsApp dark green */
    font-weight: 600;
    line-height: 1.3;
}

/* 🌟 Article Meta Info */
.article-meta {
    margin: 2px 0;
    color: #128C7E; /* WhatsApp green */
    font-size: 14px;
    display: flex;
    gap: 10px;
}

.article-datetime {
    margin: 2px 0 10px;
    color: #8A8A8A; /* WhatsApp timestamp color */
    font-size: 12px;
}

/* 🌟 Read More Button */
.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #128C7E; /* WhatsApp green */
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: white;
    transition: 0.2s;
    margin-top: auto;
    align-self: flex-start;
    font-weight: 500;
}

.read-more:hover {
    background: #075E54; /* WhatsApp dark green */
}

.read-more .arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.read-more:hover .arrow {
    transform: translateX(3px);
}

/* 🔎 Search & Filters */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filters input,
.filters select {
    padding: 12px 15px;
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    transition: 0.2s;
    min-width: 120px;
}

.filters input {
    min-width: 200px;
    padding-left: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23128C7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    box-shadow: 0 1px 5px rgba(18, 140, 126, 0.3);
    border: 1px solid #128C7E;
}

/* 📄 Pagination Controls - WhatsApp Style */
.pagination {
    margin-top: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.pagination button {
    padding: 8px 16px;
    border-radius: 20px;
    background: #128C7E; /* WhatsApp green */
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #075E54; /* WhatsApp dark green */
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageNumber {
    font-size: 14px;
    color: #128C7E;
}

/* No Results Message */
.no-results {
    padding: 20px;
    text-align: center;
    color: #8A8A8A;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 7.5px;
}

/* WhatsApp Double Check Read Icons */
.article-meta .category::before {
    content: "•";
    margin-right: 7px;
    color: #34B7F1; /* WhatsApp blue */
}

/* Responsive Styles */
@media (max-width: 600px) {
    .filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filters input, 
    .filters select {
        width: 100%;
    }
    
    .article-box {
        flex-direction: column;
    }
    
    .article-thumbnail {
        width: 100%;
        height: 140px;
        flex-basis: auto;
    }
}