.header {
position: relative;
background: linear-gradient(
45deg,
var(--primary-color, #333333) 0%,
var(--secondary-color, #111111) 100%
);
color: var(--header-text-color);
z-index: 1001;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.header a:hover {
color: var(--header-text-color);
}
.header.sticky {
position: sticky;
top: 0;
}
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
height: var(--header-height);
margin: 0 auto;
padding: var(--container-padding);
} .site {
display: flex;
align-items: center;
}
.site a {
display: flex;
align-items: center;
text-decoration: none;
color: var(--header-text-color);
}
.site__img {
width: 2.5rem;
height: 2.5rem;
margin-right: 0.625rem;
} .toggle-menu,
.close-menu {
display: flex;
align-items: center;
cursor: pointer;
background: none;
border: none;
padding: 0;
margin: 0;
color: var(--header-text-color);
}
.toggle-menu {
margin: 0 0.5rem;
}
.menu-icon {
width: 1.875rem;
height: 1.875rem;
color: var(--header-text-color);
}
.mobile-menu {
position: fixed;
top: 0;
right: -100vw;
width: 100vw;
height: 100vh;
background: linear-gradient(
45deg,
var(--primary-color, #333333) 0%,
var(--secondary-color, #111111) 100%
);
padding: calc(2 * var(--container-padding));
flex-direction: column;
align-items: center;
justify-content: top;
transition: right 0.3s ease-in-out;
z-index: 1002;
visibility: hidden;
}
.mobile-menu.show {
right: 0;
visibility: visible;
}
.mobile-nav-links-container {
width: 100%;
height: 100%;
padding-top: 4rem;
}
.mobile-nav-links {
width: 100%;
height: 100%;
padding-bottom: 2rem;
overflow-y: auto;
overflow-x: hidden;
}
.mobile-nav-links .menu-item {
width: 100%;
border-bottom: 1px solid var(--secondary-color);
}
.mobile-menu a {
display: block;
color: var(--header-text-color);
padding: 0.5rem 0;
text-decoration: none;
}
.mobile-menu .close-menu {
position: absolute;
top: calc(2 * var(--container-padding));
right: calc(2 * var(--container-padding));
cursor: pointer;
color: var(--header-text-color);
z-index: 1003;
}
body.no-scroll {
overflow: hidden;
}
.mobile-nav-links .menu {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.mobile-nav-links .menu a {
text-decoration: none;
color: var(--header-text-color);
}
.mobile-nav-links .menu .current-menu-item > a {
color: var(--complementary-color);
}
.mobile-nav-links .sub-menu {
display: block;
list-style: none;
padding: 0 0 0 1rem;
border: none;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-in-out;
}
.mobile-nav-links .menu-item {
position: relative;
}
.mobile-nav-links .sub-menu .menu-item {
border: none;
}
.mobile-nav-links .menu-item .submenu-toggle {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: 0.5rem;
top: 0.625rem;
margin: 0;
padding: 0;
background: none;
border: none;
color: var(--header-text-color);
}
.mobile-menu-item .sub-menu.open {
max-height: 100vh;
}
.mobile-menu-item .submenu-toggle {
transition: transform 0.3s ease-in-out;
}
.mobile-menu-item .submenu-toggle.open {
transform: rotate(180deg);
}
.header-search-form,
.nav-links {
display: none;
} @media (min-width: 1000px) {
.header-container {
max-width: var(--container-width);
padding: var(--container-padding-desktop);
height: var(--header-height-desktop);
}
.header-search-form {
display: flex;
}
.nav-links {
display: flex;
}
.nav-links .menu {
margin: 0;
padding: 0;
list-style: none;
display: flex;
gap: 0.25rem;
}
.nav-links .menu li {
margin: 0;
padding: 0;
}
.nav-links .menu .current-menu-item > a {
color: var(--complementary-color);
}
.nav-links .menu a {
display: block;
padding: 0.25rem 0.75rem;
text-decoration: none;
color: var(--header-text-color);
border-radius: 0.25rem;
transition: background-color 0.3s ease-in-out;
}
.nav-links .menu .menu-item a:hover {
background-color: var(--secondary-color);
}
.nav-links .menu a:active {
color: var(--complementary-color);
background-color: var(--secondary-color);
}
.nav-links .menu .menu-item {
position: relative;
}
.nav-links .menu .menu-item .submenu-toggle {
display: none;
}
.nav-links .menu .menu-item:hover > ul {
display: block;
}
.sub-menu {
display: none;
position: absolute;
left: 0;
padding: 0;
margin: 0 0 0 1rem;
min-width: 200px;
background: linear-gradient(
45deg,
var(--primary-color, #333333) 0%,
var(--secondary-color, #111111) 100%
);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
z-index: 1000;
list-style: none;
border-radius: 0.25rem;
}
.sub-menu li {
display: block;
padding: 0;
margin: 0;
width: 100%;
}
.sub-menu li a {
width: 100%;
}
.toggle-menu,
.mobile-menu {
display: none;
}
}.search-form {
display: flex;
align-items: end;
justify-content: center;
position: relative;
background-color: rgba(255, 255, 255, 0.2); padding: 0.5rem 1rem 0.75rem;
border-radius: 0.25rem;
}
.search-field {
border: none;
border-bottom: 1px solid var(--header-text-color);
padding: 0.5rem 0;
margin: 0;
width: 100%;
height: 100%;
color: var(--header-text-color);
background: none;
outline: none; }
.search-field::-webkit-search-cancel-button {
-webkit-appearance: none;
background-color: var(--header-text-color);
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
background-size: 20px 20px;
height: 20px;
width: 20px;
cursor: pointer;
}
.search-field::placeholder {
color: var(--header-text-color);
opacity: 0.75; }
.search-submit {
background: none;
border: none;
border-bottom: 1px solid var(--header-text-color);
cursor: pointer;
height: 100%;
color: var(--header-text-color);
}
.search-icon {
fill: none;
stroke: #000;
stroke-width: 2;
}.footer {
display: flex;
flex-direction: column;
height: 100%;
padding: 0;
margin: 0;
background-color: var(--footer-background-color);
color: var(--footer-text-color);
}
.footer-container {
display: flex;
flex-direction: column;
width: 100%;
margin: 0 auto;
padding: var(--container-padding);
}
.footer-columns {
display: flex;
flex-direction: column;
gap: 1rem;
width: 100%;
margin: 1rem auto;
}
.footer-column {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
margin-bottom: 1rem;
}
.footer-column:last-child {
margin-bottom: 0;
}
.footer-column p,
.footer-column h1,
.footer-column h2,
.footer-column h3,
.footer-column h4,
.footer-column h5,
.footer-column h6 {
margin: 0 0 0.5rem 0;
padding: 0;
color: var(--footer-text-color);
}
.footer-copy {
font-size: 0.75rem;
width: 100%;
text-align: center;
} @media (min-width: 1000px) {
.footer-container {
max-width: var(--container-width);
padding: var(--container-padding-desktop);
}
.footer-columns {
flex-direction: row;
justify-content: space-between;
}
.footer-column {
flex: 1;
margin-bottom: 1rem;
}
.footer-column:last-child {
flex: 2;
}
}.index-section {
margin-bottom: 3rem;
}
h2.section-title {
font-size: 2rem;
line-height: normal;
margin: 0 0 2rem 0;
border-bottom: 1px solid var(--border-color);
}
h2.section-title span {
border-bottom: 2px solid var(--primary-color);
}
h3.post-title {
font-size: 1.5rem;
line-height: 2rem;
margin: 0;
}
h3.post-title a {
color: var(--title-color);
text-decoration: none;
}
@media screen and (min-width: 1000px) {
h3.post-title {
line-height: 1.625rem;
}
}.header {
background: transparent;
box-shadow: none;
}
.homepage-intro {
position: relative;
background: black;
background-size: cover;
background-position: center;
background-image: var(--background-image, none);
width: 100vw;
height: 100%;
margin-left: calc(var(--container-padding) * -1);
z-index: 0;
padding: var(--container-padding);
margin-top: calc(var(--header-height) * -1);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.homepage-intro.has-background-image::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5));
z-index: 1;
}
.inner-container {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
height: 100%;
min-height: calc(100vh - var(--header-height));
padding: 0 var(--container-padding);
z-index: 2;
}
.homepage-main-text {
font-size: 3rem;
line-height: 3rem;
margin-bottom: 1rem;
color: #fff;
}
.homepage-description {
font-size: 1.2em;
opacity: 0.8;
color: #fff;
}
@media screen and (min-width: 1000px) {
.homepage-intro {
padding: var(--header-height-desktop) 0 var(--header-height-desktop) 0;
margin-top: calc(var(--header-height-desktop) * -1);
margin-left: min(
calc(((100vw - var(--container-width)) / -2) - var(--container-padding-desktop)),
calc(var(--container-padding-desktop) * -1)
);
}
.inner-container {
align-items: center;
margin: var(--header-height-desktop) auto;
min-height: 15rem;
max-width: 50rem;
text-align: center;
}
}.most-viewed-posts {
display: flex;
flex-direction: column;
gap: 1.5rem;
height: auto;
color: var(--text-color);
}
.most-viewed-posts .post-item {
display: flex;
flex-direction: column;
gap: 0.75rem;
height: auto;
overflow: hidden;
}
.most-viewed-posts .post-item:not(last-child) {
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}
.most-viewed-posts .post-item .post-breadcrumb {
display: flex;
align-items: center;
gap: 0.25rem;
width: 100%;
font-size: 0.75rem;
color: var(--text-color);
opacity: 0.8;
line-height: 1rem;
}
.most-viewed-posts .post-item .post-breadcrumb .breadcrumb-category {
color: var(--text-color);
opacity: 0.8;
font-weight: 400;
text-decoration: none;
transition: color 0.2s ease;
}
.most-viewed-posts .post-item .post-breadcrumb .breadcrumb-category:hover {
color: var(--primary-color);
opacity: 0.8;
}
.most-viewed-posts .post-item .post-breadcrumb .breadcrumb-separator {
color: var(--text-color);
opacity: 0.8;
margin: 0 0.25rem;
}
.most-viewed-posts .post-item .post-content {
flex: 3;
display: flex;
flex-direction: column;
justify-content: center;
gap: 0.5rem;
overflow: hidden;
}
.most-viewed-posts .post-item .post-content .post-title a {
font-weight: 700;
}
.most-viewed-posts .post-item .post-thumbnail {
flex: 2;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
aspect-ratio: 16/9;
overflow: hidden;
border-radius: 0.25rem;
}
.most-viewed-posts .post-item .post-thumbnail a {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
overflow: hidden;
border-radius: 0.25rem;
text-decoration: none;
}
.most-viewed-posts .post-item .post-thumbnail a img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 0.25rem;
}
.most-viewed-posts .post-meta {
display: flex;
justify-content: space-between;
}
.most-viewed-posts .post-meta .post-category {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.75rem;
line-height: 1.375rem;
}
.most-viewed-posts .post-meta .post-category a {
display: inline-block;
color: var(--primary-color);
border: 1px solid var(--primary-color);
padding: 0 0.5rem;
border-radius: 1rem;
text-decoration: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.most-viewed-posts .post-excerpt {
font-size: 1rem;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.5;
margin: 0;
} @media (min-width: 1000px) {
.most-viewed-posts .post-item .post-breadcrumb {
display: none;
}
.most-viewed-posts {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: repeat(4, auto);
gap: 1rem;
height: 40rem;
}
.most-viewed-posts .post-item:not(last-child) {
border-bottom: none;
}
.most-viewed-posts .post-item.featured {
grid-column: 1 / 3;
grid-row: 1 / 5;
display: flex;
flex-direction: column;
height: 100%;
padding: 0;
gap: 1rem;
}
.most-viewed-posts .post-item.featured .post-thumbnail {
flex: 3;
aspect-ratio: unset;
height: auto;
}
.most-viewed-posts .post-item.featured .post-content {
flex: 1;
gap: 0.75rem;
}
.most-viewed-posts .post-item:not(.featured) {
grid-column: 3;
grid-row: span 1;
display: flex;
flex-direction: row;
height: 100%;
padding: 0;
margin: 0;
}
.most-viewed-posts .post-item:not(.featured):not(:last-child) {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}
.most-viewed-posts .post-item:not(.featured) .post-content {
flex: 3;
display: flex;
flex-direction: column;
justify-content: center;
gap: 0.5rem;
padding: 0;
margin: 0;
overflow: hidden;
}
.most-viewed-posts .post-item .post-content .post-title {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow-y: hidden;
text-overflow: ellipsis;
font-size: 1.5rem;
line-height: 1.75rem;
margin: 0;
}
.most-viewed-posts .post-item.featured .post-content .post-title {
min-height: 2rem;
display: flex;
align-items: center;
}
.most-viewed-posts .post-item:not(.featured) .post-content .post-title {
-webkit-line-clamp: 3;
font-size: 1.125rem;
line-height: 1.5;
}
.most-viewed-posts .post-item:not(.featured) .post-content .post-title a {
font-weight: 500;
}
.most-viewed-posts .post-item:not(.featured) .post-thumbnail {
order: 2;
overflow: hidden;
}
.most-viewed-posts .post-item .post-excerpt {
-webkit-line-clamp: 3;
}
.most-viewed-posts .post-item:not(.featured) .post-excerpt {
display: none;
} .most-viewed-posts .post-item:not(.featured) .post-meta .post-category {
max-width: 60%;
overflow: hidden;
}
.most-viewed-posts .post-item:not(.featured) .post-meta .post-category a {
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}.latest-posts {
display: flex;
flex-direction: column;
color: var(--text-color);
}
.latest-posts .post-item {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
.latest-posts .post-item:not(last-child) {
padding-bottom: 1.5rem;
margin-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}
.latest-posts .post-item a {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
gap: 0.75rem;
text-decoration: none;
color: var(--text-color);
}
.latest-posts .post-item .post-breadcrumb {
display: flex;
align-items: center;
gap: 0.25rem;
width: 100%;
font-size: 0.75rem;
color: var(--text-color);
opacity: 0.8;
line-height: 1rem;
margin-bottom: 0.75rem;
}
.latest-posts .post-item .post-breadcrumb .breadcrumb-category {
color: var(--text-color);
font-weight: 400;
opacity: 0.8;
text-decoration: none;
transition: color 0.2s ease;
}
.latest-posts .post-item .post-breadcrumb .breadcrumb-category:hover {
color: var(--primary-color);
opacity: 0.8;
}
.latest-posts .post-item .post-breadcrumb .breadcrumb-category-main {
color: var(--text-color);
font-weight: 400;
opacity: 0.8;
}
.latest-posts .post-item .post-breadcrumb .breadcrumb-separator {
color: var(--text-color);
opacity: 0.5;
margin: 0 0.25rem;
}
.latest-posts .post-item .post-thumbnail {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
aspect-ratio: 16/9;
overflow: hidden;
border-radius: 0.25rem;
}
.latest-posts .post-item .post-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
}
.latest-posts .post-item .post-content {
display: flex;
flex-direction: column;
gap: 0.5rem;
width: 100%;
padding: 0;
margin: 0;
}
.latest-posts .post-item .post-content .post-meta {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.latest-posts .post-item .post-content .post-meta .post-category {
display: flex;
flex-wrap: wrap;
gap: 0.375rem;
}
.latest-posts .post-item .post-content .post-meta .post-category span {
display: inline-block;
padding: 0 0.5rem;
font-size: 0.75rem;
line-height: 1.375rem;
color: var(--primary-color);
border: 1px solid var(--primary-color);
border-radius: 1rem;
}
.latest-posts .post-item .post-content .post-meta .post-date {
font-size: 0.75rem;
font-weight: 400;
opacity: 0.8;
}
.latest-posts .post-item .post-content .post-excerpt p {
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
line-height: 1.5rem;
font-weight: 400;
line-height: 1.625rem;
} @media (min-width: 1000px) {
.latest-posts .post-item {
display: flex;
flex-direction: column;
position: relative;
}
.latest-posts .post-item a {
flex-direction: row;
align-items: flex-start;
height: 100%;
overflow: hidden;
padding: 0;
margin: 0;
}
.latest-posts .post-item .post-breadcrumb {
position: absolute;
top: 0;
left: calc(16rem + 0.75rem);
width: auto;
margin-bottom: 0;
z-index: 1;
}
.latest-posts .post-item .post-thumbnail {
flex: none;
width: 16rem;
height: 9rem;
aspect-ratio: 16/9;
}
.latest-posts .post-item .post-content {
flex: 1;
height: 9rem;
max-height: 9rem;
padding-top: 1.5rem;
display: flex;
flex-direction: column;
overflow: hidden;
}
.latest-posts .post-item .post-content .post-meta {
flex-shrink: 0;
}
.latest-posts .post-item .post-content .post-title {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.625rem;
margin: 0;
flex-shrink: 0;
}
.latest-posts .post-item .post-content .post-excerpt {
flex: 1;
overflow: hidden;
}
.latest-posts .post-item .post-content .post-excerpt p {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
height: 100%;
margin: 0;
}
}.featured-posts {
color: var(--text-color);
}
.featured-posts {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.featured-posts .post-item {
position: relative;
overflow: hidden;
border-radius: 0.25rem;
height: 22.5rem;
max-width: 22.5rem;
}
.featured-posts .post-item a {
display: block;
color: inherit;
text-decoration: none;
width: 100%;
height: 22.5rem;
}
.featured-posts .post-thumbnail {
width: 100%;
height: 22.5rem;
position: relative;
}
.featured-posts .post-thumbnail img {
width: 100%;
height: 22.5rem;
object-fit: cover;
}
.featured-posts .overlay {
position: absolute;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
gap: 0.5rem;
bottom: 0;
left: 0;
right: 0;
padding: 1rem;
background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
height: 22.5rem;
color: #fff;
}
.featured-posts .overlay .post-meta {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
font-size: 0.875rem;
font-weight: 500;
color: #fff;
}
.featured-posts .overlay .post-meta .post-category__item {
display: inline-block;
padding: 0 0.5rem;
font-size: 0.75rem;
line-height: 1.375rem;
color: #fff;
border: 1px solid #fff;
border-radius: 1rem;
}
.featured-posts .post-title {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
color: #fff;
} @media (min-width: 1000px) {
.featured-posts {
flex-direction: row;
gap: 1rem;
}
.featured-posts .post-item {
flex: 1;
}
.featured-posts .post-title {
font-size: 1.375rem;
line-height: 2rem;
}
}