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

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

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

.rh-blog-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


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

.rh-blog-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 105px 0 100px;
    background:
        radial-gradient(circle at 85% 20%, rgba(91, 196, 230, .18), transparent 32%),
        linear-gradient(120deg, #f1f9fd 0%, #ffffff 55%, #eaf6fc 100%);
}

.rh-blog-hero .rh-blog-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.rh-blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 730px;
}

.rh-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    margin-bottom: 24px;
    border: 1px solid #d5eaf5;
    border-radius: 50px;
    background: rgba(255,255,255,.8);
    color: var(--blog-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.rh-blog-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5bc44e;
    box-shadow: 0 0 0 4px rgba(91,196,78,.13);
}

.rh-blog-hero h1 {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--blog-heading);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(38px, 5.2vw, 66px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2.5px;
}

.rh-blog-hero h1 span {
    display: block;
    color: var(--blog-primary);
}

.rh-blog-hero-content > p {
    max-width: 590px;
    margin: 0;
    color: var(--blog-text);
    font-size: 17px;
    line-height: 1.85;
}

.rh-blog-hero-decoration {
    position: relative;
    flex: 0 0 270px;
    width: 270px;
    height: 270px;
    display: grid;
    place-items: center;
}

.rh-blog-decoration-circle {
    width: 205px;
    height: 205px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(36,118,165,.18);
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #dceffa);
    box-shadow:
        0 25px 65px rgba(36,118,165,.13),
        inset 0 0 0 18px rgba(255,255,255,.45);
}

.rh-blog-decoration-circle span {
    color: var(--blog-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -5px;
}

.rh-blog-decoration-dot {
    position: absolute;
    border-radius: 50%;
    background: #5bc44e;
}

.rh-blog-decoration-dot.dot-one {
    width: 18px;
    height: 18px;
    top: 18px;
    right: 40px;
}

.rh-blog-decoration-dot.dot-two {
    width: 12px;
    height: 12px;
    bottom: 32px;
    left: 12px;
    background: #f47b23;
}

.rh-blog-decoration-dot.dot-three {
    width: 9px;
    height: 9px;
    top: 70px;
    left: 4px;
    background: var(--blog-primary);
}

.rh-blog-hero-shape {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(36,118,165,.08);
    border-radius: 50%;
    pointer-events: none;
}

.rh-blog-shape-one {
    width: 420px;
    height: 420px;
    top: -260px;
    right: 12%;
}

.rh-blog-shape-two {
    width: 520px;
    height: 520px;
    bottom: -420px;
    left: -180px;
}


/* =========================================
   BLOG LISTING
========================================= */

.rh-blog-listing {
    padding: 90px 0 110px;
    background: #ffffff;
}

.rh-blog-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 42px;
}

.rh-blog-section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--blog-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.rh-blog-section-heading h2 {
    margin: 0 0 10px;
    color: var(--blog-heading);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
}

.rh-blog-section-heading p {
    margin: 0;
    color: var(--blog-text);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   BLOG GRID
========================================= */

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

.rh-blog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(26, 67, 94, .055);
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.rh-blog-card:hover {
    transform: translateY(-7px);
    border-color: #c5e1f1;
    box-shadow: 0 18px 40px rgba(26, 67, 94, .11);
}

.rh-blog-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--blog-light);
}

.rh-blog-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.rh-blog-card:hover .rh-blog-thumbnail {
    transform: scale(1.055);
}

.rh-blog-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #e5f3fb, #cde7f5);
}

.rh-blog-placeholder span {
    color: rgba(36,118,165,.5);
    font-family: 'Manrope', sans-serif;
    font-size: 55px;
    font-weight: 800;
}

.rh-blog-image-arrow {
    position: absolute;
    right: 17px;
    bottom: 17px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--blog-primary);
    font-size: 20px;
    opacity: 0;
    transform: translateX(-8px);
    transition: .3s ease;
}

.rh-blog-card:hover .rh-blog-image-arrow {
    opacity: 1;
    transform: translateX(0);
}

.rh-blog-card-content {
    padding: 24px 24px 26px;
}

.rh-blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 17px;
}

.rh-blog-category {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 50px;
    background: #edf7fc;
    color: var(--blog-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
}

.rh-blog-date {
    color: #8a9aa8;
    font-size: 12px;
    font-weight: 500;
}

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

.rh-blog-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.rh-blog-card h3 a:hover {
    color: var(--blog-primary);
}

.rh-blog-excerpt {
    display: -webkit-box;
    overflow: hidden;
    min-height: 66px;
    margin: 0 0 20px;
    color: var(--blog-text);
    font-size: 13px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

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

.rh-blog-read-more:hover {
    gap: 14px;
}

.rh-blog-read-more span {
    font-size: 17px;
}


/* =========================================
   PAGINATION
========================================= */

.rh-blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}

.rh-blog-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rh-blog-pagination li {
    margin: 0;
    padding: 0;
}

.rh-blog-pagination a,
.rh-blog-pagination span {
    display: grid;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    place-items: center;
    border: 1px solid var(--blog-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--blog-heading);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

.rh-blog-pagination a:hover,
.rh-blog-pagination .current {
    border-color: var(--blog-primary);
    background: var(--blog-primary);
    color: #ffffff;
}


/* =========================================
   EMPTY STATE
========================================= */

.rh-blog-empty {
    padding: 65px 25px;
    border: 1px dashed #c9dfed;
    border-radius: 18px;
    background: #f7fbfe;
    text-align: center;
}

.rh-blog-empty-icon {
    display: inline-grid;
    width: 55px;
    height: 55px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 16px;
    background: #e5f3fb;
    color: var(--blog-primary);
    font-size: 25px;
}

.rh-blog-empty h3 {
    margin: 0 0 10px;
    color: var(--blog-heading);
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
}

.rh-blog-empty p {
    margin: 0;
    color: var(--blog-text);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1024px) {

    .rh-blog-hero {
        padding: 85px 0;
    }

    .rh-blog-hero-decoration {
        flex-basis: 220px;
        width: 220px;
        height: 220px;
    }

    .rh-blog-decoration-circle {
        width: 175px;
        height: 175px;
    }

    .rh-blog-decoration-circle span {
        font-size: 52px;
    }

    .rh-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

}

@media (max-width: 767px) {

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

    .rh-blog-hero {
        padding: 75px 0 65px;
    }

    .rh-blog-hero .rh-blog-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
    }

    .rh-blog-hero h1 {
        font-size: clamp(36px, 9vw, 48px);
        letter-spacing: -1.6px;
    }

    .rh-blog-hero-content > p {
        font-size: 15px;
    }

    .rh-blog-hero-decoration {
        align-self: center;
        flex-basis: auto;
        width: 170px;
        height: 170px;
    }

    .rh-blog-decoration-circle {
        width: 145px;
        height: 145px;
    }

    .rh-blog-decoration-circle span {
        font-size: 43px;
    }

    .rh-blog-listing {
        padding: 65px 0 75px;
    }

    .rh-blog-section-heading {
        margin-bottom: 30px;
    }

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

    .rh-blog-card-content {
        padding: 22px;
    }

    .rh-blog-card h3 {
        font-size: 18px;
    }

    .rh-blog-excerpt {
        min-height: 0;
    }

    .rh-blog-pagination {
        margin-top: 38px;
    }

}

@media (max-width: 480px) {

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

    .rh-blog-hero {
        padding: 60px 0 55px;
    }

    .rh-blog-eyebrow {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .rh-blog-hero h1 {
        font-size: 35px;
    }

    .rh-blog-section-heading h2 {
        font-size: 26px;
    }

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

    .rh-blog-pagination ul {
        gap: 6px;
    }

    .rh-blog-pagination a,
    .rh-blog-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
        font-size: 12px;
    }

}


/* Fix: Keep every blog card within a two-column tablet grid */

@media (min-width: 768px) and (max-width: 1024px) {

    .rh-blog-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        align-items: stretch;
    }

    .rh-blog-grid > .rh-blog-card {
        grid-column: auto !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .rh-blog-card-image {
        width: 100%;
    }

}