:root {
    --color-primary: #2c7be5;
    --color-primary-hover: #1a5fd1;
    --color-text: #420039;
    --color-link: #ff661f;
    --color-btn-text: #fff;
    --color-bg: #f3f3f3;
    --color-title: #ff661f;
}

/* general */

body {
    font-family: "Stack Sans Text", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Stack Sans Notch", sans-serif;
    color: var(--color-title);
}

a,
a:hover,
a:focus,
a:visited {
    color: var(--color-link);
}

.btn,
.btn:hover,
.btn:focus,
.btn:visited {
    color: var(--color-btn-text);
}

.button {
    background-color: var(--color-primary);
    transition: 0.3s;
}

.button:hover {
    background-color: var(--color-primary-hover);
}

/* header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffd5c2;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 24px;
    line-height: 1;
}

.site-title a {
    text-decoration: none;
    color: #222;
}

.site-description {
    margin: 6px 0 0;
    font-size: 14px;
    color: #777;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.main-navigation a:hover {
    opacity: 0.7;
}

header .current-menu-item {
    color: red;
}

/* home hero slider */

.home-hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #111;
    cursor: grab;
}

.home-hero-slider:active {
    cursor: grabbing;
}

.home-hero-slider .swiper-wrapper {
    height: 100%;
}

.home-hero-slider__slide {
    position: relative;
    height: 600px;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.home-hero-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.48) 48%,
        rgba(0, 0, 0, 0.22) 100%
    );
}

.home-hero-slider__content {
    position: relative;
    z-index: 2;
    color: #fff;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-slider__content.container {
    max-width: 1140px;
}

.home-hero-slider__title {
    max-width: 780px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.05;
    font-weight: 700;
}

.home-hero-slider__text {
    max-width: 620px;
    margin-bottom: 32px;
    color: #fff;
    font-size: 20px;
    line-height: 1.6;
}

.home-hero-slider__text p:last-child {
    margin-bottom: 0;
}

.home-hero-slider__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 8px;
    background: var(--color-link);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.home-hero-slider__button:hover {
    background: #e95512;
    color: #fff !important;
    transform: translateY(-2px);
}

.home-hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition: 0.25s ease;
    backdrop-filter: blur(8px);
}

.home-hero-slider__arrow:hover {
    background: var(--color-link);
    border-color: var(--color-link);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.home-hero-slider__arrow svg {
    width: 28px;
    height: 28px;
    display: block;
}

.home-hero-slider__arrow svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-hero-slider__arrow--prev {
    left: 32px;
}

.home-hero-slider__arrow--next {
    right: 32px;
}

.home-hero-slider__pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px !important;
    z-index: 9;
}

.home-hero-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.55;
}

.home-hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* content blocks */

.home-content-block__image img {
    display: block;
    width: 100%;
    height: auto;
}

.home-content-block__text p:last-child {
    margin-bottom: 0;
}

/* footer */

footer {
    background: #e3e3e3;
    padding: 50px;
    margin-top: 50px;
    text-align: center;
}

/* single post styles */

.fancy-post-nav {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.fancy-post-nav .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.fancy-post-nav .nav-previous,
.fancy-post-nav .nav-next {
    width: 320px;
}

.fancy-post-nav .nav-next {
    margin-left: auto;
}

.fancy-post-nav a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-nav-card {
    display: block;
    padding: 20px;
    background: #ff8f5c;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-nav-card__label {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-nav-card__title {
    display: block;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: #222;
}

.fancy-post-nav a:hover .post-nav-card {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.fancy-post-nav a:hover .post-nav-card__title {
    text-decoration: underline;
}

/* related posts */

.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-posts__title {
    margin-bottom: 25px;
    font-size: 24px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-post {
    height: 100%;
}

.related-post__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post__image {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: #f2f2f2;
}

.related-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post__title {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* no image */

.noimage-thumb {
    width: 100%;
    height: 100%;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f4f8f, #4c7fd9);
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.noimage-thumb span {
    display: block;
}

/* breadcrumbs */

.breadcrumbs {
    margin: 30px 0;
    font-size: 14px;
    color: #777;
}

.breadcrumbs a {
    color: #ff5a1f;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs__separator {
    margin: 0 8px;
    color: #aaa;
}

.breadcrumbs__current {
    color: #333;
}

/* category archive */

.category-hero {
    padding: 70px 0 45px;
    background: #f5f6f8;
}

.category-hero__label {
    margin: 0 0 10px;
    color: #ff5a1f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.category-hero__title {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
}

.category-hero__description {
    margin-top: 16px;
    max-width: 720px;
    color: #666;
    font-size: 17px;
    line-height: 1.6;
}

.category-posts {
    padding: 55px 0 80px;
}

.category-card {
    height: 100%;
}

.category-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card__link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.category-card__image {
    width: 100%;
    height: 210px;
    background: #f0f0f0;
    overflow: hidden;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.category-card__link:hover .category-card__image img {
    transform: scale(1.04);
}

.category-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.category-card__date {
    margin-bottom: 10px;
    color: #777;
    font-size: 14px;
}

.category-card__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.category-card__excerpt {
    margin: 0 0 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.category-card__more {
    margin-top: auto;
    color: #ff5a1f;
    font-weight: 700;
}

.category-pagination {
    margin-top: 45px;
}

.category-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: #f2f2f2;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.category-pagination .page-numbers.current,
.category-pagination .page-numbers:hover {
    background: #ff5a1f;
    color: #fff;
}

/* reading progress */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #ff5a1f;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* responsive */

@media (max-width: 991.98px) {
    .home-hero-slider,
    .home-hero-slider__slide,
    .home-hero-slider__content {
        height: 540px;
        min-height: 540px;
    }

    .home-hero-slider__title {
        font-size: clamp(36px, 8vw, 58px);
    }

    .home-hero-slider__text {
        font-size: 18px;
    }

    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .home-hero-slider,
    .home-hero-slider__slide,
    .home-hero-slider__content {
        height: 520px;
        min-height: 520px;
    }

    .home-hero-slider__slide {
        background-position: center;
    }

    .home-hero-slider__overlay {
        background: rgba(0, 0, 0, 0.58);
    }

    .home-hero-slider__content {
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .home-hero-slider__title {
        max-width: 100%;
        margin-bottom: 14px;
        font-size: 34px;
        line-height: 1.05;
    }

    .home-hero-slider__text {
        max-width: 100%;
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.45;
    }

    .home-hero-slider__button {
        min-height: 44px;
        padding: 11px 18px;
        font-size: 15px;
    }

    .home-hero-slider__arrow {
        display: none;
    }

    .home-hero-slider__pagination {
        bottom: 28px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .home-hero-slider .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
    }

    .fancy-post-nav .nav-links {
        flex-direction: column;
    }

    .fancy-post-nav .nav-previous,
    .fancy-post-nav .nav-next {
        width: 100%;
    }

    .fancy-post-nav .nav-next {
        margin-left: 0;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .category-hero {
        padding: 50px 0 35px;
    }

    .category-hero__title {
        font-size: 32px;
    }

    .category-posts {
        padding: 40px 0 60px;
    }

    .category-card__image {
        height: 190px;
    }

    .noimage-thumb {
        min-height: 190px;
    }
}

/* mobile menu */

.menu-toggle {
    display: none;
}

@media (max-width: 767.98px) {

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .site-header__inner {
        min-height: 72px;
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .site-branding {
        flex-shrink: 0;
    }

    .site-title {
        font-size: 24px;
    }

    .main-navigation {
        margin-left: auto;
        display: flex;
        justify-content: flex-end;
        flex: 1;
    }

    .main-navigation .menu-toggle {
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 50%;
        background: #fff;
        color: #222;
        font-size: 0;
        cursor: pointer;
    }

    .menu-toggle::before {
        content: "";
        width: 20px;
        height: 2px;
        background: #222;
        box-shadow: 0 6px 0 #222, 0 -6px 0 #222;
        display: block;
        border-radius: 999px;
    }

    .main-navigation ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
        background: #fff;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }

    .main-navigation.toggled ul,
    .main-navigation.is-open ul {
        display: flex;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation li + li {
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .main-navigation a {
        display: block;
        width: 100%;
        padding: 18px 22px;
        color: #222;
        font-weight: 700;
        text-decoration: none;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        background: #f7e1d7;
        color: #222;
    }
}

/* HOME POSTS SLIDER */

.home-posts-slider-section {
    position: relative;
}

.home-posts-slider-section__top {
    gap: 20px;
}

.home-posts-slider__nav {
    display: flex;
    gap: 12px;
}

.home-posts-slider__arrow {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-link);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.home-posts-slider__arrow:hover {
    background: #e95512;
    transform: translateY(-2px);
}

.home-posts-slider__arrow svg {
    width: 22px;
    height: 22px;
    display: block;
}

.home-posts-slider__arrow svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-posts-slider {
    padding-bottom: 48px;
}

.home-posts-slider .swiper-wrapper {
    align-items: stretch;
}

.home-posts-slider .swiper-slide {
    height: auto;
    display: flex;
}

.home-post-card {
    width: 100%;
    height: 100%;
    min-height: 530px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.home-post-card__image {
    display: block;
    flex: 0 0 240px;
    height: 240px;
    background: #eee;
    overflow: hidden;
}

.home-post-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-post-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.home-post-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-post-card__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.home-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.home-post-card__excerpt {
    margin-bottom: 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.home-post-card__excerpt p {
    margin-bottom: 0;
}

.home-post-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--color-link);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.home-post-card__button:hover {
    background: #e95512;
    color: #fff !important;
    transform: translateY(-2px);
}

.home-posts-slider__pagination {
    bottom: 0 !important;
}

.home-posts-slider .swiper-pagination-bullet {
    background: var(--color-link);
    opacity: 0.35;
}

.home-posts-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .home-posts-slider-section__top {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .home-posts-slider__nav {
        display: none;
    }

    .home-post-card {
        min-height: 520px;
    }

    .home-post-card__image {
        flex-basis: 260px;
        height: 260px;
    }
}
.home-posts-slider {
    position: relative;
    padding-bottom: 0;
}

.home-posts-slider__pagination {
    position: static !important;
    margin-top: 28px;
    text-align: center;
}

.home-posts-slider .swiper-pagination-bullet {
    background: var(--color-link);
    opacity: 0.35;
}

.home-posts-slider .swiper-pagination-bullet-active {
    opacity: 1;
}