/* =========================
   Base Reset / Baseline
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background-color: #ffffff;
}

/* =========================
   Layout Containers
   ========================= */

.page-wrapper {
    max-width: 1900px;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.container {
    padding: 0 20px;
}

/* =========================
   Header Structure
   ========================= */

.base-header-outer {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.base-nav-primary {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
}

/* Logo */
.base-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.base-site-title h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* =========================
   Search Bar
   ========================= */

.base-search-bar {
    flex: 1;
    max-width: 600px;
}

.base-search-bar form {
    display: flex;
    width: 100%;
}

.base-search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 0.95rem;
}

.base-search-bar button {
    padding: 10px 16px;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.base-search-bar button:hover {
    background: #000;
}

/* =========================
   User Menu
   ========================= */

.base-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.base-lang-select {
    padding: 6px;
}

/* =========================
   Navigation Rows
   ========================= */

.base-nav-row-bold,
.base-nav-row-slim {
    display: flex;
    gap: 20px;
    padding: 4px 0;
}

.base-nav-row-bold {
    font-weight: 600;
    background-color: #6b1f2a;
}

.base-nav-row-bold .base-link {
    color: #ffffff;
    font-weight: 600;
}
.base-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.base-nav-row-bold .base-link:hover {
    text-decoration: underline;
}

/* =========================
   Ad Banner
   ========================= */

.base-ad-wrapper {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.base-ad-content {
    padding: 14px 0;
    font-size: 0.85rem;
    color: #777;
    text-align: center;
}

/* =========================
   Main Content
   ========================= */

main {
    padding: 30px 0;
    min-height: 60vh;
}

/* =========================
   Footer
   ========================= */

footer {
    padding: 20px 0;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}
/* =========================
   Mobile Layout
   ========================= */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Tablet and below */
@media (max-width: 900px) {

    .base-nav-primary {
        gap: 15px;
    }

    .base-search-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .base-nav-row-bold,
    .base-nav-row-slim {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 10px 0;
    }

    .base-nav-row-bold.active,
    .base-nav-row-slim.active {
        display: flex;
    }
}
