/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
    box-sizing: border-box;
}

:root {
    --c-black: #252525;
    --c-white: #f9f8f2;
    --c-white-contrast: #eae9e5;
    --c-brand: #EB5B4C;
    --element-width: 92.5%;
    --page-padding: 10%;
    --border-radius: 18px;
}

@media screen and (max-width: 900px) {
    :root {
        --element-width: 90%;
    }
}

/* Font Face Declarations */
@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Black.woff2') format('woff2');
    font-weight: 900;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Bold.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-ExtraBold.woff2') format('woff2');
    font-weight: 800;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-ExtraLight.woff2') format('woff2');
    font-weight: 200;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Light.woff2') format('woff2');
    font-weight: 300;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Medium.woff2') format('woff2');
    font-weight: 500;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Regular.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-SemiBold.woff2') format('woff2');
    font-weight: 600;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Thin.woff2') format('woff2');
    font-weight: 100;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist[wght].woff2') format('woff2');
    font-weight: normal; /* Adjust as needed */
}

.header {
    margin-top: 1rem;
}

.header .brand-logo img {
    height: 32.5px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--c-black);
    font-weight: 300;
    background-color: var(--c-white);
    font-size: 16px;
    font-family: 'Geist', sans-serif; /* Added Geist font */
}

@media screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }
}

.no-results {
    font-weight: 500;
    margin-top: .75rem;
}

.navigation {
    width: var(--element-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.nav-menu {
}

.navigation .brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.navigation .brand .brand-logo img {
    width: 1.25rem;
    height: 1.35rem;   
    display: block; 
}


@media screen and (max-width: 900px) {

    .navigation .brand .brand-logo img {
        width: 1.65rem;
        height: 1.75rem;   
    }

}

.navigation .brand .brand-name a {
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -.5px;
    margin-left: -.5rem;
    color: var(--c-black);
    text-decoration: none;
}

.navigation ul {
    display: flex;   
    gap: 2.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--c-black);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navigation ul.active {
        display: flex;
        padding: 1.5rem;
    }
    
    .navigation .user {
        gap: 0.5rem;
    }

    .navigation .brand .brand-name a {
        font-size: 1.25rem;
    }

    .navigation ul li a {
        padding: 0.5rem 0;
        display: block;
    }

    .navigation .user a svg {
        height: 20px!important;
        width: 20px!important;
    }
}

.navigation ul li a {
    font-weight: 400;
    font-size: .9rem;
    color: var(--c-black);
    text-decoration: none;
}

.navigation ul li a:hover {
    font-weight: 500;
}

.navigation .user {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 1rem;
    margin-left: auto;
}

.navigation .user a:first-child{
    color: var(--c-black);

}

.navigation .user a:last-child {
    display: flex;
    gap: .5rem;
    align-items: center;
    background-color: var(--c-black);
    border-radius: 50%;
    padding: .75rem;
    color: var(--c-white);
}

.navigation .user a:last-child:hover {
    background-color: #757575;
}

.navigation .user a svg {
    height: 22px;
    width: 22px;
}

.header {
    background-color: var(--c-white);
}

.hero {
    margin-top: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (max-width: 650px) {
    .hero {
        margin-top: 5rem!important;
    }
}

.eyebrow {
    font-weight: 400;
    font-size: .9rem;
    color: var(--c-black);
    text-decoration: none;
    padding: .5rem 1.75rem;
    border-radius: 24px;
    border: 1px solid #0000;
    background: linear-gradient(var(--c-white), var(--c-white)) padding-box, linear-gradient(
          var(--angle),
          rgba(17, 17, 26, 0.1),
          var(--c-brand)
        ) border-box;
    animation: 5s rotate linear infinite;
    margin-top: 6rem;
    margin-bottom: 2rem;
  }
  
  @keyframes rotate {
    to {
      --angle: 360deg;
    }
  }
  
  @property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
  }

.front {
    width: var(--element-width);
    margin: 0rem auto 0 auto;
}

.front .hero {
    min-height: calc(100vh - 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0!important;
    margin-bottom: 8rem;
    padding-top: 4rem;
}

.newest {
    width: 50%;
    margin-top: 6rem;
}

.newest-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.newest-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--c-black);
    border-radius: var(--border-radius);
    background-color: var(--c-white-contrast);
    transition: all 0.2s ease;
}

.newest-item:hover {
    background-color: var(--c-white);
    transform: scale(1.02);
}

.newest-item-type {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--c-white);
    border-radius: 50%;
}

.newest-item-content {
    flex: 1;
}

.newest-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.newest-item-meta {
    font-size: 0.9rem;
    color: #757575;
}

@media (max-width: 768px) {
    .newest {
        width: 100%;
        padding: 0 1rem;
    }

    .front .hero {
        gap: 2rem;
        padding-top: 2rem;
        height: auto;
        padding-bottom: 2rem;
    }
}

.hero.left-aligned {
    align-items: flex-start
}

.hero-author-image {
    width: var(--element-width);
    margin: 2rem auto 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-author-image img {
    max-width: 800px;
}

.hero-search-form {
    margin-top: 1rem!important;
}

.hero-user {
    text-align: center;
}

.hero-user-icon .link {
    display: inline-block;
}

.hero-user-icon .link img {
    height: 160px;
    width: 160px;
    display: block;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 26, 0.1);
    box-shadow: rgba(17, 17, 26, 0.1) 0px 3px 0px;
}

.hero-user-greeting {
    margin-top: 2.5rem;
    font-size: 2.75rem;
    font-weight: 600;
    color: #9f9f9f;
    letter-spacing: -1px;
}

.hero-search {
    width: 100%;
    line-height: 1;
}

.hero-search-desc {
    width: 50%;
    line-height: 1.5;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 3rem;
    font-weight: 400;
    font-size: 1.5rem;
    color: #757575;
}

@media screen and (max-width: 900px) {
    .hero-search-desc {
        width: 100%;
        font-size: 1.15rem;
        margin-top: 2rem;
    }
}


.hero-search-headline {
    font-size: clamp(2.25rem, 8vw, 11rem);
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 4rem;
    line-height: 1;
    transform: scaleY(1.1);
}

.hero-search-form {
    width: 60%;
    position: relative;
    margin: 0rem auto 0 auto;
}

.hero-search-form input {
    width: 100%;
    border-radius: var(--border-radius);
    padding: 1.5rem 1.5rem 1.5rem 5rem;
    border: none;
    background-color: var(--c-white-contrast);
    font-size: 0.9rem;
    border: 1px solid #d4d4d4; 
}

.hero-search-form input::placeholder {
    color: #777777;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 8rem;
}

@media screen and (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 3rem;
    }
}

@media screen and (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--c-black);
    background-color: var(--c-white-contrast);
    border-radius: var(--border-radius);
    padding: 8rem 2rem 2rem 2rem;
    transition: border-radius 0.5s ease;
    border: 1px solid transparent;
}

@media screen and (max-width: 1200px) {
    .category-item {
        padding: 6rem 1.5rem 1.5rem 1.5rem;
    }
}

@media screen and (max-width: 900px) {
    .category-item {
        padding: 5rem 1.25rem 1.25rem 1.25rem;
    }
    .category-title {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 600px) {
    .category-item {
        padding: 4rem 1rem 1rem 1rem;
    }
    .category-title {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
}

.cat-about {
    background-color: #2e93f9;
}

.cat-contact {
    background-color: #7ddf69;
}

.category-item:first-child{
    padding: 2rem;
}

.category-item:first-child .category-title {
    color: var(--c-black);
    font-size: 1.5rem;
}

@media screen and (max-width: 900px) {
    .category-item:first-child .category-title {
        font-size: 1.15rem;
    }
}


.category-item:hover {
    border-radius: calc(var(--border-radius) * 2);
    border: 1px solid #9f9f9f;
}

.category-item.highlight {
    background-color: var(--c-brand);
    color: var(--c-white);
}

.category-icon {
    margin-bottom: 1rem;
}

.category-icon img {
    height: 125px;
    display: block;
}

@media screen and (max-width: 1200px) {
    .category-icon img {
        height: 100px;
    }
}

@media screen and (max-width: 900px) {
    .category-icon img {
        height: 85px;
    }
}

@media screen and (max-width: 600px) {
    .category-icon img {
        height: 70px;
    }
}

.category-title {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-top: .75rem;
}

.hero-search-form button {
    position: absolute;
    top: 8px;
    left: .7rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    padding: .95rem;
    background-color: var(--c-black);
    color: var(--c-white);
    border-radius: calc(var(--border-radius) - .1rem);
}

@media screen and (max-width: 900px) {

    .hero-search-form {
        width: 100%;
    }

    .hero-search-form input {
        width: 100%;
        padding: 1.25rem 1.25rem 1.25rem 4.5rem;
    }

    .hero-search-form button {
        top: 5px;
        left: .5rem;
    }
}

.cta a {
    display: block;
    color: var(--c-black);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem; 
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--c-brand);
    margin-top: 3rem;
}

.hero-search-form button svg {
    height: 20px;
    width: 20px;
    display: block;
}

.hero-boxes {
    width: var(--element-width);
    margin: 1rem auto 0 auto;
    display: flex;;
    gap: 1rem;
}

.hero-boxes .hero-box {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background-color: var(--c-white-contrast);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.icon {
    background-color: var(--c-black);
    display: inline-block;
    padding: .75rem;
    border-radius: 8px;
}

.icon svg {
    width: 28px;
    height: 28px;
    color: var(--c-white);
    display: block;
}

.hero-boxes .hero-box .box-content-headline {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.box-content-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.box-content-list-item {
    line-height: 1.35;
    padding: .25rem;
}

.box-content-list-item:hover {
    background-color: #dad9d3;
}

.item-name a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--c-black);
    text-decoration: none;
}

.item-name a:hover {
    text-decoration: underline;
}

.item-author a {
    color: #757575;
    font-size: .9rem;
    font-weight: 400;
    text-decoration: none;
}

.item-author a:hover {
    text-decoration: underline;
}

.hero-headline {
    margin-top: .5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: clamp(2.4rem, 6.5vw, 7rem);
    font-weight: 800;
}

.hero-headline-desc {
    font-size: 1.35rem;   
    margin-top: .75rem;
    font-weight: 400;
}

@media screen and (max-width: 650px) {
    .hero-headline-desc {
        font-size: 1.15rem;
    }
}

main {
    flex: 1;
}

.a-left {
    width: var(--element-width);
    margin: 10rem auto 0 auto;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-false {
    width: var(--element-width);
    font-weight: 500;
    margin: 6rem auto 0 auto;
}

.list {
    width: var(--element-width);   
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.categories {
    width: var(--element-width);
    margin: 0 auto;
    display: flex;
    gap: .5rem;
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--c-white-contrast);
}

.filter-content-item {
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    background-color: var(--c-white-contrast);
    transition: all 0.2s ease;
}

.filter-content-item a {
    color: var(--c-black);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .25px;
}

.filter-content-item:hover {
    background-color: var(--c-white-contrast);
}

.filter-content-item.active {
    background-color: var(--c-black);
    color: var(--c-white);
}

.filter-content-item.active a {
    color: var(--c-white);
    font-weight: 500;
}

.categories a {
    color: var(--c-black);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
}

.active a  {
}

.categories a:hover {
    font-weight: 500;
}

.filter {
    margin-top: 3rem;
}

.the-list-filters {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: var(--c-white);
}

.the-list-filters-item {
    font-size: .95rem;
    font-weight: 400;
}

.filter-headline {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.the-list-filters.active {
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;

}

.filter-content a {
    color: var(--c-black);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
}

.filter-content a:hover {
    font-weight: 500;
}

.filter-content .active a {
    font-weight: 600;
}

.the-list-meta {
    width: var(--element-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-top: 2rem;
}

.the-list-meta-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    font-size: .9rem;
    cursor: pointer;
}

.filter-toggle {
    background-color: var(--c-white-contrast);
    transition: all 0.2s ease;
}

.filter-toggle:hover {
    background-color: var(--c-black);
    color: var(--c-white);
}

.filter-toggle:hover svg {
    stroke: var(--c-white);
}

.the-list-filters.active ~ .the-list-meta .filter-toggle {
    background-color: var(--c-black);
    color: var(--c-white);
}

.the-list-filters.active ~ .the-list-meta .filter-toggle svg {
    stroke: var(--c-black);
}


.the-list-meta div:first-child { 
    display: flex;
    align-items: center;
    gap: .5rem;
    background-color: var(--c-white-contrast);
    color: var(--c-black);
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.the-list-meta div:first-child.active {
    background-color: var(--c-black);
    color: var(--c-white);
}

.the-list-meta div:first-child svg {
    height: 20px;
    width: 20px;
}

@media screen and (max-width: 600px) {
    .the-list-meta-item:last-child {
        display: none;
    }
}


.the-list-main {
    width: 100%;
}

.the-list {
    width: var(--element-width);
    margin: 3.5rem auto 8rem auto;
    display: flex;
    gap: 2rem;
}

.the-list-filters {
    width: 20rem;
    height: fit-content;
}

.the-list-main {
    flex: 1;
}

.filter-overlay-header,
.filter-overlay-footer {
    display: none;
}

@media screen and (max-width: 900px) {
    .the-list {
        flex-direction: column;
        gap: 0;
    }

    .the-list-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-height: -webkit-fill-available;
        background: var(--c-white);
        z-index: 1000;
        flex-direction: column;
        padding: 0;
        border-radius: 0;
    }

    .the-list-filters.active {
        display: flex;
    }

    body:has(.the-list-filters.active) {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .filter-overlay-header,
    .filter-overlay-footer {
        display: flex;
        padding: 1rem;
        background: var(--c-white);
    }

    .filter-overlay-header {
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--c-white-contrast);

    }

    .filter-overlay-header h2 {
        font-size: 1.25rem;
        font-weight: 500;
        margin: 0;
    }

    .filter-overlay-close {
        border: none;
        background: none;
        padding: 0.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-overlay-footer {
        display: flex;
        gap: 1rem;
        justify-content: center;
        padding: 1rem;
        position: sticky;
        bottom: 0;
        background: var(--c-white);
        border-top: 1px solid var(--c-white-contrast);
        background: var(--c-white);
    }


    .filter-overlay-footer button {
        width: 40%;
        padding: 1rem;
        border-radius: var(--border-radius);
        border: 1px solid var(--c-black);
        font-weight: 500;
        cursor: pointer;
    }

    .filter-overlay-footer .apply-filters {
        background: var(--c-black);
        color: var(--c-white);
    }

    .filter-overlay-footer .reset-filters {
        background: var(--c-white);
        color: var(--c-black);
    }

    .list-filters {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1.5rem;
        overscroll-behavior: contain;
    }
}

.filter-overlay-close {
    border: none;
    background: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-overlay-footer {
    padding: 1rem;
    border-top: 1px solid var(--c-white-contrast);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

@media screen and (min-width: 900px) {
    .filter-overlay-footer {
        margin-top: 1.5rem;
        padding: 1.5rem 0 0 0;
        align-items: flex-start!important;
    }
}

@media screen and (max-width: 900px) {
    .filter-overlay-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--c-white);
    }
}

.filter-overlay-footer button {
    width: 40%;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--c-black);
    font-weight: 500;
    cursor: pointer;
}

.filter-overlay-footer .apply-filters {
    background: var(--c-black);
    color: var(--c-white);
}

.filter-overlay-footer .reset-filters {
    background: var(--c-white);
    color: var(--c-black);
}

    .list-filters {
        flex: 1;
        overflow-y: auto;
        width: 100%;
        max-width: 100%;
    }

.the-list-header {
    display: flex;
    margin-bottom: 1rem;
}

.the-list-header > div {
    flex: 1;
    color: #757575;
    font-weight: 300;
    font-size: 1rem;
}

@media screen and (max-width: 650px) {
    .the-list-header > div:nth-child(3),
    .the-list-header > div:nth-child(4) {
        display: none;
    }
        
}

@media screen and (max-width: 950px) {
    .the-list-header > div:nth-child(3) {
        display: none;
    }
        
}

.the-list-content {
    display: flex;
    flex-direction: column;
}

.the-list-item {
    position: relative; /* Make it relative for the pseudo-element */
    display: flex;
    padding: 2rem 0; /* Default padding */
    border-top: 1px solid #8c9090;
    overflow: hidden; /* Hide overflow for the sliding effect */
    transition: padding 0.3s ease; /* Smooth transition for padding */
    cursor: pointer;
}

.the-list-item-item a {
    color: var(--c-black);  
    text-decoration: none;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.the-list-item-item a:hover {
    font-weight: 600;
}

.the-list-item:hover {
    padding: 2rem; /* Increased padding on hover */
}

.the-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--c-white-contrast); /* The background color you want */
    transform: translateY(100%); /* Start below the item */
    transition: transform 0.3s ease, height 0.3s ease; /* Smooth transition for slide in */
    z-index: -1;
    height: 100%; /* Full height */
}

.the-list-item:hover::before {
    transform: translateY(0); /* Slide up to cover the item */
}

    .the-list-item > div {
        flex: 1;
        font-weight: 400;
        font-size: 1.1rem;
    }

.the-list-item > div:nth-child(3) a {
    color: #757575;
}

.the-list-item > div:nth-child(3) a:hover {
    color: var(--c-black);
    font-weight: 600;
}

@media screen and (max-width: 650px) {
    .the-list-item-item:nth-child(3),
    .the-list-item-item:nth-child(4) {
        display: none;
    }
        
}

@media screen and (max-width: 950px) {
    .the-list-item-item:nth-child(3) {
        display: none;
    }
        
}
    

.the-post {
    width: var(--element-width);
    margin: 0 auto 6rem auto;
    position: relative;
}

.the-post-trivia {
    display: flex;
    gap: 6rem;
    margin-top: 4rem;
    background-color: var(--c-white-contrast);
    padding: 3rem;
}

.the-post-trivia > div {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.the-post-trivia > div > p:first-child {
    display: flex;
    font-size: .875rem;
    font-weight: 400;
    color: #828282;
}

.the-post-trivia > div > a {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--c-black);
    text-decoration: none;
}

.breadcrumb {
    margin-bottom: 0rem;
    display: flex;
    align-items: center;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.breadcrumb a {
    color: #757575;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.breadcrumb a:hover {
    color: var(--c-black);
}

.breadcrumb a svg {
    width: 18px;
    height: 18px;
    display: block;
}

.the-post-title {
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
}   

.the-post-author {
    color: #353535;
    font-size: 1.5rem;
    margin-bottom: 0rem;
}

.the-post-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 4rem;
    line-height: 1.5;
    margin-top: 2rem;
}

@media screen and (max-width: 900px) {
    .the-post-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }
}

.the-post-content .analyse {
    width: 80%;
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

.the-post-content .analyse p {
    line-height: 1.65!important;
}

.the-post-content .content {
    width: 20%;
    margin-top: 1rem;
}

.the-post-content .content-list {
    margin-top: 1.5rem;
    position: sticky;
    top: 2rem;
}

.the-post-content .content-list .small-headline {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: .25rem;
    color: var(--c-black);
}

.the-post-content .content-list .content-list-content ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.the-post-content .content-list .content-list-content ul li a {
    font-size: 1rem;
    font-weight: 400;
    color: #757575;
    text-decoration: none;
    border-left: 1.5px solid rgba(17, 17, 26, 0.1);
    padding-left: .75rem;
}

.the-post-content .content-list .content-list-content ul li a:hover {
    font-weight: 500;
}


.current {
    font-weight: 600!important;
    color: var(--c-black)!important;
    border-left: 1.5px solid var(--c-black)!important;
}

.the-post-content strong,
.the-post-content b  {
    display: block;
    font-weight: 500;
    font-size: 2.25rem;
    letter-spacing: -1px;
}

.the-post-content strong:not(:first-child),
.the-post-content b:not(:first-child)  {
    margin-top: 0.5rem;
    margin-bottom: .25rem;
}


.materialer {
    width: var(--element-width);
    margin: 0 auto;
}

.main-materialer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 3rem 0 6rem 0;
}

.main-materialer > div {
    flex: 1;
    background-color: var(--c-white-contrast);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    cursor: pointer;
}


.main-materialer > div span:nth-child(2) {
    font-size: 1.25rem;
    font-weight: 400;
} 

.main-materialer > div span:nth-child(3) {
    display: block;
    margin-top: .5rem;
    font-size: 4rem;    
    font-weight: 500;
}

.main-materialer > div > div:first-child {
    height: 100%;
}

.main-materialer > div > div:last-child {
    margin-left: 2rem;
}


.icon-container {
    margin-bottom: 4rem;
}
   
.content-headline {
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.5rem;
}

.list-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.list-genres a {
    color: var(--c-black);
    text-decoration: none;
    font-weight: 300;
}

.list-genres a:hover {
    font-weight: 500;
}

.list-filters {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media screen and (max-width: 900px) {
    .list-filters {
        width: 100%;
    }
}

.authors-list {display: flex; flex-direction: column; gap: .75rem;}

.authors-list .input-group.hidden {
    display: none;
}

.show-more-authors {
    margin-top: .0rem;
}

.show-more-authors button {
    background: none;
    border: none;
    color: var(--c-black);
    font-size: .875rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-weight: 600;
}

.author-list-form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.show-more-authors button:hover {
    opacity: 0.8;
}

.footer {
    width: var(--element-width);
    margin: 8rem auto 0 auto;
    font-weight: 400;
}

.footer.f-login {
    margin-top: 0rem!important;
}

@media screen and (max-width: 900px) {
    .footer {
        margin-top: 0px;
    }
}

.footer-content {
    padding: 2rem 0;
}

.footer-content .copyright {
    border-top: 1px solid rgba(17, 17, 26, 0.1);
    color: #636262;
    font-size: .875rem;
    padding-top: 2rem;
    margin-top: 4rem;
}

@media screen and (max-width: 900px) {
    .footer-content .copyright {
        margin-top: 2rem;
    }
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination a {
    color: var(--c-black);
    text-decoration: none;
    padding: .75rem 1.25rem;
    border-radius: var(--border-radius);
    background-color: var(--c-white-contrast);
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination a:hover {
    background-color: var(--c-black);
    color: var(--c-white);
}

.page-search {
    width: var(--element-width);
    margin: 1rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-search form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-search input {
    width: 70%;
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    border: none;
    background-color: var(--c-white-contrast);
    font-size: 1rem;
    border: 1px solid #d4d4d4;
}

.page-search button {
    border: none;
    background-color: transparent;
    font-size: 1rem;
    cursor: pointer;
}

.page-search button svg {
    height: 30px;
    width: 30px;
}

.trending {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #757575;
    border-bottom: 1px solid rgba(17, 17, 26, 0.1); 
    padding-bottom: 2rem;
}

@media screen and (max-width: 675px) {
   .trending {
    flex-direction: column;
    align-items: flex-start;
   } 
}


.trending-searches {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trending-searches a {
    color: var(--c-black);
    text-decoration: none;
    background: var(--c-white-contrast);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #d4d4d4;
}

@media screen and (max-width: 500px) {
    .trending-searches {
        gap: 1rem;
    } 
    .trending-searches a {
        width: 39%;
    } 
}


.trending-searches a:hover {
    background: var(--c-white);
}

/* Reset filter button styling */
.reset-filters {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reset-filters:hover {
    color: var(--c-brand);
}

.reset-filters svg {
    width: 20px;
    height: 20px;
}

.filter-overlay-footer .reset-filters {
    display: flex;
    justify-content: center;
}

/* Search Container Styles */
.search-container {
    width: var(--element-width);
    margin: 2rem auto;
}

.search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(17, 17, 26, 0.1);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Geist', sans-serif;
    background-color: var(--c-white);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 2px rgba(45, 48, 217, 0.2);
}

.search-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-black);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: var(--c-brand);
}

.user-page {
    width: var(--element-width);
    margin: 0rem auto 8rem auto;
}

.user-page .section-headline {
    text-align: left;
    margin-bottom: .75rem;
}

/* Table of Contents Styles */
.content-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-nav-item {
    margin: 0.5rem 0;
}

.content-nav-item a {
    color: var(--c-black);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.content-nav-item a:hover {
    color: var(--c-brand);
}

.user-action {
    margin-top: 4rem;
}

.user-action-links {
    display: flex;
    gap: 1rem;
}

@media screen and (max-width: 650px) {
    .user-action-links {
        flex-direction: column;
        gap: .75rem;
    }
}

.user-action-links a {
    color: var(--c-black);
    text-decoration: none;
    font-weight: 400;
}

.user-action-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.user-content {
    margin-top: 2rem;
}

.boxes {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media screen and (max-width: 900px) {
    .boxes {
        flex-direction: column;
        gap: 1rem;
    }
}

.bookmarked {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--c-white-contrast);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.bookmarked-content {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.bookmarked-content a {
    display: flex;
    color: var(--c-black);
    text-decoration: none;
    font-weight: 400;
    margin-right: .5rem;
}

.bookmarked-content a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.saved {
    margin-left: auto;
}

.save-button,
.save-button-photo,
.save-button-video {
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: var(--c-black);
    display: flex;
    align-items: center;
    gap: .5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: none;
}

.the-post .save-button,
.the-post .save-button-photo,
.the-post  .save-button-video {
    position: absolute;
    top: 0rem;
    right: 1rem;
    margin-top: 0;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    background-color: var(--c-brand);
    transition: all 0.2s ease;
    letter-spacing: .5px;
}

.the-post .save-button span,
.the-post .save-button-photo span,
.the-post  .save-button-video span{

}

.bookmarked-content svg {
    width: 20px;
    height: 20px;
}

.save-button:hover,
.save-button-photo:hover,
.save-button-video:hover {
    background: var(--c-black);
    color: var(--c-white);
}

.section-headline-smaller {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: .25rem;
}

.section-headline {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: .5rem;
    text-align: center;
}

@media screen and (max-width: 650px) {
    .section-headline {
        font-size: 1.5rem;
        font-weight: 500;
    }
}


.header .topbar .brand a {
    color: var(--c-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    display: flex;
    margin-top: .5rem;
}

@media screen and (max-width: 900px) {
    .brand-name a {
        display: none!important;
    }
}


.footer-brand {
    gap: .5rem;
}

.footer-brand a {
    color: var(--c-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    display: flex;
}

@media screen and (max-width: 900px) {
    .footer-brand .brand-name a {
        display: flex!important;
    }
}

.footer-brand img {
    width: 1.35rem;
    height: 1.35rem;
}

.footer-brand-link {
    display: flex;
    gap: .5rem;
}

.brand-slogan {
    font-weight: 400;
    font-size: 1rem;
    color: #606060;
    margin-top: .5rem;
}

.link-list {
    display: flex;
    gap: 1rem;
}

.link-list-container{
    display: flex;
    gap: 5rem;
    margin-left: auto;
}

.link-list-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media screen and (max-width: 650px) {
    .link-list-container {
        display: none;
    }
}

.link-list-headline {
    font-weight: 400;
    font-size: .8rem;
    color: #757575;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.link-list-content a {
    color: var(--c-black);
    text-decoration: none;
    font-weight: 400;
    font-size: .9rem;
}

.link-list-content a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header .topbar .brand img {
    width: 2.5rem;
}

.header .topbar {
    text-align: center;
}

.wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("../images/hero.webp");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.wrapper .main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrapper .footer {
    --element-width: 100%;
    text-align: center;
    margin-top: 2rem;
    background: #2A7B9B;
    background: linear-gradient(180deg, rgba(42, 123, 155, 0) 0%, rgba(37, 37, 37, 1) 100%);
}

.wrapper .footer .link-list {
    justify-content: center;
}

.wrapper .footer .brand-slogan,
.wrapper .footer .brand-name a {
    color: var(--c-white);
}

.wrapper .footer .copyright {
    color: var(--c-white);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.pagination-info {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.login-box {
    width: 27.5rem;
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    background-color: var(--c-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.login-box .topbar .brand {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.login-box .topbar img {
    width: 24px!important;
    height: 24px;
}

.login-box .topbar a {
    display: flex;
    align-items: center;
    font-size: 1.25rem!important;
    margin-top: 0!important;
}


.login-box .headline {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    margin-top: .5rem;
}

.input-group,
.login-box .form input {
    --element-width: 100%;
    width: var(--element-width);
}

.login-box .form input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #d4d4d4;
    background-color: var(--c-white-contrast);
}

.login-box .form {
    --element-width: 100%;
    width: var(--element-width);
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 800px) {
    .login-box .form {
        width: 100%;
    }
}

.login-box .form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}

.login-box .form form button{
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--c-black);
    background-color: var(--c-black);
    cursor: pointer;
    color: var(--c-white);
    font-weight: 600;
    transition: all 0.2s ease;
}

.login-box .forgot {
    margin-top: 1rem;
}

.login-box .forgot a {
    color: var(--c-black);
    text-decoration: none;
    font-weight: 500;
}   

.login-box .forgot a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--c-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--c-black);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background-color: var(--c-white-contrast);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: inherit;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--c-black);
    color: var(--c-white);
    border: 1px solid var(--c-black);
}

.btn-secondary {
    background-color: var(--c-white);
    color: var(--c-black);
    border: 1px solid #d4d4d4;
}

.modal-trigger {
    background: none;
    border: none;
    color: var(--c-black);
    font-family: inherit;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
}

.modal-trigger:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
