html,
body {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

a {
    color: black;
    text-decoration: none;
    text-underline-position: under;
}
a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1440px;
    margin: auto;
    padding: 0 1rem;
}

#ca-global-header-top-links {
    display: flex;
    padding: 0.2rem 1rem;
    align-items: center;
    color: rgb(19, 101, 75);
}

#ca-global-header-top-links a {
    color: rgb(19, 101, 75);
}

#ca-global-header-top-links section:first-child,
#ca-global-header-top-links section:last-child {
    flex-basis: 40%;
    flex-grow: 1;
    flex-shrink: 0;
}

#ca-global-header-top-links section:last-child {
    text-align: right;
}

#ca-global-header-top-links section:last-child input {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(19, 101, 75, 0.5);
}

#ca-global-header-top-links section:nth-child(2) {
    flex-grow: 1;
    flex-shrink: 0;
    text-align: center;
}

#ca-global-header-banner {
    background-image: url(/subsite/img/bg_banner_h1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 240px;
}

#ca-global-header-banner > .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
#ca-global-header-banner > .container h4 {
    margin: 0;
    font-size: 2.4rem;
    padding-left: 1rem;
    color: rgb(19, 101, 75);
}

#site-title {
    width: 250px;
    height: 70px;
    background: url(/subsite/img/sprite2.webp) no-repeat;
}

#title-hr {
    display: flex;
    padding: 1rem 0;
    align-items: center;
    color: rgb(19, 101, 75);
}

#title-hr div {
    height: 1px;
    flex-grow: 1;
    flex-shrink: 0;
    background-color: rgba(19, 101, 75, 0.25);
}

#title-hr div:first-child {
    margin-left: 2rem;
}

#title-hr div:last-child {
    margin-right: 2rem;
}

#title-hr h4 {
    flex-grow: 0;
    flex-shrink: 1;
    padding: 0 1rem;
    margin: 0;
}

#nav-menu {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
#nav-menu a {
    display: block;
    margin: 0 1rem;
    color: rgb(19, 101, 75);
    font-size: 1rem;
}

#nav-menu a.active {
    font-size: 1.2rem;
    line-height: 1.2rem;
    text-decoration: underline;
}

#main {
    display: flex;
}

#main > section {
    flex-basis: 75%;
    max-width: 75%;
    flex-grow: 0;
    flex-shrink: 0;
}

#main > aside {
    flex-basis: 25%;
    flex-grow: 0;
    flex-shrink: 0;
}

#main-first-row {
    display: flex;
}

#main-first-row-keynote,
#main-first-today-headline {
    box-sizing: border-box;
    flex-basis: calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    flex-grow: 0;
    flex-shrink: 0;
    border: 1px solid rgba(19, 101, 75, 0.25);
    padding: 0.4rem;
    margin-right: 0.5rem;
}

.category-second-row-title,
#category-first-row > h4,
#main-first-row-keynote > h4,
#main-first-today-headline > h4 {
    margin: 0 0 0.6rem 0;
    background-color: rgb(19, 101, 75);
    display: inline-block;
    color: white;
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
    line-height: 1.5rem;
}
.category-second-row-title {
    margin-top: 2rem;
    margin-bottom: -0.8rem;
}
.category-second-row-title.sole {
    margin-top: 0;
    margin-bottom: 1rem;
}

#main > aside img.ads-item {
    width: 100%;
    margin-bottom: 1.5rem;
}

#main-first-row-keynote .active-headline-img {
    display: block;
    max-width: 510px;
    width: calc(100% - 1rem);
    margin: auto;
}

#main-first-row-keynote .active-headline-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 10px 0 20px 0;
}

#main-first-row-keynote .headline-images {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
#main-first-row-keynote .headline-images a {
    cursor: pointer;
    display: block;
    box-sizing: border-box;
    border: 1px solid rgba(19, 101, 75, 0.25);
    padding: 2px;
    margin: 4px 0;
    width: calc(20% - 10px);
}
#main-first-row-keynote .headline-images img {
    width: 100%;
}

.article-list > div {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 5px 0;
}

.more-article {
    color: rgb(19, 101, 75);
    margin-top: 0.5rem;
    text-align: right;
}
#main-second-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-right: 1rem;
    justify-content: space-between;
}
#main-second-row .category-preview {
    max-width: 32%;
    flex-basis: 32%;
    flex-grow: 0;
    flex-shrink: 0;
    margin: 0 0 2rem 0;
}
#main-second-row .category-preview > a {
    display: block;
    max-width: 100%;
}
#main-second-row .category-preview > a > img {
    max-width: 100%;
}
#main-second-row .category-preview > h4 {
    margin: 0 0 0.4rem 0;
    background-color: rgb(19, 101, 75);
    display: inline-block;
    color: white;
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
    line-height: 1.2rem;
}
#main-second-row .category-preview > .headline-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.8;
}
#main-second-row .category-preview > p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.8;
    margin-top: 0;
}

#category-breadcrumbs {
    background-color: rgba(19, 101, 75, 0.25);
    padding: 1rem 3rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 1px 3px 0 rgb(19, 101, 75);
}

#category-breadcrumbs span,
#category-breadcrumbs span a {
    color: rgb(19, 101, 75);
    font-size: 1rem;
}

#category-breadcrumbs span:not(:last-child):after {
    content: '>';
    display: inline-block;
    margin: 0 0.4rem;
}

#category-first-row-content {
    display: flex;
    padding: 10px 3%;
}

#category-first-row-content > .image-container {
    flex-basis: calc(57% - 20px);
    width: calc(57% - 20px);
    max-width: calc(57% - 20px);
    margin-right: 20px;
    flex-shrink: 0;
    flex-grow: 0;
}

#category-first-row-content > .image-container img {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}

#category-first-row-content > .desc-container > h1 {
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#category-first-row-content > .desc-container > p {
    display: block;
    margin-block-start: 0;
    margin-top: 0;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    line-height: 1.8;
}

#category-latest-posts .item {
    margin-right: 1rem;
    display: flex;
}

#category-latest-posts .item:not(:last-child) {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(19, 101, 75, 0.25);
}

#category-latest-posts .item:not(:first-child) {
    margin-top: 1.5rem;
}

#category-latest-posts .item .image-container {
    flex-basis: calc(35% - 20px);
    width: calc(35% - 20px);
    max-width: calc(35% - 20px);
    margin-right: 20px;
    flex-shrink: 0;
    flex-grow: 0;
}

#category-latest-posts .item .image-container img {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}

#category-latest-posts .item .desc-container {
}

#category-latest-posts .item .desc-container > h1 {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

#category-latest-posts .item .desc-container > p {
    display: block;
    margin-block-start: 0;
    margin-top: 0;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.8;
}

footer#main-footer {
    border-top: 1px solid rgba(19, 101, 75, 0.25);
    color: rgb(19, 101, 75);
    padding-top: 2rem;
    margin: 4rem 2rem 2rem;
    text-align: center;
}

@media screen and (max-width: 1024px) {
    #main-first-row {
        flex-direction: column;
        align-items: center;
    }
    #main-first-today-headline,
    #main-first-row-keynote {
        flex-basis: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
    }
    #main-first-row-keynote {
        margin-bottom: 2rem;
    }
    #main-second-row {
        padding: 0 0.5rem;
    }
    #main-second-row .category-preview {
        max-width: 48%;
        flex-basis: 48%;
        flex-grow: 0;
        flex-shrink: 0;
    }
    #category-first-row-content {
        padding-left: 0;
    }
    #category-first-row-content > .desc-container > h1 {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    #category-latest-posts .item .desc-container > h1 {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 768px) {
    html,
    body {
        font-size: 12px;
    }
    #ca-global-header-top-links section:last-child input {
        width: 120px;
    }
    #nav-menu {
        flex-wrap: wrap;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    #ca-global-header-top-links section:nth-child(2) {
        display: none;
    }
    #title-hr {
        padding: 0.2rem 0;
    }
    #ca-global-header-banner {
        height: 120px;
    }
    #ca-global-header-banner > .container h4 {
        font-size: 2rem;
    }
    #main-first-row-keynote .headline-images {
        display: block;
    }
    #main-first-row-keynote .headline-images a {
        display: inline-block;
        box-sizing: border-box;
        border: 1px solid rgba(19, 101, 75, 0.25);
        padding: 2px;
        margin: 4px 0;
        width: calc(20% - 3px);
    }
    #main-first-today-headline,
    #main-first-row-keynote {
        flex-basis: auto;
    }
    #main-second-row .category-preview {
        max-width: 100%;
        flex-basis: 100%;
        flex-grow: 0;
        flex-shrink: 0;
        margin: 0 0 2rem 0;
    }
    footer#main-footer {
        margin-top: 0;
    }
    #category-breadcrumbs {
        margin-top: 0;
    }
    #category-first-row-content {
        display: block;
    }
    #category-first-row-content > .image-container {
        margin-right: 10px;
        float: left;
    }
    #category-latest-posts .item {
        display: block;
    }
    #category-latest-posts .item .image-container {
        float: left;
        margin-right: 10px;
    }
}
