:root {
    --ccbvo-primary: #2220e8;
    --ccbvo-secondary-nav: #3c3c3c;
    --ccbvo-secondary-nav-hover: #272727;
    --ccbvo-secondary-nav-active: #202020;
    --ccbvo-menu-text: #f1f1f1;
    --ccbvo-body-text: #2f2f2f;
    --ccbvo-border: #d8d8d8;
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--ccbvo-body-text);
    font-family: var(--ccbvo-body-font);
    font-size: 14px;
    line-height: 1.65;
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1260px, calc(100vw - 2rem));
    margin: 0 auto;
}

.assistive-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

#page {
    width: 100%;
    margin: 0;
    background: #fff;
    min-height: 100vh;
}

#masthead {
    background: #fff;
    border-bottom: 1px solid #ececec;
}

#hgroup-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
}

#header-left {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

#site-logo img {
    height: 58px;
    width: auto;
}

#hgroup {
    min-width: 0;
}

#site-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--ccbvo-heading-font);
}

#site-title a {
    color: #2320e8;
}

#site-description {
    margin: 0.22rem 0 0;
    min-height: 1rem;
    color: #6e6e6e;
    font-size: 0.78rem;
    font-weight: 400;
}

#header-right {
    display: flex;
    align-items: center;
}

.mobile-nav {
    display: none;
    border: 0;
    width: 42px;
    height: 40px;
    border-radius: 4px;
    background: #ededed;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.mobile-menu-bar,
.mobile-menu-bar::before,
.mobile-menu-bar::after {
    content: "";
    position: absolute;
    left: 11px;
    width: 20px;
    height: 2px;
    background: #2f2f2f;
    transition: transform 0.2s ease;
}

.mobile-menu-bar {
    top: 19px;
}

.mobile-menu-bar::before {
    top: -6px;
    left: 0;
}

.mobile-menu-bar::after {
    top: 6px;
    left: 0;
}

#main-wrapper {
    background: #fff;
}

#secondary-menu {
    border-top: 1px solid #5b5b5b;
    border-bottom: 1px solid #151515;
    background: linear-gradient(to bottom, #444 0%, #2f2f2f 100%);
    position: relative;
    z-index: 520;
}

#access-secondary {
    width: min(1260px, calc(100vw - 2rem));
    margin: 0 auto;
}

#access-secondary > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#access-secondary > ul.menu {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

#access-secondary li {
    position: relative;
    list-style: none;
}

#access-secondary > ul > li > a {
    display: block;
    padding: 0.78rem 0.95rem;
    color: var(--ccbvo-menu-text);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#access-secondary > ul > li:hover > a,
#access-secondary > ul > li.current-menu-item > a,
#access-secondary > ul > li.current_page_item > a {
    background: var(--ccbvo-secondary-nav-hover);
    color: #fff;
    text-decoration: none;
}

#access-secondary li.menu-item-has-children > a {
    padding-right: 1.7rem;
}

#access-secondary li.menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 0.7rem;
    top: 50%;
    margin-top: -2px;
    border-width: 5px 4px 0;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.9) transparent transparent;
}

#access-secondary .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 240px;
    margin: 0;
    padding: 0;
    background: #2d2d2d;
    border-top: 1px solid #1e1e1e;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity 0.17s ease, transform 0.17s ease;
    z-index: 999;
}

#access-secondary li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#access-secondary .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#access-secondary .sub-menu li:last-child {
    border-bottom: 0;
}

#access-secondary .sub-menu a {
    display: block;
    padding: 0.58rem 0.82rem;
    color: #efefef;
    font-size: 0.82rem;
    line-height: 1.4;
}

#access-secondary .sub-menu a:hover {
    background: var(--ccbvo-secondary-nav-active);
    color: #fff;
    text-decoration: none;
}

#access-secondary .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

.ccbvo-main {
    padding: 1.35rem 0 2.7rem;
}

.ccbvo-home-main {
    padding-top: 0;
}

#main-slider {
    position: relative;
    overflow: hidden;
}

.featured-slider {
    position: relative;
    min-height: 320px;
    background: #111;
}

.featured-slider .slides {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.featured-slider .slides.displayblock,
.featured-slider .slides.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.slider-image,
.slider-image a,
.slider-image img {
    width: 100%;
    height: 100%;
}

.slider-image img {
    min-height: 360px;
    max-height: 560px;
    object-fit: cover;
}

#slider-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

#slider-nav a {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(0, 0, 0, 0.32);
    color: transparent;
    text-decoration: none;
    position: relative;
}

#slider-nav a::before {
    content: "";
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

#slider-nav .slide-previous::before {
    border-right: 9px solid #fff;
    margin-left: -2px;
}

#slider-nav .slide-next::before {
    border-left: 9px solid #fff;
    margin-right: -2px;
}

#slider-nav a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

#controllers {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.8rem;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 0.36rem;
}

#controllers button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    padding: 0;
    cursor: pointer;
}

#controllers button.is-active {
    background: rgba(255, 255, 255, 0.94);
}

#homepage-message {
    background: linear-gradient(90deg, #0f4c50 0%, #2c8a63 100%);
    color: #f3ffff;
}

#homepage-message .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.4rem 0;
}

#homepage-message h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.18;
    font-family: var(--ccbvo-heading-font);
}

#homepage-message .newcolor {
    color: #f4ffff;
}

#homepage-message p {
    margin: 0.78rem 0 0;
    font-size: 0.93rem;
    color: rgba(242, 255, 255, 0.95);
}

#homepage-message .right-section a {
    display: inline-block;
    padding: 0.66rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

#featured-post {
    padding: 2rem 0;
}

.featued-content-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

#featured-post article {
    border: 1px solid #e3e3e3;
    background: #fff;
}

.featured-homepage-image {
    margin: 0;
    background: #f2f2f2;
}

.featured-homepage-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.entry-container {
    padding: 0.9rem 0.95rem 1rem;
}

.entry-title {
    margin: 0;
    font-family: var(--ccbvo-heading-font);
    font-size: 1.06rem;
    line-height: 1.38;
}

.entry-title a {
    color: #1e1e1e;
}

.entry-content {
    margin-top: 0.7rem;
    font-size: 0.89rem;
    color: #444;
}

.ccbvo-breadcrumb {
    margin-bottom: 1.1rem;
}

.ccbvo-breadcrumb h1 {
    margin: 0;
    padding: 0.82rem 0;
    border-bottom: 1px solid #e7e7e7;
    color: #222;
    font-size: 1.45rem;
    font-family: var(--ccbvo-heading-font);
}

.ccbvo-content-page {
    max-width: 100%;
}

.ck-content {
    color: #323232;
    font-size: 0.97rem;
}

.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4 {
    color: #111;
    font-family: var(--ccbvo-heading-font);
}

.ck-content img {
    max-width: 100%;
    height: auto;
}

#colophon {
    margin-top: 0;
    border-top: 1px solid #d3d3d3;
    background: #f8f8f8;
}

#footer-sidebar {
    padding: 1.35rem 0;
}

#supplementary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
}

#supplementary .widget-area {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 0.62rem;
}

#supplementary .widget-title {
    margin: 0 0 0.55rem;
    color: #1f1f1f;
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 700;
}

#supplementary iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

#site-generator {
    border-top: 1px solid #dcdcdc;
    background: #f1f1f1;
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0;
    font-size: 0.82rem;
    color: #444;
}

.site-info a {
    color: #333;
    font-weight: 600;
}

@media (max-width: 1100px) {
    #site-title {
        font-size: 0.93rem;
    }

    #access-secondary > ul > li > a {
        padding: 0.72rem 0.72rem;
        font-size: 0.8rem;
    }

    .featued-content-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #supplementary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #secondary-mobile-menu,
    #header-mobile-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #hgroup-wrap {
        padding: 0.72rem 0;
    }

    #site-logo img {
        height: 50px;
    }

    #site-title {
        font-size: 0.84rem;
    }

    #secondary-menu {
        border-top: 0;
    }

    #access-secondary {
        width: min(1260px, calc(100vw - 1rem));
    }

    #access-secondary > ul.menu {
        display: none;
        flex-direction: column;
    }

    #secondary-menu.menu-open #access-secondary > ul.menu {
        display: flex;
    }

    #access-secondary > ul > li {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    #access-secondary > ul > li > a {
        padding: 0.72rem 0.95rem;
    }

    #access-secondary .sub-menu,
    #access-secondary .sub-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: 0;
        min-width: auto;
        background: #262626;
        display: none;
    }

    #access-secondary li.menu-item-has-children.open > .sub-menu {
        display: block;
    }

    #access-secondary li.menu-item-has-children > a::after {
        right: 1rem;
    }

    #homepage-message .container {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }

    #homepage-message h2 {
        font-size: 1.42rem;
    }

    .site-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(1260px, calc(100vw - 1rem));
    }

    #header-left {
        gap: 0.65rem;
    }

    #hgroup {
        max-width: 64vw;
    }

    #site-logo img {
        height: 44px;
    }

    .featured-slider {
        min-height: 240px;
    }

    .slider-image img {
        min-height: 240px;
    }

    #slider-nav a {
        width: 35px;
        height: 35px;
        margin: 0 0.4rem;
    }

    .featued-content-wrap {
        grid-template-columns: 1fr;
    }

    #supplementary {
        grid-template-columns: 1fr;
    }
}
