
/* =========================================
   RYTEHAND SINGLE BLOG PAGE
========================================= */

.rh-blog-detail-page {
    --article-primary: #2476a5;
    --article-primary-dark: #174c70;
    --article-heading: #173b56;
    --article-text: #607487;
    --article-light: #edf7fc;
    --article-border: #e2edf4;

    overflow: hidden;
    background: #ffffff;
    color: var(--article-heading);
}

.rh-article-container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}


/* =========================================
   ARTICLE HERO
========================================= */

.rh-article-hero {
    position: relative;
    overflow: hidden;
    padding: 45px 0 65px;
    background:
        radial-gradient(circle at 85% 20%, rgba(91,196,230,.16), transparent 32%),
        linear-gradient(120deg, #f1f9fd 0%, #ffffff 60%, #eaf6fc 100%);
}

.rh-article-hero::after {
    position: absolute;
    right: -130px;
    bottom: -260px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(36,118,165,.09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.rh-article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 52px;
    color: #91a1ae;
    font-size: 12px;
    line-height: 1.6;
}

.rh-article-breadcrumb a {
    color: var(--article-primary);
    text-decoration: none;
    transition: color .25s ease;
}

.rh-article-breadcrumb a:hover {
    color: var(--article-primary-dark);
}

.rh-breadcrumb-current {
    max-width: 350px;
    overflow: hidden;
    color: var(--article-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rh-article-heading {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.rh-article-category-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 23px;
}

.rh-article-category {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border: 1px solid #d5eaf5;
    border-radius: 50px;
    background: #eaf6fc;
    color: var(--article-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-decoration: none;
}

.rh-article-reading-time {
    color: #8295a5;
    font-size: 12px;
    font-weight: 600;
}

.rh-article-title {
    max-width: 850px;
    margin: 0 auto 22px;
    color: var(--article-heading);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -2px;
    overflow-wrap: anywhere;
}

.rh-article-excerpt {
    max-width: 720px;
    margin: 0 auto 27px;
    color: var(--article-text);
    font-size: 17px;
    line-height: 1.85;
}

.rh-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    color: #718596;
    font-size: 13px;
}

.rh-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rh-article-meta-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: var(--article-primary);
}

.rh-article-meta-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* =========================================
   FEATURED IMAGE
========================================= */

.rh-article-featured-section {
    position: relative;
    z-index: 2;
    padding: 0 0 65px;
    background: #ffffff;
}

.rh-article-featured-image {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 8;
    border: 1px solid var(--article-border);
    border-radius: 22px;
    background: var(--article-light);
    box-shadow: 0 20px 55px rgba(26,67,94,.09);
}

.rh-article-featured-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================
   ARTICLE LAYOUT
========================================= */

.rh-article-body-section {
    padding: 15px 0 100px;
    background: #ffffff;
}

.rh-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: start;
    gap: 65px;
}

.rh-article-main {
    min-width: 0;
}

.rh-article-content {
    color: #536b7d;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.rh-article-content > *:first-child {
    margin-top: 0;
}

.rh-article-content p {
    margin: 0 0 23px;
    color: #536b7d;
    font-size: 16px;
    line-height: 1.9;
}

.rh-article-content h2,
.rh-article-content h3,
.rh-article-content h4 {
    margin: 42px 0 17px;
    color: var(--article-heading);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.5px;
}

.rh-article-content h2 {
    font-size: clamp(25px, 3vw, 32px);
}

.rh-article-content h3 {
    font-size: 23px;
}

.rh-article-content h4 {
    font-size: 19px;
}

.rh-article-content ul,
.rh-article-content ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.rh-article-content li {
    margin-bottom: 10px;
    padding-left: 5px;
    line-height: 1.8;
}

.rh-article-content li::marker {
    color: var(--article-primary);
}

.rh-article-content a {
    color: var(--article-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rh-article-content a:hover {
    color: var(--article-primary-dark);
}

.rh-article-content blockquote {
    margin: 32px 0;
    padding: 25px 30px;
    border-left: 4px solid var(--article-primary);
    border-radius: 0 14px 14px 0;
    background: #f1f8fc;
    color: var(--article-heading);
    font-size: 18px;
    font-weight: 600;
}

.rh-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.rh-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 14px;
}

.rh-article-content figure {
    max-width: 100%;
    margin: 30px 0;
}

.rh-article-content figcaption {
    margin-top: 10px;
    color: #8799a8;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.rh-article-content iframe,
.rh-article-content video {
    max-width: 100%;
}

.rh-article-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.rh-article-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.rh-article-content th,
.rh-article-content td {
    padding: 13px;
    border: 1px solid var(--article-border);
    text-align: left;
}

.rh-article-content th {
    background: #f1f8fc;
    color: var(--article-heading);
    font-weight: 700;
}

.rh-article-content pre {
    overflow-x: auto;
    max-width: 100%;
    padding: 20px;
    border-radius: 12px;
    background: #f2f7fa;
    font-size: 13px;
    line-height: 1.7;
}

.rh-article-content code {
    overflow-wrap: anywhere;
}

.rh-article-content .aligncenter {
    margin-right: auto;
    margin-left: auto;
}

.rh-article-content .alignleft {
    float: left;
    margin: 8px 24px 18px 0;
}

.rh-article-content .alignright {
    float: right;
    margin: 8px 0 18px 24px;
}

.rh-article-content::after {
    display: block;
    clear: both;
    content: "";
}

.rh-article-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rh-article-content .wp-block-button__link {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 9px;
    background: var(--article-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================
   ARTICLE TAGS
========================================= */

.rh-article-tags {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid var(--article-border);
    border-bottom: 1px solid var(--article-border);
}

.rh-article-tags-label {
    padding-top: 7px;
    color: var(--article-heading);
    font-size: 12px;
    font-weight: 800;
}

.rh-article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.rh-article-tags-list a {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid var(--article-border);
    border-radius: 50px;
    background: #ffffff;
    color: var(--article-text);
    font-size: 11px;
    text-decoration: none;
    transition: .25s ease;
}

.rh-article-tags-list a:hover {
    border-color: var(--article-primary);
    background: var(--article-light);
    color: var(--article-primary);
}


/* =========================================
   BACK TO BLOG
========================================= */

.rh-article-back {
    margin-top: 28px;
}

.rh-article-back a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--article-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: gap .25s ease;
}

.rh-article-back a:hover {
    gap: 15px;
}


/* =========================================
   PREVIOUS / NEXT POSTS
========================================= */

.rh-article-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 45px;
}

.rh-article-post-nav-item {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--article-border);
    border-radius: 14px;
    background: #f8fbfd;
}

.rh-article-post-nav-item > span {
    display: block;
    margin-bottom: 12px;
    color: #8a9aa8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.rh-article-post-nav-item a {
    display: block;
    color: var(--article-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .25s ease;
}

.rh-article-post-nav-item a:hover {
    color: var(--article-primary);
}

.rh-article-next {
    text-align: right;
}


/* =========================================
   SIDEBAR
========================================= */

.rh-article-sidebar {
    position: sticky;
    top: 35px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rh-article-sidebar-card {
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
    border: 1px solid #dcecf5;
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0%, rgba(91,196,230,.17), transparent 40%),
        #f3f9fd;
}

.rh-article-sidebar-card::after {
    position: absolute;
    right: -45px;
    bottom: -75px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(36,118,165,.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.rh-sidebar-label {
    display: block;
    margin-bottom: 14px;
    color: var(--article-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.rh-article-sidebar-card h3 {
    margin: 0 0 12px;
    color: var(--article-heading);
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
}

.rh-article-sidebar-card p {
    margin: 0 0 20px;
    color: var(--article-text);
    font-size: 13px;
    line-height: 1.75;
}

.rh-sidebar-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 9px;
    background: var(--article-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .25s ease, gap .25s ease;
}

.rh-sidebar-button:hover {
    gap: 15px;
    background: var(--article-primary-dark);
    color: #ffffff;
}


/* =========================================
   RECENT ARTICLES
========================================= */

.rh-article-recent {
    padding: 25px 22px;
    border: 1px solid var(--article-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(26,67,94,.045);
}

.rh-article-recent > h3 {
    margin: 0 0 20px;
    color: var(--article-heading);
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.rh-recent-post-list {
    display: flex;
    flex-direction: column;
}

.rh-recent-post {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f6;
    text-decoration: none;
}

.rh-recent-post:first-child {
    padding-top: 0;
}

.rh-recent-post:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rh-recent-post-image,
.rh-recent-post-placeholder {
    flex: 0 0 68px;
    width: 68px;
    height: 65px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--article-light);
}

.rh-recent-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.rh-recent-post:hover .rh-recent-post-image img {
    transform: scale(1.07);
}

.rh-recent-post-placeholder {
    display: grid;
    place-items: center;
    color: var(--article-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.rh-recent-post-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.rh-recent-post-date {
    color: #91a1ae;
    font-size: 10px;
}

.rh-recent-post-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--article-heading);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color .25s ease;
}

.rh-recent-post:hover .rh-recent-post-title {
    color: var(--article-primary);
}


/* =========================================
   NOT FOUND
========================================= */

.rh-article-not-found {
    padding: 100px 0;
    background: #f4f9fc;
    text-align: center;
}

.rh-article-not-found h1 {
    margin: 0 0 15px;
    color: var(--article-heading);
    font-family: 'Manrope', sans-serif;
    font-size: 38px;
}

.rh-article-not-found p {
    margin: 0 0 25px;
    color: var(--article-text);
    line-height: 1.7;
}

.rh-article-not-found a {
    display: inline-flex;
    padding: 13px 20px;
    border-radius: 9px;
    background: var(--article-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================
   RESPONSIVE: TABLET
========================================= */

@media (max-width: 1024px) {

    .rh-article-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 35px;
    }

    .rh-article-hero {
        padding: 40px 0 55px;
    }

    .rh-article-featured-image {
        aspect-ratio: 16 / 9;
    }

    .rh-article-body-section {
        padding-bottom: 75px;
    }

}


/* =========================================
   RESPONSIVE: SMALL TABLET
========================================= */

@media (max-width: 767px) {

    .rh-article-container {
        width: min(100% - 36px, 620px);
    }

    .rh-article-hero {
        padding: 30px 0 45px;
    }

    .rh-article-breadcrumb {
        margin-bottom: 35px;
        font-size: 11px;
    }

    .rh-article-heading {
        text-align: left;
    }

    .rh-article-category-row {
        justify-content: flex-start;
        margin-bottom: 18px;
    }

    .rh-article-title {
        margin: 0 0 17px;
        font-size: clamp(32px, 7vw, 45px);
        letter-spacing: -1.3px;
    }

    .rh-article-excerpt {
        margin: 0 0 22px;
        font-size: 15px;
        line-height: 1.75;
    }

    .rh-article-meta {
        justify-content: flex-start;
        gap: 14px 22px;
        font-size: 12px;
    }

    .rh-article-featured-section {
        padding-bottom: 40px;
    }

    .rh-article-featured-image {
        aspect-ratio: 16 / 10;
        border-radius: 15px;
    }

    .rh-article-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .rh-article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 18px;
    }

    .rh-article-body-section {
        padding-top: 5px;
        padding-bottom: 65px;
    }

}


/* =========================================
   RESPONSIVE: MOBILE
========================================= */

@media (max-width: 480px) {

    .rh-article-container {
        width: calc(100% - 30px);
    }

    .rh-article-hero {
        padding: 25px 0 38px;
    }

    .rh-article-breadcrumb {
        gap: 7px;
        margin-bottom: 28px;
    }

    .rh-breadcrumb-current {
        max-width: 125px;
    }

    .rh-article-title {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .rh-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rh-article-featured-section {
        padding-bottom: 30px;
    }

    .rh-article-featured-image {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    .rh-article-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .rh-article-content p {
        font-size: 15px;
        line-height: 1.85;
    }

    .rh-article-content h2 {
        margin-top: 32px;
        font-size: 25px;
    }

    .rh-article-content h3 {
        margin-top: 28px;
        font-size: 21px;
    }

    .rh-article-content blockquote {
        padding: 20px;
        font-size: 16px;
    }

    .rh-article-content .alignleft,
    .rh-article-content .alignright {
        float: none;
        display: block;
        margin: 25px auto;
    }

    .rh-article-post-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
    }

    .rh-article-next {
        text-align: left;
    }

    .rh-article-sidebar {
        grid-template-columns: 1fr;
    }

    .rh-article-sidebar-card,
    .rh-article-recent {
        padding: 23px 20px;
    }

}