/* YOURTOURKEY BLOG / ARCHIVE / SINGLE POST SYSTEM */

.ytk-blog-archive-page,
.ytk-blog-article-page,
.ytk-error-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #071f2d;
    font-family: 'Poppins', sans-serif;
}

/* ARCHIVE HERO */

.ytk-blog-archive-hero {
    position: relative;
    width: 100%;
    padding: 110px 0 92px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(2,79,77,0.20), transparent 34%),
        linear-gradient(135deg, #071018 0%, #071f2d 100%);
    color: #ffffff;
}

.ytk-blog-archive-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(8,122,116,0.16);
}

.ytk-blog-archive-hero-inner {
    position: relative;
    z-index: 2;
    width: calc(100% - 80px);
    max-width: 1600px;
    margin: 0 auto;
}

.ytk-blog-archive-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.76);
}

.ytk-blog-archive-kicker span {
    color: #00af87;
    font-size: 22px;
    line-height: 0;
}

.ytk-blog-archive-hero h1 {
    max-width: 1120px;
    margin: 0 0 24px;
    font-size: clamp(48px, 5.6vw, 96px);
    line-height: 0.98;
    letter-spacing: -4px;
    font-weight: 900;
}

.ytk-blog-archive-hero h1 span {
    color: #00af87;
}

.ytk-blog-archive-hero p {
    max-width: 780px;
    margin: 0;
    font-size: 20px;
    line-height: 1.65;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
}

.ytk-blog-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.ytk-blog-archive-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.86);
    font-size: 13px;
    font-weight: 800;
}

/* ARCHIVE CONTENT */

.ytk-blog-archive-content {
    width: 100%;
    padding: 90px 0 120px;
    background: #ffffff;
}

.ytk-blog-archive-content-inner {
    width: calc(100% - 80px);
    max-width: 1600px;
    margin: 0 auto;
}

.ytk-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* BLOG CARD */

.ytk-blog-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 34px;
    background: #ffffff;
    border: 1px solid rgba(7,31,45,0.10);
    box-shadow: 0 24px 70px rgba(7,31,45,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ytk-blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(2,79,77,0.26);
    box-shadow: 0 34px 90px rgba(7,31,45,0.13);
}

.ytk-blog-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    overflow: hidden;
    background: #e5e7eb;
}

.ytk-blog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: none;
}

.ytk-blog-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(2,79,77,0.18), transparent 38%),
        linear-gradient(135deg, #071018 0%, #071f2d 100%);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ytk-blog-card:hover .ytk-blog-card-image img {
    transform: none;
}

.ytk-blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 28px 26px;
}

.ytk-blog-card-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(2,79,77,0.09);
    color: #024f4d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.ytk-blog-card h2 {
    margin: 0 0 14px;
    font-size: 27px;
    line-height: 1.12;
    letter-spacing: -1.1px;
    font-weight: 900;
}

.ytk-blog-card h2 a {
    color: #071f2d;
    text-decoration: none;
}

.ytk-blog-card h2 a:hover {
    color: #024f4d;
}

.ytk-blog-card p {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
    color: rgba(7,31,45,0.68);
}

.ytk-blog-card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(7,31,45,0.09);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.ytk-blog-card-footer span {
    font-size: 13px;
    font-weight: 800;
    color: rgba(7,31,45,0.52);
}

.ytk-blog-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #024f4d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

/* PAGINATION */

.ytk-blog-pagination {
    margin-top: 58px;
}

.ytk-blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ytk-blog-pagination a,
.ytk-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(7,31,45,0.12);
    background: #ffffff;
    color: #071f2d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

.ytk-blog-pagination .current,
.ytk-blog-pagination a:hover {
    background: #024f4d;
    border-color: #024f4d;
    color: #ffffff;
}

/* EMPTY / SEARCH */

.ytk-blog-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 34px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid rgba(7,31,45,0.08);
}

.ytk-blog-empty h2 {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 900;
}

.ytk-blog-empty h2 span {
    color: #024f4d;
}

.ytk-blog-empty p {
    margin: 0 0 24px;
    color: rgba(7,31,45,0.66);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

.ytk-blog-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: #024f4d;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.ytk-blog-search-form {
    display: flex;
    gap: 12px;
    max-width: 680px;
    margin-top: 34px;
}

.ytk-blog-search-form input {
    width: 100%;
    height: 58px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 700;
    outline: none;
}

.ytk-blog-search-form input::placeholder {
    color: rgba(255,255,255,0.58);
}

.ytk-blog-search-form button {
    height: 58px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: #024f4d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

/* SINGLE ARTICLE TEMPLATE */

.ytk-blog-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10000;
    background: transparent;
}

.ytk-blog-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: #024f4d;
}

.ytk-blog-hero {
    width: 100%;
    background: #ffffff;
    color: #071f2d;
    overflow: hidden;
}

.ytk-blog-hero-inner {
    width: calc(100% - 80px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 92px 0 76px;
}

.ytk-blog-hero-copy {
    max-width: 1500px;
}

.ytk-blog-kicker {
    display: inline-flex;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #024f4d;
}

.ytk-blog-hero h1 {
    max-width: 1460px;
    margin: 0 0 30px;
    font-size: clamp(58px, 6.4vw, 108px);
    line-height: 0.98;
    letter-spacing: -5.8px;
    font-weight: 900;
    color: #071f2d;
}

.ytk-blog-hero h1 span {
    color: #024f4d;
}

.ytk-blog-hero p {
    max-width: 920px;
    margin: 0;
    font-size: clamp(18px, 1.35vw, 23px);
    line-height: 1.62;
    font-weight: 500;
    color: rgba(7,31,45,0.68);
}

.ytk-blog-author {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ytk-blog-author-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 999px;
    background: #071018;
}

.ytk-blog-author-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ytk-blog-author strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
    color: #071f2d;
}

.ytk-blog-author span {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: rgba(7,31,45,0.52);
}

.ytk-blog-meta {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ytk-blog-meta a {
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(2,79,77,0.07);
    border: 1px solid rgba(2,79,77,0.18);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #024f4d;
    text-decoration: none;
}

.ytk-blog-hero-image {
    width: 100%;
    margin-top: 58px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 34px 110px rgba(7,31,45,0.16);
    background: #e5e7eb;
    aspect-ratio: 2.45 / 1;
}

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

.ytk-blog-hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(2,79,77,0.15), transparent 40%),
        linear-gradient(135deg, #071018 0%, #071f2d 100%);
}

.ytk-blog-hero-placeholder span {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* ARTICLE LAYOUT */

.ytk-blog-layout {
    width: calc(100% - 80px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 90px 0 120px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}

.ytk-blog-layout-no-sidebar {
    grid-template-columns: minmax(0, 1120px);
    justify-content: center;
}

.ytk-blog-layout-no-sidebar .ytk-blog-sidebar {
    display: none;
}

.ytk-blog-sidebar {
    position: sticky;
    top: 130px;
}

.ytk-blog-sidebar-inner {
    padding: 28px;
    border-radius: 24px;
    background: #071018;
    color: #ffffff;
    box-shadow: 0 22px 70px rgba(7,31,45,0.14);
}

.ytk-blog-sidebar h3 {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #00af87;
}

.ytk-blog-toc a {
    display: flex;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ytk-blog-toc a:last-child {
    border-bottom: 0;
}

.ytk-blog-toc a:hover,
.ytk-blog-toc a.is-active {
    color: #ffffff;
    transform: translateX(4px);
}

/* ARTICLE TYPOGRAPHY */

.ytk-blog-content {
    max-width: 1120px;
}

.ytk-blog-content > *:first-child {
    margin-top: 0;
}

.ytk-blog-content h2 {
    max-width: 980px;
    margin: 0 0 24px;
    font-size: clamp(38px, 4vw, 68px);
    line-height: 0.98;
    letter-spacing: -3.3px;
    font-weight: 900;
    color: #071f2d;
    scroll-margin-top: 130px;
}

.ytk-blog-content h3 {
    margin: 38px 0 16px;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-weight: 900;
    color: #071f2d;
}

.ytk-blog-content p {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.82;
    font-weight: 500;
    color: rgba(7,31,45,0.68);
}

.ytk-blog-content ul,
.ytk-blog-content ol {
    margin: 0 0 28px 24px;
    padding: 0;
    font-size: 18px;
    line-height: 1.75;
    font-weight: 500;
    color: rgba(7,31,45,0.68);
}

.ytk-blog-content li {
    margin-bottom: 10px;
}

.ytk-blog-content a {
    color: #024f4d;
    font-weight: 800;
}

.ytk-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 22px;
}

/* TEMPLATE CTA */

.ytk-blog-cta {
    margin-top: 70px;
    padding: 46px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.18), transparent 36%),
        linear-gradient(135deg, #024f4d 0%, #066761 62%, #087a74 100%);
    color: #ffffff;
    box-shadow: 0 30px 90px rgba(7,31,45,0.16);
}

.ytk-blog-cta > div > span {
    display: inline-flex;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.74);
}

.ytk-blog-cta h2 {
    max-width: 720px;
    margin: 0 0 16px;
    font-size: clamp(38px, 4vw, 64px);
    line-height: 1;
    letter-spacing: -2.2px;
    font-weight: 900;
    color: #ffffff;
}

.ytk-blog-cta p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,0.86);
}

.ytk-blog-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 auto;
}

.ytk-blog-cta a {
    min-width: 210px;
    min-height: 58px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #071f2d;
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ytk-blog-cta a:hover {
    color: #071f2d;
    background: rgba(255,255,255,0.92);
    transform: translateY(-3px);
}

.ytk-blog-cta a:nth-child(2) {
    background: rgba(7,16,24,0.42);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.22);
}

.ytk-blog-cta a:nth-child(2):hover {
    background: #071018;
    color: #ffffff;
}

.ytk-blog-cta a span {
    margin: 0;
    font-size: 22px;
    color: currentColor;
}

/* 404 */

.ytk-error-hero {
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding: 120px 40px;
    background:
        radial-gradient(circle at 14% 16%, rgba(2,79,77,0.20), transparent 34%),
        linear-gradient(135deg, #071018 0%, #071f2d 100%);
    color: #ffffff;
}

.ytk-error-hero-inner {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.ytk-error-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.76);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.ytk-error-kicker span {
    color: #00af87;
    font-size: 22px;
}

.ytk-error-hero h1 {
    margin: 0 0 24px;
    font-size: clamp(52px, 6vw, 104px);
    line-height: 0.98;
    letter-spacing: -4px;
    font-weight: 900;
}

.ytk-error-hero h1 span {
    color: #00af87;
}

.ytk-error-hero p {
    max-width: 720px;
    margin: 0 auto 34px;
    font-size: 19px;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
}

.ytk-error-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ytk-error-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    background: #024f4d;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
}

.ytk-error-buttons a:nth-child(2) {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .ytk-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ytk-blog-layout {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 70px;
        padding-bottom: 100px;
    }

    .ytk-blog-sidebar {
        position: relative;
        top: auto;
    }

    .ytk-blog-sidebar-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 18px;
    }

    .ytk-blog-sidebar h3 {
        grid-column: 1 / -1;
    }

    .ytk-blog-content {
        max-width: 100%;
    }

    .ytk-blog-archive-hero h1,
    .ytk-error-hero h1 {
        letter-spacing: -3px;
    }
}

@media (max-width: 820px) {
    .ytk-blog-archive-hero-inner,
    .ytk-blog-archive-content-inner,
    .ytk-blog-hero-inner,
    .ytk-blog-layout {
        width: calc(100% - 36px);
    }
}

@media (max-width: 760px) {
    .ytk-blog-archive-hero {
        padding-top: 76px;
        padding-bottom: 62px;
    }

    .ytk-blog-archive-hero h1,
    .ytk-error-hero h1 {
        font-size: 48px;
        letter-spacing: -2.4px;
    }

    .ytk-blog-archive-hero p,
    .ytk-error-hero p {
        font-size: 16px;
    }

    .ytk-blog-archive-content {
        padding-top: 46px;
        padding-bottom: 80px;
    }

    .ytk-blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ytk-blog-card {
        border-radius: 26px;
        box-shadow: none;
    }

    .ytk-blog-card:hover {
        transform: none;
        box-shadow: none;
    }

    .ytk-blog-card-body {
        padding: 24px 22px 22px;
    }

    .ytk-blog-card h2 {
        font-size: 24px;
    }

    .ytk-blog-card-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .ytk-blog-search-form {
        flex-direction: column;
    }

    .ytk-blog-search-form button {
        width: 100%;
    }

    .ytk-blog-hero-inner {
        padding-top: 64px;
        padding-bottom: 56px;
    }

    .ytk-blog-hero h1 {
        font-size: 48px;
        line-height: 1;
        letter-spacing: -3px;
    }

    .ytk-blog-hero p {
        font-size: 17px;
    }

    .ytk-blog-author {
        align-items: flex-start;
    }

    .ytk-blog-author-avatar {
        width: 46px;
        height: 46px;
    }

    .ytk-blog-hero-image {
        margin-top: 38px;
        border-radius: 24px;
        aspect-ratio: 1.45 / 1;
        box-shadow: none;
    }

    .ytk-blog-hero-placeholder {
        min-height: 240px;
    }

    .ytk-blog-layout {
        padding-top: 56px;
        padding-bottom: 80px;
    }

    .ytk-blog-sidebar-inner {
        display: block;
        padding: 24px;
    }

    .ytk-blog-content h2 {
        font-size: 38px;
        letter-spacing: -2px;
    }

    .ytk-blog-content h3 {
        font-size: 28px;
    }

    .ytk-blog-content p,
    .ytk-blog-content ul,
    .ytk-blog-content ol {
        font-size: 16px;
    }

    .ytk-blog-cta {
        padding: 34px 24px;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 26px;
    }

    .ytk-blog-cta-actions {
        width: 100%;
    }

    .ytk-blog-cta a {
        width: 100%;
    }

    .ytk-error-hero {
        padding: 90px 20px;
    }

    .ytk-error-buttons a {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ytk-blog-archive-hero-inner,
    .ytk-blog-archive-content-inner,
    .ytk-blog-hero-inner,
    .ytk-blog-layout {
        width: calc(100% - 28px);
    }
}