.all-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    font-size: 2.7em;
    font-weight: 800;
    margin: 40px 20px 20px;
    color: #000;
    line-height: 1;
}

.intro {
    text-align: center;
    margin-bottom: 30px;
    color: #444;
    font-size: 1.1em;
    line-height: 1.3;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.content-item {
    width: 100%;
}

.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.content-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    /*background: #f8f9fa;*/
    flex-shrink: 0;
    text-align: center;
    align-content: center;
}

.content-image img {
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.content-card:hover .content-image img {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    text-align: center;
}

.no-image i {
    margin-bottom: 10px;
    color: #dee2e6;
}

.content-info {
    padding: 10px 25px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content-title {
    color: #000;
    font-size: 1.3em;
    margin: 0 0 25px;
    font-weight: bold;
    line-height: 1.1;
    padding: 0 15px;
}

.content-intro {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 1em;
    flex: 1;
}

.content-card .btn {
    width: 100%;
    padding: 10px 0;
    font-size: 1em;
    font-weight: 500;
    margin-top: auto;
}

.no-content {
    text-align: center;
    padding: 60px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 15px;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .all-content-container {
        padding: 15px;
        margin: 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-image {
        height: 180px;
    }
    
    .content-image img {
    max-width: 150px;
    max-height: 150px;
    }

    .content-info {
        padding: 20px;
    }
    
    .content-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .all-content-container {
        padding: 10px;
        margin: 5px;
    }
    
    .content-grid {
        gap: 15px;
    }
}
