/* Index.php - Home Blocks Section Stilleri */

/* Home Blocks Section Container */
.home-blocks-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Home Blocks Grid */
.home-blocks-section > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Home Block Card */
.home-block-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.home-block-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* Home Block Image */
.home-block-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* Home Block Content */
.home-block-card > div {
    padding: 1.5rem;
}

/* Home Block Title */
.home-block-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Home Block Description */
.home-block-card p {
    color: var(--text);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-blocks-section > div {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .home-blocks-section {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .home-blocks-section > div {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .home-block-card > div {
        padding: 1rem;
    }
    
    .home-block-card h5 {
        font-size: 1.2rem;
    }
}
