/* 
 * Styling for the Low Code Pro articles module
 */

/* Container styles */
.top-a {
    border: none;
}

.mod-articles-lcp-container {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Individual article item */
.article-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    margin-bottom: 30px;
    padding: 0;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Article content layout */
.article-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Article image */
.article-image {
    width: 100%;
    margin: 0;
    max-width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

/* Article text content */
.article-text {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Article title */
.article-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    line-height: 1.3;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #0066cc;
}

/* Article info (date, author, etc) */
.article-info {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

.article-date {
    display: inline-block;
    margin-right: 10px;
}

/* Article intro text */
.article-introtext {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.9em;
    flex: 1;
}

/* Read more link */
.article-readmore {
    display: inline-block;
    background-color: #4568dc;
    color: white;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9em;
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-readmore:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 100%;
    background-image: linear-gradient(to right, #4568dc, #b06ab3);
    z-index: -1;
    transition: left 0.4s ease;
}

.article-readmore:hover {
    color: white;
    box-shadow: 0 4px 10px rgba(69, 104, 220, 0.3);
    transform: translateY(-2px);
}

.article-readmore:hover:before {
    left: 0;
}

/* Titles-only view */
.mod-articles-lcp-titles {
    width: 100%;
}

.article-title-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.article-title-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    margin-bottom: 15px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.article-title-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-title-item a {
    color: #333;
    text-decoration: none;
    flex: 1;
}

.article-title-item a:hover {
    color: #0066cc;
}

.article-title-item .article-date {
    font-size: 0.85em;
    color: #666;
}

/* Tablet Responsive design (2 columns) */
@media (max-width: 992px) {
    .article-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    .article-title-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

/* Mobile Responsive design (1 column) */
@media (max-width: 768px) {
    .article-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .article-content {
        flex-direction: column;
    }
    
    .article-image {
        height: 200px;
        margin-right: 0;
    }
    
    .article-title-item {
        flex: 0 0 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-title-item .article-date {
        margin-top: 5px;
    }
}