body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212; /* Σκούρο φόντο για να ταιριάζει με την εικόνα */
    color: #f8f9fa; /* Ανοιχτό χρώμα για το κείμενο */
}

/* Articles Page Specific Styling */
.articles-grid-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.articles-grid-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.articles-grid-header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.articles-grid-header p {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 800px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(90deg, #00bfff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #00bfff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Κοινά στυλ για τις κάρτες άρθρων */
.article-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
}

/* No-image placeholder styling */
.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    min-height: 200px;
    border-radius: 8px;
}

.no-image-placeholder.card-image {
    min-height: 180px;
    font-size: 1.5rem;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card .card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.article-card .card-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.article-card .category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #2c2c2c;
    color: #a0a0a0;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.article-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #f0f0f0;
}

.article-card p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card .article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
    margin-bottom: 1rem;
}

.article-card .read-btn {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s;
}

.article-card .read-btn:hover {
    background-color: #0056b3;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #f8f9fa; /* Χρώμα για τα links που δεν είναι ενεργά */
    margin-top: 2rem;
}

.pagination a {
    color: inherit; /* Κληρονομεί το χρώμα από το .pagination */
    text-decoration: none;
    transition: color 0.3s;
}

.pagination a:hover:not(.disabled) {
    color: #fff;
}

/* Στυλ για τα απενεργοποιημένα links */
.pagination a.disabled {
    color: #444; /* Αχνό γκρι χρώμα */
    cursor: not-allowed;
    pointer-events: none; /* Αποτρέπει το κλικ */
}

/* Στυλ για τον ενεργό αριθμό της σελίδας */
.pagination .page-link.active {
    font-weight: bold;
    color: #f8f9fa; /* Λευκό χρώμα */
    text-decoration: underline; /* Υπογράμμιση */
}


hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #00bfff, #8a2be2, transparent);
    margin: 3rem 0;
}

/* Enhanced Mobile Responsive Design for Articles */

/* Large tablet */
@media (max-width: 992px) {
    .articles-grid-section {
        padding: 3rem 1.5rem;
    }
    
    .articles-grid-header h1 {
        font-size: 3rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
    }
}

/* Small tablet */
@media (max-width: 768px) {
    .articles-grid-section {
        padding: 2.5rem 1rem;
    }
    
    .articles-grid-header {
        padding-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .articles-grid-header h1 {
        font-size: 2.5rem;
    }
    
    .articles-grid-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .article-card h3 {
        font-size: 1.3rem;
    }
    
    .article-card .card-content {
        padding: 1.3rem;
    }
}

/* Small mobile devices */
@media (max-width: 600px) {
    .articles-grid-section {
        padding: 1.5rem 0.6rem;
    }
    
    .articles-grid-header h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .articles-grid-header p {
        font-size: 0.8rem;
        padding: 0 0.3rem;
        line-height: 1.4;
    }
    
    .articles-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-card {
        width: 100%;
        margin: 0;
        min-width: 0;
        max-width: none;
    }
    
    .article-card h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    .article-card .card-content {
        padding: 0.8rem;
    }
    
    .article-card p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .article-card .article-meta {
        flex-direction: column;
        gap: 0.4rem;
        font-size: 0.65rem;
        margin-bottom: 0.8rem;
    }
    
    .article-card .read-btn {
        width: 100%;
        max-width: 150px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        margin: 0 auto;
    }
    
    .category-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.6rem;
        font-size: 0.9rem;
        margin-top: 1.2rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .articles-grid-section {
        padding: 1.2rem 0.4rem;
    }
    
    .articles-grid-header h1 {
        font-size: 1.4rem;
    }
    
    .articles-grid-header p {
        font-size: 0.75rem;
        padding: 0 0.2rem;
    }
    
    .articles-grid {
        gap: 0.8rem;
    }
    
    .article-card .card-content {
        padding: 0.6rem;
    }
    
    .article-card h3 {
        font-size: 0.95rem;
    }
    
    .article-card p {
        font-size: 0.7rem;
    }
    
    .article-card .read-btn {
        max-width: 130px;
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .no-image-placeholder {
        min-height: 140px;
        font-size: 1.1rem;
    }
    
    .no-image-placeholder.card-image {
        min-height: 120px;
        font-size: 1rem;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .articles-grid-section {
        padding: 0.8rem 0.25rem;
    }
    
    .articles-grid-header h1 {
        font-size: 1.2rem;
    }
    
    .articles-grid {
        gap: 0.6rem;
    }
    
    .article-card .card-content {
        padding: 0.5rem;
    }
    
    .article-card h3 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .article-card p {
        font-size: 0.65rem;
    }
    
    .article-card .read-btn {
        max-width: 120px;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .category-tag {
        font-size: 0.55rem;
        padding: 0.15rem 0.5rem;
    }
    
    .no-image-placeholder {
        min-height: 120px;
        font-size: 1rem;
    }
    
    .no-image-placeholder.card-image {
        min-height: 100px;
        font-size: 0.9rem;
    }
}
