body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #121212;
    color: #ffffff;
}

.site-header {
    background-color: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 24px 0;
    text-align: center;
    border-bottom: 2px solid var(--main-color, #333);
}

.site-header img {
    max-height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-header img:hover {
    transform: scale(1.02);
}

.main-content {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0;
    position: relative;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.card-item {
    background: rgba(30, 30, 30, 0.85);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
}

.card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border-color: var(--main-color, #fff);
}

.card-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--main-color, #333);
    transition: opacity 0.3s ease;
}

.card-item:hover img {
    opacity: 0.9;
}

.card-item h2 {
    font-size: 1.35rem;
    padding: 24px;
    margin: 0;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
}

footer {
    background-color: #1e1e1e;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
