* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

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

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

.template-image {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.template-info {
    padding: 1.5rem;
    text-align: center;
}

.template-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c2c2c;
}

@media (max-width: 768px) {
    body {
        padding: 2rem 1rem;
    }

    .templates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
