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

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #123b63;
    color: #fff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.top-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-select {
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    min-width: 140px;
}

.search-box {
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    width: 220px;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 14px 20px;
    text-align: center;
    color: #555;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #123b63;
    text-decoration: none;
    margin: 0 12px;
    font-size: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Main page spacing */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 110px;
}

.hero {
    margin: 10px 0 10px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #123b63;
}

.hero p {
    font-size: 18px;
    color: #555;
}

.category-section {
    margin: 20px 0 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.category-card {
    position: relative;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    background-size: cover;
    background-position: center;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.category-title {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    font-size: 28px;
    font-weight: bold;
    z-index: 1;
}

@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
    }

    .logo {
        font-size: 24px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 16px;
    }

    .search-box {
        width: 170px;
    }

    .category-card {
        height: 200px;
    }

    .category-title {
        font-size: 24px;
    }

    .page-content {
        padding: 90px 20px 110px;
    }
}

@media (max-width: 520px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .top-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .language-select,
    .search-box {
        width: 100%;
    }

    .hero h1 {
        font-size: 22px;
    }

    .category-card {
        height: 180px;
    }

    .category-title {
        font-size: 22px;
    }

    .footer-links a {
        display: inline-block;
        margin: 6px 10px;
    }

    .page-content {
        padding: 135px 20px 120px;
    }
}