body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #333;
    padding-top: 60px;
    padding-bottom: 50px;
}

h1 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.2;
}

.hero-block {
    margin-top: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    color: #c20000;
    margin-bottom: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
}

.hero-sub {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}

.hero-text {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    text-align: left;
}

.hero-sub-quiz,
.hero-text-quiz {
    padding-left: 0;
    padding-right: 16px;
}

.h1-variant-2 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.h1-variant-4 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.12);
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
}

.footer-container {
    width: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-left a {
    margin-right: 16px;
    text-decoration: none;
    color: #aaa;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-left a:hover {
    color: #c20000;
}

.footer-right {
    font-size: 0.8rem;
    white-space: nowrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 46px;
    width: auto;
    display: block;
    margin-top: 8px;
}

.search-bar {
    position: relative;
    flex: 0 0 220px;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    margin: 0 auto;
    display: block;
}

.search-bar::after {
    content: "🔍";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #777;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 28px;
    width: 100%;
}

.menu a {
    text-decoration: none;
    color: #aaa;
    font-size: 1rem;
    transition: color 0.2s ease;
    margin-top: 6px;
}

.menu a:hover {
    color: #c20000;
}

.login-grid-wrapper {
    margin-top: 48px;
    max-width: 864px;
    margin-left: auto;
    margin-right: auto;
}

.login-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 10px;
}

.login-tile {
    background: #fafafa;
    border: none;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    box-shadow: none;
    transition: transform 0.15s ease;
}

.login-tile a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.login-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 5px;
    background: #ddd;
}

.login-tile:hover img {
    opacity: 0.8;
}

.login-tile-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #c20000;
}

.login-tile-desc {
    font-size: 0.85rem;
    color: #666;
}

.login-tile:hover {
    transform: translateY(-2px);
}

.login-fullscreen {
    min-height: calc(100vh - 80px - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
}

.login-box {
    max-width: 420px;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    padding: 24px 24px 28px;
    text-align: left;
}

.login-box-title {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    color: #c20000;
    text-align: center;
}

.login-box-sub {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    color: #444;
    text-align: center;
}

.login-field-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 3px;
}

.login-field-note {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.login-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.login-input:disabled {
    background-color: #f0f0f0;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

.login-link-small {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #777;
    text-decoration: none;
}

.login-link-small:hover {
    color: #c20000;
}

.login-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    border-radius: 5px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    background: #ccc;
    color: #333;
    text-decoration: none;
    margin-top: 16px;
}

.login-btn.primary {
    background: #c20000;
    color: #fff;
}

.login-btn.primary:hover {
    background: #a00000;
}

@media (max-width: 768px) {
    .login-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 100px;
    }
    nav {
        height: auto;
    }
    .nav-container {
        flex-direction: column;
        padding: 12px 16px;
        gap: 10px;
    }
    .logo,
    .menu,
    .search-bar {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }
    .menu {
        gap: 14px;
        margin: 6px 0;
    }
    .search-bar {
        max-width: 320px;
        margin: 4px auto 0;
    }
}
