/**
 * Application Grid Styling
 */

.application-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .application-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .application-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .application-list-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.application-grid-item {
    position: relative;
    transition: all 0.3s ease;
}

.application-grid-item:hover {
    transform: translateY(-5px);
}

.application-thumbnail-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-radius: 5px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.application-grid-item:hover .application-thumbnail-wrapper {
    transform: scale(1.05);
}

.application-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.application-grid-item:hover .application-thumbnail {
    transform: scale(1.05);
}

.application-no-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    text-align: center;
}

.application-grid-item:hover .application-overlay {
    opacity: 1;
}

.application-title {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.application-description {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.application-description p {
    margin-bottom: 10px;
}

.application-description p:last-child {
    margin-bottom: 0;
}

.application-description img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 3px;
}

.application-description ul, 
.application-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.application-description h1, 
.application-description h2, 
.application-description h3, 
.application-description h4, 
.application-description h5, 
.application-description h6 {
    margin-top: 15px;
    margin-bottom: 10px;
} 