:root {
    --main-color: #2E4765;
    --secondary-color: #F2F2F2;
    --accent-color: #a5a5a5;
    --standout-color: #af2350;
    --text-color: #333333;
    --bg-color: #fbfbfb;
}

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

html,
body {
    font-family: 'DM Sans', 'Open Sans', sans-serif;
}

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

ul,
li,
ol {
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--bg-color);
    border: 1px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--main-color);
    color: var(--bg-color);
    /* transform: translateY(-2px); */
}

.h-spacing {
    margin-top: 20px;
    margin-bottom: 48px;
    color: var(--main-color);
}

.landing h1 {
    font-size: 3em;
    font-weight: 700;
    line-height: 1.5;
    color: var(--main-color);
}

@media screen and (max-width: 460px) {
    .landing h1 {
        margin-bottom: .5em;
        font-size: 2.2em;
        line-height: 1.2;
    }
}

#content {
    padding-top: 60px;
}

#navbar {
    position: fixed;
    right: 0;
    left: 0;
    display: flex;
    /* justify-content: ; */
    align-items: center;
    column-gap: 10px;
    z-index: 1030;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--accent-color);
}

.navbar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo {
    display: flex;
    align-items: center;
    height: 40px;
    margin: 2px 20px 0 0 !important;
    padding: 0 10px;
}

#logo .logo-img {
    display: flex;
    width: 135px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    padding: 10px 20px;
}

.nav-cta {
    background-color: var(--standout-color);
    color: #fff;
    border-color: var(--standout-color);
    padding: 8px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-cta:hover {
    background-color: transparent;
    color: var(--standout-color);
}

/* Burger Menu Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1031;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--main-color);
    position: absolute;
    transition: transform 0.15s ease;
    border-radius: 4px;
}

.hamburger-inner {
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner::before {
    content: "";
    top: -8px;
    left: 0;
}

.hamburger-inner::after {
    content: "";
    bottom: -8px;
    left: 0;
}

/* Animations for Hamburger */
/* .hamburger-menu.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger-menu.is-active .hamburger-inner::before {
    transform: rotate(-90deg);
    top: 0;
} */

/* .hamburger-menu.is-active .hamburger-inner::after {
    opacity: 0;
    bottom: 0;
} */

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

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        border-bottom: 1px solid var(--accent-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        /* Hidden by default */
        transition: clip-path 0.3s ease-in-out;
    }

    .nav-menu.is-open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .nav-item a {
        display: block;
        font-size: 1.1rem;
    }
}

.container-max {
    width: 100%;
    max-width: 1360px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container-small {
    width: 100%;
    max-width: 960px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

#latest {
    display: grid;
    gap: 32px;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 48px;
    /* padding-inline: 32px; */
}

#latest .thumbnail {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    position: relative;
}

#latest .thumbnail .latest-date {
    position: absolute;
    top: 10px;
    left: 10px;
    width: fit-content;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 700;
    border-radius: 30px;
    padding: 4px 10px;
    background-color: var(--bg-color);
    border: 1px solid var(--accent-color);
}

#latest .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

#latest .content {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 768px) {
    #latest {
        grid-template-columns: 1fr;
    }

    #latest .thumbnail {
        grid-column: 1;
        grid-row: 1;
    }

    #latest .content {
        grid-column: 1;
        grid-row: 2;
    }
}

.latest-title {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--main-color);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.post-card .post-content {
    padding: 12px;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.post-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid var(--secondary-color);
}

.post-content h1 {
    line-height: 1.3;
    margin-bottom: 48px;
}

.post-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.3;
}

.post-title h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25em;
    line-height: 1.3;
}

.post-date {
    font-size: 0.9rem;
    color: #333333;
    margin-top: auto;
}

#footer {
    padding: 20px;
    margin-top: 48px;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
}

@media screen and (max-width: 800px) {
    .post-title {
        font-weight: 600;
        line-height: 1.35;
    }
}

/* Single Post Minimal Design */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-title-big {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    color: var(--main-color);
}

.post-date-tiny {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2rem;
}

.post-featured-media {
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-featured-media img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--text-color);
}

#all .post-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25em;
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 30px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.post-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.5rem 0;
}

.post-video {
    display: grid;
    grid-template-rows: auto;
    gap: 32px;
    align-items: center;
    margin: 1.5rem 0;
}

.video-item {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border-radius: 8px;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.video-item:hover img {
    opacity: 1;
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.play-button:hover {
    background: #fff;
    color: var(--color-main);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item.playing .play-button {
    display: none;
}

@media screen and (max-width: 800px) {
    .post-content {
        padding: 0;
    }

    .post-title-big {
        font-size: 2em;
        line-height: 40px;
        text-align: left;
    }

    .post-content h1,
    .post-content h2 {
        font-size: 1.71em;
        line-height: 1.25;
    }

    .post-content p {
        font-size: .91em;
        line-height: 1.5;
    }
}

.back-to-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--main-color);
    color: #fff;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top:hover span {
    transform: translateY(-5px);
}

.back-to-top span {
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
}

/*
#latest .thumbnail {
    flex-grow: 1;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

#latest .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#latest .content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#latest .date {
    font-size: 14px;
    color: var(--accent-color);
}

#latest .latest-title {
    font-size: 20px;
    font-weight: bold;
}

#latest .latest-teaser {
    font-size: 16px;
    color: var(--text-color);
} */