

.articles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
    max-width: 1300px; 
    width: 100%
}

.article-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.article-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; 
    overflow: hidden;
}

.article-image-container a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Transition for the hover effect */
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* Image Hover Effect */
.article-image-container a:hover .article-image {
    transform: scale(1.05); /* Slightly zoom in */
    filter: brightness(0.95); /* Slightly darken */
}

/* Article Tag Styles */
.tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #4CAF50; 
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10; /* Ensure tag is above the image on hover */
}

/* Tag Color Variations (for the new articles) */
.digital-wellbeing { background-color: #4CAF50; }
.career-growth { background-color: #007bff; }
.technology { background-color: #ffc107; color: #333;}
.finance { background-color: #17a2b8; }
.leadership { background-color: #6f42c1; }

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; 
}

/* Title link to remove default blue underline */
.article-title-link {
    text-decoration: none;
    color: inherit;
}

.article-title {
    font-size: 1.5em;
    /* Make the article title bold, as requested */
    font-weight: 700; 
    color: #333333;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
    /* Subtle hover effect for the title */
    transition: color 0.2s ease;
}

.article-title-link:hover .article-title {
    color: #4CAF50;
}

.article-meta {
    font-size: 0.95em;
    margin-bottom: 0;
    color: #777777; /* Default color for meta */
}

/* Styling for Author Name */
.author-name {
    color: #333333; /* Darker color for the author name */
    font-weight: 500;
}

/* Styling for Separator */
.separator {
    color: #aaaaaa; /* Lighter color for the separator */
    margin: 0 5px;
}

/* Styling for Date (different from Author Name) */
.article-date {
    color: #777777; /* Default light grey for the date */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .articles-container {
        /* Maintain two columns but increase gap */
        gap: 30px; 
    }
    .article-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .articles-container {
        grid-template-columns: 1fr; /* Single column on tablets and mobiles */
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    .article-content {
        padding: 20px;
    }
    .article-title {
        font-size: 1.1em;
    }
    .tag {
        top: 15px;
        left: 15px;
        padding: 4px 8px;
        font-size: 0.7em;
    }
}