:root {
    --main_font_family: "Roboto", system-ui, -apple-system, sans-serif;

    --black-1: #101018;
    --black-2: #181820;
    --black-3: #202028;
    --black-5: #303038;
    --black-7: #404048;

    --white-0: #e6e6ee;
    --white-1: #dcdce4;
    --white-3: #b4b4bc;
    --white-5: #a0a0a8;
    --white-7: #8c8c94;
    --white-9: #787880;

    --accent: #06b6d4;
}

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

body {
    min-height: 100vh;
    display: grid;
    align-content: start;
    font-family: var(--main_font_family), sans-serif;
    font-size: 15px;
    color: var(--white-1);
    background: var(--black-1);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--white-1);
    text-decoration: underline;
}

img {
    vertical-align: top;
}

h1, h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--white-1);
}

.field-validation-valid {
    display: none;
}

.field-validation-error {
    color: #d367c1;
}


/*
* Common
*/
.text_center {
    text-align: center;
}

.mb_16 {
    margin-bottom: 16px;
}

.mb_32 {
    margin-bottom: 32px;
}


/*
* Wrapper
*/
.container {
    width: 100%;
    max-width: 1280px;
    margin: auto;
    padding: 0 16px;
}


/*
* Header
*/
.header {
    position: relative;
    margin: 16px 0 48px 0;
    background: var(--black-3);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 8, 0.8);
}

.header_body {
    height: 50px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
}

/* Logo */
.logo {
    min-width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 8px 0 0 8px;
    border-right: solid 1px var(--black-1);
}

.logo:hover {
    background: var(--black-5);
}

.logo img {
    display: block;
}


/*
* Header nav
*/
.header_nav {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
}

.header_nav a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 24px;
    border-right: solid 1px var(--black-1);
    font-size: 16px;
    font-weight: 500;
    color: var(--white-3);
    white-space: nowrap;
    text-decoration: none;
}

.header_nav a:hover {
    background: var(--black-5);
    color: var(--white-1);
}

.logo i {
    display: none !important;
}

@media (max-width: 1080px) {
    .logo {
        padding: 0 12px;
    }

    .header_nav a {
        padding: 0 12px;
        font-size: 15px;
    }
}

@media (max-width: 880px) {
    .header_body {
        grid-template-columns: auto 1fr;
    }

    .header_nav {
        display: none;
    }

    .header_nav a {
        padding: 0 12px;
        font-size: 15px;
    }

    .logo img {
        display: none;
    }

    .logo i {
        display: block !important;
    }
}


/*
* Search Panel
*/
.search_panel {
    position: relative;
    height: 100%;
}

.search_panel_form {
    position: relative;
    display: flex;
}

.search_panel_form input {
    width: 100%;
    height: 50px;
    flex: 1;
    display: block;
    padding: 0 8px;
    background: var(--black-5);
    border: none;
    outline: none;
    font-family: system-ui, sans-serif;
    font-size: 15px;
    color: var(--white-1);
}

.search_panel_form input:focus {
    background: var(--black-7);
}

.search_panel_form button {
    width: 60px;
    display: block;
    background: var(--black-3);
    border: none;
    border-left: solid 1px var(--black-1);
    border-radius: 0 8px 8px 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--white-1);
    cursor: pointer;
}

.search_panel_form button:hover {
    background: var(--black-5);
}

.search_panel_form button:hover i {
    background-color: var(--white-1) !important;
}

.search_popular {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    display: none;
    flex-direction: column;
    background: var(--black-3);
    border-radius: 8px;
    border-top: solid 2px var(--black-1);
    box-shadow: 0 2px 4px rgba(0, 0, 8, 0.5), 0 10px 12px rgba(0, 0, 8, 0.4), 0 20px 24px rgba(0, 0, 8, 0.3);
    overflow: hidden;
}

.search_popular.open {
    display: flex;
}

.search_popular_title {
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--white-1);
}

.search_popular_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    list-style: none;
}

.search_popular_list a {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--white-5);
    white-space: nowrap;
    text-decoration: none;
}

.search_popular_list a:hover {
    background: var(--black-5);
    color: var(--white-1);

    background: var(--black-7);
}

.search_popular_list a i {
    background-color: var(--white-5) !important;
}


/*
* Mobile Menu
*/
.mobile_nav {
    display: none;
    gap: 4px;
    padding: 4px 0;
    border-top: solid 2px var(--black-1);
}

@media (max-width: 880px) {
    .mobile_nav {
        display: flex;
    }
}

.mobile_nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 4px;
    color: var(--white-3);
    font-weight: 400;
    font-size: 11px;
    text-decoration: none;
}

.mobile_nav a:hover {
    background: var(--black-5);
    color: var(--white-1);
}

.mobile_nav a i {
    width: 24px !important;
    height: 24px !important;
    mask-size: 24px !important;
    background-color: var(--white-3) !important;
}


/*
* Footer
*/
.footer {
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: solid 1px var(--black-3);
}

/* Footer info */
.footer_info {
    display: grid;
    gap: 4px;
    list-style: none;
    font-size: 13px;
    color: var(--white-7);
    line-height: 1.3;
}

/* Footer navigation */
.footer_nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .footer_nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.footer_nav a {
    padding: 8px 16px;
    color: var(--white-7);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.footer_nav a:hover {
    color: var(--white-1);
}


/*
* Section
*/
.section {
    margin-bottom: 48px;
}

.section:last-child {
    margin-bottom: 0;
}

.section_header {
    margin-bottom: 24px;
}

.section_title {
    font-size: 24px;
    font-weight: 600;
}

.section_body {
}

.section_note {
    margin-bottom: 24px;
    color: var(--white-3);
}

.section_description {
    margin-bottom: 24px;
    line-height: 1.5;
    font-size: 14px;
    color: var(--white-5);
}

.section_description h2 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
    color: var(--white-3);
}

/* Section footer */
.section_footer {
    margin-top: 48px;
}

.section_footer h1, .section_footer h2, .section_footer h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--white-5);
}

.section_footer h1 {
    font-size: 18px;
}

.section_footer p {
    line-height: 1.5;
    font-size: 13px;
    color: var(--white-7);
}

.section_footer a {
    color: var(--white-7);
}

.section_footer p + h2 {
    margin-top: 8px;
}


/*
* Breadcrumbs
*/
.breadcrumbs {
    margin-bottom: 24px;
}

.breadcrumbs_list {
    width: 0;
    min-width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    list-style-type: none;
}

.breadcrumbs_item {
    display: flex;
    flex-shrink: 0;
}

.breadcrumbs_item:last-child {
    flex-shrink: 1;
    overflow: hidden;
}

.breadcrumbs_delimiter:before {
    margin-right: 8px;
    content: '\002F';
    color: var(--white-5);
}

.breadcrumbs_link {
    color: var(--white-5);
}

.breadcrumbs_text {
    display: block;
    color: var(--white-5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/*
* Pagination
*/
.pagination {
    margin-top: 48px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min-content;
    justify-content: center;
    gap: 8px;
}

.pagination_link {
    display: inline-block;
    min-width: 40px;
    padding: 10px;
    background: var(--black-3);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--white-3);
    text-align: center;
    text-decoration: none;
}

.pagination_link:hover {
    background: var(--black-5);
    color: var(--white-1);
    text-decoration: none;
}

.pagination_link_active {
    background: var(--black-5);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 0 var(--accent);
    color: var(--white-1);
}
