/* Stack Layout Styles */

.stack-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    padding: 2em;
    max-width: 1400px;
    margin: 0 auto;
}

.stack-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.stack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stack-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.stack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.stack-content {
    padding: 1.5em;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stack-content h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.3em;
    line-height: 1.4;
    color: #003366;
}

.stack-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}


.stack-content p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stack-container {
        grid-template-columns: 1fr;
        gap: 1.5em;
        padding: 1em;
    }

    .stack-image {
        height: 200px;
    }
}

@media (min-width: 1200px) {
    .stack-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
